1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libfontenc 1.1.4. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libfontenc/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/libfontenc/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='libfontenc' 593PACKAGE_TARNAME='libfontenc' 594PACKAGE_VERSION='1.1.4' 595PACKAGE_STRING='libfontenc 1.1.4' 596PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libfontenc/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 640LINT_FALSE 641LINT_TRUE 642LINT_FLAGS 643LINT 644FONTENC_LIBS 645FONTENC_CFLAGS 646ENCODINGSDIR 647FONTROOTDIR 648MAN_SUBSTS 649XORG_MAN_PAGE 650ADMIN_MAN_DIR 651DRIVER_MAN_DIR 652MISC_MAN_DIR 653FILE_MAN_DIR 654LIB_MAN_DIR 655APP_MAN_DIR 656ADMIN_MAN_SUFFIX 657DRIVER_MAN_SUFFIX 658MISC_MAN_SUFFIX 659FILE_MAN_SUFFIX 660LIB_MAN_SUFFIX 661APP_MAN_SUFFIX 662INSTALL_CMD 663PKG_CONFIG_LIBDIR 664PKG_CONFIG_PATH 665PKG_CONFIG 666CHANGELOG_CMD 667STRICT_CFLAGS 668CWARNFLAGS 669BASE_CFLAGS 670CPP 671LT_SYS_LIBRARY_PATH 672OTOOL64 673OTOOL 674LIPO 675NMEDIT 676DSYMUTIL 677MANIFEST_TOOL 678RANLIB 679ac_ct_AR 680AR 681DLLTOOL 682OBJDUMP 683LN_S 684NM 685ac_ct_DUMPBIN 686DUMPBIN 687LD 688FGREP 689EGREP 690GREP 691SED 692am__fastdepCC_FALSE 693am__fastdepCC_TRUE 694CCDEPMODE 695am__nodep 696AMDEPBACKSLASH 697AMDEP_FALSE 698AMDEP_TRUE 699am__quote 700am__include 701DEPDIR 702OBJEXT 703EXEEXT 704ac_ct_CC 705CPPFLAGS 706LDFLAGS 707CFLAGS 708CC 709host_os 710host_vendor 711host_cpu 712host 713build_os 714build_vendor 715build_cpu 716build 717LIBTOOL 718AM_BACKSLASH 719AM_DEFAULT_VERBOSITY 720AM_DEFAULT_V 721AM_V 722am__untar 723am__tar 724AMTAR 725am__leading_dot 726SET_MAKE 727AWK 728mkdir_p 729MKDIR_P 730INSTALL_STRIP_PROGRAM 731STRIP 732install_sh 733MAKEINFO 734AUTOHEADER 735AUTOMAKE 736AUTOCONF 737ACLOCAL 738VERSION 739PACKAGE 740CYGPATH_W 741am__isrc 742INSTALL_DATA 743INSTALL_SCRIPT 744INSTALL_PROGRAM 745target_alias 746host_alias 747build_alias 748LIBS 749ECHO_T 750ECHO_N 751ECHO_C 752DEFS 753mandir 754localedir 755libdir 756psdir 757pdfdir 758dvidir 759htmldir 760infodir 761docdir 762oldincludedir 763includedir 764localstatedir 765sharedstatedir 766sysconfdir 767datadir 768datarootdir 769libexecdir 770sbindir 771bindir 772program_transform_name 773prefix 774exec_prefix 775PACKAGE_URL 776PACKAGE_BUGREPORT 777PACKAGE_STRING 778PACKAGE_VERSION 779PACKAGE_TARNAME 780PACKAGE_NAME 781PATH_SEPARATOR 782SHELL' 783ac_subst_files='' 784ac_user_opts=' 785enable_option_checking 786enable_silent_rules 787enable_shared 788enable_static 789with_pic 790enable_fast_install 791with_aix_soname 792enable_dependency_tracking 793with_gnu_ld 794with_sysroot 795enable_libtool_lock 796enable_selective_werror 797enable_strict_compilation 798with_fontrootdir 799with_encodingsdir 800with_lint 801' 802 ac_precious_vars='build_alias 803host_alias 804target_alias 805CC 806CFLAGS 807LDFLAGS 808LIBS 809CPPFLAGS 810LT_SYS_LIBRARY_PATH 811CPP 812PKG_CONFIG 813PKG_CONFIG_PATH 814PKG_CONFIG_LIBDIR 815FONTENC_CFLAGS 816FONTENC_LIBS 817LINT 818LINT_FLAGS' 819 820 821# Initialize some variables set by options. 822ac_init_help= 823ac_init_version=false 824ac_unrecognized_opts= 825ac_unrecognized_sep= 826# The variables have the same names as the options, with 827# dashes changed to underlines. 828cache_file=/dev/null 829exec_prefix=NONE 830no_create= 831no_recursion= 832prefix=NONE 833program_prefix=NONE 834program_suffix=NONE 835program_transform_name=s,x,x, 836silent= 837site= 838srcdir= 839verbose= 840x_includes=NONE 841x_libraries=NONE 842 843# Installation directory options. 844# These are left unexpanded so users can "make install exec_prefix=/foo" 845# and all the variables that are supposed to be based on exec_prefix 846# by default will actually change. 847# Use braces instead of parens because sh, perl, etc. also accept them. 848# (The list follows the same order as the GNU Coding Standards.) 849bindir='${exec_prefix}/bin' 850sbindir='${exec_prefix}/sbin' 851libexecdir='${exec_prefix}/libexec' 852datarootdir='${prefix}/share' 853datadir='${datarootdir}' 854sysconfdir='${prefix}/etc' 855sharedstatedir='${prefix}/com' 856localstatedir='${prefix}/var' 857includedir='${prefix}/include' 858oldincludedir='/usr/include' 859docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 860infodir='${datarootdir}/info' 861htmldir='${docdir}' 862dvidir='${docdir}' 863pdfdir='${docdir}' 864psdir='${docdir}' 865libdir='${exec_prefix}/lib' 866localedir='${datarootdir}/locale' 867mandir='${datarootdir}/man' 868 869ac_prev= 870ac_dashdash= 871for ac_option 872do 873 # If the previous option needs an argument, assign it. 874 if test -n "$ac_prev"; then 875 eval $ac_prev=\$ac_option 876 ac_prev= 877 continue 878 fi 879 880 case $ac_option in 881 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 882 *=) ac_optarg= ;; 883 *) ac_optarg=yes ;; 884 esac 885 886 # Accept the important Cygnus configure options, so we can diagnose typos. 887 888 case $ac_dashdash$ac_option in 889 --) 890 ac_dashdash=yes ;; 891 892 -bindir | --bindir | --bindi | --bind | --bin | --bi) 893 ac_prev=bindir ;; 894 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 895 bindir=$ac_optarg ;; 896 897 -build | --build | --buil | --bui | --bu) 898 ac_prev=build_alias ;; 899 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 900 build_alias=$ac_optarg ;; 901 902 -cache-file | --cache-file | --cache-fil | --cache-fi \ 903 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 904 ac_prev=cache_file ;; 905 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 906 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 907 cache_file=$ac_optarg ;; 908 909 --config-cache | -C) 910 cache_file=config.cache ;; 911 912 -datadir | --datadir | --datadi | --datad) 913 ac_prev=datadir ;; 914 -datadir=* | --datadir=* | --datadi=* | --datad=*) 915 datadir=$ac_optarg ;; 916 917 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 918 | --dataroo | --dataro | --datar) 919 ac_prev=datarootdir ;; 920 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 921 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 922 datarootdir=$ac_optarg ;; 923 924 -disable-* | --disable-*) 925 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 926 # Reject names that are not valid shell variable names. 927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 928 as_fn_error $? "invalid feature name: $ac_useropt" 929 ac_useropt_orig=$ac_useropt 930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 931 case $ac_user_opts in 932 *" 933"enable_$ac_useropt" 934"*) ;; 935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 936 ac_unrecognized_sep=', ';; 937 esac 938 eval enable_$ac_useropt=no ;; 939 940 -docdir | --docdir | --docdi | --doc | --do) 941 ac_prev=docdir ;; 942 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 943 docdir=$ac_optarg ;; 944 945 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 946 ac_prev=dvidir ;; 947 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 948 dvidir=$ac_optarg ;; 949 950 -enable-* | --enable-*) 951 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 952 # Reject names that are not valid shell variable names. 953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 954 as_fn_error $? "invalid feature name: $ac_useropt" 955 ac_useropt_orig=$ac_useropt 956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 957 case $ac_user_opts in 958 *" 959"enable_$ac_useropt" 960"*) ;; 961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 962 ac_unrecognized_sep=', ';; 963 esac 964 eval enable_$ac_useropt=\$ac_optarg ;; 965 966 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 967 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 968 | --exec | --exe | --ex) 969 ac_prev=exec_prefix ;; 970 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 971 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 972 | --exec=* | --exe=* | --ex=*) 973 exec_prefix=$ac_optarg ;; 974 975 -gas | --gas | --ga | --g) 976 # Obsolete; use --with-gas. 977 with_gas=yes ;; 978 979 -help | --help | --hel | --he | -h) 980 ac_init_help=long ;; 981 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 982 ac_init_help=recursive ;; 983 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 984 ac_init_help=short ;; 985 986 -host | --host | --hos | --ho) 987 ac_prev=host_alias ;; 988 -host=* | --host=* | --hos=* | --ho=*) 989 host_alias=$ac_optarg ;; 990 991 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 992 ac_prev=htmldir ;; 993 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 994 | --ht=*) 995 htmldir=$ac_optarg ;; 996 997 -includedir | --includedir | --includedi | --included | --include \ 998 | --includ | --inclu | --incl | --inc) 999 ac_prev=includedir ;; 1000 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1001 | --includ=* | --inclu=* | --incl=* | --inc=*) 1002 includedir=$ac_optarg ;; 1003 1004 -infodir | --infodir | --infodi | --infod | --info | --inf) 1005 ac_prev=infodir ;; 1006 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1007 infodir=$ac_optarg ;; 1008 1009 -libdir | --libdir | --libdi | --libd) 1010 ac_prev=libdir ;; 1011 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1012 libdir=$ac_optarg ;; 1013 1014 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1015 | --libexe | --libex | --libe) 1016 ac_prev=libexecdir ;; 1017 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1018 | --libexe=* | --libex=* | --libe=*) 1019 libexecdir=$ac_optarg ;; 1020 1021 -localedir | --localedir | --localedi | --localed | --locale) 1022 ac_prev=localedir ;; 1023 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1024 localedir=$ac_optarg ;; 1025 1026 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1027 | --localstate | --localstat | --localsta | --localst | --locals) 1028 ac_prev=localstatedir ;; 1029 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1030 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1031 localstatedir=$ac_optarg ;; 1032 1033 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1034 ac_prev=mandir ;; 1035 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1036 mandir=$ac_optarg ;; 1037 1038 -nfp | --nfp | --nf) 1039 # Obsolete; use --without-fp. 1040 with_fp=no ;; 1041 1042 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1043 | --no-cr | --no-c | -n) 1044 no_create=yes ;; 1045 1046 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1047 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1048 no_recursion=yes ;; 1049 1050 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1051 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1052 | --oldin | --oldi | --old | --ol | --o) 1053 ac_prev=oldincludedir ;; 1054 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1055 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1056 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1057 oldincludedir=$ac_optarg ;; 1058 1059 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1060 ac_prev=prefix ;; 1061 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1062 prefix=$ac_optarg ;; 1063 1064 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1065 | --program-pre | --program-pr | --program-p) 1066 ac_prev=program_prefix ;; 1067 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1068 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1069 program_prefix=$ac_optarg ;; 1070 1071 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1072 | --program-suf | --program-su | --program-s) 1073 ac_prev=program_suffix ;; 1074 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1075 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1076 program_suffix=$ac_optarg ;; 1077 1078 -program-transform-name | --program-transform-name \ 1079 | --program-transform-nam | --program-transform-na \ 1080 | --program-transform-n | --program-transform- \ 1081 | --program-transform | --program-transfor \ 1082 | --program-transfo | --program-transf \ 1083 | --program-trans | --program-tran \ 1084 | --progr-tra | --program-tr | --program-t) 1085 ac_prev=program_transform_name ;; 1086 -program-transform-name=* | --program-transform-name=* \ 1087 | --program-transform-nam=* | --program-transform-na=* \ 1088 | --program-transform-n=* | --program-transform-=* \ 1089 | --program-transform=* | --program-transfor=* \ 1090 | --program-transfo=* | --program-transf=* \ 1091 | --program-trans=* | --program-tran=* \ 1092 | --progr-tra=* | --program-tr=* | --program-t=*) 1093 program_transform_name=$ac_optarg ;; 1094 1095 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1096 ac_prev=pdfdir ;; 1097 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1098 pdfdir=$ac_optarg ;; 1099 1100 -psdir | --psdir | --psdi | --psd | --ps) 1101 ac_prev=psdir ;; 1102 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1103 psdir=$ac_optarg ;; 1104 1105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1106 | -silent | --silent | --silen | --sile | --sil) 1107 silent=yes ;; 1108 1109 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1110 ac_prev=sbindir ;; 1111 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1112 | --sbi=* | --sb=*) 1113 sbindir=$ac_optarg ;; 1114 1115 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1116 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1117 | --sharedst | --shareds | --shared | --share | --shar \ 1118 | --sha | --sh) 1119 ac_prev=sharedstatedir ;; 1120 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1121 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1122 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1123 | --sha=* | --sh=*) 1124 sharedstatedir=$ac_optarg ;; 1125 1126 -site | --site | --sit) 1127 ac_prev=site ;; 1128 -site=* | --site=* | --sit=*) 1129 site=$ac_optarg ;; 1130 1131 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1132 ac_prev=srcdir ;; 1133 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1134 srcdir=$ac_optarg ;; 1135 1136 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1137 | --syscon | --sysco | --sysc | --sys | --sy) 1138 ac_prev=sysconfdir ;; 1139 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1140 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1141 sysconfdir=$ac_optarg ;; 1142 1143 -target | --target | --targe | --targ | --tar | --ta | --t) 1144 ac_prev=target_alias ;; 1145 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1146 target_alias=$ac_optarg ;; 1147 1148 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1149 verbose=yes ;; 1150 1151 -version | --version | --versio | --versi | --vers | -V) 1152 ac_init_version=: ;; 1153 1154 -with-* | --with-*) 1155 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1156 # Reject names that are not valid shell variable names. 1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1158 as_fn_error $? "invalid package name: $ac_useropt" 1159 ac_useropt_orig=$ac_useropt 1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1161 case $ac_user_opts in 1162 *" 1163"with_$ac_useropt" 1164"*) ;; 1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1166 ac_unrecognized_sep=', ';; 1167 esac 1168 eval with_$ac_useropt=\$ac_optarg ;; 1169 1170 -without-* | --without-*) 1171 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1172 # Reject names that are not valid shell variable names. 1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1174 as_fn_error $? "invalid package name: $ac_useropt" 1175 ac_useropt_orig=$ac_useropt 1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1177 case $ac_user_opts in 1178 *" 1179"with_$ac_useropt" 1180"*) ;; 1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1182 ac_unrecognized_sep=', ';; 1183 esac 1184 eval with_$ac_useropt=no ;; 1185 1186 --x) 1187 # Obsolete; use --with-x. 1188 with_x=yes ;; 1189 1190 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1191 | --x-incl | --x-inc | --x-in | --x-i) 1192 ac_prev=x_includes ;; 1193 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1194 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1195 x_includes=$ac_optarg ;; 1196 1197 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1198 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1199 ac_prev=x_libraries ;; 1200 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1201 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1202 x_libraries=$ac_optarg ;; 1203 1204 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1205Try \`$0 --help' for more information" 1206 ;; 1207 1208 *=*) 1209 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1210 # Reject names that are not valid shell variable names. 1211 case $ac_envvar in #( 1212 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1213 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1214 esac 1215 eval $ac_envvar=\$ac_optarg 1216 export $ac_envvar ;; 1217 1218 *) 1219 # FIXME: should be removed in autoconf 3.0. 1220 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1221 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1222 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1223 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1224 ;; 1225 1226 esac 1227done 1228 1229if test -n "$ac_prev"; then 1230 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1231 as_fn_error $? "missing argument to $ac_option" 1232fi 1233 1234if test -n "$ac_unrecognized_opts"; then 1235 case $enable_option_checking in 1236 no) ;; 1237 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1238 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1239 esac 1240fi 1241 1242# Check all directory arguments for consistency. 1243for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1244 datadir sysconfdir sharedstatedir localstatedir includedir \ 1245 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1246 libdir localedir mandir 1247do 1248 eval ac_val=\$$ac_var 1249 # Remove trailing slashes. 1250 case $ac_val in 1251 */ ) 1252 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1253 eval $ac_var=\$ac_val;; 1254 esac 1255 # Be sure to have absolute directory names. 1256 case $ac_val in 1257 [\\/$]* | ?:[\\/]* ) continue;; 1258 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1259 esac 1260 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1261done 1262 1263# There might be people who depend on the old broken behavior: `$host' 1264# used to hold the argument of --host etc. 1265# FIXME: To remove some day. 1266build=$build_alias 1267host=$host_alias 1268target=$target_alias 1269 1270# FIXME: To remove some day. 1271if test "x$host_alias" != x; then 1272 if test "x$build_alias" = x; then 1273 cross_compiling=maybe 1274 elif test "x$build_alias" != "x$host_alias"; then 1275 cross_compiling=yes 1276 fi 1277fi 1278 1279ac_tool_prefix= 1280test -n "$host_alias" && ac_tool_prefix=$host_alias- 1281 1282test "$silent" = yes && exec 6>/dev/null 1283 1284 1285ac_pwd=`pwd` && test -n "$ac_pwd" && 1286ac_ls_di=`ls -di .` && 1287ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1288 as_fn_error $? "working directory cannot be determined" 1289test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1290 as_fn_error $? "pwd does not report name of working directory" 1291 1292 1293# Find the source files, if location was not specified. 1294if test -z "$srcdir"; then 1295 ac_srcdir_defaulted=yes 1296 # Try the directory containing this script, then the parent directory. 1297 ac_confdir=`$as_dirname -- "$as_myself" || 1298$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1299 X"$as_myself" : 'X\(//\)[^/]' \| \ 1300 X"$as_myself" : 'X\(//\)$' \| \ 1301 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1302$as_echo X"$as_myself" | 1303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1304 s//\1/ 1305 q 1306 } 1307 /^X\(\/\/\)[^/].*/{ 1308 s//\1/ 1309 q 1310 } 1311 /^X\(\/\/\)$/{ 1312 s//\1/ 1313 q 1314 } 1315 /^X\(\/\).*/{ 1316 s//\1/ 1317 q 1318 } 1319 s/.*/./; q'` 1320 srcdir=$ac_confdir 1321 if test ! -r "$srcdir/$ac_unique_file"; then 1322 srcdir=.. 1323 fi 1324else 1325 ac_srcdir_defaulted=no 1326fi 1327if test ! -r "$srcdir/$ac_unique_file"; then 1328 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1329 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1330fi 1331ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1332ac_abs_confdir=`( 1333 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1334 pwd)` 1335# When building in place, set srcdir=. 1336if test "$ac_abs_confdir" = "$ac_pwd"; then 1337 srcdir=. 1338fi 1339# Remove unnecessary trailing slashes from srcdir. 1340# Double slashes in file names in object file debugging info 1341# mess up M-x gdb in Emacs. 1342case $srcdir in 1343*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1344esac 1345for ac_var in $ac_precious_vars; do 1346 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1347 eval ac_env_${ac_var}_value=\$${ac_var} 1348 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1349 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1350done 1351 1352# 1353# Report the --help message. 1354# 1355if test "$ac_init_help" = "long"; then 1356 # Omit some internal or obsolete options to make the list less imposing. 1357 # This message is too long to be a string in the A/UX 3.1 sh. 1358 cat <<_ACEOF 1359\`configure' configures libfontenc 1.1.4 to adapt to many kinds of systems. 1360 1361Usage: $0 [OPTION]... [VAR=VALUE]... 1362 1363To assign environment variables (e.g., CC, CFLAGS...), specify them as 1364VAR=VALUE. See below for descriptions of some of the useful variables. 1365 1366Defaults for the options are specified in brackets. 1367 1368Configuration: 1369 -h, --help display this help and exit 1370 --help=short display options specific to this package 1371 --help=recursive display the short help of all the included packages 1372 -V, --version display version information and exit 1373 -q, --quiet, --silent do not print \`checking ...' messages 1374 --cache-file=FILE cache test results in FILE [disabled] 1375 -C, --config-cache alias for \`--cache-file=config.cache' 1376 -n, --no-create do not create output files 1377 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1378 1379Installation directories: 1380 --prefix=PREFIX install architecture-independent files in PREFIX 1381 [$ac_default_prefix] 1382 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1383 [PREFIX] 1384 1385By default, \`make install' will install all the files in 1386\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1387an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1388for instance \`--prefix=\$HOME'. 1389 1390For better control, use the options below. 1391 1392Fine tuning of the installation directories: 1393 --bindir=DIR user executables [EPREFIX/bin] 1394 --sbindir=DIR system admin executables [EPREFIX/sbin] 1395 --libexecdir=DIR program executables [EPREFIX/libexec] 1396 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1397 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1398 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1399 --libdir=DIR object code libraries [EPREFIX/lib] 1400 --includedir=DIR C header files [PREFIX/include] 1401 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1402 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1403 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1404 --infodir=DIR info documentation [DATAROOTDIR/info] 1405 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1406 --mandir=DIR man documentation [DATAROOTDIR/man] 1407 --docdir=DIR documentation root [DATAROOTDIR/doc/libfontenc] 1408 --htmldir=DIR html documentation [DOCDIR] 1409 --dvidir=DIR dvi documentation [DOCDIR] 1410 --pdfdir=DIR pdf documentation [DOCDIR] 1411 --psdir=DIR ps documentation [DOCDIR] 1412_ACEOF 1413 1414 cat <<\_ACEOF 1415 1416Program names: 1417 --program-prefix=PREFIX prepend PREFIX to installed program names 1418 --program-suffix=SUFFIX append SUFFIX to installed program names 1419 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1420 1421System types: 1422 --build=BUILD configure for building on BUILD [guessed] 1423 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1424_ACEOF 1425fi 1426 1427if test -n "$ac_init_help"; then 1428 case $ac_init_help in 1429 short | recursive ) echo "Configuration of libfontenc 1.1.4:";; 1430 esac 1431 cat <<\_ACEOF 1432 1433Optional Features: 1434 --disable-option-checking ignore unrecognized --enable/--with options 1435 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1436 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1437 --enable-silent-rules less verbose build output (undo: "make V=1") 1438 --disable-silent-rules verbose build output (undo: "make V=0") 1439 --enable-shared[=PKGS] build shared libraries [default=yes] 1440 --enable-static[=PKGS] build static libraries [default=yes] 1441 --enable-fast-install[=PKGS] 1442 optimize for fast installation [default=yes] 1443 --enable-dependency-tracking 1444 do not reject slow dependency extractors 1445 --disable-dependency-tracking 1446 speeds up one-time build 1447 --disable-libtool-lock avoid locking (might break parallel builds) 1448 --disable-selective-werror 1449 Turn off selective compiler errors. (default: 1450 enabled) 1451 --enable-strict-compilation 1452 Enable all warnings from compiler and make them 1453 errors (default: disabled) 1454 1455Optional Packages: 1456 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1457 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1458 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1459 both] 1460 --with-aix-soname=aix|svr4|both 1461 shared library versioning (aka "SONAME") variant to 1462 provide on AIX, [default=aix]. 1463 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1464 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1465 compiler's sysroot if not specified). 1466 --with-fontrootdir=DIR Path to root directory for font files 1467 --with-encodingsdir=DIR Path to encodings files [FONTROOTDIR/encodings] 1468 --with-lint Use a lint-style source code checker (default: 1469 disabled) 1470 1471Some influential environment variables: 1472 CC C compiler command 1473 CFLAGS C compiler flags 1474 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1475 nonstandard directory <lib dir> 1476 LIBS libraries to pass to the linker, e.g. -l<library> 1477 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1478 you have headers in a nonstandard directory <include dir> 1479 LT_SYS_LIBRARY_PATH 1480 User-defined run-time library search path. 1481 CPP C preprocessor 1482 PKG_CONFIG path to pkg-config utility 1483 PKG_CONFIG_PATH 1484 directories to add to pkg-config's search path 1485 PKG_CONFIG_LIBDIR 1486 path overriding pkg-config's built-in search path 1487 FONTENC_CFLAGS 1488 C compiler flags for FONTENC, overriding pkg-config 1489 FONTENC_LIBS 1490 linker flags for FONTENC, overriding pkg-config 1491 LINT Path to a lint-style command 1492 LINT_FLAGS Flags for the lint-style command 1493 1494Use these variables to override the choices made by `configure' or to help 1495it to find libraries and programs with nonstandard names/locations. 1496 1497Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libfontenc/issues>. 1498_ACEOF 1499ac_status=$? 1500fi 1501 1502if test "$ac_init_help" = "recursive"; then 1503 # If there are subdirs, report their specific --help. 1504 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1505 test -d "$ac_dir" || 1506 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1507 continue 1508 ac_builddir=. 1509 1510case "$ac_dir" in 1511.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1512*) 1513 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1514 # A ".." for each directory in $ac_dir_suffix. 1515 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1516 case $ac_top_builddir_sub in 1517 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1518 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1519 esac ;; 1520esac 1521ac_abs_top_builddir=$ac_pwd 1522ac_abs_builddir=$ac_pwd$ac_dir_suffix 1523# for backward compatibility: 1524ac_top_builddir=$ac_top_build_prefix 1525 1526case $srcdir in 1527 .) # We are building in place. 1528 ac_srcdir=. 1529 ac_top_srcdir=$ac_top_builddir_sub 1530 ac_abs_top_srcdir=$ac_pwd ;; 1531 [\\/]* | ?:[\\/]* ) # Absolute name. 1532 ac_srcdir=$srcdir$ac_dir_suffix; 1533 ac_top_srcdir=$srcdir 1534 ac_abs_top_srcdir=$srcdir ;; 1535 *) # Relative name. 1536 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1537 ac_top_srcdir=$ac_top_build_prefix$srcdir 1538 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1539esac 1540ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1541 1542 cd "$ac_dir" || { ac_status=$?; continue; } 1543 # Check for guested configure. 1544 if test -f "$ac_srcdir/configure.gnu"; then 1545 echo && 1546 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1547 elif test -f "$ac_srcdir/configure"; then 1548 echo && 1549 $SHELL "$ac_srcdir/configure" --help=recursive 1550 else 1551 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1552 fi || ac_status=$? 1553 cd "$ac_pwd" || { ac_status=$?; break; } 1554 done 1555fi 1556 1557test -n "$ac_init_help" && exit $ac_status 1558if $ac_init_version; then 1559 cat <<\_ACEOF 1560libfontenc configure 1.1.4 1561generated by GNU Autoconf 2.69 1562 1563Copyright (C) 2012 Free Software Foundation, Inc. 1564This configure script is free software; the Free Software Foundation 1565gives unlimited permission to copy, distribute and modify it. 1566_ACEOF 1567 exit 1568fi 1569 1570## ------------------------ ## 1571## Autoconf initialization. ## 1572## ------------------------ ## 1573 1574# ac_fn_c_try_compile LINENO 1575# -------------------------- 1576# Try to compile conftest.$ac_ext, and return whether this succeeded. 1577ac_fn_c_try_compile () 1578{ 1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1580 rm -f conftest.$ac_objext 1581 if { { ac_try="$ac_compile" 1582case "(($ac_try" in 1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1584 *) ac_try_echo=$ac_try;; 1585esac 1586eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1587$as_echo "$ac_try_echo"; } >&5 1588 (eval "$ac_compile") 2>conftest.err 1589 ac_status=$? 1590 if test -s conftest.err; then 1591 grep -v '^ *+' conftest.err >conftest.er1 1592 cat conftest.er1 >&5 1593 mv -f conftest.er1 conftest.err 1594 fi 1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1596 test $ac_status = 0; } && { 1597 test -z "$ac_c_werror_flag" || 1598 test ! -s conftest.err 1599 } && test -s conftest.$ac_objext; then : 1600 ac_retval=0 1601else 1602 $as_echo "$as_me: failed program was:" >&5 1603sed 's/^/| /' conftest.$ac_ext >&5 1604 1605 ac_retval=1 1606fi 1607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1608 as_fn_set_status $ac_retval 1609 1610} # ac_fn_c_try_compile 1611 1612# ac_fn_c_try_link LINENO 1613# ----------------------- 1614# Try to link conftest.$ac_ext, and return whether this succeeded. 1615ac_fn_c_try_link () 1616{ 1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1618 rm -f conftest.$ac_objext conftest$ac_exeext 1619 if { { ac_try="$ac_link" 1620case "(($ac_try" in 1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1622 *) ac_try_echo=$ac_try;; 1623esac 1624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1625$as_echo "$ac_try_echo"; } >&5 1626 (eval "$ac_link") 2>conftest.err 1627 ac_status=$? 1628 if test -s conftest.err; then 1629 grep -v '^ *+' conftest.err >conftest.er1 1630 cat conftest.er1 >&5 1631 mv -f conftest.er1 conftest.err 1632 fi 1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1634 test $ac_status = 0; } && { 1635 test -z "$ac_c_werror_flag" || 1636 test ! -s conftest.err 1637 } && test -s conftest$ac_exeext && { 1638 test "$cross_compiling" = yes || 1639 test -x conftest$ac_exeext 1640 }; then : 1641 ac_retval=0 1642else 1643 $as_echo "$as_me: failed program was:" >&5 1644sed 's/^/| /' conftest.$ac_ext >&5 1645 1646 ac_retval=1 1647fi 1648 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1649 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1650 # interfere with the next link command; also delete a directory that is 1651 # left behind by Apple's compiler. We do this before executing the actions. 1652 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1654 as_fn_set_status $ac_retval 1655 1656} # ac_fn_c_try_link 1657 1658# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1659# ------------------------------------------------------- 1660# Tests whether HEADER exists and can be compiled using the include files in 1661# INCLUDES, setting the cache variable VAR accordingly. 1662ac_fn_c_check_header_compile () 1663{ 1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1666$as_echo_n "checking for $2... " >&6; } 1667if eval \${$3+:} false; then : 1668 $as_echo_n "(cached) " >&6 1669else 1670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1671/* end confdefs.h. */ 1672$4 1673#include <$2> 1674_ACEOF 1675if ac_fn_c_try_compile "$LINENO"; then : 1676 eval "$3=yes" 1677else 1678 eval "$3=no" 1679fi 1680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1681fi 1682eval ac_res=\$$3 1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1684$as_echo "$ac_res" >&6; } 1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1686 1687} # ac_fn_c_check_header_compile 1688 1689# ac_fn_c_try_cpp LINENO 1690# ---------------------- 1691# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1692ac_fn_c_try_cpp () 1693{ 1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1695 if { { ac_try="$ac_cpp conftest.$ac_ext" 1696case "(($ac_try" in 1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1698 *) ac_try_echo=$ac_try;; 1699esac 1700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1701$as_echo "$ac_try_echo"; } >&5 1702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1703 ac_status=$? 1704 if test -s conftest.err; then 1705 grep -v '^ *+' conftest.err >conftest.er1 1706 cat conftest.er1 >&5 1707 mv -f conftest.er1 conftest.err 1708 fi 1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1710 test $ac_status = 0; } > conftest.i && { 1711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1712 test ! -s conftest.err 1713 }; then : 1714 ac_retval=0 1715else 1716 $as_echo "$as_me: failed program was:" >&5 1717sed 's/^/| /' conftest.$ac_ext >&5 1718 1719 ac_retval=1 1720fi 1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1722 as_fn_set_status $ac_retval 1723 1724} # ac_fn_c_try_cpp 1725 1726# ac_fn_c_try_run LINENO 1727# ---------------------- 1728# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1729# that executables *can* be run. 1730ac_fn_c_try_run () 1731{ 1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1733 if { { ac_try="$ac_link" 1734case "(($ac_try" in 1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1736 *) ac_try_echo=$ac_try;; 1737esac 1738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1739$as_echo "$ac_try_echo"; } >&5 1740 (eval "$ac_link") 2>&5 1741 ac_status=$? 1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1743 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1744 { { case "(($ac_try" in 1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1746 *) ac_try_echo=$ac_try;; 1747esac 1748eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1749$as_echo "$ac_try_echo"; } >&5 1750 (eval "$ac_try") 2>&5 1751 ac_status=$? 1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1753 test $ac_status = 0; }; }; then : 1754 ac_retval=0 1755else 1756 $as_echo "$as_me: program exited with status $ac_status" >&5 1757 $as_echo "$as_me: failed program was:" >&5 1758sed 's/^/| /' conftest.$ac_ext >&5 1759 1760 ac_retval=$ac_status 1761fi 1762 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1764 as_fn_set_status $ac_retval 1765 1766} # ac_fn_c_try_run 1767 1768# ac_fn_c_check_func LINENO FUNC VAR 1769# ---------------------------------- 1770# Tests whether FUNC exists, setting the cache variable VAR accordingly 1771ac_fn_c_check_func () 1772{ 1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1775$as_echo_n "checking for $2... " >&6; } 1776if eval \${$3+:} false; then : 1777 $as_echo_n "(cached) " >&6 1778else 1779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1780/* end confdefs.h. */ 1781/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1782 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1783#define $2 innocuous_$2 1784 1785/* System header to define __stub macros and hopefully few prototypes, 1786 which can conflict with char $2 (); below. 1787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1788 <limits.h> exists even on freestanding compilers. */ 1789 1790#ifdef __STDC__ 1791# include <limits.h> 1792#else 1793# include <assert.h> 1794#endif 1795 1796#undef $2 1797 1798/* Override any GCC internal prototype to avoid an error. 1799 Use char because int might match the return type of a GCC 1800 builtin and then its argument prototype would still apply. */ 1801#ifdef __cplusplus 1802extern "C" 1803#endif 1804char $2 (); 1805/* The GNU C library defines this for functions which it implements 1806 to always fail with ENOSYS. Some functions are actually named 1807 something starting with __ and the normal name is an alias. */ 1808#if defined __stub_$2 || defined __stub___$2 1809choke me 1810#endif 1811 1812int 1813main () 1814{ 1815return $2 (); 1816 ; 1817 return 0; 1818} 1819_ACEOF 1820if ac_fn_c_try_link "$LINENO"; then : 1821 eval "$3=yes" 1822else 1823 eval "$3=no" 1824fi 1825rm -f core conftest.err conftest.$ac_objext \ 1826 conftest$ac_exeext conftest.$ac_ext 1827fi 1828eval ac_res=\$$3 1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1830$as_echo "$ac_res" >&6; } 1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1832 1833} # ac_fn_c_check_func 1834 1835# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1836# --------------------------------------------- 1837# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1838# accordingly. 1839ac_fn_c_check_decl () 1840{ 1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1842 as_decl_name=`echo $2|sed 's/ *(.*//'` 1843 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1845$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1846if eval \${$3+:} false; then : 1847 $as_echo_n "(cached) " >&6 1848else 1849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1850/* end confdefs.h. */ 1851$4 1852int 1853main () 1854{ 1855#ifndef $as_decl_name 1856#ifdef __cplusplus 1857 (void) $as_decl_use; 1858#else 1859 (void) $as_decl_name; 1860#endif 1861#endif 1862 1863 ; 1864 return 0; 1865} 1866_ACEOF 1867if ac_fn_c_try_compile "$LINENO"; then : 1868 eval "$3=yes" 1869else 1870 eval "$3=no" 1871fi 1872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1873fi 1874eval ac_res=\$$3 1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1876$as_echo "$ac_res" >&6; } 1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1878 1879} # ac_fn_c_check_decl 1880 1881# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1882# ------------------------------------------------------- 1883# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1884# the include files in INCLUDES and setting the cache variable VAR 1885# accordingly. 1886ac_fn_c_check_header_mongrel () 1887{ 1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1889 if eval \${$3+:} false; then : 1890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1891$as_echo_n "checking for $2... " >&6; } 1892if eval \${$3+:} false; then : 1893 $as_echo_n "(cached) " >&6 1894fi 1895eval ac_res=\$$3 1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1897$as_echo "$ac_res" >&6; } 1898else 1899 # Is the header compilable? 1900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1901$as_echo_n "checking $2 usability... " >&6; } 1902cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1903/* end confdefs.h. */ 1904$4 1905#include <$2> 1906_ACEOF 1907if ac_fn_c_try_compile "$LINENO"; then : 1908 ac_header_compiler=yes 1909else 1910 ac_header_compiler=no 1911fi 1912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1914$as_echo "$ac_header_compiler" >&6; } 1915 1916# Is the header present? 1917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1918$as_echo_n "checking $2 presence... " >&6; } 1919cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1920/* end confdefs.h. */ 1921#include <$2> 1922_ACEOF 1923if ac_fn_c_try_cpp "$LINENO"; then : 1924 ac_header_preproc=yes 1925else 1926 ac_header_preproc=no 1927fi 1928rm -f conftest.err conftest.i conftest.$ac_ext 1929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1930$as_echo "$ac_header_preproc" >&6; } 1931 1932# So? What about this header? 1933case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1934 yes:no: ) 1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1936$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1938$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1939 ;; 1940 no:yes:* ) 1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1942$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1944$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1946$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1948$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1950$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1951( $as_echo "## ------------------------------------------------------------------------ ## 1952## Report this to https://gitlab.freedesktop.org/xorg/lib/libfontenc/issues ## 1953## ------------------------------------------------------------------------ ##" 1954 ) | sed "s/^/$as_me: WARNING: /" >&2 1955 ;; 1956esac 1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1958$as_echo_n "checking for $2... " >&6; } 1959if eval \${$3+:} false; then : 1960 $as_echo_n "(cached) " >&6 1961else 1962 eval "$3=\$ac_header_compiler" 1963fi 1964eval ac_res=\$$3 1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1966$as_echo "$ac_res" >&6; } 1967fi 1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1969 1970} # ac_fn_c_check_header_mongrel 1971cat >config.log <<_ACEOF 1972This file contains any messages produced by compilers while 1973running configure, to aid debugging if configure makes a mistake. 1974 1975It was created by libfontenc $as_me 1.1.4, which was 1976generated by GNU Autoconf 2.69. Invocation command line was 1977 1978 $ $0 $@ 1979 1980_ACEOF 1981exec 5>>config.log 1982{ 1983cat <<_ASUNAME 1984## --------- ## 1985## Platform. ## 1986## --------- ## 1987 1988hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1989uname -m = `(uname -m) 2>/dev/null || echo unknown` 1990uname -r = `(uname -r) 2>/dev/null || echo unknown` 1991uname -s = `(uname -s) 2>/dev/null || echo unknown` 1992uname -v = `(uname -v) 2>/dev/null || echo unknown` 1993 1994/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1995/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1996 1997/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1998/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1999/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2000/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2001/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2002/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2003/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2004 2005_ASUNAME 2006 2007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2008for as_dir in $PATH 2009do 2010 IFS=$as_save_IFS 2011 test -z "$as_dir" && as_dir=. 2012 $as_echo "PATH: $as_dir" 2013 done 2014IFS=$as_save_IFS 2015 2016} >&5 2017 2018cat >&5 <<_ACEOF 2019 2020 2021## ----------- ## 2022## Core tests. ## 2023## ----------- ## 2024 2025_ACEOF 2026 2027 2028# Keep a trace of the command line. 2029# Strip out --no-create and --no-recursion so they do not pile up. 2030# Strip out --silent because we don't want to record it for future runs. 2031# Also quote any args containing shell meta-characters. 2032# Make two passes to allow for proper duplicate-argument suppression. 2033ac_configure_args= 2034ac_configure_args0= 2035ac_configure_args1= 2036ac_must_keep_next=false 2037for ac_pass in 1 2 2038do 2039 for ac_arg 2040 do 2041 case $ac_arg in 2042 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2044 | -silent | --silent | --silen | --sile | --sil) 2045 continue ;; 2046 *\'*) 2047 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2048 esac 2049 case $ac_pass in 2050 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2051 2) 2052 as_fn_append ac_configure_args1 " '$ac_arg'" 2053 if test $ac_must_keep_next = true; then 2054 ac_must_keep_next=false # Got value, back to normal. 2055 else 2056 case $ac_arg in 2057 *=* | --config-cache | -C | -disable-* | --disable-* \ 2058 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2059 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2060 | -with-* | --with-* | -without-* | --without-* | --x) 2061 case "$ac_configure_args0 " in 2062 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2063 esac 2064 ;; 2065 -* ) ac_must_keep_next=true ;; 2066 esac 2067 fi 2068 as_fn_append ac_configure_args " '$ac_arg'" 2069 ;; 2070 esac 2071 done 2072done 2073{ ac_configure_args0=; unset ac_configure_args0;} 2074{ ac_configure_args1=; unset ac_configure_args1;} 2075 2076# When interrupted or exit'd, cleanup temporary files, and complete 2077# config.log. We remove comments because anyway the quotes in there 2078# would cause problems or look ugly. 2079# WARNING: Use '\'' to represent an apostrophe within the trap. 2080# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2081trap 'exit_status=$? 2082 # Save into config.log some information that might help in debugging. 2083 { 2084 echo 2085 2086 $as_echo "## ---------------- ## 2087## Cache variables. ## 2088## ---------------- ##" 2089 echo 2090 # The following way of writing the cache mishandles newlines in values, 2091( 2092 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2093 eval ac_val=\$$ac_var 2094 case $ac_val in #( 2095 *${as_nl}*) 2096 case $ac_var in #( 2097 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2098$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2099 esac 2100 case $ac_var in #( 2101 _ | IFS | as_nl) ;; #( 2102 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2103 *) { eval $ac_var=; unset $ac_var;} ;; 2104 esac ;; 2105 esac 2106 done 2107 (set) 2>&1 | 2108 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2109 *${as_nl}ac_space=\ *) 2110 sed -n \ 2111 "s/'\''/'\''\\\\'\'''\''/g; 2112 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2113 ;; #( 2114 *) 2115 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2116 ;; 2117 esac | 2118 sort 2119) 2120 echo 2121 2122 $as_echo "## ----------------- ## 2123## Output variables. ## 2124## ----------------- ##" 2125 echo 2126 for ac_var in $ac_subst_vars 2127 do 2128 eval ac_val=\$$ac_var 2129 case $ac_val in 2130 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2131 esac 2132 $as_echo "$ac_var='\''$ac_val'\''" 2133 done | sort 2134 echo 2135 2136 if test -n "$ac_subst_files"; then 2137 $as_echo "## ------------------- ## 2138## File substitutions. ## 2139## ------------------- ##" 2140 echo 2141 for ac_var in $ac_subst_files 2142 do 2143 eval ac_val=\$$ac_var 2144 case $ac_val in 2145 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2146 esac 2147 $as_echo "$ac_var='\''$ac_val'\''" 2148 done | sort 2149 echo 2150 fi 2151 2152 if test -s confdefs.h; then 2153 $as_echo "## ----------- ## 2154## confdefs.h. ## 2155## ----------- ##" 2156 echo 2157 cat confdefs.h 2158 echo 2159 fi 2160 test "$ac_signal" != 0 && 2161 $as_echo "$as_me: caught signal $ac_signal" 2162 $as_echo "$as_me: exit $exit_status" 2163 } >&5 2164 rm -f core *.core core.conftest.* && 2165 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2166 exit $exit_status 2167' 0 2168for ac_signal in 1 2 13 15; do 2169 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2170done 2171ac_signal=0 2172 2173# confdefs.h avoids OS command line length limits that DEFS can exceed. 2174rm -f -r conftest* confdefs.h 2175 2176$as_echo "/* confdefs.h */" > confdefs.h 2177 2178# Predefined preprocessor variables. 2179 2180cat >>confdefs.h <<_ACEOF 2181#define PACKAGE_NAME "$PACKAGE_NAME" 2182_ACEOF 2183 2184cat >>confdefs.h <<_ACEOF 2185#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2186_ACEOF 2187 2188cat >>confdefs.h <<_ACEOF 2189#define PACKAGE_VERSION "$PACKAGE_VERSION" 2190_ACEOF 2191 2192cat >>confdefs.h <<_ACEOF 2193#define PACKAGE_STRING "$PACKAGE_STRING" 2194_ACEOF 2195 2196cat >>confdefs.h <<_ACEOF 2197#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2198_ACEOF 2199 2200cat >>confdefs.h <<_ACEOF 2201#define PACKAGE_URL "$PACKAGE_URL" 2202_ACEOF 2203 2204 2205# Let the site file select an alternate cache file if it wants to. 2206# Prefer an explicitly selected file to automatically selected ones. 2207ac_site_file1=NONE 2208ac_site_file2=NONE 2209if test -n "$CONFIG_SITE"; then 2210 # We do not want a PATH search for config.site. 2211 case $CONFIG_SITE in #(( 2212 -*) ac_site_file1=./$CONFIG_SITE;; 2213 */*) ac_site_file1=$CONFIG_SITE;; 2214 *) ac_site_file1=./$CONFIG_SITE;; 2215 esac 2216elif test "x$prefix" != xNONE; then 2217 ac_site_file1=$prefix/share/config.site 2218 ac_site_file2=$prefix/etc/config.site 2219else 2220 ac_site_file1=$ac_default_prefix/share/config.site 2221 ac_site_file2=$ac_default_prefix/etc/config.site 2222fi 2223for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2224do 2225 test "x$ac_site_file" = xNONE && continue 2226 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2227 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2228$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2229 sed 's/^/| /' "$ac_site_file" >&5 2230 . "$ac_site_file" \ 2231 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2232$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2233as_fn_error $? "failed to load site script $ac_site_file 2234See \`config.log' for more details" "$LINENO" 5; } 2235 fi 2236done 2237 2238if test -r "$cache_file"; then 2239 # Some versions of bash will fail to source /dev/null (special files 2240 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2241 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2242 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2243$as_echo "$as_me: loading cache $cache_file" >&6;} 2244 case $cache_file in 2245 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2246 *) . "./$cache_file";; 2247 esac 2248 fi 2249else 2250 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2251$as_echo "$as_me: creating cache $cache_file" >&6;} 2252 >$cache_file 2253fi 2254 2255# Check that the precious variables saved in the cache have kept the same 2256# value. 2257ac_cache_corrupted=false 2258for ac_var in $ac_precious_vars; do 2259 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2260 eval ac_new_set=\$ac_env_${ac_var}_set 2261 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2262 eval ac_new_val=\$ac_env_${ac_var}_value 2263 case $ac_old_set,$ac_new_set in 2264 set,) 2265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2266$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2267 ac_cache_corrupted=: ;; 2268 ,set) 2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2270$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2271 ac_cache_corrupted=: ;; 2272 ,);; 2273 *) 2274 if test "x$ac_old_val" != "x$ac_new_val"; then 2275 # differences in whitespace do not lead to failure. 2276 ac_old_val_w=`echo x $ac_old_val` 2277 ac_new_val_w=`echo x $ac_new_val` 2278 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2280$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2281 ac_cache_corrupted=: 2282 else 2283 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2284$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2285 eval $ac_var=\$ac_old_val 2286 fi 2287 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2288$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2289 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2290$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2291 fi;; 2292 esac 2293 # Pass precious variables to config.status. 2294 if test "$ac_new_set" = set; then 2295 case $ac_new_val in 2296 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2297 *) ac_arg=$ac_var=$ac_new_val ;; 2298 esac 2299 case " $ac_configure_args " in 2300 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2301 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2302 esac 2303 fi 2304done 2305if $ac_cache_corrupted; then 2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2309$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2310 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2311fi 2312## -------------------- ## 2313## Main body of script. ## 2314## -------------------- ## 2315 2316ac_ext=c 2317ac_cpp='$CPP $CPPFLAGS' 2318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2320ac_compiler_gnu=$ac_cv_c_compiler_gnu 2321 2322 2323 2324ac_config_headers="$ac_config_headers config.h" 2325 2326 2327# Initialize Automake 2328am__api_version='1.15' 2329 2330ac_aux_dir= 2331for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2332 if test -f "$ac_dir/install-sh"; then 2333 ac_aux_dir=$ac_dir 2334 ac_install_sh="$ac_aux_dir/install-sh -c" 2335 break 2336 elif test -f "$ac_dir/install.sh"; then 2337 ac_aux_dir=$ac_dir 2338 ac_install_sh="$ac_aux_dir/install.sh -c" 2339 break 2340 elif test -f "$ac_dir/shtool"; then 2341 ac_aux_dir=$ac_dir 2342 ac_install_sh="$ac_aux_dir/shtool install -c" 2343 break 2344 fi 2345done 2346if test -z "$ac_aux_dir"; then 2347 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2348fi 2349 2350# These three variables are undocumented and unsupported, 2351# and are intended to be withdrawn in a future Autoconf release. 2352# They can cause serious problems if a builder's source tree is in a directory 2353# whose full name contains unusual characters. 2354ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2355ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2356ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2357 2358 2359# Find a good install program. We prefer a C program (faster), 2360# so one script is as good as another. But avoid the broken or 2361# incompatible versions: 2362# SysV /etc/install, /usr/sbin/install 2363# SunOS /usr/etc/install 2364# IRIX /sbin/install 2365# AIX /bin/install 2366# AmigaOS /C/install, which installs bootblocks on floppy discs 2367# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2368# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2369# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2370# OS/2's system install, which has a completely different semantic 2371# ./install, which can be erroneously created by make from ./install.sh. 2372# Reject install programs that cannot install multiple files. 2373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2374$as_echo_n "checking for a BSD-compatible install... " >&6; } 2375if test -z "$INSTALL"; then 2376if ${ac_cv_path_install+:} false; then : 2377 $as_echo_n "(cached) " >&6 2378else 2379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2380for as_dir in $PATH 2381do 2382 IFS=$as_save_IFS 2383 test -z "$as_dir" && as_dir=. 2384 # Account for people who put trailing slashes in PATH elements. 2385case $as_dir/ in #(( 2386 ./ | .// | /[cC]/* | \ 2387 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2388 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2389 /usr/ucb/* ) ;; 2390 *) 2391 # OSF1 and SCO ODT 3.0 have their own names for install. 2392 # Don't use installbsd from OSF since it installs stuff as root 2393 # by default. 2394 for ac_prog in ginstall scoinst install; do 2395 for ac_exec_ext in '' $ac_executable_extensions; do 2396 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2397 if test $ac_prog = install && 2398 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2399 # AIX install. It has an incompatible calling convention. 2400 : 2401 elif test $ac_prog = install && 2402 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2403 # program-specific install script used by HP pwplus--don't use. 2404 : 2405 else 2406 rm -rf conftest.one conftest.two conftest.dir 2407 echo one > conftest.one 2408 echo two > conftest.two 2409 mkdir conftest.dir 2410 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2411 test -s conftest.one && test -s conftest.two && 2412 test -s conftest.dir/conftest.one && 2413 test -s conftest.dir/conftest.two 2414 then 2415 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2416 break 3 2417 fi 2418 fi 2419 fi 2420 done 2421 done 2422 ;; 2423esac 2424 2425 done 2426IFS=$as_save_IFS 2427 2428rm -rf conftest.one conftest.two conftest.dir 2429 2430fi 2431 if test "${ac_cv_path_install+set}" = set; then 2432 INSTALL=$ac_cv_path_install 2433 else 2434 # As a last resort, use the slow shell script. Don't cache a 2435 # value for INSTALL within a source directory, because that will 2436 # break other packages using the cache if that directory is 2437 # removed, or if the value is a relative name. 2438 INSTALL=$ac_install_sh 2439 fi 2440fi 2441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2442$as_echo "$INSTALL" >&6; } 2443 2444# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2445# It thinks the first close brace ends the variable substitution. 2446test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2447 2448test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2449 2450test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2451 2452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2453$as_echo_n "checking whether build environment is sane... " >&6; } 2454# Reject unsafe characters in $srcdir or the absolute working directory 2455# name. Accept space and tab only in the latter. 2456am_lf=' 2457' 2458case `pwd` in 2459 *[\\\"\#\$\&\'\`$am_lf]*) 2460 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2461esac 2462case $srcdir in 2463 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2464 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2465esac 2466 2467# Do 'set' in a subshell so we don't clobber the current shell's 2468# arguments. Must try -L first in case configure is actually a 2469# symlink; some systems play weird games with the mod time of symlinks 2470# (eg FreeBSD returns the mod time of the symlink's containing 2471# directory). 2472if ( 2473 am_has_slept=no 2474 for am_try in 1 2; do 2475 echo "timestamp, slept: $am_has_slept" > conftest.file 2476 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2477 if test "$*" = "X"; then 2478 # -L didn't work. 2479 set X `ls -t "$srcdir/configure" conftest.file` 2480 fi 2481 if test "$*" != "X $srcdir/configure conftest.file" \ 2482 && test "$*" != "X conftest.file $srcdir/configure"; then 2483 2484 # If neither matched, then we have a broken ls. This can happen 2485 # if, for instance, CONFIG_SHELL is bash and it inherits a 2486 # broken ls alias from the environment. This has actually 2487 # happened. Such a system could not be considered "sane". 2488 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2489 alias in your environment" "$LINENO" 5 2490 fi 2491 if test "$2" = conftest.file || test $am_try -eq 2; then 2492 break 2493 fi 2494 # Just in case. 2495 sleep 1 2496 am_has_slept=yes 2497 done 2498 test "$2" = conftest.file 2499 ) 2500then 2501 # Ok. 2502 : 2503else 2504 as_fn_error $? "newly created file is older than distributed files! 2505Check your system clock" "$LINENO" 5 2506fi 2507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2508$as_echo "yes" >&6; } 2509# If we didn't sleep, we still need to ensure time stamps of config.status and 2510# generated files are strictly newer. 2511am_sleep_pid= 2512if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2513 ( sleep 1 ) & 2514 am_sleep_pid=$! 2515fi 2516 2517rm -f conftest.file 2518 2519test "$program_prefix" != NONE && 2520 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2521# Use a double $ so make ignores it. 2522test "$program_suffix" != NONE && 2523 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2524# Double any \ or $. 2525# By default was `s,x,x', remove it if useless. 2526ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2527program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2528 2529# Expand $ac_aux_dir to an absolute path. 2530am_aux_dir=`cd "$ac_aux_dir" && pwd` 2531 2532if test x"${MISSING+set}" != xset; then 2533 case $am_aux_dir in 2534 *\ * | *\ *) 2535 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2536 *) 2537 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2538 esac 2539fi 2540# Use eval to expand $SHELL 2541if eval "$MISSING --is-lightweight"; then 2542 am_missing_run="$MISSING " 2543else 2544 am_missing_run= 2545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2546$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2547fi 2548 2549if test x"${install_sh+set}" != xset; then 2550 case $am_aux_dir in 2551 *\ * | *\ *) 2552 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2553 *) 2554 install_sh="\${SHELL} $am_aux_dir/install-sh" 2555 esac 2556fi 2557 2558# Installed binaries are usually stripped using 'strip' when the user 2559# run "make install-strip". However 'strip' might not be the right 2560# tool to use in cross-compilation environments, therefore Automake 2561# will honor the 'STRIP' environment variable to overrule this program. 2562if test "$cross_compiling" != no; then 2563 if test -n "$ac_tool_prefix"; then 2564 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2565set dummy ${ac_tool_prefix}strip; ac_word=$2 2566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2567$as_echo_n "checking for $ac_word... " >&6; } 2568if ${ac_cv_prog_STRIP+:} false; then : 2569 $as_echo_n "(cached) " >&6 2570else 2571 if test -n "$STRIP"; then 2572 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2573else 2574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2575for as_dir in $PATH 2576do 2577 IFS=$as_save_IFS 2578 test -z "$as_dir" && as_dir=. 2579 for ac_exec_ext in '' $ac_executable_extensions; do 2580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2581 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2583 break 2 2584 fi 2585done 2586 done 2587IFS=$as_save_IFS 2588 2589fi 2590fi 2591STRIP=$ac_cv_prog_STRIP 2592if test -n "$STRIP"; then 2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2594$as_echo "$STRIP" >&6; } 2595else 2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2597$as_echo "no" >&6; } 2598fi 2599 2600 2601fi 2602if test -z "$ac_cv_prog_STRIP"; then 2603 ac_ct_STRIP=$STRIP 2604 # Extract the first word of "strip", so it can be a program name with args. 2605set dummy strip; ac_word=$2 2606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2607$as_echo_n "checking for $ac_word... " >&6; } 2608if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2609 $as_echo_n "(cached) " >&6 2610else 2611 if test -n "$ac_ct_STRIP"; then 2612 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2613else 2614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2615for as_dir in $PATH 2616do 2617 IFS=$as_save_IFS 2618 test -z "$as_dir" && as_dir=. 2619 for ac_exec_ext in '' $ac_executable_extensions; do 2620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2621 ac_cv_prog_ac_ct_STRIP="strip" 2622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2623 break 2 2624 fi 2625done 2626 done 2627IFS=$as_save_IFS 2628 2629fi 2630fi 2631ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2632if test -n "$ac_ct_STRIP"; then 2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2634$as_echo "$ac_ct_STRIP" >&6; } 2635else 2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2637$as_echo "no" >&6; } 2638fi 2639 2640 if test "x$ac_ct_STRIP" = x; then 2641 STRIP=":" 2642 else 2643 case $cross_compiling:$ac_tool_warned in 2644yes:) 2645{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2646$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2647ac_tool_warned=yes ;; 2648esac 2649 STRIP=$ac_ct_STRIP 2650 fi 2651else 2652 STRIP="$ac_cv_prog_STRIP" 2653fi 2654 2655fi 2656INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2657 2658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2659$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2660if test -z "$MKDIR_P"; then 2661 if ${ac_cv_path_mkdir+:} false; then : 2662 $as_echo_n "(cached) " >&6 2663else 2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2665for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2666do 2667 IFS=$as_save_IFS 2668 test -z "$as_dir" && as_dir=. 2669 for ac_prog in mkdir gmkdir; do 2670 for ac_exec_ext in '' $ac_executable_extensions; do 2671 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2672 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2673 'mkdir (GNU coreutils) '* | \ 2674 'mkdir (coreutils) '* | \ 2675 'mkdir (fileutils) '4.1*) 2676 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2677 break 3;; 2678 esac 2679 done 2680 done 2681 done 2682IFS=$as_save_IFS 2683 2684fi 2685 2686 test -d ./--version && rmdir ./--version 2687 if test "${ac_cv_path_mkdir+set}" = set; then 2688 MKDIR_P="$ac_cv_path_mkdir -p" 2689 else 2690 # As a last resort, use the slow shell script. Don't cache a 2691 # value for MKDIR_P within a source directory, because that will 2692 # break other packages using the cache if that directory is 2693 # removed, or if the value is a relative name. 2694 MKDIR_P="$ac_install_sh -d" 2695 fi 2696fi 2697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2698$as_echo "$MKDIR_P" >&6; } 2699 2700for ac_prog in gawk mawk nawk awk 2701do 2702 # Extract the first word of "$ac_prog", so it can be a program name with args. 2703set dummy $ac_prog; ac_word=$2 2704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2705$as_echo_n "checking for $ac_word... " >&6; } 2706if ${ac_cv_prog_AWK+:} false; then : 2707 $as_echo_n "(cached) " >&6 2708else 2709 if test -n "$AWK"; then 2710 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2711else 2712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2713for as_dir in $PATH 2714do 2715 IFS=$as_save_IFS 2716 test -z "$as_dir" && as_dir=. 2717 for ac_exec_ext in '' $ac_executable_extensions; do 2718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2719 ac_cv_prog_AWK="$ac_prog" 2720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2721 break 2 2722 fi 2723done 2724 done 2725IFS=$as_save_IFS 2726 2727fi 2728fi 2729AWK=$ac_cv_prog_AWK 2730if test -n "$AWK"; then 2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2732$as_echo "$AWK" >&6; } 2733else 2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2735$as_echo "no" >&6; } 2736fi 2737 2738 2739 test -n "$AWK" && break 2740done 2741 2742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2743$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2744set x ${MAKE-make} 2745ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2746if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2747 $as_echo_n "(cached) " >&6 2748else 2749 cat >conftest.make <<\_ACEOF 2750SHELL = /bin/sh 2751all: 2752 @echo '@@@%%%=$(MAKE)=@@@%%%' 2753_ACEOF 2754# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2755case `${MAKE-make} -f conftest.make 2>/dev/null` in 2756 *@@@%%%=?*=@@@%%%*) 2757 eval ac_cv_prog_make_${ac_make}_set=yes;; 2758 *) 2759 eval ac_cv_prog_make_${ac_make}_set=no;; 2760esac 2761rm -f conftest.make 2762fi 2763if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2765$as_echo "yes" >&6; } 2766 SET_MAKE= 2767else 2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2769$as_echo "no" >&6; } 2770 SET_MAKE="MAKE=${MAKE-make}" 2771fi 2772 2773rm -rf .tst 2>/dev/null 2774mkdir .tst 2>/dev/null 2775if test -d .tst; then 2776 am__leading_dot=. 2777else 2778 am__leading_dot=_ 2779fi 2780rmdir .tst 2>/dev/null 2781 2782# Check whether --enable-silent-rules was given. 2783if test "${enable_silent_rules+set}" = set; then : 2784 enableval=$enable_silent_rules; 2785fi 2786 2787case $enable_silent_rules in # ((( 2788 yes) AM_DEFAULT_VERBOSITY=0;; 2789 no) AM_DEFAULT_VERBOSITY=1;; 2790 *) AM_DEFAULT_VERBOSITY=1;; 2791esac 2792am_make=${MAKE-make} 2793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2794$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2795if ${am_cv_make_support_nested_variables+:} false; then : 2796 $as_echo_n "(cached) " >&6 2797else 2798 if $as_echo 'TRUE=$(BAR$(V)) 2799BAR0=false 2800BAR1=true 2801V=1 2802am__doit: 2803 @$(TRUE) 2804.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2805 am_cv_make_support_nested_variables=yes 2806else 2807 am_cv_make_support_nested_variables=no 2808fi 2809fi 2810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2811$as_echo "$am_cv_make_support_nested_variables" >&6; } 2812if test $am_cv_make_support_nested_variables = yes; then 2813 AM_V='$(V)' 2814 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2815else 2816 AM_V=$AM_DEFAULT_VERBOSITY 2817 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2818fi 2819AM_BACKSLASH='\' 2820 2821if test "`cd $srcdir && pwd`" != "`pwd`"; then 2822 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2823 # is not polluted with repeated "-I." 2824 am__isrc=' -I$(srcdir)' 2825 # test to see if srcdir already configured 2826 if test -f $srcdir/config.status; then 2827 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2828 fi 2829fi 2830 2831# test whether we have cygpath 2832if test -z "$CYGPATH_W"; then 2833 if (cygpath --version) >/dev/null 2>/dev/null; then 2834 CYGPATH_W='cygpath -w' 2835 else 2836 CYGPATH_W=echo 2837 fi 2838fi 2839 2840 2841# Define the identity of the package. 2842 PACKAGE='libfontenc' 2843 VERSION='1.1.4' 2844 2845 2846cat >>confdefs.h <<_ACEOF 2847#define PACKAGE "$PACKAGE" 2848_ACEOF 2849 2850 2851cat >>confdefs.h <<_ACEOF 2852#define VERSION "$VERSION" 2853_ACEOF 2854 2855# Some tools Automake needs. 2856 2857ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2858 2859 2860AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2861 2862 2863AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2864 2865 2866AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2867 2868 2869MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2870 2871# For better backward compatibility. To be removed once Automake 1.9.x 2872# dies out for good. For more background, see: 2873# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2874# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2875mkdir_p='$(MKDIR_P)' 2876 2877# We need awk for the "check" target (and possibly the TAP driver). The 2878# system "awk" is bad on some platforms. 2879# Always define AMTAR for backward compatibility. Yes, it's still used 2880# in the wild :-( We should find a proper way to deprecate it ... 2881AMTAR='$${TAR-tar}' 2882 2883 2884# We'll loop over all known methods to create a tar archive until one works. 2885_am_tools='gnutar pax cpio none' 2886 2887am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2888 2889 2890 2891 2892 2893 2894# POSIX will say in a future version that running "rm -f" with no argument 2895# is OK; and we want to be able to make that assumption in our Makefile 2896# recipes. So use an aggressive probe to check that the usage we want is 2897# actually supported "in the wild" to an acceptable degree. 2898# See automake bug#10828. 2899# To make any issue more visible, cause the running configure to be aborted 2900# by default if the 'rm' program in use doesn't match our expectations; the 2901# user can still override this though. 2902if rm -f && rm -fr && rm -rf; then : OK; else 2903 cat >&2 <<'END' 2904Oops! 2905 2906Your 'rm' program seems unable to run without file operands specified 2907on the command line, even when the '-f' option is present. This is contrary 2908to the behaviour of most rm programs out there, and not conforming with 2909the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2910 2911Please tell bug-automake@gnu.org about your system, including the value 2912of your $PATH and any error possibly output before this message. This 2913can help us improve future automake versions. 2914 2915END 2916 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2917 echo 'Configuration will proceed anyway, since you have set the' >&2 2918 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2919 echo >&2 2920 else 2921 cat >&2 <<'END' 2922Aborting the configuration process, to ensure you take notice of the issue. 2923 2924You can download and install GNU coreutils to get an 'rm' implementation 2925that behaves properly: <http://www.gnu.org/software/coreutils/>. 2926 2927If you want to complete the configuration process using your problematic 2928'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2929to "yes", and re-run configure. 2930 2931END 2932 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2933 fi 2934fi 2935 2936 2937# Initialize libtool 2938case `pwd` in 2939 *\ * | *\ *) 2940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2941$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2942esac 2943 2944 2945 2946macro_version='2.4.6' 2947macro_revision='2.4.6' 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961ltmain=$ac_aux_dir/ltmain.sh 2962 2963# Make sure we can run config.sub. 2964$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2965 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2966 2967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2968$as_echo_n "checking build system type... " >&6; } 2969if ${ac_cv_build+:} false; then : 2970 $as_echo_n "(cached) " >&6 2971else 2972 ac_build_alias=$build_alias 2973test "x$ac_build_alias" = x && 2974 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2975test "x$ac_build_alias" = x && 2976 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2977ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2978 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2979 2980fi 2981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2982$as_echo "$ac_cv_build" >&6; } 2983case $ac_cv_build in 2984*-*-*) ;; 2985*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2986esac 2987build=$ac_cv_build 2988ac_save_IFS=$IFS; IFS='-' 2989set x $ac_cv_build 2990shift 2991build_cpu=$1 2992build_vendor=$2 2993shift; shift 2994# Remember, the first character of IFS is used to create $*, 2995# except with old shells: 2996build_os=$* 2997IFS=$ac_save_IFS 2998case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2999 3000 3001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3002$as_echo_n "checking host system type... " >&6; } 3003if ${ac_cv_host+:} false; then : 3004 $as_echo_n "(cached) " >&6 3005else 3006 if test "x$host_alias" = x; then 3007 ac_cv_host=$ac_cv_build 3008else 3009 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3010 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3011fi 3012 3013fi 3014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3015$as_echo "$ac_cv_host" >&6; } 3016case $ac_cv_host in 3017*-*-*) ;; 3018*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3019esac 3020host=$ac_cv_host 3021ac_save_IFS=$IFS; IFS='-' 3022set x $ac_cv_host 3023shift 3024host_cpu=$1 3025host_vendor=$2 3026shift; shift 3027# Remember, the first character of IFS is used to create $*, 3028# except with old shells: 3029host_os=$* 3030IFS=$ac_save_IFS 3031case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3032 3033 3034# Backslashify metacharacters that are still active within 3035# double-quoted strings. 3036sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3037 3038# Same as above, but do not quote variable references. 3039double_quote_subst='s/\(["`\\]\)/\\\1/g' 3040 3041# Sed substitution to delay expansion of an escaped shell variable in a 3042# double_quote_subst'ed string. 3043delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3044 3045# Sed substitution to delay expansion of an escaped single quote. 3046delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3047 3048# Sed substitution to avoid accidental globbing in evaled expressions 3049no_glob_subst='s/\*/\\\*/g' 3050 3051ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3052ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3053ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3054 3055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3056$as_echo_n "checking how to print strings... " >&6; } 3057# Test print first, because it will be a builtin if present. 3058if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3059 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3060 ECHO='print -r --' 3061elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3062 ECHO='printf %s\n' 3063else 3064 # Use this function as a fallback that always works. 3065 func_fallback_echo () 3066 { 3067 eval 'cat <<_LTECHO_EOF 3068$1 3069_LTECHO_EOF' 3070 } 3071 ECHO='func_fallback_echo' 3072fi 3073 3074# func_echo_all arg... 3075# Invoke $ECHO with all args, space-separated. 3076func_echo_all () 3077{ 3078 $ECHO "" 3079} 3080 3081case $ECHO in 3082 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3083$as_echo "printf" >&6; } ;; 3084 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3085$as_echo "print -r" >&6; } ;; 3086 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3087$as_echo "cat" >&6; } ;; 3088esac 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103DEPDIR="${am__leading_dot}deps" 3104 3105ac_config_commands="$ac_config_commands depfiles" 3106 3107 3108am_make=${MAKE-make} 3109cat > confinc << 'END' 3110am__doit: 3111 @echo this is the am__doit target 3112.PHONY: am__doit 3113END 3114# If we don't find an include directive, just comment out the code. 3115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3116$as_echo_n "checking for style of include used by $am_make... " >&6; } 3117am__include="#" 3118am__quote= 3119_am_result=none 3120# First try GNU make style include. 3121echo "include confinc" > confmf 3122# Ignore all kinds of additional output from 'make'. 3123case `$am_make -s -f confmf 2> /dev/null` in #( 3124*the\ am__doit\ target*) 3125 am__include=include 3126 am__quote= 3127 _am_result=GNU 3128 ;; 3129esac 3130# Now try BSD make style include. 3131if test "$am__include" = "#"; then 3132 echo '.include "confinc"' > confmf 3133 case `$am_make -s -f confmf 2> /dev/null` in #( 3134 *the\ am__doit\ target*) 3135 am__include=.include 3136 am__quote="\"" 3137 _am_result=BSD 3138 ;; 3139 esac 3140fi 3141 3142 3143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3144$as_echo "$_am_result" >&6; } 3145rm -f confinc confmf 3146 3147# Check whether --enable-dependency-tracking was given. 3148if test "${enable_dependency_tracking+set}" = set; then : 3149 enableval=$enable_dependency_tracking; 3150fi 3151 3152if test "x$enable_dependency_tracking" != xno; then 3153 am_depcomp="$ac_aux_dir/depcomp" 3154 AMDEPBACKSLASH='\' 3155 am__nodep='_no' 3156fi 3157 if test "x$enable_dependency_tracking" != xno; then 3158 AMDEP_TRUE= 3159 AMDEP_FALSE='#' 3160else 3161 AMDEP_TRUE='#' 3162 AMDEP_FALSE= 3163fi 3164 3165 3166ac_ext=c 3167ac_cpp='$CPP $CPPFLAGS' 3168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3170ac_compiler_gnu=$ac_cv_c_compiler_gnu 3171if test -n "$ac_tool_prefix"; then 3172 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3173set dummy ${ac_tool_prefix}gcc; ac_word=$2 3174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3175$as_echo_n "checking for $ac_word... " >&6; } 3176if ${ac_cv_prog_CC+:} false; then : 3177 $as_echo_n "(cached) " >&6 3178else 3179 if test -n "$CC"; then 3180 ac_cv_prog_CC="$CC" # Let the user override the test. 3181else 3182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3183for as_dir in $PATH 3184do 3185 IFS=$as_save_IFS 3186 test -z "$as_dir" && as_dir=. 3187 for ac_exec_ext in '' $ac_executable_extensions; do 3188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3189 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3191 break 2 3192 fi 3193done 3194 done 3195IFS=$as_save_IFS 3196 3197fi 3198fi 3199CC=$ac_cv_prog_CC 3200if test -n "$CC"; then 3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3202$as_echo "$CC" >&6; } 3203else 3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3205$as_echo "no" >&6; } 3206fi 3207 3208 3209fi 3210if test -z "$ac_cv_prog_CC"; then 3211 ac_ct_CC=$CC 3212 # Extract the first word of "gcc", so it can be a program name with args. 3213set dummy gcc; ac_word=$2 3214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3215$as_echo_n "checking for $ac_word... " >&6; } 3216if ${ac_cv_prog_ac_ct_CC+:} false; then : 3217 $as_echo_n "(cached) " >&6 3218else 3219 if test -n "$ac_ct_CC"; then 3220 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3221else 3222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3223for as_dir in $PATH 3224do 3225 IFS=$as_save_IFS 3226 test -z "$as_dir" && as_dir=. 3227 for ac_exec_ext in '' $ac_executable_extensions; do 3228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3229 ac_cv_prog_ac_ct_CC="gcc" 3230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3231 break 2 3232 fi 3233done 3234 done 3235IFS=$as_save_IFS 3236 3237fi 3238fi 3239ac_ct_CC=$ac_cv_prog_ac_ct_CC 3240if test -n "$ac_ct_CC"; then 3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3242$as_echo "$ac_ct_CC" >&6; } 3243else 3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3245$as_echo "no" >&6; } 3246fi 3247 3248 if test "x$ac_ct_CC" = x; then 3249 CC="" 3250 else 3251 case $cross_compiling:$ac_tool_warned in 3252yes:) 3253{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3255ac_tool_warned=yes ;; 3256esac 3257 CC=$ac_ct_CC 3258 fi 3259else 3260 CC="$ac_cv_prog_CC" 3261fi 3262 3263if test -z "$CC"; then 3264 if test -n "$ac_tool_prefix"; then 3265 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3266set dummy ${ac_tool_prefix}cc; ac_word=$2 3267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3268$as_echo_n "checking for $ac_word... " >&6; } 3269if ${ac_cv_prog_CC+:} false; then : 3270 $as_echo_n "(cached) " >&6 3271else 3272 if test -n "$CC"; then 3273 ac_cv_prog_CC="$CC" # Let the user override the test. 3274else 3275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3276for as_dir in $PATH 3277do 3278 IFS=$as_save_IFS 3279 test -z "$as_dir" && as_dir=. 3280 for ac_exec_ext in '' $ac_executable_extensions; do 3281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3282 ac_cv_prog_CC="${ac_tool_prefix}cc" 3283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3284 break 2 3285 fi 3286done 3287 done 3288IFS=$as_save_IFS 3289 3290fi 3291fi 3292CC=$ac_cv_prog_CC 3293if test -n "$CC"; then 3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3295$as_echo "$CC" >&6; } 3296else 3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3298$as_echo "no" >&6; } 3299fi 3300 3301 3302 fi 3303fi 3304if test -z "$CC"; then 3305 # Extract the first word of "cc", so it can be a program name with args. 3306set dummy cc; ac_word=$2 3307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3308$as_echo_n "checking for $ac_word... " >&6; } 3309if ${ac_cv_prog_CC+:} false; then : 3310 $as_echo_n "(cached) " >&6 3311else 3312 if test -n "$CC"; then 3313 ac_cv_prog_CC="$CC" # Let the user override the test. 3314else 3315 ac_prog_rejected=no 3316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3317for as_dir in $PATH 3318do 3319 IFS=$as_save_IFS 3320 test -z "$as_dir" && as_dir=. 3321 for ac_exec_ext in '' $ac_executable_extensions; do 3322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3323 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3324 ac_prog_rejected=yes 3325 continue 3326 fi 3327 ac_cv_prog_CC="cc" 3328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3329 break 2 3330 fi 3331done 3332 done 3333IFS=$as_save_IFS 3334 3335if test $ac_prog_rejected = yes; then 3336 # We found a bogon in the path, so make sure we never use it. 3337 set dummy $ac_cv_prog_CC 3338 shift 3339 if test $# != 0; then 3340 # We chose a different compiler from the bogus one. 3341 # However, it has the same basename, so the bogon will be chosen 3342 # first if we set CC to just the basename; use the full file name. 3343 shift 3344 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3345 fi 3346fi 3347fi 3348fi 3349CC=$ac_cv_prog_CC 3350if test -n "$CC"; then 3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3352$as_echo "$CC" >&6; } 3353else 3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3355$as_echo "no" >&6; } 3356fi 3357 3358 3359fi 3360if test -z "$CC"; then 3361 if test -n "$ac_tool_prefix"; then 3362 for ac_prog in cl.exe 3363 do 3364 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3365set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3367$as_echo_n "checking for $ac_word... " >&6; } 3368if ${ac_cv_prog_CC+:} false; then : 3369 $as_echo_n "(cached) " >&6 3370else 3371 if test -n "$CC"; then 3372 ac_cv_prog_CC="$CC" # Let the user override the test. 3373else 3374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3375for as_dir in $PATH 3376do 3377 IFS=$as_save_IFS 3378 test -z "$as_dir" && as_dir=. 3379 for ac_exec_ext in '' $ac_executable_extensions; do 3380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3381 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3383 break 2 3384 fi 3385done 3386 done 3387IFS=$as_save_IFS 3388 3389fi 3390fi 3391CC=$ac_cv_prog_CC 3392if test -n "$CC"; then 3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3394$as_echo "$CC" >&6; } 3395else 3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3397$as_echo "no" >&6; } 3398fi 3399 3400 3401 test -n "$CC" && break 3402 done 3403fi 3404if test -z "$CC"; then 3405 ac_ct_CC=$CC 3406 for ac_prog in cl.exe 3407do 3408 # Extract the first word of "$ac_prog", so it can be a program name with args. 3409set dummy $ac_prog; ac_word=$2 3410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3411$as_echo_n "checking for $ac_word... " >&6; } 3412if ${ac_cv_prog_ac_ct_CC+:} false; then : 3413 $as_echo_n "(cached) " >&6 3414else 3415 if test -n "$ac_ct_CC"; then 3416 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3417else 3418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3419for as_dir in $PATH 3420do 3421 IFS=$as_save_IFS 3422 test -z "$as_dir" && as_dir=. 3423 for ac_exec_ext in '' $ac_executable_extensions; do 3424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3425 ac_cv_prog_ac_ct_CC="$ac_prog" 3426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3427 break 2 3428 fi 3429done 3430 done 3431IFS=$as_save_IFS 3432 3433fi 3434fi 3435ac_ct_CC=$ac_cv_prog_ac_ct_CC 3436if test -n "$ac_ct_CC"; then 3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3438$as_echo "$ac_ct_CC" >&6; } 3439else 3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3441$as_echo "no" >&6; } 3442fi 3443 3444 3445 test -n "$ac_ct_CC" && break 3446done 3447 3448 if test "x$ac_ct_CC" = x; then 3449 CC="" 3450 else 3451 case $cross_compiling:$ac_tool_warned in 3452yes:) 3453{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3454$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3455ac_tool_warned=yes ;; 3456esac 3457 CC=$ac_ct_CC 3458 fi 3459fi 3460 3461fi 3462 3463 3464test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3465$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3466as_fn_error $? "no acceptable C compiler found in \$PATH 3467See \`config.log' for more details" "$LINENO" 5; } 3468 3469# Provide some information about the compiler. 3470$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3471set X $ac_compile 3472ac_compiler=$2 3473for ac_option in --version -v -V -qversion; do 3474 { { ac_try="$ac_compiler $ac_option >&5" 3475case "(($ac_try" in 3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3477 *) ac_try_echo=$ac_try;; 3478esac 3479eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3480$as_echo "$ac_try_echo"; } >&5 3481 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3482 ac_status=$? 3483 if test -s conftest.err; then 3484 sed '10a\ 3485... rest of stderr output deleted ... 3486 10q' conftest.err >conftest.er1 3487 cat conftest.er1 >&5 3488 fi 3489 rm -f conftest.er1 conftest.err 3490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3491 test $ac_status = 0; } 3492done 3493 3494cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3495/* end confdefs.h. */ 3496 3497int 3498main () 3499{ 3500 3501 ; 3502 return 0; 3503} 3504_ACEOF 3505ac_clean_files_save=$ac_clean_files 3506ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3507# Try to create an executable without -o first, disregard a.out. 3508# It will help us diagnose broken compilers, and finding out an intuition 3509# of exeext. 3510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3511$as_echo_n "checking whether the C compiler works... " >&6; } 3512ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3513 3514# The possible output files: 3515ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3516 3517ac_rmfiles= 3518for ac_file in $ac_files 3519do 3520 case $ac_file in 3521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3522 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3523 esac 3524done 3525rm -f $ac_rmfiles 3526 3527if { { ac_try="$ac_link_default" 3528case "(($ac_try" in 3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3530 *) ac_try_echo=$ac_try;; 3531esac 3532eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3533$as_echo "$ac_try_echo"; } >&5 3534 (eval "$ac_link_default") 2>&5 3535 ac_status=$? 3536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3537 test $ac_status = 0; }; then : 3538 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3539# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3540# in a Makefile. We should not override ac_cv_exeext if it was cached, 3541# so that the user can short-circuit this test for compilers unknown to 3542# Autoconf. 3543for ac_file in $ac_files '' 3544do 3545 test -f "$ac_file" || continue 3546 case $ac_file in 3547 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3548 ;; 3549 [ab].out ) 3550 # We found the default executable, but exeext='' is most 3551 # certainly right. 3552 break;; 3553 *.* ) 3554 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3555 then :; else 3556 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3557 fi 3558 # We set ac_cv_exeext here because the later test for it is not 3559 # safe: cross compilers may not add the suffix if given an `-o' 3560 # argument, so we may need to know it at that point already. 3561 # Even if this section looks crufty: it has the advantage of 3562 # actually working. 3563 break;; 3564 * ) 3565 break;; 3566 esac 3567done 3568test "$ac_cv_exeext" = no && ac_cv_exeext= 3569 3570else 3571 ac_file='' 3572fi 3573if test -z "$ac_file"; then : 3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3575$as_echo "no" >&6; } 3576$as_echo "$as_me: failed program was:" >&5 3577sed 's/^/| /' conftest.$ac_ext >&5 3578 3579{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3580$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3581as_fn_error 77 "C compiler cannot create executables 3582See \`config.log' for more details" "$LINENO" 5; } 3583else 3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3585$as_echo "yes" >&6; } 3586fi 3587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3588$as_echo_n "checking for C compiler default output file name... " >&6; } 3589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3590$as_echo "$ac_file" >&6; } 3591ac_exeext=$ac_cv_exeext 3592 3593rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3594ac_clean_files=$ac_clean_files_save 3595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3596$as_echo_n "checking for suffix of executables... " >&6; } 3597if { { ac_try="$ac_link" 3598case "(($ac_try" in 3599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3600 *) ac_try_echo=$ac_try;; 3601esac 3602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3603$as_echo "$ac_try_echo"; } >&5 3604 (eval "$ac_link") 2>&5 3605 ac_status=$? 3606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3607 test $ac_status = 0; }; then : 3608 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3609# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3610# work properly (i.e., refer to `conftest.exe'), while it won't with 3611# `rm'. 3612for ac_file in conftest.exe conftest conftest.*; do 3613 test -f "$ac_file" || continue 3614 case $ac_file in 3615 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3616 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3617 break;; 3618 * ) break;; 3619 esac 3620done 3621else 3622 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3623$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3624as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3625See \`config.log' for more details" "$LINENO" 5; } 3626fi 3627rm -f conftest conftest$ac_cv_exeext 3628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3629$as_echo "$ac_cv_exeext" >&6; } 3630 3631rm -f conftest.$ac_ext 3632EXEEXT=$ac_cv_exeext 3633ac_exeext=$EXEEXT 3634cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3635/* end confdefs.h. */ 3636#include <stdio.h> 3637int 3638main () 3639{ 3640FILE *f = fopen ("conftest.out", "w"); 3641 return ferror (f) || fclose (f) != 0; 3642 3643 ; 3644 return 0; 3645} 3646_ACEOF 3647ac_clean_files="$ac_clean_files conftest.out" 3648# Check that the compiler produces executables we can run. If not, either 3649# the compiler is broken, or we cross compile. 3650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3651$as_echo_n "checking whether we are cross compiling... " >&6; } 3652if test "$cross_compiling" != yes; then 3653 { { ac_try="$ac_link" 3654case "(($ac_try" in 3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3656 *) ac_try_echo=$ac_try;; 3657esac 3658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3659$as_echo "$ac_try_echo"; } >&5 3660 (eval "$ac_link") 2>&5 3661 ac_status=$? 3662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3663 test $ac_status = 0; } 3664 if { ac_try='./conftest$ac_cv_exeext' 3665 { { case "(($ac_try" in 3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3667 *) ac_try_echo=$ac_try;; 3668esac 3669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3670$as_echo "$ac_try_echo"; } >&5 3671 (eval "$ac_try") 2>&5 3672 ac_status=$? 3673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3674 test $ac_status = 0; }; }; then 3675 cross_compiling=no 3676 else 3677 if test "$cross_compiling" = maybe; then 3678 cross_compiling=yes 3679 else 3680 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3681$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3682as_fn_error $? "cannot run C compiled programs. 3683If you meant to cross compile, use \`--host'. 3684See \`config.log' for more details" "$LINENO" 5; } 3685 fi 3686 fi 3687fi 3688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3689$as_echo "$cross_compiling" >&6; } 3690 3691rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3692ac_clean_files=$ac_clean_files_save 3693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3694$as_echo_n "checking for suffix of object files... " >&6; } 3695if ${ac_cv_objext+:} false; then : 3696 $as_echo_n "(cached) " >&6 3697else 3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3699/* end confdefs.h. */ 3700 3701int 3702main () 3703{ 3704 3705 ; 3706 return 0; 3707} 3708_ACEOF 3709rm -f conftest.o conftest.obj 3710if { { ac_try="$ac_compile" 3711case "(($ac_try" in 3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3713 *) ac_try_echo=$ac_try;; 3714esac 3715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3716$as_echo "$ac_try_echo"; } >&5 3717 (eval "$ac_compile") 2>&5 3718 ac_status=$? 3719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3720 test $ac_status = 0; }; then : 3721 for ac_file in conftest.o conftest.obj conftest.*; do 3722 test -f "$ac_file" || continue; 3723 case $ac_file in 3724 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3725 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3726 break;; 3727 esac 3728done 3729else 3730 $as_echo "$as_me: failed program was:" >&5 3731sed 's/^/| /' conftest.$ac_ext >&5 3732 3733{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3734$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3735as_fn_error $? "cannot compute suffix of object files: cannot compile 3736See \`config.log' for more details" "$LINENO" 5; } 3737fi 3738rm -f conftest.$ac_cv_objext conftest.$ac_ext 3739fi 3740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3741$as_echo "$ac_cv_objext" >&6; } 3742OBJEXT=$ac_cv_objext 3743ac_objext=$OBJEXT 3744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3745$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3746if ${ac_cv_c_compiler_gnu+:} false; then : 3747 $as_echo_n "(cached) " >&6 3748else 3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3750/* end confdefs.h. */ 3751 3752int 3753main () 3754{ 3755#ifndef __GNUC__ 3756 choke me 3757#endif 3758 3759 ; 3760 return 0; 3761} 3762_ACEOF 3763if ac_fn_c_try_compile "$LINENO"; then : 3764 ac_compiler_gnu=yes 3765else 3766 ac_compiler_gnu=no 3767fi 3768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3769ac_cv_c_compiler_gnu=$ac_compiler_gnu 3770 3771fi 3772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3773$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3774if test $ac_compiler_gnu = yes; then 3775 GCC=yes 3776else 3777 GCC= 3778fi 3779ac_test_CFLAGS=${CFLAGS+set} 3780ac_save_CFLAGS=$CFLAGS 3781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3782$as_echo_n "checking whether $CC accepts -g... " >&6; } 3783if ${ac_cv_prog_cc_g+:} false; then : 3784 $as_echo_n "(cached) " >&6 3785else 3786 ac_save_c_werror_flag=$ac_c_werror_flag 3787 ac_c_werror_flag=yes 3788 ac_cv_prog_cc_g=no 3789 CFLAGS="-g" 3790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3791/* end confdefs.h. */ 3792 3793int 3794main () 3795{ 3796 3797 ; 3798 return 0; 3799} 3800_ACEOF 3801if ac_fn_c_try_compile "$LINENO"; then : 3802 ac_cv_prog_cc_g=yes 3803else 3804 CFLAGS="" 3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3806/* end confdefs.h. */ 3807 3808int 3809main () 3810{ 3811 3812 ; 3813 return 0; 3814} 3815_ACEOF 3816if ac_fn_c_try_compile "$LINENO"; then : 3817 3818else 3819 ac_c_werror_flag=$ac_save_c_werror_flag 3820 CFLAGS="-g" 3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3822/* end confdefs.h. */ 3823 3824int 3825main () 3826{ 3827 3828 ; 3829 return 0; 3830} 3831_ACEOF 3832if ac_fn_c_try_compile "$LINENO"; then : 3833 ac_cv_prog_cc_g=yes 3834fi 3835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3836fi 3837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3838fi 3839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3840 ac_c_werror_flag=$ac_save_c_werror_flag 3841fi 3842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3843$as_echo "$ac_cv_prog_cc_g" >&6; } 3844if test "$ac_test_CFLAGS" = set; then 3845 CFLAGS=$ac_save_CFLAGS 3846elif test $ac_cv_prog_cc_g = yes; then 3847 if test "$GCC" = yes; then 3848 CFLAGS="-g -O2" 3849 else 3850 CFLAGS="-g" 3851 fi 3852else 3853 if test "$GCC" = yes; then 3854 CFLAGS="-O2" 3855 else 3856 CFLAGS= 3857 fi 3858fi 3859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3860$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3861if ${ac_cv_prog_cc_c89+:} false; then : 3862 $as_echo_n "(cached) " >&6 3863else 3864 ac_cv_prog_cc_c89=no 3865ac_save_CC=$CC 3866cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3867/* end confdefs.h. */ 3868#include <stdarg.h> 3869#include <stdio.h> 3870struct stat; 3871/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3872struct buf { int x; }; 3873FILE * (*rcsopen) (struct buf *, struct stat *, int); 3874static char *e (p, i) 3875 char **p; 3876 int i; 3877{ 3878 return p[i]; 3879} 3880static char *f (char * (*g) (char **, int), char **p, ...) 3881{ 3882 char *s; 3883 va_list v; 3884 va_start (v,p); 3885 s = g (p, va_arg (v,int)); 3886 va_end (v); 3887 return s; 3888} 3889 3890/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3891 function prototypes and stuff, but not '\xHH' hex character constants. 3892 These don't provoke an error unfortunately, instead are silently treated 3893 as 'x'. The following induces an error, until -std is added to get 3894 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3895 array size at least. It's necessary to write '\x00'==0 to get something 3896 that's true only with -std. */ 3897int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3898 3899/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3900 inside strings and character constants. */ 3901#define FOO(x) 'x' 3902int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3903 3904int test (int i, double x); 3905struct s1 {int (*f) (int a);}; 3906struct s2 {int (*f) (double a);}; 3907int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3908int argc; 3909char **argv; 3910int 3911main () 3912{ 3913return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3914 ; 3915 return 0; 3916} 3917_ACEOF 3918for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3919 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3920do 3921 CC="$ac_save_CC $ac_arg" 3922 if ac_fn_c_try_compile "$LINENO"; then : 3923 ac_cv_prog_cc_c89=$ac_arg 3924fi 3925rm -f core conftest.err conftest.$ac_objext 3926 test "x$ac_cv_prog_cc_c89" != "xno" && break 3927done 3928rm -f conftest.$ac_ext 3929CC=$ac_save_CC 3930 3931fi 3932# AC_CACHE_VAL 3933case "x$ac_cv_prog_cc_c89" in 3934 x) 3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3936$as_echo "none needed" >&6; } ;; 3937 xno) 3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3939$as_echo "unsupported" >&6; } ;; 3940 *) 3941 CC="$CC $ac_cv_prog_cc_c89" 3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3943$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3944esac 3945if test "x$ac_cv_prog_cc_c89" != xno; then : 3946 3947fi 3948 3949ac_ext=c 3950ac_cpp='$CPP $CPPFLAGS' 3951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3953ac_compiler_gnu=$ac_cv_c_compiler_gnu 3954 3955ac_ext=c 3956ac_cpp='$CPP $CPPFLAGS' 3957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3959ac_compiler_gnu=$ac_cv_c_compiler_gnu 3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3961$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3962if ${am_cv_prog_cc_c_o+:} false; then : 3963 $as_echo_n "(cached) " >&6 3964else 3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3966/* end confdefs.h. */ 3967 3968int 3969main () 3970{ 3971 3972 ; 3973 return 0; 3974} 3975_ACEOF 3976 # Make sure it works both with $CC and with simple cc. 3977 # Following AC_PROG_CC_C_O, we do the test twice because some 3978 # compilers refuse to overwrite an existing .o file with -o, 3979 # though they will create one. 3980 am_cv_prog_cc_c_o=yes 3981 for am_i in 1 2; do 3982 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3983 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3984 ac_status=$? 3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3986 (exit $ac_status); } \ 3987 && test -f conftest2.$ac_objext; then 3988 : OK 3989 else 3990 am_cv_prog_cc_c_o=no 3991 break 3992 fi 3993 done 3994 rm -f core conftest* 3995 unset am_i 3996fi 3997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3998$as_echo "$am_cv_prog_cc_c_o" >&6; } 3999if test "$am_cv_prog_cc_c_o" != yes; then 4000 # Losing compiler, so override with the script. 4001 # FIXME: It is wrong to rewrite CC. 4002 # But if we don't then we get into trouble of one sort or another. 4003 # A longer-term fix would be to have automake use am__CC in this case, 4004 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4005 CC="$am_aux_dir/compile $CC" 4006fi 4007ac_ext=c 4008ac_cpp='$CPP $CPPFLAGS' 4009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4011ac_compiler_gnu=$ac_cv_c_compiler_gnu 4012 4013 4014depcc="$CC" am_compiler_list= 4015 4016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4017$as_echo_n "checking dependency style of $depcc... " >&6; } 4018if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4019 $as_echo_n "(cached) " >&6 4020else 4021 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4022 # We make a subdir and do the tests there. Otherwise we can end up 4023 # making bogus files that we don't know about and never remove. For 4024 # instance it was reported that on HP-UX the gcc test will end up 4025 # making a dummy file named 'D' -- because '-MD' means "put the output 4026 # in D". 4027 rm -rf conftest.dir 4028 mkdir conftest.dir 4029 # Copy depcomp to subdir because otherwise we won't find it if we're 4030 # using a relative directory. 4031 cp "$am_depcomp" conftest.dir 4032 cd conftest.dir 4033 # We will build objects and dependencies in a subdirectory because 4034 # it helps to detect inapplicable dependency modes. For instance 4035 # both Tru64's cc and ICC support -MD to output dependencies as a 4036 # side effect of compilation, but ICC will put the dependencies in 4037 # the current directory while Tru64 will put them in the object 4038 # directory. 4039 mkdir sub 4040 4041 am_cv_CC_dependencies_compiler_type=none 4042 if test "$am_compiler_list" = ""; then 4043 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4044 fi 4045 am__universal=false 4046 case " $depcc " in #( 4047 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4048 esac 4049 4050 for depmode in $am_compiler_list; do 4051 # Setup a source with many dependencies, because some compilers 4052 # like to wrap large dependency lists on column 80 (with \), and 4053 # we should not choose a depcomp mode which is confused by this. 4054 # 4055 # We need to recreate these files for each test, as the compiler may 4056 # overwrite some of them when testing with obscure command lines. 4057 # This happens at least with the AIX C compiler. 4058 : > sub/conftest.c 4059 for i in 1 2 3 4 5 6; do 4060 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4061 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4062 # Solaris 10 /bin/sh. 4063 echo '/* dummy */' > sub/conftst$i.h 4064 done 4065 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4066 4067 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4068 # mode. It turns out that the SunPro C++ compiler does not properly 4069 # handle '-M -o', and we need to detect this. Also, some Intel 4070 # versions had trouble with output in subdirs. 4071 am__obj=sub/conftest.${OBJEXT-o} 4072 am__minus_obj="-o $am__obj" 4073 case $depmode in 4074 gcc) 4075 # This depmode causes a compiler race in universal mode. 4076 test "$am__universal" = false || continue 4077 ;; 4078 nosideeffect) 4079 # After this tag, mechanisms are not by side-effect, so they'll 4080 # only be used when explicitly requested. 4081 if test "x$enable_dependency_tracking" = xyes; then 4082 continue 4083 else 4084 break 4085 fi 4086 ;; 4087 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4088 # This compiler won't grok '-c -o', but also, the minuso test has 4089 # not run yet. These depmodes are late enough in the game, and 4090 # so weak that their functioning should not be impacted. 4091 am__obj=conftest.${OBJEXT-o} 4092 am__minus_obj= 4093 ;; 4094 none) break ;; 4095 esac 4096 if depmode=$depmode \ 4097 source=sub/conftest.c object=$am__obj \ 4098 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4099 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4100 >/dev/null 2>conftest.err && 4101 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4102 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4103 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4104 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4105 # icc doesn't choke on unknown options, it will just issue warnings 4106 # or remarks (even with -Werror). So we grep stderr for any message 4107 # that says an option was ignored or not supported. 4108 # When given -MP, icc 7.0 and 7.1 complain thusly: 4109 # icc: Command line warning: ignoring option '-M'; no argument required 4110 # The diagnosis changed in icc 8.0: 4111 # icc: Command line remark: option '-MP' not supported 4112 if (grep 'ignoring option' conftest.err || 4113 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4114 am_cv_CC_dependencies_compiler_type=$depmode 4115 break 4116 fi 4117 fi 4118 done 4119 4120 cd .. 4121 rm -rf conftest.dir 4122else 4123 am_cv_CC_dependencies_compiler_type=none 4124fi 4125 4126fi 4127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4128$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4129CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4130 4131 if 4132 test "x$enable_dependency_tracking" != xno \ 4133 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4134 am__fastdepCC_TRUE= 4135 am__fastdepCC_FALSE='#' 4136else 4137 am__fastdepCC_TRUE='#' 4138 am__fastdepCC_FALSE= 4139fi 4140 4141 4142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4143$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4144if ${ac_cv_path_SED+:} false; then : 4145 $as_echo_n "(cached) " >&6 4146else 4147 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4148 for ac_i in 1 2 3 4 5 6 7; do 4149 ac_script="$ac_script$as_nl$ac_script" 4150 done 4151 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4152 { ac_script=; unset ac_script;} 4153 if test -z "$SED"; then 4154 ac_path_SED_found=false 4155 # Loop through the user's path and test for each of PROGNAME-LIST 4156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4157for as_dir in $PATH 4158do 4159 IFS=$as_save_IFS 4160 test -z "$as_dir" && as_dir=. 4161 for ac_prog in sed gsed; do 4162 for ac_exec_ext in '' $ac_executable_extensions; do 4163 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4164 as_fn_executable_p "$ac_path_SED" || continue 4165# Check for GNU ac_path_SED and select it if it is found. 4166 # Check for GNU $ac_path_SED 4167case `"$ac_path_SED" --version 2>&1` in 4168*GNU*) 4169 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4170*) 4171 ac_count=0 4172 $as_echo_n 0123456789 >"conftest.in" 4173 while : 4174 do 4175 cat "conftest.in" "conftest.in" >"conftest.tmp" 4176 mv "conftest.tmp" "conftest.in" 4177 cp "conftest.in" "conftest.nl" 4178 $as_echo '' >> "conftest.nl" 4179 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4180 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4181 as_fn_arith $ac_count + 1 && ac_count=$as_val 4182 if test $ac_count -gt ${ac_path_SED_max-0}; then 4183 # Best one so far, save it but keep looking for a better one 4184 ac_cv_path_SED="$ac_path_SED" 4185 ac_path_SED_max=$ac_count 4186 fi 4187 # 10*(2^10) chars as input seems more than enough 4188 test $ac_count -gt 10 && break 4189 done 4190 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4191esac 4192 4193 $ac_path_SED_found && break 3 4194 done 4195 done 4196 done 4197IFS=$as_save_IFS 4198 if test -z "$ac_cv_path_SED"; then 4199 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4200 fi 4201else 4202 ac_cv_path_SED=$SED 4203fi 4204 4205fi 4206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4207$as_echo "$ac_cv_path_SED" >&6; } 4208 SED="$ac_cv_path_SED" 4209 rm -f conftest.sed 4210 4211test -z "$SED" && SED=sed 4212Xsed="$SED -e 1s/^X//" 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4225$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4226if ${ac_cv_path_GREP+:} false; then : 4227 $as_echo_n "(cached) " >&6 4228else 4229 if test -z "$GREP"; then 4230 ac_path_GREP_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 grep ggrep; do 4238 for ac_exec_ext in '' $ac_executable_extensions; do 4239 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4240 as_fn_executable_p "$ac_path_GREP" || continue 4241# Check for GNU ac_path_GREP and select it if it is found. 4242 # Check for GNU $ac_path_GREP 4243case `"$ac_path_GREP" --version 2>&1` in 4244*GNU*) 4245 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_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 'GREP' >> "conftest.nl" 4255 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "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_GREP_max-0}; then 4259 # Best one so far, save it but keep looking for a better one 4260 ac_cv_path_GREP="$ac_path_GREP" 4261 ac_path_GREP_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_GREP_found && break 3 4270 done 4271 done 4272 done 4273IFS=$as_save_IFS 4274 if test -z "$ac_cv_path_GREP"; then 4275 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4276 fi 4277else 4278 ac_cv_path_GREP=$GREP 4279fi 4280 4281fi 4282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4283$as_echo "$ac_cv_path_GREP" >&6; } 4284 GREP="$ac_cv_path_GREP" 4285 4286 4287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4288$as_echo_n "checking for egrep... " >&6; } 4289if ${ac_cv_path_EGREP+:} false; then : 4290 $as_echo_n "(cached) " >&6 4291else 4292 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4293 then ac_cv_path_EGREP="$GREP -E" 4294 else 4295 if test -z "$EGREP"; then 4296 ac_path_EGREP_found=false 4297 # Loop through the user's path and test for each of PROGNAME-LIST 4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4299for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4300do 4301 IFS=$as_save_IFS 4302 test -z "$as_dir" && as_dir=. 4303 for ac_prog in egrep; do 4304 for ac_exec_ext in '' $ac_executable_extensions; do 4305 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4306 as_fn_executable_p "$ac_path_EGREP" || continue 4307# Check for GNU ac_path_EGREP and select it if it is found. 4308 # Check for GNU $ac_path_EGREP 4309case `"$ac_path_EGREP" --version 2>&1` in 4310*GNU*) 4311 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4312*) 4313 ac_count=0 4314 $as_echo_n 0123456789 >"conftest.in" 4315 while : 4316 do 4317 cat "conftest.in" "conftest.in" >"conftest.tmp" 4318 mv "conftest.tmp" "conftest.in" 4319 cp "conftest.in" "conftest.nl" 4320 $as_echo 'EGREP' >> "conftest.nl" 4321 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4322 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4323 as_fn_arith $ac_count + 1 && ac_count=$as_val 4324 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4325 # Best one so far, save it but keep looking for a better one 4326 ac_cv_path_EGREP="$ac_path_EGREP" 4327 ac_path_EGREP_max=$ac_count 4328 fi 4329 # 10*(2^10) chars as input seems more than enough 4330 test $ac_count -gt 10 && break 4331 done 4332 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4333esac 4334 4335 $ac_path_EGREP_found && break 3 4336 done 4337 done 4338 done 4339IFS=$as_save_IFS 4340 if test -z "$ac_cv_path_EGREP"; then 4341 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4342 fi 4343else 4344 ac_cv_path_EGREP=$EGREP 4345fi 4346 4347 fi 4348fi 4349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4350$as_echo "$ac_cv_path_EGREP" >&6; } 4351 EGREP="$ac_cv_path_EGREP" 4352 4353 4354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4355$as_echo_n "checking for fgrep... " >&6; } 4356if ${ac_cv_path_FGREP+:} false; then : 4357 $as_echo_n "(cached) " >&6 4358else 4359 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4360 then ac_cv_path_FGREP="$GREP -F" 4361 else 4362 if test -z "$FGREP"; then 4363 ac_path_FGREP_found=false 4364 # Loop through the user's path and test for each of PROGNAME-LIST 4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4366for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4367do 4368 IFS=$as_save_IFS 4369 test -z "$as_dir" && as_dir=. 4370 for ac_prog in fgrep; do 4371 for ac_exec_ext in '' $ac_executable_extensions; do 4372 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4373 as_fn_executable_p "$ac_path_FGREP" || continue 4374# Check for GNU ac_path_FGREP and select it if it is found. 4375 # Check for GNU $ac_path_FGREP 4376case `"$ac_path_FGREP" --version 2>&1` in 4377*GNU*) 4378 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4379*) 4380 ac_count=0 4381 $as_echo_n 0123456789 >"conftest.in" 4382 while : 4383 do 4384 cat "conftest.in" "conftest.in" >"conftest.tmp" 4385 mv "conftest.tmp" "conftest.in" 4386 cp "conftest.in" "conftest.nl" 4387 $as_echo 'FGREP' >> "conftest.nl" 4388 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4389 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4390 as_fn_arith $ac_count + 1 && ac_count=$as_val 4391 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4392 # Best one so far, save it but keep looking for a better one 4393 ac_cv_path_FGREP="$ac_path_FGREP" 4394 ac_path_FGREP_max=$ac_count 4395 fi 4396 # 10*(2^10) chars as input seems more than enough 4397 test $ac_count -gt 10 && break 4398 done 4399 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4400esac 4401 4402 $ac_path_FGREP_found && break 3 4403 done 4404 done 4405 done 4406IFS=$as_save_IFS 4407 if test -z "$ac_cv_path_FGREP"; then 4408 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4409 fi 4410else 4411 ac_cv_path_FGREP=$FGREP 4412fi 4413 4414 fi 4415fi 4416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4417$as_echo "$ac_cv_path_FGREP" >&6; } 4418 FGREP="$ac_cv_path_FGREP" 4419 4420 4421test -z "$GREP" && GREP=grep 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441# Check whether --with-gnu-ld was given. 4442if test "${with_gnu_ld+set}" = set; then : 4443 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4444else 4445 with_gnu_ld=no 4446fi 4447 4448ac_prog=ld 4449if test yes = "$GCC"; then 4450 # Check if gcc -print-prog-name=ld gives a path. 4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4452$as_echo_n "checking for ld used by $CC... " >&6; } 4453 case $host in 4454 *-*-mingw*) 4455 # gcc leaves a trailing carriage return, which upsets mingw 4456 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4457 *) 4458 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4459 esac 4460 case $ac_prog in 4461 # Accept absolute paths. 4462 [\\/]* | ?:[\\/]*) 4463 re_direlt='/[^/][^/]*/\.\./' 4464 # Canonicalize the pathname of ld 4465 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4466 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4467 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4468 done 4469 test -z "$LD" && LD=$ac_prog 4470 ;; 4471 "") 4472 # If it fails, then pretend we aren't using GCC. 4473 ac_prog=ld 4474 ;; 4475 *) 4476 # If it is relative, then search for the first ld in PATH. 4477 with_gnu_ld=unknown 4478 ;; 4479 esac 4480elif test yes = "$with_gnu_ld"; then 4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4482$as_echo_n "checking for GNU ld... " >&6; } 4483else 4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4485$as_echo_n "checking for non-GNU ld... " >&6; } 4486fi 4487if ${lt_cv_path_LD+:} false; then : 4488 $as_echo_n "(cached) " >&6 4489else 4490 if test -z "$LD"; then 4491 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4492 for ac_dir in $PATH; do 4493 IFS=$lt_save_ifs 4494 test -z "$ac_dir" && ac_dir=. 4495 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4496 lt_cv_path_LD=$ac_dir/$ac_prog 4497 # Check to see if the program is GNU ld. I'd rather use --version, 4498 # but apparently some variants of GNU ld only accept -v. 4499 # Break only if it was the GNU/non-GNU ld that we prefer. 4500 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4501 *GNU* | *'with BFD'*) 4502 test no != "$with_gnu_ld" && break 4503 ;; 4504 *) 4505 test yes != "$with_gnu_ld" && break 4506 ;; 4507 esac 4508 fi 4509 done 4510 IFS=$lt_save_ifs 4511else 4512 lt_cv_path_LD=$LD # Let the user override the test with a path. 4513fi 4514fi 4515 4516LD=$lt_cv_path_LD 4517if test -n "$LD"; then 4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4519$as_echo "$LD" >&6; } 4520else 4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4522$as_echo "no" >&6; } 4523fi 4524test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4526$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4527if ${lt_cv_prog_gnu_ld+:} false; then : 4528 $as_echo_n "(cached) " >&6 4529else 4530 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4531case `$LD -v 2>&1 </dev/null` in 4532*GNU* | *'with BFD'*) 4533 lt_cv_prog_gnu_ld=yes 4534 ;; 4535*) 4536 lt_cv_prog_gnu_ld=no 4537 ;; 4538esac 4539fi 4540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4541$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4542with_gnu_ld=$lt_cv_prog_gnu_ld 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4553$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4554if ${lt_cv_path_NM+:} false; then : 4555 $as_echo_n "(cached) " >&6 4556else 4557 if test -n "$NM"; then 4558 # Let the user override the test. 4559 lt_cv_path_NM=$NM 4560else 4561 lt_nm_to_check=${ac_tool_prefix}nm 4562 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4563 lt_nm_to_check="$lt_nm_to_check nm" 4564 fi 4565 for lt_tmp_nm in $lt_nm_to_check; do 4566 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4567 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4568 IFS=$lt_save_ifs 4569 test -z "$ac_dir" && ac_dir=. 4570 tmp_nm=$ac_dir/$lt_tmp_nm 4571 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4572 # Check to see if the nm accepts a BSD-compat flag. 4573 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4574 # nm: unknown option "B" ignored 4575 # Tru64's nm complains that /dev/null is an invalid object file 4576 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4577 case $build_os in 4578 mingw*) lt_bad_file=conftest.nm/nofile ;; 4579 *) lt_bad_file=/dev/null ;; 4580 esac 4581 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4582 *$lt_bad_file* | *'Invalid file or object type'*) 4583 lt_cv_path_NM="$tmp_nm -B" 4584 break 2 4585 ;; 4586 *) 4587 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4588 */dev/null*) 4589 lt_cv_path_NM="$tmp_nm -p" 4590 break 2 4591 ;; 4592 *) 4593 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4594 continue # so that we can try to find one that supports BSD flags 4595 ;; 4596 esac 4597 ;; 4598 esac 4599 fi 4600 done 4601 IFS=$lt_save_ifs 4602 done 4603 : ${lt_cv_path_NM=no} 4604fi 4605fi 4606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4607$as_echo "$lt_cv_path_NM" >&6; } 4608if test no != "$lt_cv_path_NM"; then 4609 NM=$lt_cv_path_NM 4610else 4611 # Didn't find any BSD compatible name lister, look for dumpbin. 4612 if test -n "$DUMPBIN"; then : 4613 # Let the user override the test. 4614 else 4615 if test -n "$ac_tool_prefix"; then 4616 for ac_prog in dumpbin "link -dump" 4617 do 4618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4619set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4621$as_echo_n "checking for $ac_word... " >&6; } 4622if ${ac_cv_prog_DUMPBIN+:} false; then : 4623 $as_echo_n "(cached) " >&6 4624else 4625 if test -n "$DUMPBIN"; then 4626 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4627else 4628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4629for as_dir in $PATH 4630do 4631 IFS=$as_save_IFS 4632 test -z "$as_dir" && as_dir=. 4633 for ac_exec_ext in '' $ac_executable_extensions; do 4634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4635 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4637 break 2 4638 fi 4639done 4640 done 4641IFS=$as_save_IFS 4642 4643fi 4644fi 4645DUMPBIN=$ac_cv_prog_DUMPBIN 4646if test -n "$DUMPBIN"; then 4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4648$as_echo "$DUMPBIN" >&6; } 4649else 4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4651$as_echo "no" >&6; } 4652fi 4653 4654 4655 test -n "$DUMPBIN" && break 4656 done 4657fi 4658if test -z "$DUMPBIN"; then 4659 ac_ct_DUMPBIN=$DUMPBIN 4660 for ac_prog in dumpbin "link -dump" 4661do 4662 # Extract the first word of "$ac_prog", so it can be a program name with args. 4663set dummy $ac_prog; ac_word=$2 4664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4665$as_echo_n "checking for $ac_word... " >&6; } 4666if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4667 $as_echo_n "(cached) " >&6 4668else 4669 if test -n "$ac_ct_DUMPBIN"; then 4670 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4671else 4672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4673for as_dir in $PATH 4674do 4675 IFS=$as_save_IFS 4676 test -z "$as_dir" && as_dir=. 4677 for ac_exec_ext in '' $ac_executable_extensions; do 4678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4679 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4681 break 2 4682 fi 4683done 4684 done 4685IFS=$as_save_IFS 4686 4687fi 4688fi 4689ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4690if test -n "$ac_ct_DUMPBIN"; then 4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4692$as_echo "$ac_ct_DUMPBIN" >&6; } 4693else 4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4695$as_echo "no" >&6; } 4696fi 4697 4698 4699 test -n "$ac_ct_DUMPBIN" && break 4700done 4701 4702 if test "x$ac_ct_DUMPBIN" = x; then 4703 DUMPBIN=":" 4704 else 4705 case $cross_compiling:$ac_tool_warned in 4706yes:) 4707{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4708$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4709ac_tool_warned=yes ;; 4710esac 4711 DUMPBIN=$ac_ct_DUMPBIN 4712 fi 4713fi 4714 4715 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4716 *COFF*) 4717 DUMPBIN="$DUMPBIN -symbols -headers" 4718 ;; 4719 *) 4720 DUMPBIN=: 4721 ;; 4722 esac 4723 fi 4724 4725 if test : != "$DUMPBIN"; then 4726 NM=$DUMPBIN 4727 fi 4728fi 4729test -z "$NM" && NM=nm 4730 4731 4732 4733 4734 4735 4736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4737$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4738if ${lt_cv_nm_interface+:} false; then : 4739 $as_echo_n "(cached) " >&6 4740else 4741 lt_cv_nm_interface="BSD nm" 4742 echo "int some_variable = 0;" > conftest.$ac_ext 4743 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4744 (eval "$ac_compile" 2>conftest.err) 4745 cat conftest.err >&5 4746 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4747 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4748 cat conftest.err >&5 4749 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4750 cat conftest.out >&5 4751 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4752 lt_cv_nm_interface="MS dumpbin" 4753 fi 4754 rm -f conftest* 4755fi 4756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4757$as_echo "$lt_cv_nm_interface" >&6; } 4758 4759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4760$as_echo_n "checking whether ln -s works... " >&6; } 4761LN_S=$as_ln_s 4762if test "$LN_S" = "ln -s"; then 4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4764$as_echo "yes" >&6; } 4765else 4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4767$as_echo "no, using $LN_S" >&6; } 4768fi 4769 4770# find the maximum length of command line arguments 4771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4772$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4773if ${lt_cv_sys_max_cmd_len+:} false; then : 4774 $as_echo_n "(cached) " >&6 4775else 4776 i=0 4777 teststring=ABCD 4778 4779 case $build_os in 4780 msdosdjgpp*) 4781 # On DJGPP, this test can blow up pretty badly due to problems in libc 4782 # (any single argument exceeding 2000 bytes causes a buffer overrun 4783 # during glob expansion). Even if it were fixed, the result of this 4784 # check would be larger than it should be. 4785 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4786 ;; 4787 4788 gnu*) 4789 # Under GNU Hurd, this test is not required because there is 4790 # no limit to the length of command line arguments. 4791 # Libtool will interpret -1 as no limit whatsoever 4792 lt_cv_sys_max_cmd_len=-1; 4793 ;; 4794 4795 cygwin* | mingw* | cegcc*) 4796 # On Win9x/ME, this test blows up -- it succeeds, but takes 4797 # about 5 minutes as the teststring grows exponentially. 4798 # Worse, since 9x/ME are not pre-emptively multitasking, 4799 # you end up with a "frozen" computer, even though with patience 4800 # the test eventually succeeds (with a max line length of 256k). 4801 # Instead, let's just punt: use the minimum linelength reported by 4802 # all of the supported platforms: 8192 (on NT/2K/XP). 4803 lt_cv_sys_max_cmd_len=8192; 4804 ;; 4805 4806 mint*) 4807 # On MiNT this can take a long time and run out of memory. 4808 lt_cv_sys_max_cmd_len=8192; 4809 ;; 4810 4811 amigaos*) 4812 # On AmigaOS with pdksh, this test takes hours, literally. 4813 # So we just punt and use a minimum line length of 8192. 4814 lt_cv_sys_max_cmd_len=8192; 4815 ;; 4816 4817 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 4818 # This has been around since 386BSD, at least. Likely further. 4819 if test -x /sbin/sysctl; then 4820 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4821 elif test -x /usr/sbin/sysctl; then 4822 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4823 else 4824 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4825 fi 4826 # And add a safety zone 4827 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4828 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4829 ;; 4830 4831 interix*) 4832 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4833 lt_cv_sys_max_cmd_len=196608 4834 ;; 4835 4836 os2*) 4837 # The test takes a long time on OS/2. 4838 lt_cv_sys_max_cmd_len=8192 4839 ;; 4840 4841 osf*) 4842 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4843 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4844 # nice to cause kernel panics so lets avoid the loop below. 4845 # First set a reasonable default. 4846 lt_cv_sys_max_cmd_len=16384 4847 # 4848 if test -x /sbin/sysconfig; then 4849 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4850 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4851 esac 4852 fi 4853 ;; 4854 sco3.2v5*) 4855 lt_cv_sys_max_cmd_len=102400 4856 ;; 4857 sysv5* | sco5v6* | sysv4.2uw2*) 4858 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4859 if test -n "$kargmax"; then 4860 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4861 else 4862 lt_cv_sys_max_cmd_len=32768 4863 fi 4864 ;; 4865 *) 4866 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4867 if test -n "$lt_cv_sys_max_cmd_len" && \ 4868 test undefined != "$lt_cv_sys_max_cmd_len"; then 4869 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4870 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4871 else 4872 # Make teststring a little bigger before we do anything with it. 4873 # a 1K string should be a reasonable start. 4874 for i in 1 2 3 4 5 6 7 8; do 4875 teststring=$teststring$teststring 4876 done 4877 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4878 # If test is not a shell built-in, we'll probably end up computing a 4879 # maximum length that is only half of the actual maximum length, but 4880 # we can't tell. 4881 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 4882 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4883 test 17 != "$i" # 1/2 MB should be enough 4884 do 4885 i=`expr $i + 1` 4886 teststring=$teststring$teststring 4887 done 4888 # Only check the string length outside the loop. 4889 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4890 teststring= 4891 # Add a significant safety factor because C++ compilers can tack on 4892 # massive amounts of additional arguments before passing them to the 4893 # linker. It appears as though 1/2 is a usable value. 4894 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4895 fi 4896 ;; 4897 esac 4898 4899fi 4900 4901if test -n "$lt_cv_sys_max_cmd_len"; then 4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4903$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4904else 4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4906$as_echo "none" >&6; } 4907fi 4908max_cmd_len=$lt_cv_sys_max_cmd_len 4909 4910 4911 4912 4913 4914 4915: ${CP="cp -f"} 4916: ${MV="mv -f"} 4917: ${RM="rm -f"} 4918 4919if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4920 lt_unset=unset 4921else 4922 lt_unset=false 4923fi 4924 4925 4926 4927 4928 4929# test EBCDIC or ASCII 4930case `echo X|tr X '\101'` in 4931 A) # ASCII based system 4932 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4933 lt_SP2NL='tr \040 \012' 4934 lt_NL2SP='tr \015\012 \040\040' 4935 ;; 4936 *) # EBCDIC based system 4937 lt_SP2NL='tr \100 \n' 4938 lt_NL2SP='tr \r\n \100\100' 4939 ;; 4940esac 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4951$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4952if ${lt_cv_to_host_file_cmd+:} false; then : 4953 $as_echo_n "(cached) " >&6 4954else 4955 case $host in 4956 *-*-mingw* ) 4957 case $build in 4958 *-*-mingw* ) # actually msys 4959 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4960 ;; 4961 *-*-cygwin* ) 4962 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4963 ;; 4964 * ) # otherwise, assume *nix 4965 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4966 ;; 4967 esac 4968 ;; 4969 *-*-cygwin* ) 4970 case $build in 4971 *-*-mingw* ) # actually msys 4972 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4973 ;; 4974 *-*-cygwin* ) 4975 lt_cv_to_host_file_cmd=func_convert_file_noop 4976 ;; 4977 * ) # otherwise, assume *nix 4978 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4979 ;; 4980 esac 4981 ;; 4982 * ) # unhandled hosts (and "normal" native builds) 4983 lt_cv_to_host_file_cmd=func_convert_file_noop 4984 ;; 4985esac 4986 4987fi 4988 4989to_host_file_cmd=$lt_cv_to_host_file_cmd 4990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4991$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4992 4993 4994 4995 4996 4997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4998$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4999if ${lt_cv_to_tool_file_cmd+:} false; then : 5000 $as_echo_n "(cached) " >&6 5001else 5002 #assume ordinary cross tools, or native build. 5003lt_cv_to_tool_file_cmd=func_convert_file_noop 5004case $host in 5005 *-*-mingw* ) 5006 case $build in 5007 *-*-mingw* ) # actually msys 5008 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5009 ;; 5010 esac 5011 ;; 5012esac 5013 5014fi 5015 5016to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5018$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5019 5020 5021 5022 5023 5024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5025$as_echo_n "checking for $LD option to reload object files... " >&6; } 5026if ${lt_cv_ld_reload_flag+:} false; then : 5027 $as_echo_n "(cached) " >&6 5028else 5029 lt_cv_ld_reload_flag='-r' 5030fi 5031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5032$as_echo "$lt_cv_ld_reload_flag" >&6; } 5033reload_flag=$lt_cv_ld_reload_flag 5034case $reload_flag in 5035"" | " "*) ;; 5036*) reload_flag=" $reload_flag" ;; 5037esac 5038reload_cmds='$LD$reload_flag -o $output$reload_objs' 5039case $host_os in 5040 cygwin* | mingw* | pw32* | cegcc*) 5041 if test yes != "$GCC"; then 5042 reload_cmds=false 5043 fi 5044 ;; 5045 darwin*) 5046 if test yes = "$GCC"; then 5047 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5048 else 5049 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5050 fi 5051 ;; 5052esac 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062if test -n "$ac_tool_prefix"; then 5063 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5064set dummy ${ac_tool_prefix}objdump; ac_word=$2 5065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5066$as_echo_n "checking for $ac_word... " >&6; } 5067if ${ac_cv_prog_OBJDUMP+:} false; then : 5068 $as_echo_n "(cached) " >&6 5069else 5070 if test -n "$OBJDUMP"; then 5071 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5072else 5073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5074for as_dir in $PATH 5075do 5076 IFS=$as_save_IFS 5077 test -z "$as_dir" && as_dir=. 5078 for ac_exec_ext in '' $ac_executable_extensions; do 5079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5080 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5082 break 2 5083 fi 5084done 5085 done 5086IFS=$as_save_IFS 5087 5088fi 5089fi 5090OBJDUMP=$ac_cv_prog_OBJDUMP 5091if test -n "$OBJDUMP"; then 5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5093$as_echo "$OBJDUMP" >&6; } 5094else 5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5096$as_echo "no" >&6; } 5097fi 5098 5099 5100fi 5101if test -z "$ac_cv_prog_OBJDUMP"; then 5102 ac_ct_OBJDUMP=$OBJDUMP 5103 # Extract the first word of "objdump", so it can be a program name with args. 5104set dummy objdump; ac_word=$2 5105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5106$as_echo_n "checking for $ac_word... " >&6; } 5107if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5108 $as_echo_n "(cached) " >&6 5109else 5110 if test -n "$ac_ct_OBJDUMP"; then 5111 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5112else 5113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5114for as_dir in $PATH 5115do 5116 IFS=$as_save_IFS 5117 test -z "$as_dir" && as_dir=. 5118 for ac_exec_ext in '' $ac_executable_extensions; do 5119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5120 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5122 break 2 5123 fi 5124done 5125 done 5126IFS=$as_save_IFS 5127 5128fi 5129fi 5130ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5131if test -n "$ac_ct_OBJDUMP"; then 5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5133$as_echo "$ac_ct_OBJDUMP" >&6; } 5134else 5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5136$as_echo "no" >&6; } 5137fi 5138 5139 if test "x$ac_ct_OBJDUMP" = x; then 5140 OBJDUMP="false" 5141 else 5142 case $cross_compiling:$ac_tool_warned in 5143yes:) 5144{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5145$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5146ac_tool_warned=yes ;; 5147esac 5148 OBJDUMP=$ac_ct_OBJDUMP 5149 fi 5150else 5151 OBJDUMP="$ac_cv_prog_OBJDUMP" 5152fi 5153 5154test -z "$OBJDUMP" && OBJDUMP=objdump 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5165$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5166if ${lt_cv_deplibs_check_method+:} false; then : 5167 $as_echo_n "(cached) " >&6 5168else 5169 lt_cv_file_magic_cmd='$MAGIC_CMD' 5170lt_cv_file_magic_test_file= 5171lt_cv_deplibs_check_method='unknown' 5172# Need to set the preceding variable on all platforms that support 5173# interlibrary dependencies. 5174# 'none' -- dependencies not supported. 5175# 'unknown' -- same as none, but documents that we really don't know. 5176# 'pass_all' -- all dependencies passed with no checks. 5177# 'test_compile' -- check by making test program. 5178# 'file_magic [[regex]]' -- check by looking for files in library path 5179# that responds to the $file_magic_cmd with a given extended regex. 5180# If you have 'file' or equivalent on your system and you're not sure 5181# whether 'pass_all' will *always* work, you probably want this one. 5182 5183case $host_os in 5184aix[4-9]*) 5185 lt_cv_deplibs_check_method=pass_all 5186 ;; 5187 5188beos*) 5189 lt_cv_deplibs_check_method=pass_all 5190 ;; 5191 5192bsdi[45]*) 5193 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5194 lt_cv_file_magic_cmd='/usr/bin/file -L' 5195 lt_cv_file_magic_test_file=/shlib/libc.so 5196 ;; 5197 5198cygwin*) 5199 # func_win32_libid is a shell function defined in ltmain.sh 5200 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5201 lt_cv_file_magic_cmd='func_win32_libid' 5202 ;; 5203 5204mingw* | pw32*) 5205 # Base MSYS/MinGW do not provide the 'file' command needed by 5206 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5207 # unless we find 'file', for example because we are cross-compiling. 5208 if ( file / ) >/dev/null 2>&1; then 5209 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5210 lt_cv_file_magic_cmd='func_win32_libid' 5211 else 5212 # Keep this pattern in sync with the one in func_win32_libid. 5213 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5214 lt_cv_file_magic_cmd='$OBJDUMP -f' 5215 fi 5216 ;; 5217 5218cegcc*) 5219 # use the weaker test based on 'objdump'. See mingw*. 5220 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5221 lt_cv_file_magic_cmd='$OBJDUMP -f' 5222 ;; 5223 5224darwin* | rhapsody*) 5225 lt_cv_deplibs_check_method=pass_all 5226 ;; 5227 5228freebsd* | dragonfly*) 5229 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5230 case $host_cpu in 5231 i*86 ) 5232 # Not sure whether the presence of OpenBSD here was a mistake. 5233 # Let's accept both of them until this is cleared up. 5234 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5235 lt_cv_file_magic_cmd=/usr/bin/file 5236 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5237 ;; 5238 esac 5239 else 5240 lt_cv_deplibs_check_method=pass_all 5241 fi 5242 ;; 5243 5244haiku*) 5245 lt_cv_deplibs_check_method=pass_all 5246 ;; 5247 5248hpux10.20* | hpux11*) 5249 lt_cv_file_magic_cmd=/usr/bin/file 5250 case $host_cpu in 5251 ia64*) 5252 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5253 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5254 ;; 5255 hppa*64*) 5256 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]' 5257 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5258 ;; 5259 *) 5260 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5261 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5262 ;; 5263 esac 5264 ;; 5265 5266interix[3-9]*) 5267 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5268 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5269 ;; 5270 5271irix5* | irix6* | nonstopux*) 5272 case $LD in 5273 *-32|*"-32 ") libmagic=32-bit;; 5274 *-n32|*"-n32 ") libmagic=N32;; 5275 *-64|*"-64 ") libmagic=64-bit;; 5276 *) libmagic=never-match;; 5277 esac 5278 lt_cv_deplibs_check_method=pass_all 5279 ;; 5280 5281# This must be glibc/ELF. 5282linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5283 lt_cv_deplibs_check_method=pass_all 5284 ;; 5285 5286netbsd*) 5287 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5288 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5289 else 5290 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5291 fi 5292 ;; 5293 5294newos6*) 5295 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5296 lt_cv_file_magic_cmd=/usr/bin/file 5297 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5298 ;; 5299 5300*nto* | *qnx*) 5301 lt_cv_deplibs_check_method=pass_all 5302 ;; 5303 5304openbsd* | bitrig*) 5305 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5306 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5307 else 5308 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5309 fi 5310 ;; 5311 5312osf3* | osf4* | osf5*) 5313 lt_cv_deplibs_check_method=pass_all 5314 ;; 5315 5316rdos*) 5317 lt_cv_deplibs_check_method=pass_all 5318 ;; 5319 5320solaris*) 5321 lt_cv_deplibs_check_method=pass_all 5322 ;; 5323 5324sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5325 lt_cv_deplibs_check_method=pass_all 5326 ;; 5327 5328sysv4 | sysv4.3*) 5329 case $host_vendor in 5330 motorola) 5331 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]' 5332 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5333 ;; 5334 ncr) 5335 lt_cv_deplibs_check_method=pass_all 5336 ;; 5337 sequent) 5338 lt_cv_file_magic_cmd='/bin/file' 5339 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5340 ;; 5341 sni) 5342 lt_cv_file_magic_cmd='/bin/file' 5343 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5344 lt_cv_file_magic_test_file=/lib/libc.so 5345 ;; 5346 siemens) 5347 lt_cv_deplibs_check_method=pass_all 5348 ;; 5349 pc) 5350 lt_cv_deplibs_check_method=pass_all 5351 ;; 5352 esac 5353 ;; 5354 5355tpf*) 5356 lt_cv_deplibs_check_method=pass_all 5357 ;; 5358os2*) 5359 lt_cv_deplibs_check_method=pass_all 5360 ;; 5361esac 5362 5363fi 5364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5365$as_echo "$lt_cv_deplibs_check_method" >&6; } 5366 5367file_magic_glob= 5368want_nocaseglob=no 5369if test "$build" = "$host"; then 5370 case $host_os in 5371 mingw* | pw32*) 5372 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5373 want_nocaseglob=yes 5374 else 5375 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5376 fi 5377 ;; 5378 esac 5379fi 5380 5381file_magic_cmd=$lt_cv_file_magic_cmd 5382deplibs_check_method=$lt_cv_deplibs_check_method 5383test -z "$deplibs_check_method" && deplibs_check_method=unknown 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406if test -n "$ac_tool_prefix"; then 5407 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5408set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5410$as_echo_n "checking for $ac_word... " >&6; } 5411if ${ac_cv_prog_DLLTOOL+:} false; then : 5412 $as_echo_n "(cached) " >&6 5413else 5414 if test -n "$DLLTOOL"; then 5415 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5416else 5417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5418for as_dir in $PATH 5419do 5420 IFS=$as_save_IFS 5421 test -z "$as_dir" && as_dir=. 5422 for ac_exec_ext in '' $ac_executable_extensions; do 5423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5424 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5426 break 2 5427 fi 5428done 5429 done 5430IFS=$as_save_IFS 5431 5432fi 5433fi 5434DLLTOOL=$ac_cv_prog_DLLTOOL 5435if test -n "$DLLTOOL"; then 5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5437$as_echo "$DLLTOOL" >&6; } 5438else 5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5440$as_echo "no" >&6; } 5441fi 5442 5443 5444fi 5445if test -z "$ac_cv_prog_DLLTOOL"; then 5446 ac_ct_DLLTOOL=$DLLTOOL 5447 # Extract the first word of "dlltool", so it can be a program name with args. 5448set dummy dlltool; ac_word=$2 5449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5450$as_echo_n "checking for $ac_word... " >&6; } 5451if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5452 $as_echo_n "(cached) " >&6 5453else 5454 if test -n "$ac_ct_DLLTOOL"; then 5455 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5456else 5457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5458for as_dir in $PATH 5459do 5460 IFS=$as_save_IFS 5461 test -z "$as_dir" && as_dir=. 5462 for ac_exec_ext in '' $ac_executable_extensions; do 5463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5464 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5466 break 2 5467 fi 5468done 5469 done 5470IFS=$as_save_IFS 5471 5472fi 5473fi 5474ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5475if test -n "$ac_ct_DLLTOOL"; then 5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5477$as_echo "$ac_ct_DLLTOOL" >&6; } 5478else 5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5480$as_echo "no" >&6; } 5481fi 5482 5483 if test "x$ac_ct_DLLTOOL" = x; then 5484 DLLTOOL="false" 5485 else 5486 case $cross_compiling:$ac_tool_warned in 5487yes:) 5488{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5489$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5490ac_tool_warned=yes ;; 5491esac 5492 DLLTOOL=$ac_ct_DLLTOOL 5493 fi 5494else 5495 DLLTOOL="$ac_cv_prog_DLLTOOL" 5496fi 5497 5498test -z "$DLLTOOL" && DLLTOOL=dlltool 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5510$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5511if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5512 $as_echo_n "(cached) " >&6 5513else 5514 lt_cv_sharedlib_from_linklib_cmd='unknown' 5515 5516case $host_os in 5517cygwin* | mingw* | pw32* | cegcc*) 5518 # two different shell functions defined in ltmain.sh; 5519 # decide which one to use based on capabilities of $DLLTOOL 5520 case `$DLLTOOL --help 2>&1` in 5521 *--identify-strict*) 5522 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5523 ;; 5524 *) 5525 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5526 ;; 5527 esac 5528 ;; 5529*) 5530 # fallback: assume linklib IS sharedlib 5531 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5532 ;; 5533esac 5534 5535fi 5536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5537$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5538sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5539test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5540 5541 5542 5543 5544 5545 5546 5547 5548if test -n "$ac_tool_prefix"; then 5549 for ac_prog in ar 5550 do 5551 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5552set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5554$as_echo_n "checking for $ac_word... " >&6; } 5555if ${ac_cv_prog_AR+:} false; then : 5556 $as_echo_n "(cached) " >&6 5557else 5558 if test -n "$AR"; then 5559 ac_cv_prog_AR="$AR" # Let the user override the test. 5560else 5561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5562for as_dir in $PATH 5563do 5564 IFS=$as_save_IFS 5565 test -z "$as_dir" && as_dir=. 5566 for ac_exec_ext in '' $ac_executable_extensions; do 5567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5568 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5570 break 2 5571 fi 5572done 5573 done 5574IFS=$as_save_IFS 5575 5576fi 5577fi 5578AR=$ac_cv_prog_AR 5579if test -n "$AR"; then 5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5581$as_echo "$AR" >&6; } 5582else 5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5584$as_echo "no" >&6; } 5585fi 5586 5587 5588 test -n "$AR" && break 5589 done 5590fi 5591if test -z "$AR"; then 5592 ac_ct_AR=$AR 5593 for ac_prog in ar 5594do 5595 # Extract the first word of "$ac_prog", so it can be a program name with args. 5596set dummy $ac_prog; ac_word=$2 5597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5598$as_echo_n "checking for $ac_word... " >&6; } 5599if ${ac_cv_prog_ac_ct_AR+:} false; then : 5600 $as_echo_n "(cached) " >&6 5601else 5602 if test -n "$ac_ct_AR"; then 5603 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5604else 5605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5606for as_dir in $PATH 5607do 5608 IFS=$as_save_IFS 5609 test -z "$as_dir" && as_dir=. 5610 for ac_exec_ext in '' $ac_executable_extensions; do 5611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5612 ac_cv_prog_ac_ct_AR="$ac_prog" 5613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5614 break 2 5615 fi 5616done 5617 done 5618IFS=$as_save_IFS 5619 5620fi 5621fi 5622ac_ct_AR=$ac_cv_prog_ac_ct_AR 5623if test -n "$ac_ct_AR"; then 5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5625$as_echo "$ac_ct_AR" >&6; } 5626else 5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5628$as_echo "no" >&6; } 5629fi 5630 5631 5632 test -n "$ac_ct_AR" && break 5633done 5634 5635 if test "x$ac_ct_AR" = x; then 5636 AR="false" 5637 else 5638 case $cross_compiling:$ac_tool_warned in 5639yes:) 5640{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5641$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5642ac_tool_warned=yes ;; 5643esac 5644 AR=$ac_ct_AR 5645 fi 5646fi 5647 5648: ${AR=ar} 5649: ${AR_FLAGS=cru} 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5662$as_echo_n "checking for archiver @FILE support... " >&6; } 5663if ${lt_cv_ar_at_file+:} false; then : 5664 $as_echo_n "(cached) " >&6 5665else 5666 lt_cv_ar_at_file=no 5667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5668/* end confdefs.h. */ 5669 5670int 5671main () 5672{ 5673 5674 ; 5675 return 0; 5676} 5677_ACEOF 5678if ac_fn_c_try_compile "$LINENO"; then : 5679 echo conftest.$ac_objext > conftest.lst 5680 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5681 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5682 (eval $lt_ar_try) 2>&5 5683 ac_status=$? 5684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5685 test $ac_status = 0; } 5686 if test 0 -eq "$ac_status"; then 5687 # Ensure the archiver fails upon bogus file names. 5688 rm -f conftest.$ac_objext libconftest.a 5689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5690 (eval $lt_ar_try) 2>&5 5691 ac_status=$? 5692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5693 test $ac_status = 0; } 5694 if test 0 -ne "$ac_status"; then 5695 lt_cv_ar_at_file=@ 5696 fi 5697 fi 5698 rm -f conftest.* libconftest.a 5699 5700fi 5701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5702 5703fi 5704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5705$as_echo "$lt_cv_ar_at_file" >&6; } 5706 5707if test no = "$lt_cv_ar_at_file"; then 5708 archiver_list_spec= 5709else 5710 archiver_list_spec=$lt_cv_ar_at_file 5711fi 5712 5713 5714 5715 5716 5717 5718 5719if test -n "$ac_tool_prefix"; then 5720 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5721set dummy ${ac_tool_prefix}strip; ac_word=$2 5722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5723$as_echo_n "checking for $ac_word... " >&6; } 5724if ${ac_cv_prog_STRIP+:} false; then : 5725 $as_echo_n "(cached) " >&6 5726else 5727 if test -n "$STRIP"; then 5728 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5729else 5730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5731for as_dir in $PATH 5732do 5733 IFS=$as_save_IFS 5734 test -z "$as_dir" && as_dir=. 5735 for ac_exec_ext in '' $ac_executable_extensions; do 5736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5737 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5739 break 2 5740 fi 5741done 5742 done 5743IFS=$as_save_IFS 5744 5745fi 5746fi 5747STRIP=$ac_cv_prog_STRIP 5748if test -n "$STRIP"; then 5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5750$as_echo "$STRIP" >&6; } 5751else 5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5753$as_echo "no" >&6; } 5754fi 5755 5756 5757fi 5758if test -z "$ac_cv_prog_STRIP"; then 5759 ac_ct_STRIP=$STRIP 5760 # Extract the first word of "strip", so it can be a program name with args. 5761set dummy strip; ac_word=$2 5762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5763$as_echo_n "checking for $ac_word... " >&6; } 5764if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5765 $as_echo_n "(cached) " >&6 5766else 5767 if test -n "$ac_ct_STRIP"; then 5768 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5769else 5770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5771for as_dir in $PATH 5772do 5773 IFS=$as_save_IFS 5774 test -z "$as_dir" && as_dir=. 5775 for ac_exec_ext in '' $ac_executable_extensions; do 5776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5777 ac_cv_prog_ac_ct_STRIP="strip" 5778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5779 break 2 5780 fi 5781done 5782 done 5783IFS=$as_save_IFS 5784 5785fi 5786fi 5787ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5788if test -n "$ac_ct_STRIP"; then 5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5790$as_echo "$ac_ct_STRIP" >&6; } 5791else 5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5793$as_echo "no" >&6; } 5794fi 5795 5796 if test "x$ac_ct_STRIP" = x; then 5797 STRIP=":" 5798 else 5799 case $cross_compiling:$ac_tool_warned in 5800yes:) 5801{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5802$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5803ac_tool_warned=yes ;; 5804esac 5805 STRIP=$ac_ct_STRIP 5806 fi 5807else 5808 STRIP="$ac_cv_prog_STRIP" 5809fi 5810 5811test -z "$STRIP" && STRIP=: 5812 5813 5814 5815 5816 5817 5818if test -n "$ac_tool_prefix"; then 5819 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5820set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5822$as_echo_n "checking for $ac_word... " >&6; } 5823if ${ac_cv_prog_RANLIB+:} false; then : 5824 $as_echo_n "(cached) " >&6 5825else 5826 if test -n "$RANLIB"; then 5827 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5828else 5829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5830for as_dir in $PATH 5831do 5832 IFS=$as_save_IFS 5833 test -z "$as_dir" && as_dir=. 5834 for ac_exec_ext in '' $ac_executable_extensions; do 5835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5836 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5838 break 2 5839 fi 5840done 5841 done 5842IFS=$as_save_IFS 5843 5844fi 5845fi 5846RANLIB=$ac_cv_prog_RANLIB 5847if test -n "$RANLIB"; then 5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5849$as_echo "$RANLIB" >&6; } 5850else 5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5852$as_echo "no" >&6; } 5853fi 5854 5855 5856fi 5857if test -z "$ac_cv_prog_RANLIB"; then 5858 ac_ct_RANLIB=$RANLIB 5859 # Extract the first word of "ranlib", so it can be a program name with args. 5860set dummy ranlib; ac_word=$2 5861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5862$as_echo_n "checking for $ac_word... " >&6; } 5863if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5864 $as_echo_n "(cached) " >&6 5865else 5866 if test -n "$ac_ct_RANLIB"; then 5867 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5868else 5869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5870for as_dir in $PATH 5871do 5872 IFS=$as_save_IFS 5873 test -z "$as_dir" && as_dir=. 5874 for ac_exec_ext in '' $ac_executable_extensions; do 5875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5876 ac_cv_prog_ac_ct_RANLIB="ranlib" 5877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5878 break 2 5879 fi 5880done 5881 done 5882IFS=$as_save_IFS 5883 5884fi 5885fi 5886ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5887if test -n "$ac_ct_RANLIB"; then 5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5889$as_echo "$ac_ct_RANLIB" >&6; } 5890else 5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5892$as_echo "no" >&6; } 5893fi 5894 5895 if test "x$ac_ct_RANLIB" = x; then 5896 RANLIB=":" 5897 else 5898 case $cross_compiling:$ac_tool_warned in 5899yes:) 5900{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5901$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5902ac_tool_warned=yes ;; 5903esac 5904 RANLIB=$ac_ct_RANLIB 5905 fi 5906else 5907 RANLIB="$ac_cv_prog_RANLIB" 5908fi 5909 5910test -z "$RANLIB" && RANLIB=: 5911 5912 5913 5914 5915 5916 5917# Determine commands to create old-style static archives. 5918old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5919old_postinstall_cmds='chmod 644 $oldlib' 5920old_postuninstall_cmds= 5921 5922if test -n "$RANLIB"; then 5923 case $host_os in 5924 bitrig* | openbsd*) 5925 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5926 ;; 5927 *) 5928 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5929 ;; 5930 esac 5931 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5932fi 5933 5934case $host_os in 5935 darwin*) 5936 lock_old_archive_extraction=yes ;; 5937 *) 5938 lock_old_archive_extraction=no ;; 5939esac 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979# If no C compiler was specified, use CC. 5980LTCC=${LTCC-"$CC"} 5981 5982# If no C compiler flags were specified, use CFLAGS. 5983LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5984 5985# Allow CC to be a program name with arguments. 5986compiler=$CC 5987 5988 5989# Check for command to grab the raw symbol name followed by C symbol from nm. 5990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5991$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5992if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5993 $as_echo_n "(cached) " >&6 5994else 5995 5996# These are sane defaults that work on at least a few old systems. 5997# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5998 5999# Character class describing NM global symbol codes. 6000symcode='[BCDEGRST]' 6001 6002# Regexp to match symbols that can be accessed directly from C. 6003sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6004 6005# Define system-specific variables. 6006case $host_os in 6007aix*) 6008 symcode='[BCDT]' 6009 ;; 6010cygwin* | mingw* | pw32* | cegcc*) 6011 symcode='[ABCDGISTW]' 6012 ;; 6013hpux*) 6014 if test ia64 = "$host_cpu"; then 6015 symcode='[ABCDEGRST]' 6016 fi 6017 ;; 6018irix* | nonstopux*) 6019 symcode='[BCDEGRST]' 6020 ;; 6021osf*) 6022 symcode='[BCDEGQRST]' 6023 ;; 6024solaris*) 6025 symcode='[BDRT]' 6026 ;; 6027sco3.2v5*) 6028 symcode='[DT]' 6029 ;; 6030sysv4.2uw2*) 6031 symcode='[DT]' 6032 ;; 6033sysv5* | sco5v6* | unixware* | OpenUNIX*) 6034 symcode='[ABDT]' 6035 ;; 6036sysv4) 6037 symcode='[DFNSTU]' 6038 ;; 6039esac 6040 6041# If we're using GNU nm, then use its standard symbol codes. 6042case `$NM -V 2>&1` in 6043*GNU* | *'with BFD'*) 6044 symcode='[ABCDGIRSTW]' ;; 6045esac 6046 6047if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6048 # Gets list of data symbols to import. 6049 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6050 # Adjust the below global symbol transforms to fixup imported variables. 6051 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6052 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6053 lt_c_name_lib_hook="\ 6054 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6055 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6056else 6057 # Disable hooks by default. 6058 lt_cv_sys_global_symbol_to_import= 6059 lt_cdecl_hook= 6060 lt_c_name_hook= 6061 lt_c_name_lib_hook= 6062fi 6063 6064# Transform an extracted symbol line into a proper C declaration. 6065# Some systems (esp. on ia64) link data and code symbols differently, 6066# so use this general approach. 6067lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6068$lt_cdecl_hook\ 6069" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6070" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6071 6072# Transform an extracted symbol line into symbol name and symbol address 6073lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6074$lt_c_name_hook\ 6075" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6076" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6077 6078# Transform an extracted symbol line into symbol name with lib prefix and 6079# symbol address. 6080lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6081$lt_c_name_lib_hook\ 6082" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6083" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6084" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6085 6086# Handle CRLF in mingw tool chain 6087opt_cr= 6088case $build_os in 6089mingw*) 6090 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6091 ;; 6092esac 6093 6094# Try without a prefix underscore, then with it. 6095for ac_symprfx in "" "_"; do 6096 6097 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6098 symxfrm="\\1 $ac_symprfx\\2 \\2" 6099 6100 # Write the raw and C identifiers. 6101 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6102 # Fake it for dumpbin and say T for any non-static function, 6103 # D for any global variable and I for any imported variable. 6104 # Also find C++ and __fastcall symbols from MSVC++, 6105 # which start with @ or ?. 6106 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6107" {last_section=section; section=\$ 3};"\ 6108" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6109" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6110" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6111" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6112" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6113" \$ 0!~/External *\|/{next};"\ 6114" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6115" {if(hide[section]) next};"\ 6116" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6117" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6118" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6119" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6120" ' prfx=^$ac_symprfx" 6121 else 6122 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6123 fi 6124 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6125 6126 # Check to see that the pipe works correctly. 6127 pipe_works=no 6128 6129 rm -f conftest* 6130 cat > conftest.$ac_ext <<_LT_EOF 6131#ifdef __cplusplus 6132extern "C" { 6133#endif 6134char nm_test_var; 6135void nm_test_func(void); 6136void nm_test_func(void){} 6137#ifdef __cplusplus 6138} 6139#endif 6140int main(){nm_test_var='a';nm_test_func();return(0);} 6141_LT_EOF 6142 6143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6144 (eval $ac_compile) 2>&5 6145 ac_status=$? 6146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6147 test $ac_status = 0; }; then 6148 # Now try to grab the symbols. 6149 nlist=conftest.nm 6150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6151 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6152 ac_status=$? 6153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6154 test $ac_status = 0; } && test -s "$nlist"; then 6155 # Try sorting and uniquifying the output. 6156 if sort "$nlist" | uniq > "$nlist"T; then 6157 mv -f "$nlist"T "$nlist" 6158 else 6159 rm -f "$nlist"T 6160 fi 6161 6162 # Make sure that we snagged all the symbols we need. 6163 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6164 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6165 cat <<_LT_EOF > conftest.$ac_ext 6166/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6167#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6168/* DATA imports from DLLs on WIN32 can't be const, because runtime 6169 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6170# define LT_DLSYM_CONST 6171#elif defined __osf__ 6172/* This system does not cope well with relocations in const data. */ 6173# define LT_DLSYM_CONST 6174#else 6175# define LT_DLSYM_CONST const 6176#endif 6177 6178#ifdef __cplusplus 6179extern "C" { 6180#endif 6181 6182_LT_EOF 6183 # Now generate the symbol file. 6184 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6185 6186 cat <<_LT_EOF >> conftest.$ac_ext 6187 6188/* The mapping between symbol names and symbols. */ 6189LT_DLSYM_CONST struct { 6190 const char *name; 6191 void *address; 6192} 6193lt__PROGRAM__LTX_preloaded_symbols[] = 6194{ 6195 { "@PROGRAM@", (void *) 0 }, 6196_LT_EOF 6197 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6198 cat <<\_LT_EOF >> conftest.$ac_ext 6199 {0, (void *) 0} 6200}; 6201 6202/* This works around a problem in FreeBSD linker */ 6203#ifdef FREEBSD_WORKAROUND 6204static const void *lt_preloaded_setup() { 6205 return lt__PROGRAM__LTX_preloaded_symbols; 6206} 6207#endif 6208 6209#ifdef __cplusplus 6210} 6211#endif 6212_LT_EOF 6213 # Now try linking the two files. 6214 mv conftest.$ac_objext conftstm.$ac_objext 6215 lt_globsym_save_LIBS=$LIBS 6216 lt_globsym_save_CFLAGS=$CFLAGS 6217 LIBS=conftstm.$ac_objext 6218 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6220 (eval $ac_link) 2>&5 6221 ac_status=$? 6222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6223 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6224 pipe_works=yes 6225 fi 6226 LIBS=$lt_globsym_save_LIBS 6227 CFLAGS=$lt_globsym_save_CFLAGS 6228 else 6229 echo "cannot find nm_test_func in $nlist" >&5 6230 fi 6231 else 6232 echo "cannot find nm_test_var in $nlist" >&5 6233 fi 6234 else 6235 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6236 fi 6237 else 6238 echo "$progname: failed program was:" >&5 6239 cat conftest.$ac_ext >&5 6240 fi 6241 rm -rf conftest* conftst* 6242 6243 # Do not use the global_symbol_pipe unless it works. 6244 if test yes = "$pipe_works"; then 6245 break 6246 else 6247 lt_cv_sys_global_symbol_pipe= 6248 fi 6249done 6250 6251fi 6252 6253if test -z "$lt_cv_sys_global_symbol_pipe"; then 6254 lt_cv_sys_global_symbol_to_cdecl= 6255fi 6256if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6258$as_echo "failed" >&6; } 6259else 6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6261$as_echo "ok" >&6; } 6262fi 6263 6264# Response file support. 6265if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6266 nm_file_list_spec='@' 6267elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6268 nm_file_list_spec='@' 6269fi 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6308$as_echo_n "checking for sysroot... " >&6; } 6309 6310# Check whether --with-sysroot was given. 6311if test "${with_sysroot+set}" = set; then : 6312 withval=$with_sysroot; 6313else 6314 with_sysroot=no 6315fi 6316 6317 6318lt_sysroot= 6319case $with_sysroot in #( 6320 yes) 6321 if test yes = "$GCC"; then 6322 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6323 fi 6324 ;; #( 6325 /*) 6326 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6327 ;; #( 6328 no|'') 6329 ;; #( 6330 *) 6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6332$as_echo "$with_sysroot" >&6; } 6333 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6334 ;; 6335esac 6336 6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6338$as_echo "${lt_sysroot:-no}" >&6; } 6339 6340 6341 6342 6343 6344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6345$as_echo_n "checking for a working dd... " >&6; } 6346if ${ac_cv_path_lt_DD+:} false; then : 6347 $as_echo_n "(cached) " >&6 6348else 6349 printf 0123456789abcdef0123456789abcdef >conftest.i 6350cat conftest.i conftest.i >conftest2.i 6351: ${lt_DD:=$DD} 6352if test -z "$lt_DD"; then 6353 ac_path_lt_DD_found=false 6354 # Loop through the user's path and test for each of PROGNAME-LIST 6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6356for as_dir in $PATH 6357do 6358 IFS=$as_save_IFS 6359 test -z "$as_dir" && as_dir=. 6360 for ac_prog in dd; do 6361 for ac_exec_ext in '' $ac_executable_extensions; do 6362 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6363 as_fn_executable_p "$ac_path_lt_DD" || continue 6364if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6365 cmp -s conftest.i conftest.out \ 6366 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6367fi 6368 $ac_path_lt_DD_found && break 3 6369 done 6370 done 6371 done 6372IFS=$as_save_IFS 6373 if test -z "$ac_cv_path_lt_DD"; then 6374 : 6375 fi 6376else 6377 ac_cv_path_lt_DD=$lt_DD 6378fi 6379 6380rm -f conftest.i conftest2.i conftest.out 6381fi 6382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6383$as_echo "$ac_cv_path_lt_DD" >&6; } 6384 6385 6386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6387$as_echo_n "checking how to truncate binary pipes... " >&6; } 6388if ${lt_cv_truncate_bin+:} false; then : 6389 $as_echo_n "(cached) " >&6 6390else 6391 printf 0123456789abcdef0123456789abcdef >conftest.i 6392cat conftest.i conftest.i >conftest2.i 6393lt_cv_truncate_bin= 6394if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6395 cmp -s conftest.i conftest.out \ 6396 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6397fi 6398rm -f conftest.i conftest2.i conftest.out 6399test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6400fi 6401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6402$as_echo "$lt_cv_truncate_bin" >&6; } 6403 6404 6405 6406 6407 6408 6409 6410# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6411func_cc_basename () 6412{ 6413 for cc_temp in $*""; do 6414 case $cc_temp in 6415 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6416 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6417 \-*) ;; 6418 *) break;; 6419 esac 6420 done 6421 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6422} 6423 6424# Check whether --enable-libtool-lock was given. 6425if test "${enable_libtool_lock+set}" = set; then : 6426 enableval=$enable_libtool_lock; 6427fi 6428 6429test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6430 6431# Some flags need to be propagated to the compiler or linker for good 6432# libtool support. 6433case $host in 6434ia64-*-hpux*) 6435 # Find out what ABI is being produced by ac_compile, and set mode 6436 # options accordingly. 6437 echo 'int i;' > conftest.$ac_ext 6438 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6439 (eval $ac_compile) 2>&5 6440 ac_status=$? 6441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6442 test $ac_status = 0; }; then 6443 case `/usr/bin/file conftest.$ac_objext` in 6444 *ELF-32*) 6445 HPUX_IA64_MODE=32 6446 ;; 6447 *ELF-64*) 6448 HPUX_IA64_MODE=64 6449 ;; 6450 esac 6451 fi 6452 rm -rf conftest* 6453 ;; 6454*-*-irix6*) 6455 # Find out what ABI is being produced by ac_compile, and set linker 6456 # options accordingly. 6457 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6458 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6459 (eval $ac_compile) 2>&5 6460 ac_status=$? 6461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6462 test $ac_status = 0; }; then 6463 if test yes = "$lt_cv_prog_gnu_ld"; then 6464 case `/usr/bin/file conftest.$ac_objext` in 6465 *32-bit*) 6466 LD="${LD-ld} -melf32bsmip" 6467 ;; 6468 *N32*) 6469 LD="${LD-ld} -melf32bmipn32" 6470 ;; 6471 *64-bit*) 6472 LD="${LD-ld} -melf64bmip" 6473 ;; 6474 esac 6475 else 6476 case `/usr/bin/file conftest.$ac_objext` in 6477 *32-bit*) 6478 LD="${LD-ld} -32" 6479 ;; 6480 *N32*) 6481 LD="${LD-ld} -n32" 6482 ;; 6483 *64-bit*) 6484 LD="${LD-ld} -64" 6485 ;; 6486 esac 6487 fi 6488 fi 6489 rm -rf conftest* 6490 ;; 6491 6492mips64*-*linux*) 6493 # Find out what ABI is being produced by ac_compile, and set linker 6494 # options accordingly. 6495 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6497 (eval $ac_compile) 2>&5 6498 ac_status=$? 6499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6500 test $ac_status = 0; }; then 6501 emul=elf 6502 case `/usr/bin/file conftest.$ac_objext` in 6503 *32-bit*) 6504 emul="${emul}32" 6505 ;; 6506 *64-bit*) 6507 emul="${emul}64" 6508 ;; 6509 esac 6510 case `/usr/bin/file conftest.$ac_objext` in 6511 *MSB*) 6512 emul="${emul}btsmip" 6513 ;; 6514 *LSB*) 6515 emul="${emul}ltsmip" 6516 ;; 6517 esac 6518 case `/usr/bin/file conftest.$ac_objext` in 6519 *N32*) 6520 emul="${emul}n32" 6521 ;; 6522 esac 6523 LD="${LD-ld} -m $emul" 6524 fi 6525 rm -rf conftest* 6526 ;; 6527 6528x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6529s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6530 # Find out what ABI is being produced by ac_compile, and set linker 6531 # options accordingly. Note that the listed cases only cover the 6532 # situations where additional linker options are needed (such as when 6533 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6534 # vice versa); the common cases where no linker options are needed do 6535 # not appear in the list. 6536 echo 'int i;' > conftest.$ac_ext 6537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6538 (eval $ac_compile) 2>&5 6539 ac_status=$? 6540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6541 test $ac_status = 0; }; then 6542 case `/usr/bin/file conftest.o` in 6543 *32-bit*) 6544 case $host in 6545 x86_64-*kfreebsd*-gnu) 6546 LD="${LD-ld} -m elf_i386_fbsd" 6547 ;; 6548 x86_64-*linux*) 6549 case `/usr/bin/file conftest.o` in 6550 *x86-64*) 6551 LD="${LD-ld} -m elf32_x86_64" 6552 ;; 6553 *) 6554 LD="${LD-ld} -m elf_i386" 6555 ;; 6556 esac 6557 ;; 6558 powerpc64le-*linux*) 6559 LD="${LD-ld} -m elf32lppclinux" 6560 ;; 6561 powerpc64-*linux*) 6562 LD="${LD-ld} -m elf32ppclinux" 6563 ;; 6564 s390x-*linux*) 6565 LD="${LD-ld} -m elf_s390" 6566 ;; 6567 sparc64-*linux*) 6568 LD="${LD-ld} -m elf32_sparc" 6569 ;; 6570 esac 6571 ;; 6572 *64-bit*) 6573 case $host in 6574 x86_64-*kfreebsd*-gnu) 6575 LD="${LD-ld} -m elf_x86_64_fbsd" 6576 ;; 6577 x86_64-*linux*) 6578 LD="${LD-ld} -m elf_x86_64" 6579 ;; 6580 powerpcle-*linux*) 6581 LD="${LD-ld} -m elf64lppc" 6582 ;; 6583 powerpc-*linux*) 6584 LD="${LD-ld} -m elf64ppc" 6585 ;; 6586 s390*-*linux*|s390*-*tpf*) 6587 LD="${LD-ld} -m elf64_s390" 6588 ;; 6589 sparc*-*linux*) 6590 LD="${LD-ld} -m elf64_sparc" 6591 ;; 6592 esac 6593 ;; 6594 esac 6595 fi 6596 rm -rf conftest* 6597 ;; 6598 6599*-*-sco3.2v5*) 6600 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6601 SAVE_CFLAGS=$CFLAGS 6602 CFLAGS="$CFLAGS -belf" 6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6604$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6605if ${lt_cv_cc_needs_belf+:} false; then : 6606 $as_echo_n "(cached) " >&6 6607else 6608 ac_ext=c 6609ac_cpp='$CPP $CPPFLAGS' 6610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6612ac_compiler_gnu=$ac_cv_c_compiler_gnu 6613 6614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6615/* end confdefs.h. */ 6616 6617int 6618main () 6619{ 6620 6621 ; 6622 return 0; 6623} 6624_ACEOF 6625if ac_fn_c_try_link "$LINENO"; then : 6626 lt_cv_cc_needs_belf=yes 6627else 6628 lt_cv_cc_needs_belf=no 6629fi 6630rm -f core conftest.err conftest.$ac_objext \ 6631 conftest$ac_exeext conftest.$ac_ext 6632 ac_ext=c 6633ac_cpp='$CPP $CPPFLAGS' 6634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6636ac_compiler_gnu=$ac_cv_c_compiler_gnu 6637 6638fi 6639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6640$as_echo "$lt_cv_cc_needs_belf" >&6; } 6641 if test yes != "$lt_cv_cc_needs_belf"; then 6642 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6643 CFLAGS=$SAVE_CFLAGS 6644 fi 6645 ;; 6646*-*solaris*) 6647 # Find out what ABI is being produced by ac_compile, and set linker 6648 # options accordingly. 6649 echo 'int i;' > conftest.$ac_ext 6650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6651 (eval $ac_compile) 2>&5 6652 ac_status=$? 6653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6654 test $ac_status = 0; }; then 6655 case `/usr/bin/file conftest.o` in 6656 *64-bit*) 6657 case $lt_cv_prog_gnu_ld in 6658 yes*) 6659 case $host in 6660 i?86-*-solaris*|x86_64-*-solaris*) 6661 LD="${LD-ld} -m elf_x86_64" 6662 ;; 6663 sparc*-*-solaris*) 6664 LD="${LD-ld} -m elf64_sparc" 6665 ;; 6666 esac 6667 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6668 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6669 LD=${LD-ld}_sol2 6670 fi 6671 ;; 6672 *) 6673 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6674 LD="${LD-ld} -64" 6675 fi 6676 ;; 6677 esac 6678 ;; 6679 esac 6680 fi 6681 rm -rf conftest* 6682 ;; 6683esac 6684 6685need_locks=$enable_libtool_lock 6686 6687if test -n "$ac_tool_prefix"; then 6688 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6689set dummy ${ac_tool_prefix}mt; ac_word=$2 6690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6691$as_echo_n "checking for $ac_word... " >&6; } 6692if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6693 $as_echo_n "(cached) " >&6 6694else 6695 if test -n "$MANIFEST_TOOL"; then 6696 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6697else 6698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6699for as_dir in $PATH 6700do 6701 IFS=$as_save_IFS 6702 test -z "$as_dir" && as_dir=. 6703 for ac_exec_ext in '' $ac_executable_extensions; do 6704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6705 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6707 break 2 6708 fi 6709done 6710 done 6711IFS=$as_save_IFS 6712 6713fi 6714fi 6715MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6716if test -n "$MANIFEST_TOOL"; then 6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6718$as_echo "$MANIFEST_TOOL" >&6; } 6719else 6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6721$as_echo "no" >&6; } 6722fi 6723 6724 6725fi 6726if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6727 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6728 # Extract the first word of "mt", so it can be a program name with args. 6729set dummy mt; ac_word=$2 6730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6731$as_echo_n "checking for $ac_word... " >&6; } 6732if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6733 $as_echo_n "(cached) " >&6 6734else 6735 if test -n "$ac_ct_MANIFEST_TOOL"; then 6736 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6737else 6738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6739for as_dir in $PATH 6740do 6741 IFS=$as_save_IFS 6742 test -z "$as_dir" && as_dir=. 6743 for ac_exec_ext in '' $ac_executable_extensions; do 6744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6745 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6747 break 2 6748 fi 6749done 6750 done 6751IFS=$as_save_IFS 6752 6753fi 6754fi 6755ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6756if test -n "$ac_ct_MANIFEST_TOOL"; then 6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6758$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6759else 6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6761$as_echo "no" >&6; } 6762fi 6763 6764 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6765 MANIFEST_TOOL=":" 6766 else 6767 case $cross_compiling:$ac_tool_warned in 6768yes:) 6769{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6771ac_tool_warned=yes ;; 6772esac 6773 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6774 fi 6775else 6776 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6777fi 6778 6779test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6781$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6782if ${lt_cv_path_mainfest_tool+:} false; then : 6783 $as_echo_n "(cached) " >&6 6784else 6785 lt_cv_path_mainfest_tool=no 6786 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6787 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6788 cat conftest.err >&5 6789 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6790 lt_cv_path_mainfest_tool=yes 6791 fi 6792 rm -f conftest* 6793fi 6794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6795$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6796if test yes != "$lt_cv_path_mainfest_tool"; then 6797 MANIFEST_TOOL=: 6798fi 6799 6800 6801 6802 6803 6804 6805 case $host_os in 6806 rhapsody* | darwin*) 6807 if test -n "$ac_tool_prefix"; then 6808 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6809set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6811$as_echo_n "checking for $ac_word... " >&6; } 6812if ${ac_cv_prog_DSYMUTIL+:} false; then : 6813 $as_echo_n "(cached) " >&6 6814else 6815 if test -n "$DSYMUTIL"; then 6816 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6817else 6818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6819for as_dir in $PATH 6820do 6821 IFS=$as_save_IFS 6822 test -z "$as_dir" && as_dir=. 6823 for ac_exec_ext in '' $ac_executable_extensions; do 6824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6825 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6827 break 2 6828 fi 6829done 6830 done 6831IFS=$as_save_IFS 6832 6833fi 6834fi 6835DSYMUTIL=$ac_cv_prog_DSYMUTIL 6836if test -n "$DSYMUTIL"; then 6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6838$as_echo "$DSYMUTIL" >&6; } 6839else 6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6841$as_echo "no" >&6; } 6842fi 6843 6844 6845fi 6846if test -z "$ac_cv_prog_DSYMUTIL"; then 6847 ac_ct_DSYMUTIL=$DSYMUTIL 6848 # Extract the first word of "dsymutil", so it can be a program name with args. 6849set dummy dsymutil; ac_word=$2 6850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6851$as_echo_n "checking for $ac_word... " >&6; } 6852if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6853 $as_echo_n "(cached) " >&6 6854else 6855 if test -n "$ac_ct_DSYMUTIL"; then 6856 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6857else 6858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6859for as_dir in $PATH 6860do 6861 IFS=$as_save_IFS 6862 test -z "$as_dir" && as_dir=. 6863 for ac_exec_ext in '' $ac_executable_extensions; do 6864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6865 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6867 break 2 6868 fi 6869done 6870 done 6871IFS=$as_save_IFS 6872 6873fi 6874fi 6875ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6876if test -n "$ac_ct_DSYMUTIL"; then 6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6878$as_echo "$ac_ct_DSYMUTIL" >&6; } 6879else 6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6881$as_echo "no" >&6; } 6882fi 6883 6884 if test "x$ac_ct_DSYMUTIL" = x; then 6885 DSYMUTIL=":" 6886 else 6887 case $cross_compiling:$ac_tool_warned in 6888yes:) 6889{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6890$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6891ac_tool_warned=yes ;; 6892esac 6893 DSYMUTIL=$ac_ct_DSYMUTIL 6894 fi 6895else 6896 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6897fi 6898 6899 if test -n "$ac_tool_prefix"; then 6900 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6901set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6903$as_echo_n "checking for $ac_word... " >&6; } 6904if ${ac_cv_prog_NMEDIT+:} false; then : 6905 $as_echo_n "(cached) " >&6 6906else 6907 if test -n "$NMEDIT"; then 6908 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6909else 6910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6911for as_dir in $PATH 6912do 6913 IFS=$as_save_IFS 6914 test -z "$as_dir" && as_dir=. 6915 for ac_exec_ext in '' $ac_executable_extensions; do 6916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6917 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6919 break 2 6920 fi 6921done 6922 done 6923IFS=$as_save_IFS 6924 6925fi 6926fi 6927NMEDIT=$ac_cv_prog_NMEDIT 6928if test -n "$NMEDIT"; then 6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6930$as_echo "$NMEDIT" >&6; } 6931else 6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6933$as_echo "no" >&6; } 6934fi 6935 6936 6937fi 6938if test -z "$ac_cv_prog_NMEDIT"; then 6939 ac_ct_NMEDIT=$NMEDIT 6940 # Extract the first word of "nmedit", so it can be a program name with args. 6941set dummy nmedit; ac_word=$2 6942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6943$as_echo_n "checking for $ac_word... " >&6; } 6944if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6945 $as_echo_n "(cached) " >&6 6946else 6947 if test -n "$ac_ct_NMEDIT"; then 6948 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6949else 6950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6951for as_dir in $PATH 6952do 6953 IFS=$as_save_IFS 6954 test -z "$as_dir" && as_dir=. 6955 for ac_exec_ext in '' $ac_executable_extensions; do 6956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6957 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6959 break 2 6960 fi 6961done 6962 done 6963IFS=$as_save_IFS 6964 6965fi 6966fi 6967ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6968if test -n "$ac_ct_NMEDIT"; then 6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6970$as_echo "$ac_ct_NMEDIT" >&6; } 6971else 6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6973$as_echo "no" >&6; } 6974fi 6975 6976 if test "x$ac_ct_NMEDIT" = x; then 6977 NMEDIT=":" 6978 else 6979 case $cross_compiling:$ac_tool_warned in 6980yes:) 6981{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6982$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6983ac_tool_warned=yes ;; 6984esac 6985 NMEDIT=$ac_ct_NMEDIT 6986 fi 6987else 6988 NMEDIT="$ac_cv_prog_NMEDIT" 6989fi 6990 6991 if test -n "$ac_tool_prefix"; then 6992 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6993set dummy ${ac_tool_prefix}lipo; ac_word=$2 6994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6995$as_echo_n "checking for $ac_word... " >&6; } 6996if ${ac_cv_prog_LIPO+:} false; then : 6997 $as_echo_n "(cached) " >&6 6998else 6999 if test -n "$LIPO"; then 7000 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7001else 7002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7003for as_dir in $PATH 7004do 7005 IFS=$as_save_IFS 7006 test -z "$as_dir" && as_dir=. 7007 for ac_exec_ext in '' $ac_executable_extensions; do 7008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7009 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7011 break 2 7012 fi 7013done 7014 done 7015IFS=$as_save_IFS 7016 7017fi 7018fi 7019LIPO=$ac_cv_prog_LIPO 7020if test -n "$LIPO"; then 7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7022$as_echo "$LIPO" >&6; } 7023else 7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7025$as_echo "no" >&6; } 7026fi 7027 7028 7029fi 7030if test -z "$ac_cv_prog_LIPO"; then 7031 ac_ct_LIPO=$LIPO 7032 # Extract the first word of "lipo", so it can be a program name with args. 7033set dummy lipo; ac_word=$2 7034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7035$as_echo_n "checking for $ac_word... " >&6; } 7036if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7037 $as_echo_n "(cached) " >&6 7038else 7039 if test -n "$ac_ct_LIPO"; then 7040 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7041else 7042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7043for as_dir in $PATH 7044do 7045 IFS=$as_save_IFS 7046 test -z "$as_dir" && as_dir=. 7047 for ac_exec_ext in '' $ac_executable_extensions; do 7048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7049 ac_cv_prog_ac_ct_LIPO="lipo" 7050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7051 break 2 7052 fi 7053done 7054 done 7055IFS=$as_save_IFS 7056 7057fi 7058fi 7059ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7060if test -n "$ac_ct_LIPO"; then 7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7062$as_echo "$ac_ct_LIPO" >&6; } 7063else 7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7065$as_echo "no" >&6; } 7066fi 7067 7068 if test "x$ac_ct_LIPO" = x; then 7069 LIPO=":" 7070 else 7071 case $cross_compiling:$ac_tool_warned in 7072yes:) 7073{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7075ac_tool_warned=yes ;; 7076esac 7077 LIPO=$ac_ct_LIPO 7078 fi 7079else 7080 LIPO="$ac_cv_prog_LIPO" 7081fi 7082 7083 if test -n "$ac_tool_prefix"; then 7084 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7085set dummy ${ac_tool_prefix}otool; ac_word=$2 7086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7087$as_echo_n "checking for $ac_word... " >&6; } 7088if ${ac_cv_prog_OTOOL+:} false; then : 7089 $as_echo_n "(cached) " >&6 7090else 7091 if test -n "$OTOOL"; then 7092 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7093else 7094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7095for as_dir in $PATH 7096do 7097 IFS=$as_save_IFS 7098 test -z "$as_dir" && as_dir=. 7099 for ac_exec_ext in '' $ac_executable_extensions; do 7100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7101 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7103 break 2 7104 fi 7105done 7106 done 7107IFS=$as_save_IFS 7108 7109fi 7110fi 7111OTOOL=$ac_cv_prog_OTOOL 7112if test -n "$OTOOL"; then 7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7114$as_echo "$OTOOL" >&6; } 7115else 7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7117$as_echo "no" >&6; } 7118fi 7119 7120 7121fi 7122if test -z "$ac_cv_prog_OTOOL"; then 7123 ac_ct_OTOOL=$OTOOL 7124 # Extract the first word of "otool", so it can be a program name with args. 7125set dummy otool; ac_word=$2 7126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7127$as_echo_n "checking for $ac_word... " >&6; } 7128if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7129 $as_echo_n "(cached) " >&6 7130else 7131 if test -n "$ac_ct_OTOOL"; then 7132 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7133else 7134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7135for as_dir in $PATH 7136do 7137 IFS=$as_save_IFS 7138 test -z "$as_dir" && as_dir=. 7139 for ac_exec_ext in '' $ac_executable_extensions; do 7140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7141 ac_cv_prog_ac_ct_OTOOL="otool" 7142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7143 break 2 7144 fi 7145done 7146 done 7147IFS=$as_save_IFS 7148 7149fi 7150fi 7151ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7152if test -n "$ac_ct_OTOOL"; then 7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7154$as_echo "$ac_ct_OTOOL" >&6; } 7155else 7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7157$as_echo "no" >&6; } 7158fi 7159 7160 if test "x$ac_ct_OTOOL" = x; then 7161 OTOOL=":" 7162 else 7163 case $cross_compiling:$ac_tool_warned in 7164yes:) 7165{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7166$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7167ac_tool_warned=yes ;; 7168esac 7169 OTOOL=$ac_ct_OTOOL 7170 fi 7171else 7172 OTOOL="$ac_cv_prog_OTOOL" 7173fi 7174 7175 if test -n "$ac_tool_prefix"; then 7176 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7177set dummy ${ac_tool_prefix}otool64; ac_word=$2 7178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7179$as_echo_n "checking for $ac_word... " >&6; } 7180if ${ac_cv_prog_OTOOL64+:} false; then : 7181 $as_echo_n "(cached) " >&6 7182else 7183 if test -n "$OTOOL64"; then 7184 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7185else 7186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7187for as_dir in $PATH 7188do 7189 IFS=$as_save_IFS 7190 test -z "$as_dir" && as_dir=. 7191 for ac_exec_ext in '' $ac_executable_extensions; do 7192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7193 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7195 break 2 7196 fi 7197done 7198 done 7199IFS=$as_save_IFS 7200 7201fi 7202fi 7203OTOOL64=$ac_cv_prog_OTOOL64 7204if test -n "$OTOOL64"; then 7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7206$as_echo "$OTOOL64" >&6; } 7207else 7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7209$as_echo "no" >&6; } 7210fi 7211 7212 7213fi 7214if test -z "$ac_cv_prog_OTOOL64"; then 7215 ac_ct_OTOOL64=$OTOOL64 7216 # Extract the first word of "otool64", so it can be a program name with args. 7217set dummy otool64; ac_word=$2 7218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7219$as_echo_n "checking for $ac_word... " >&6; } 7220if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7221 $as_echo_n "(cached) " >&6 7222else 7223 if test -n "$ac_ct_OTOOL64"; then 7224 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7225else 7226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7227for as_dir in $PATH 7228do 7229 IFS=$as_save_IFS 7230 test -z "$as_dir" && as_dir=. 7231 for ac_exec_ext in '' $ac_executable_extensions; do 7232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7233 ac_cv_prog_ac_ct_OTOOL64="otool64" 7234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7235 break 2 7236 fi 7237done 7238 done 7239IFS=$as_save_IFS 7240 7241fi 7242fi 7243ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7244if test -n "$ac_ct_OTOOL64"; then 7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7246$as_echo "$ac_ct_OTOOL64" >&6; } 7247else 7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7249$as_echo "no" >&6; } 7250fi 7251 7252 if test "x$ac_ct_OTOOL64" = x; then 7253 OTOOL64=":" 7254 else 7255 case $cross_compiling:$ac_tool_warned in 7256yes:) 7257{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7258$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7259ac_tool_warned=yes ;; 7260esac 7261 OTOOL64=$ac_ct_OTOOL64 7262 fi 7263else 7264 OTOOL64="$ac_cv_prog_OTOOL64" 7265fi 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7294$as_echo_n "checking for -single_module linker flag... " >&6; } 7295if ${lt_cv_apple_cc_single_mod+:} false; then : 7296 $as_echo_n "(cached) " >&6 7297else 7298 lt_cv_apple_cc_single_mod=no 7299 if test -z "$LT_MULTI_MODULE"; then 7300 # By default we will add the -single_module flag. You can override 7301 # by either setting the environment variable LT_MULTI_MODULE 7302 # non-empty at configure time, or by adding -multi_module to the 7303 # link flags. 7304 rm -rf libconftest.dylib* 7305 echo "int foo(void){return 1;}" > conftest.c 7306 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7307-dynamiclib -Wl,-single_module conftest.c" >&5 7308 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7309 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7310 _lt_result=$? 7311 # If there is a non-empty error log, and "single_module" 7312 # appears in it, assume the flag caused a linker warning 7313 if test -s conftest.err && $GREP single_module conftest.err; then 7314 cat conftest.err >&5 7315 # Otherwise, if the output was created with a 0 exit code from 7316 # the compiler, it worked. 7317 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7318 lt_cv_apple_cc_single_mod=yes 7319 else 7320 cat conftest.err >&5 7321 fi 7322 rm -rf libconftest.dylib* 7323 rm -f conftest.* 7324 fi 7325fi 7326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7327$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7328 7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7330$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7331if ${lt_cv_ld_exported_symbols_list+:} false; then : 7332 $as_echo_n "(cached) " >&6 7333else 7334 lt_cv_ld_exported_symbols_list=no 7335 save_LDFLAGS=$LDFLAGS 7336 echo "_main" > conftest.sym 7337 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7339/* end confdefs.h. */ 7340 7341int 7342main () 7343{ 7344 7345 ; 7346 return 0; 7347} 7348_ACEOF 7349if ac_fn_c_try_link "$LINENO"; then : 7350 lt_cv_ld_exported_symbols_list=yes 7351else 7352 lt_cv_ld_exported_symbols_list=no 7353fi 7354rm -f core conftest.err conftest.$ac_objext \ 7355 conftest$ac_exeext conftest.$ac_ext 7356 LDFLAGS=$save_LDFLAGS 7357 7358fi 7359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7360$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7361 7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7363$as_echo_n "checking for -force_load linker flag... " >&6; } 7364if ${lt_cv_ld_force_load+:} false; then : 7365 $as_echo_n "(cached) " >&6 7366else 7367 lt_cv_ld_force_load=no 7368 cat > conftest.c << _LT_EOF 7369int forced_loaded() { return 2;} 7370_LT_EOF 7371 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7372 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7373 echo "$AR cru libconftest.a conftest.o" >&5 7374 $AR cru libconftest.a conftest.o 2>&5 7375 echo "$RANLIB libconftest.a" >&5 7376 $RANLIB libconftest.a 2>&5 7377 cat > conftest.c << _LT_EOF 7378int main() { return 0;} 7379_LT_EOF 7380 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7381 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7382 _lt_result=$? 7383 if test -s conftest.err && $GREP force_load conftest.err; then 7384 cat conftest.err >&5 7385 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7386 lt_cv_ld_force_load=yes 7387 else 7388 cat conftest.err >&5 7389 fi 7390 rm -f conftest.err libconftest.a conftest conftest.c 7391 rm -rf conftest.dSYM 7392 7393fi 7394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7395$as_echo "$lt_cv_ld_force_load" >&6; } 7396 case $host_os in 7397 rhapsody* | darwin1.[012]) 7398 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7399 darwin1.*) 7400 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7401 darwin*) # darwin 5.x on 7402 # if running on 10.5 or later, the deployment target defaults 7403 # to the OS version, if on x86, and 10.4, the deployment 7404 # target defaults to 10.4. Don't you love it? 7405 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7406 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7407 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7408 10.[012][,.]*) 7409 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7410 10.*) 7411 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7412 esac 7413 ;; 7414 esac 7415 if test yes = "$lt_cv_apple_cc_single_mod"; then 7416 _lt_dar_single_mod='$single_module' 7417 fi 7418 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7419 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7420 else 7421 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7422 fi 7423 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7424 _lt_dsymutil='~$DSYMUTIL $lib || :' 7425 else 7426 _lt_dsymutil= 7427 fi 7428 ;; 7429 esac 7430 7431# func_munge_path_list VARIABLE PATH 7432# ----------------------------------- 7433# VARIABLE is name of variable containing _space_ separated list of 7434# directories to be munged by the contents of PATH, which is string 7435# having a format: 7436# "DIR[:DIR]:" 7437# string "DIR[ DIR]" will be prepended to VARIABLE 7438# ":DIR[:DIR]" 7439# string "DIR[ DIR]" will be appended to VARIABLE 7440# "DIRP[:DIRP]::[DIRA:]DIRA" 7441# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7442# "DIRA[ DIRA]" will be appended to VARIABLE 7443# "DIR[:DIR]" 7444# VARIABLE will be replaced by "DIR[ DIR]" 7445func_munge_path_list () 7446{ 7447 case x$2 in 7448 x) 7449 ;; 7450 *:) 7451 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7452 ;; 7453 x:*) 7454 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7455 ;; 7456 *::*) 7457 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7458 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7459 ;; 7460 *) 7461 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7462 ;; 7463 esac 7464} 7465 7466ac_ext=c 7467ac_cpp='$CPP $CPPFLAGS' 7468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7470ac_compiler_gnu=$ac_cv_c_compiler_gnu 7471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7472$as_echo_n "checking how to run the C preprocessor... " >&6; } 7473# On Suns, sometimes $CPP names a directory. 7474if test -n "$CPP" && test -d "$CPP"; then 7475 CPP= 7476fi 7477if test -z "$CPP"; then 7478 if ${ac_cv_prog_CPP+:} false; then : 7479 $as_echo_n "(cached) " >&6 7480else 7481 # Double quotes because CPP needs to be expanded 7482 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7483 do 7484 ac_preproc_ok=false 7485for ac_c_preproc_warn_flag in '' yes 7486do 7487 # Use a header file that comes with gcc, so configuring glibc 7488 # with a fresh cross-compiler works. 7489 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7490 # <limits.h> exists even on freestanding compilers. 7491 # On the NeXT, cc -E runs the code through the compiler's parser, 7492 # not just through cpp. "Syntax error" is here to catch this case. 7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7494/* end confdefs.h. */ 7495#ifdef __STDC__ 7496# include <limits.h> 7497#else 7498# include <assert.h> 7499#endif 7500 Syntax error 7501_ACEOF 7502if ac_fn_c_try_cpp "$LINENO"; then : 7503 7504else 7505 # Broken: fails on valid input. 7506continue 7507fi 7508rm -f conftest.err conftest.i conftest.$ac_ext 7509 7510 # OK, works on sane cases. Now check whether nonexistent headers 7511 # can be detected and how. 7512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7513/* end confdefs.h. */ 7514#include <ac_nonexistent.h> 7515_ACEOF 7516if ac_fn_c_try_cpp "$LINENO"; then : 7517 # Broken: success on invalid input. 7518continue 7519else 7520 # Passes both tests. 7521ac_preproc_ok=: 7522break 7523fi 7524rm -f conftest.err conftest.i conftest.$ac_ext 7525 7526done 7527# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7528rm -f conftest.i conftest.err conftest.$ac_ext 7529if $ac_preproc_ok; then : 7530 break 7531fi 7532 7533 done 7534 ac_cv_prog_CPP=$CPP 7535 7536fi 7537 CPP=$ac_cv_prog_CPP 7538else 7539 ac_cv_prog_CPP=$CPP 7540fi 7541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7542$as_echo "$CPP" >&6; } 7543ac_preproc_ok=false 7544for ac_c_preproc_warn_flag in '' yes 7545do 7546 # Use a header file that comes with gcc, so configuring glibc 7547 # with a fresh cross-compiler works. 7548 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7549 # <limits.h> exists even on freestanding compilers. 7550 # On the NeXT, cc -E runs the code through the compiler's parser, 7551 # not just through cpp. "Syntax error" is here to catch this case. 7552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7553/* end confdefs.h. */ 7554#ifdef __STDC__ 7555# include <limits.h> 7556#else 7557# include <assert.h> 7558#endif 7559 Syntax error 7560_ACEOF 7561if ac_fn_c_try_cpp "$LINENO"; then : 7562 7563else 7564 # Broken: fails on valid input. 7565continue 7566fi 7567rm -f conftest.err conftest.i conftest.$ac_ext 7568 7569 # OK, works on sane cases. Now check whether nonexistent headers 7570 # can be detected and how. 7571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7572/* end confdefs.h. */ 7573#include <ac_nonexistent.h> 7574_ACEOF 7575if ac_fn_c_try_cpp "$LINENO"; then : 7576 # Broken: success on invalid input. 7577continue 7578else 7579 # Passes both tests. 7580ac_preproc_ok=: 7581break 7582fi 7583rm -f conftest.err conftest.i conftest.$ac_ext 7584 7585done 7586# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7587rm -f conftest.i conftest.err conftest.$ac_ext 7588if $ac_preproc_ok; then : 7589 7590else 7591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7592$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7593as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7594See \`config.log' for more details" "$LINENO" 5; } 7595fi 7596 7597ac_ext=c 7598ac_cpp='$CPP $CPPFLAGS' 7599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7601ac_compiler_gnu=$ac_cv_c_compiler_gnu 7602 7603 7604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7605$as_echo_n "checking for ANSI C header files... " >&6; } 7606if ${ac_cv_header_stdc+:} false; then : 7607 $as_echo_n "(cached) " >&6 7608else 7609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7610/* end confdefs.h. */ 7611#include <stdlib.h> 7612#include <stdarg.h> 7613#include <string.h> 7614#include <float.h> 7615 7616int 7617main () 7618{ 7619 7620 ; 7621 return 0; 7622} 7623_ACEOF 7624if ac_fn_c_try_compile "$LINENO"; then : 7625 ac_cv_header_stdc=yes 7626else 7627 ac_cv_header_stdc=no 7628fi 7629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7630 7631if test $ac_cv_header_stdc = yes; then 7632 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7634/* end confdefs.h. */ 7635#include <string.h> 7636 7637_ACEOF 7638if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7639 $EGREP "memchr" >/dev/null 2>&1; then : 7640 7641else 7642 ac_cv_header_stdc=no 7643fi 7644rm -f conftest* 7645 7646fi 7647 7648if test $ac_cv_header_stdc = yes; then 7649 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7651/* end confdefs.h. */ 7652#include <stdlib.h> 7653 7654_ACEOF 7655if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7656 $EGREP "free" >/dev/null 2>&1; then : 7657 7658else 7659 ac_cv_header_stdc=no 7660fi 7661rm -f conftest* 7662 7663fi 7664 7665if test $ac_cv_header_stdc = yes; then 7666 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7667 if test "$cross_compiling" = yes; then : 7668 : 7669else 7670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7671/* end confdefs.h. */ 7672#include <ctype.h> 7673#include <stdlib.h> 7674#if ((' ' & 0x0FF) == 0x020) 7675# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7676# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7677#else 7678# define ISLOWER(c) \ 7679 (('a' <= (c) && (c) <= 'i') \ 7680 || ('j' <= (c) && (c) <= 'r') \ 7681 || ('s' <= (c) && (c) <= 'z')) 7682# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7683#endif 7684 7685#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7686int 7687main () 7688{ 7689 int i; 7690 for (i = 0; i < 256; i++) 7691 if (XOR (islower (i), ISLOWER (i)) 7692 || toupper (i) != TOUPPER (i)) 7693 return 2; 7694 return 0; 7695} 7696_ACEOF 7697if ac_fn_c_try_run "$LINENO"; then : 7698 7699else 7700 ac_cv_header_stdc=no 7701fi 7702rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7703 conftest.$ac_objext conftest.beam conftest.$ac_ext 7704fi 7705 7706fi 7707fi 7708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7709$as_echo "$ac_cv_header_stdc" >&6; } 7710if test $ac_cv_header_stdc = yes; then 7711 7712$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7713 7714fi 7715 7716# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7717for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7718 inttypes.h stdint.h unistd.h 7719do : 7720 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7721ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7722" 7723if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7724 cat >>confdefs.h <<_ACEOF 7725#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7726_ACEOF 7727 7728fi 7729 7730done 7731 7732 7733for ac_header in dlfcn.h 7734do : 7735 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7736" 7737if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7738 cat >>confdefs.h <<_ACEOF 7739#define HAVE_DLFCN_H 1 7740_ACEOF 7741 7742fi 7743 7744done 7745 7746 7747 7748 7749 7750# Set options 7751 7752 7753 7754 enable_dlopen=no 7755 7756 7757 enable_win32_dll=no 7758 7759 7760 # Check whether --enable-shared was given. 7761if test "${enable_shared+set}" = set; then : 7762 enableval=$enable_shared; p=${PACKAGE-default} 7763 case $enableval in 7764 yes) enable_shared=yes ;; 7765 no) enable_shared=no ;; 7766 *) 7767 enable_shared=no 7768 # Look at the argument we got. We use all the common list separators. 7769 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7770 for pkg in $enableval; do 7771 IFS=$lt_save_ifs 7772 if test "X$pkg" = "X$p"; then 7773 enable_shared=yes 7774 fi 7775 done 7776 IFS=$lt_save_ifs 7777 ;; 7778 esac 7779else 7780 enable_shared=yes 7781fi 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 # Check whether --enable-static was given. 7792if test "${enable_static+set}" = set; then : 7793 enableval=$enable_static; p=${PACKAGE-default} 7794 case $enableval in 7795 yes) enable_static=yes ;; 7796 no) enable_static=no ;; 7797 *) 7798 enable_static=no 7799 # Look at the argument we got. We use all the common list separators. 7800 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7801 for pkg in $enableval; do 7802 IFS=$lt_save_ifs 7803 if test "X$pkg" = "X$p"; then 7804 enable_static=yes 7805 fi 7806 done 7807 IFS=$lt_save_ifs 7808 ;; 7809 esac 7810else 7811 enable_static=yes 7812fi 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823# Check whether --with-pic was given. 7824if test "${with_pic+set}" = set; then : 7825 withval=$with_pic; lt_p=${PACKAGE-default} 7826 case $withval in 7827 yes|no) pic_mode=$withval ;; 7828 *) 7829 pic_mode=default 7830 # Look at the argument we got. We use all the common list separators. 7831 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7832 for lt_pkg in $withval; do 7833 IFS=$lt_save_ifs 7834 if test "X$lt_pkg" = "X$lt_p"; then 7835 pic_mode=yes 7836 fi 7837 done 7838 IFS=$lt_save_ifs 7839 ;; 7840 esac 7841else 7842 pic_mode=default 7843fi 7844 7845 7846 7847 7848 7849 7850 7851 7852 # Check whether --enable-fast-install was given. 7853if test "${enable_fast_install+set}" = set; then : 7854 enableval=$enable_fast_install; p=${PACKAGE-default} 7855 case $enableval in 7856 yes) enable_fast_install=yes ;; 7857 no) enable_fast_install=no ;; 7858 *) 7859 enable_fast_install=no 7860 # Look at the argument we got. We use all the common list separators. 7861 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7862 for pkg in $enableval; do 7863 IFS=$lt_save_ifs 7864 if test "X$pkg" = "X$p"; then 7865 enable_fast_install=yes 7866 fi 7867 done 7868 IFS=$lt_save_ifs 7869 ;; 7870 esac 7871else 7872 enable_fast_install=yes 7873fi 7874 7875 7876 7877 7878 7879 7880 7881 7882 shared_archive_member_spec= 7883case $host,$enable_shared in 7884power*-*-aix[5-9]*,yes) 7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 7886$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 7887 7888# Check whether --with-aix-soname was given. 7889if test "${with_aix_soname+set}" = set; then : 7890 withval=$with_aix_soname; case $withval in 7891 aix|svr4|both) 7892 ;; 7893 *) 7894 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 7895 ;; 7896 esac 7897 lt_cv_with_aix_soname=$with_aix_soname 7898else 7899 if ${lt_cv_with_aix_soname+:} false; then : 7900 $as_echo_n "(cached) " >&6 7901else 7902 lt_cv_with_aix_soname=aix 7903fi 7904 7905 with_aix_soname=$lt_cv_with_aix_soname 7906fi 7907 7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 7909$as_echo "$with_aix_soname" >&6; } 7910 if test aix != "$with_aix_soname"; then 7911 # For the AIX way of multilib, we name the shared archive member 7912 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 7913 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 7914 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 7915 # the AIX toolchain works better with OBJECT_MODE set (default 32). 7916 if test 64 = "${OBJECT_MODE-32}"; then 7917 shared_archive_member_spec=shr_64 7918 else 7919 shared_archive_member_spec=shr 7920 fi 7921 fi 7922 ;; 7923*) 7924 with_aix_soname=aix 7925 ;; 7926esac 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937# This can be used to rebuild libtool when needed 7938LIBTOOL_DEPS=$ltmain 7939 7940# Always use our own libtool. 7941LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972test -z "$LN_S" && LN_S="ln -s" 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987if test -n "${ZSH_VERSION+set}"; then 7988 setopt NO_GLOB_SUBST 7989fi 7990 7991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7992$as_echo_n "checking for objdir... " >&6; } 7993if ${lt_cv_objdir+:} false; then : 7994 $as_echo_n "(cached) " >&6 7995else 7996 rm -f .libs 2>/dev/null 7997mkdir .libs 2>/dev/null 7998if test -d .libs; then 7999 lt_cv_objdir=.libs 8000else 8001 # MS-DOS does not allow filenames that begin with a dot. 8002 lt_cv_objdir=_libs 8003fi 8004rmdir .libs 2>/dev/null 8005fi 8006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8007$as_echo "$lt_cv_objdir" >&6; } 8008objdir=$lt_cv_objdir 8009 8010 8011 8012 8013 8014cat >>confdefs.h <<_ACEOF 8015#define LT_OBJDIR "$lt_cv_objdir/" 8016_ACEOF 8017 8018 8019 8020 8021case $host_os in 8022aix3*) 8023 # AIX sometimes has problems with the GCC collect2 program. For some 8024 # reason, if we set the COLLECT_NAMES environment variable, the problems 8025 # vanish in a puff of smoke. 8026 if test set != "${COLLECT_NAMES+set}"; then 8027 COLLECT_NAMES= 8028 export COLLECT_NAMES 8029 fi 8030 ;; 8031esac 8032 8033# Global variables: 8034ofile=libtool 8035can_build_shared=yes 8036 8037# All known linkers require a '.a' archive for static linking (except MSVC, 8038# which needs '.lib'). 8039libext=a 8040 8041with_gnu_ld=$lt_cv_prog_gnu_ld 8042 8043old_CC=$CC 8044old_CFLAGS=$CFLAGS 8045 8046# Set sane defaults for various variables 8047test -z "$CC" && CC=cc 8048test -z "$LTCC" && LTCC=$CC 8049test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8050test -z "$LD" && LD=ld 8051test -z "$ac_objext" && ac_objext=o 8052 8053func_cc_basename $compiler 8054cc_basename=$func_cc_basename_result 8055 8056 8057# Only perform the check for file, if the check method requires it 8058test -z "$MAGIC_CMD" && MAGIC_CMD=file 8059case $deplibs_check_method in 8060file_magic*) 8061 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8063$as_echo_n "checking for ${ac_tool_prefix}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/${ac_tool_prefix}file"; then 8079 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}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 8124 8125 8126if test -z "$lt_cv_path_MAGIC_CMD"; then 8127 if test -n "$ac_tool_prefix"; then 8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8129$as_echo_n "checking for file... " >&6; } 8130if ${lt_cv_path_MAGIC_CMD+:} false; then : 8131 $as_echo_n "(cached) " >&6 8132else 8133 case $MAGIC_CMD in 8134[\\/*] | ?:[\\/]*) 8135 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8136 ;; 8137*) 8138 lt_save_MAGIC_CMD=$MAGIC_CMD 8139 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8140 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8141 for ac_dir in $ac_dummy; do 8142 IFS=$lt_save_ifs 8143 test -z "$ac_dir" && ac_dir=. 8144 if test -f "$ac_dir/file"; then 8145 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8146 if test -n "$file_magic_test_file"; then 8147 case $deplibs_check_method in 8148 "file_magic "*) 8149 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8150 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8151 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8152 $EGREP "$file_magic_regex" > /dev/null; then 8153 : 8154 else 8155 cat <<_LT_EOF 1>&2 8156 8157*** Warning: the command libtool uses to detect shared libraries, 8158*** $file_magic_cmd, produces output that libtool cannot recognize. 8159*** The result is that libtool may fail to recognize shared libraries 8160*** as such. This will affect the creation of libtool libraries that 8161*** depend on shared libraries, but programs linked with such libtool 8162*** libraries will work regardless of this problem. Nevertheless, you 8163*** may want to report the problem to your system manager and/or to 8164*** bug-libtool@gnu.org 8165 8166_LT_EOF 8167 fi ;; 8168 esac 8169 fi 8170 break 8171 fi 8172 done 8173 IFS=$lt_save_ifs 8174 MAGIC_CMD=$lt_save_MAGIC_CMD 8175 ;; 8176esac 8177fi 8178 8179MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8180if test -n "$MAGIC_CMD"; then 8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8182$as_echo "$MAGIC_CMD" >&6; } 8183else 8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8185$as_echo "no" >&6; } 8186fi 8187 8188 8189 else 8190 MAGIC_CMD=: 8191 fi 8192fi 8193 8194 fi 8195 ;; 8196esac 8197 8198# Use C for the default configuration in the libtool script 8199 8200lt_save_CC=$CC 8201ac_ext=c 8202ac_cpp='$CPP $CPPFLAGS' 8203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8205ac_compiler_gnu=$ac_cv_c_compiler_gnu 8206 8207 8208# Source file extension for C test sources. 8209ac_ext=c 8210 8211# Object file extension for compiled C test sources. 8212objext=o 8213objext=$objext 8214 8215# Code to be used in simple compile tests 8216lt_simple_compile_test_code="int some_variable = 0;" 8217 8218# Code to be used in simple link tests 8219lt_simple_link_test_code='int main(){return(0);}' 8220 8221 8222 8223 8224 8225 8226 8227# If no C compiler was specified, use CC. 8228LTCC=${LTCC-"$CC"} 8229 8230# If no C compiler flags were specified, use CFLAGS. 8231LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8232 8233# Allow CC to be a program name with arguments. 8234compiler=$CC 8235 8236# Save the default compiler, since it gets overwritten when the other 8237# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8238compiler_DEFAULT=$CC 8239 8240# save warnings/boilerplate of simple test code 8241ac_outfile=conftest.$ac_objext 8242echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8243eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8244_lt_compiler_boilerplate=`cat conftest.err` 8245$RM conftest* 8246 8247ac_outfile=conftest.$ac_objext 8248echo "$lt_simple_link_test_code" >conftest.$ac_ext 8249eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8250_lt_linker_boilerplate=`cat conftest.err` 8251$RM -r conftest* 8252 8253 8254if test -n "$compiler"; then 8255 8256lt_prog_compiler_no_builtin_flag= 8257 8258if test yes = "$GCC"; then 8259 case $cc_basename in 8260 nvcc*) 8261 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8262 *) 8263 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8264 esac 8265 8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8267$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8268if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8269 $as_echo_n "(cached) " >&6 8270else 8271 lt_cv_prog_compiler_rtti_exceptions=no 8272 ac_outfile=conftest.$ac_objext 8273 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8274 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8275 # Insert the option either (1) after the last *FLAGS variable, or 8276 # (2) before a word containing "conftest.", or (3) at the end. 8277 # Note that $ac_compile itself does not contain backslashes and begins 8278 # with a dollar sign (not a hyphen), so the echo should work correctly. 8279 # The option is referenced via a variable to avoid confusing sed. 8280 lt_compile=`echo "$ac_compile" | $SED \ 8281 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8282 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8283 -e 's:$: $lt_compiler_flag:'` 8284 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8285 (eval "$lt_compile" 2>conftest.err) 8286 ac_status=$? 8287 cat conftest.err >&5 8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8289 if (exit $ac_status) && test -s "$ac_outfile"; then 8290 # The compiler can only warn and ignore the option if not recognized 8291 # So say no if there are warnings other than the usual output. 8292 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8293 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8294 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8295 lt_cv_prog_compiler_rtti_exceptions=yes 8296 fi 8297 fi 8298 $RM conftest* 8299 8300fi 8301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8302$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8303 8304if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8305 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8306else 8307 : 8308fi 8309 8310fi 8311 8312 8313 8314 8315 8316 8317 lt_prog_compiler_wl= 8318lt_prog_compiler_pic= 8319lt_prog_compiler_static= 8320 8321 8322 if test yes = "$GCC"; then 8323 lt_prog_compiler_wl='-Wl,' 8324 lt_prog_compiler_static='-static' 8325 8326 case $host_os in 8327 aix*) 8328 # All AIX code is PIC. 8329 if test ia64 = "$host_cpu"; then 8330 # AIX 5 now supports IA64 processor 8331 lt_prog_compiler_static='-Bstatic' 8332 fi 8333 lt_prog_compiler_pic='-fPIC' 8334 ;; 8335 8336 amigaos*) 8337 case $host_cpu in 8338 powerpc) 8339 # see comment about AmigaOS4 .so support 8340 lt_prog_compiler_pic='-fPIC' 8341 ;; 8342 m68k) 8343 # FIXME: we need at least 68020 code to build shared libraries, but 8344 # adding the '-m68020' flag to GCC prevents building anything better, 8345 # like '-m68040'. 8346 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8347 ;; 8348 esac 8349 ;; 8350 8351 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8352 # PIC is the default for these OSes. 8353 ;; 8354 8355 mingw* | cygwin* | pw32* | os2* | cegcc*) 8356 # This hack is so that the source file can tell whether it is being 8357 # built for inclusion in a dll (and should export symbols for example). 8358 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8359 # (--disable-auto-import) libraries 8360 lt_prog_compiler_pic='-DDLL_EXPORT' 8361 case $host_os in 8362 os2*) 8363 lt_prog_compiler_static='$wl-static' 8364 ;; 8365 esac 8366 ;; 8367 8368 darwin* | rhapsody*) 8369 # PIC is the default on this platform 8370 # Common symbols not allowed in MH_DYLIB files 8371 lt_prog_compiler_pic='-fno-common' 8372 ;; 8373 8374 haiku*) 8375 # PIC is the default for Haiku. 8376 # The "-static" flag exists, but is broken. 8377 lt_prog_compiler_static= 8378 ;; 8379 8380 hpux*) 8381 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8382 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8383 # sets the default TLS model and affects inlining. 8384 case $host_cpu in 8385 hppa*64*) 8386 # +Z the default 8387 ;; 8388 *) 8389 lt_prog_compiler_pic='-fPIC' 8390 ;; 8391 esac 8392 ;; 8393 8394 interix[3-9]*) 8395 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8396 # Instead, we relocate shared libraries at runtime. 8397 ;; 8398 8399 msdosdjgpp*) 8400 # Just because we use GCC doesn't mean we suddenly get shared libraries 8401 # on systems that don't support them. 8402 lt_prog_compiler_can_build_shared=no 8403 enable_shared=no 8404 ;; 8405 8406 *nto* | *qnx*) 8407 # QNX uses GNU C++, but need to define -shared option too, otherwise 8408 # it will coredump. 8409 lt_prog_compiler_pic='-fPIC -shared' 8410 ;; 8411 8412 sysv4*MP*) 8413 if test -d /usr/nec; then 8414 lt_prog_compiler_pic=-Kconform_pic 8415 fi 8416 ;; 8417 8418 *) 8419 lt_prog_compiler_pic='-fPIC' 8420 ;; 8421 esac 8422 8423 case $cc_basename in 8424 nvcc*) # Cuda Compiler Driver 2.2 8425 lt_prog_compiler_wl='-Xlinker ' 8426 if test -n "$lt_prog_compiler_pic"; then 8427 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8428 fi 8429 ;; 8430 esac 8431 else 8432 # PORTME Check for flag to pass linker flags through the system compiler. 8433 case $host_os in 8434 aix*) 8435 lt_prog_compiler_wl='-Wl,' 8436 if test ia64 = "$host_cpu"; then 8437 # AIX 5 now supports IA64 processor 8438 lt_prog_compiler_static='-Bstatic' 8439 else 8440 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8441 fi 8442 ;; 8443 8444 darwin* | rhapsody*) 8445 # PIC is the default on this platform 8446 # Common symbols not allowed in MH_DYLIB files 8447 lt_prog_compiler_pic='-fno-common' 8448 case $cc_basename in 8449 nagfor*) 8450 # NAG Fortran compiler 8451 lt_prog_compiler_wl='-Wl,-Wl,,' 8452 lt_prog_compiler_pic='-PIC' 8453 lt_prog_compiler_static='-Bstatic' 8454 ;; 8455 esac 8456 ;; 8457 8458 mingw* | cygwin* | pw32* | os2* | cegcc*) 8459 # This hack is so that the source file can tell whether it is being 8460 # built for inclusion in a dll (and should export symbols for example). 8461 lt_prog_compiler_pic='-DDLL_EXPORT' 8462 case $host_os in 8463 os2*) 8464 lt_prog_compiler_static='$wl-static' 8465 ;; 8466 esac 8467 ;; 8468 8469 hpux9* | hpux10* | hpux11*) 8470 lt_prog_compiler_wl='-Wl,' 8471 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8472 # not for PA HP-UX. 8473 case $host_cpu in 8474 hppa*64*|ia64*) 8475 # +Z the default 8476 ;; 8477 *) 8478 lt_prog_compiler_pic='+Z' 8479 ;; 8480 esac 8481 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8482 lt_prog_compiler_static='$wl-a ${wl}archive' 8483 ;; 8484 8485 irix5* | irix6* | nonstopux*) 8486 lt_prog_compiler_wl='-Wl,' 8487 # PIC (with -KPIC) is the default. 8488 lt_prog_compiler_static='-non_shared' 8489 ;; 8490 8491 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8492 case $cc_basename in 8493 # old Intel for x86_64, which still supported -KPIC. 8494 ecc*) 8495 lt_prog_compiler_wl='-Wl,' 8496 lt_prog_compiler_pic='-KPIC' 8497 lt_prog_compiler_static='-static' 8498 ;; 8499 # icc used to be incompatible with GCC. 8500 # ICC 10 doesn't accept -KPIC any more. 8501 icc* | ifort*) 8502 lt_prog_compiler_wl='-Wl,' 8503 lt_prog_compiler_pic='-fPIC' 8504 lt_prog_compiler_static='-static' 8505 ;; 8506 # Lahey Fortran 8.1. 8507 lf95*) 8508 lt_prog_compiler_wl='-Wl,' 8509 lt_prog_compiler_pic='--shared' 8510 lt_prog_compiler_static='--static' 8511 ;; 8512 nagfor*) 8513 # NAG Fortran compiler 8514 lt_prog_compiler_wl='-Wl,-Wl,,' 8515 lt_prog_compiler_pic='-PIC' 8516 lt_prog_compiler_static='-Bstatic' 8517 ;; 8518 tcc*) 8519 # Fabrice Bellard et al's Tiny C Compiler 8520 lt_prog_compiler_wl='-Wl,' 8521 lt_prog_compiler_pic='-fPIC' 8522 lt_prog_compiler_static='-static' 8523 ;; 8524 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8525 # Portland Group compilers (*not* the Pentium gcc compiler, 8526 # which looks to be a dead project) 8527 lt_prog_compiler_wl='-Wl,' 8528 lt_prog_compiler_pic='-fpic' 8529 lt_prog_compiler_static='-Bstatic' 8530 ;; 8531 ccc*) 8532 lt_prog_compiler_wl='-Wl,' 8533 # All Alpha code is PIC. 8534 lt_prog_compiler_static='-non_shared' 8535 ;; 8536 xl* | bgxl* | bgf* | mpixl*) 8537 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8538 lt_prog_compiler_wl='-Wl,' 8539 lt_prog_compiler_pic='-qpic' 8540 lt_prog_compiler_static='-qstaticlink' 8541 ;; 8542 *) 8543 case `$CC -V 2>&1 | sed 5q` in 8544 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8545 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8546 lt_prog_compiler_pic='-KPIC' 8547 lt_prog_compiler_static='-Bstatic' 8548 lt_prog_compiler_wl='' 8549 ;; 8550 *Sun\ F* | *Sun*Fortran*) 8551 lt_prog_compiler_pic='-KPIC' 8552 lt_prog_compiler_static='-Bstatic' 8553 lt_prog_compiler_wl='-Qoption ld ' 8554 ;; 8555 *Sun\ C*) 8556 # Sun C 5.9 8557 lt_prog_compiler_pic='-KPIC' 8558 lt_prog_compiler_static='-Bstatic' 8559 lt_prog_compiler_wl='-Wl,' 8560 ;; 8561 *Intel*\ [CF]*Compiler*) 8562 lt_prog_compiler_wl='-Wl,' 8563 lt_prog_compiler_pic='-fPIC' 8564 lt_prog_compiler_static='-static' 8565 ;; 8566 *Portland\ Group*) 8567 lt_prog_compiler_wl='-Wl,' 8568 lt_prog_compiler_pic='-fpic' 8569 lt_prog_compiler_static='-Bstatic' 8570 ;; 8571 esac 8572 ;; 8573 esac 8574 ;; 8575 8576 newsos6) 8577 lt_prog_compiler_pic='-KPIC' 8578 lt_prog_compiler_static='-Bstatic' 8579 ;; 8580 8581 *nto* | *qnx*) 8582 # QNX uses GNU C++, but need to define -shared option too, otherwise 8583 # it will coredump. 8584 lt_prog_compiler_pic='-fPIC -shared' 8585 ;; 8586 8587 osf3* | osf4* | osf5*) 8588 lt_prog_compiler_wl='-Wl,' 8589 # All OSF/1 code is PIC. 8590 lt_prog_compiler_static='-non_shared' 8591 ;; 8592 8593 rdos*) 8594 lt_prog_compiler_static='-non_shared' 8595 ;; 8596 8597 solaris*) 8598 lt_prog_compiler_pic='-KPIC' 8599 lt_prog_compiler_static='-Bstatic' 8600 case $cc_basename in 8601 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8602 lt_prog_compiler_wl='-Qoption ld ';; 8603 *) 8604 lt_prog_compiler_wl='-Wl,';; 8605 esac 8606 ;; 8607 8608 sunos4*) 8609 lt_prog_compiler_wl='-Qoption ld ' 8610 lt_prog_compiler_pic='-PIC' 8611 lt_prog_compiler_static='-Bstatic' 8612 ;; 8613 8614 sysv4 | sysv4.2uw2* | sysv4.3*) 8615 lt_prog_compiler_wl='-Wl,' 8616 lt_prog_compiler_pic='-KPIC' 8617 lt_prog_compiler_static='-Bstatic' 8618 ;; 8619 8620 sysv4*MP*) 8621 if test -d /usr/nec; then 8622 lt_prog_compiler_pic='-Kconform_pic' 8623 lt_prog_compiler_static='-Bstatic' 8624 fi 8625 ;; 8626 8627 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8628 lt_prog_compiler_wl='-Wl,' 8629 lt_prog_compiler_pic='-KPIC' 8630 lt_prog_compiler_static='-Bstatic' 8631 ;; 8632 8633 unicos*) 8634 lt_prog_compiler_wl='-Wl,' 8635 lt_prog_compiler_can_build_shared=no 8636 ;; 8637 8638 uts4*) 8639 lt_prog_compiler_pic='-pic' 8640 lt_prog_compiler_static='-Bstatic' 8641 ;; 8642 8643 *) 8644 lt_prog_compiler_can_build_shared=no 8645 ;; 8646 esac 8647 fi 8648 8649case $host_os in 8650 # For platforms that do not support PIC, -DPIC is meaningless: 8651 *djgpp*) 8652 lt_prog_compiler_pic= 8653 ;; 8654 *) 8655 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8656 ;; 8657esac 8658 8659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8660$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8661if ${lt_cv_prog_compiler_pic+:} false; then : 8662 $as_echo_n "(cached) " >&6 8663else 8664 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8665fi 8666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8667$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8668lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8669 8670# 8671# Check to make sure the PIC flag actually works. 8672# 8673if test -n "$lt_prog_compiler_pic"; then 8674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8675$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8676if ${lt_cv_prog_compiler_pic_works+:} false; then : 8677 $as_echo_n "(cached) " >&6 8678else 8679 lt_cv_prog_compiler_pic_works=no 8680 ac_outfile=conftest.$ac_objext 8681 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8682 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8683 # Insert the option either (1) after the last *FLAGS variable, or 8684 # (2) before a word containing "conftest.", or (3) at the end. 8685 # Note that $ac_compile itself does not contain backslashes and begins 8686 # with a dollar sign (not a hyphen), so the echo should work correctly. 8687 # The option is referenced via a variable to avoid confusing sed. 8688 lt_compile=`echo "$ac_compile" | $SED \ 8689 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8691 -e 's:$: $lt_compiler_flag:'` 8692 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8693 (eval "$lt_compile" 2>conftest.err) 8694 ac_status=$? 8695 cat conftest.err >&5 8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8697 if (exit $ac_status) && test -s "$ac_outfile"; then 8698 # The compiler can only warn and ignore the option if not recognized 8699 # So say no if there are warnings other than the usual output. 8700 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8701 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8702 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8703 lt_cv_prog_compiler_pic_works=yes 8704 fi 8705 fi 8706 $RM conftest* 8707 8708fi 8709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8710$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8711 8712if test yes = "$lt_cv_prog_compiler_pic_works"; then 8713 case $lt_prog_compiler_pic in 8714 "" | " "*) ;; 8715 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8716 esac 8717else 8718 lt_prog_compiler_pic= 8719 lt_prog_compiler_can_build_shared=no 8720fi 8721 8722fi 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734# 8735# Check to make sure the static flag actually works. 8736# 8737wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8739$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8740if ${lt_cv_prog_compiler_static_works+:} false; then : 8741 $as_echo_n "(cached) " >&6 8742else 8743 lt_cv_prog_compiler_static_works=no 8744 save_LDFLAGS=$LDFLAGS 8745 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8746 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8747 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8748 # The linker can only warn and ignore the option if not recognized 8749 # So say no if there are warnings 8750 if test -s conftest.err; then 8751 # Append any errors to the config.log. 8752 cat conftest.err 1>&5 8753 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8754 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8755 if diff conftest.exp conftest.er2 >/dev/null; then 8756 lt_cv_prog_compiler_static_works=yes 8757 fi 8758 else 8759 lt_cv_prog_compiler_static_works=yes 8760 fi 8761 fi 8762 $RM -r conftest* 8763 LDFLAGS=$save_LDFLAGS 8764 8765fi 8766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8767$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8768 8769if test yes = "$lt_cv_prog_compiler_static_works"; then 8770 : 8771else 8772 lt_prog_compiler_static= 8773fi 8774 8775 8776 8777 8778 8779 8780 8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8782$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8783if ${lt_cv_prog_compiler_c_o+:} false; then : 8784 $as_echo_n "(cached) " >&6 8785else 8786 lt_cv_prog_compiler_c_o=no 8787 $RM -r conftest 2>/dev/null 8788 mkdir conftest 8789 cd conftest 8790 mkdir out 8791 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8792 8793 lt_compiler_flag="-o out/conftest2.$ac_objext" 8794 # Insert the option either (1) after the last *FLAGS variable, or 8795 # (2) before a word containing "conftest.", or (3) at the end. 8796 # Note that $ac_compile itself does not contain backslashes and begins 8797 # with a dollar sign (not a hyphen), so the echo should work correctly. 8798 lt_compile=`echo "$ac_compile" | $SED \ 8799 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8800 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8801 -e 's:$: $lt_compiler_flag:'` 8802 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8803 (eval "$lt_compile" 2>out/conftest.err) 8804 ac_status=$? 8805 cat out/conftest.err >&5 8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8807 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8808 then 8809 # The compiler can only warn and ignore the option if not recognized 8810 # So say no if there are warnings 8811 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8812 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8813 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8814 lt_cv_prog_compiler_c_o=yes 8815 fi 8816 fi 8817 chmod u+w . 2>&5 8818 $RM conftest* 8819 # SGI C++ compiler will create directory out/ii_files/ for 8820 # template instantiation 8821 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8822 $RM out/* && rmdir out 8823 cd .. 8824 $RM -r conftest 8825 $RM conftest* 8826 8827fi 8828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8829$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8830 8831 8832 8833 8834 8835 8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8837$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8838if ${lt_cv_prog_compiler_c_o+:} false; then : 8839 $as_echo_n "(cached) " >&6 8840else 8841 lt_cv_prog_compiler_c_o=no 8842 $RM -r conftest 2>/dev/null 8843 mkdir conftest 8844 cd conftest 8845 mkdir out 8846 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8847 8848 lt_compiler_flag="-o out/conftest2.$ac_objext" 8849 # Insert the option either (1) after the last *FLAGS variable, or 8850 # (2) before a word containing "conftest.", or (3) at the end. 8851 # Note that $ac_compile itself does not contain backslashes and begins 8852 # with a dollar sign (not a hyphen), so the echo should work correctly. 8853 lt_compile=`echo "$ac_compile" | $SED \ 8854 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8855 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8856 -e 's:$: $lt_compiler_flag:'` 8857 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8858 (eval "$lt_compile" 2>out/conftest.err) 8859 ac_status=$? 8860 cat out/conftest.err >&5 8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8862 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8863 then 8864 # The compiler can only warn and ignore the option if not recognized 8865 # So say no if there are warnings 8866 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8867 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8868 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8869 lt_cv_prog_compiler_c_o=yes 8870 fi 8871 fi 8872 chmod u+w . 2>&5 8873 $RM conftest* 8874 # SGI C++ compiler will create directory out/ii_files/ for 8875 # template instantiation 8876 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8877 $RM out/* && rmdir out 8878 cd .. 8879 $RM -r conftest 8880 $RM conftest* 8881 8882fi 8883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8884$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8885 8886 8887 8888 8889hard_links=nottested 8890if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 8891 # do not overwrite the value of need_locks provided by the user 8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8893$as_echo_n "checking if we can lock with hard links... " >&6; } 8894 hard_links=yes 8895 $RM conftest* 8896 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8897 touch conftest.a 8898 ln conftest.a conftest.b 2>&5 || hard_links=no 8899 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8901$as_echo "$hard_links" >&6; } 8902 if test no = "$hard_links"; then 8903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 8904$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 8905 need_locks=warn 8906 fi 8907else 8908 need_locks=no 8909fi 8910 8911 8912 8913 8914 8915 8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8917$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8918 8919 runpath_var= 8920 allow_undefined_flag= 8921 always_export_symbols=no 8922 archive_cmds= 8923 archive_expsym_cmds= 8924 compiler_needs_object=no 8925 enable_shared_with_static_runtimes=no 8926 export_dynamic_flag_spec= 8927 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8928 hardcode_automatic=no 8929 hardcode_direct=no 8930 hardcode_direct_absolute=no 8931 hardcode_libdir_flag_spec= 8932 hardcode_libdir_separator= 8933 hardcode_minus_L=no 8934 hardcode_shlibpath_var=unsupported 8935 inherit_rpath=no 8936 link_all_deplibs=unknown 8937 module_cmds= 8938 module_expsym_cmds= 8939 old_archive_from_new_cmds= 8940 old_archive_from_expsyms_cmds= 8941 thread_safe_flag_spec= 8942 whole_archive_flag_spec= 8943 # include_expsyms should be a list of space-separated symbols to be *always* 8944 # included in the symbol list 8945 include_expsyms= 8946 # exclude_expsyms can be an extended regexp of symbols to exclude 8947 # it will be wrapped by ' (' and ')$', so one must not match beginning or 8948 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 8949 # as well as any symbol that contains 'd'. 8950 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8951 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8952 # platforms (ab)use it in PIC code, but their linkers get confused if 8953 # the symbol is explicitly referenced. Since portable code cannot 8954 # rely on this symbol name, it's probably fine to never include it in 8955 # preloaded symbol tables. 8956 # Exclude shared library initialization/finalization symbols. 8957 extract_expsyms_cmds= 8958 8959 case $host_os in 8960 cygwin* | mingw* | pw32* | cegcc*) 8961 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8962 # When not using gcc, we currently assume that we are using 8963 # Microsoft Visual C++. 8964 if test yes != "$GCC"; then 8965 with_gnu_ld=no 8966 fi 8967 ;; 8968 interix*) 8969 # we just hope/assume this is gcc and not c89 (= MSVC++) 8970 with_gnu_ld=yes 8971 ;; 8972 openbsd* | bitrig*) 8973 with_gnu_ld=no 8974 ;; 8975 esac 8976 8977 ld_shlibs=yes 8978 8979 # On some targets, GNU ld is compatible enough with the native linker 8980 # that we're better off using the native interface for both. 8981 lt_use_gnu_ld_interface=no 8982 if test yes = "$with_gnu_ld"; then 8983 case $host_os in 8984 aix*) 8985 # The AIX port of GNU ld has always aspired to compatibility 8986 # with the native linker. However, as the warning in the GNU ld 8987 # block says, versions before 2.19.5* couldn't really create working 8988 # shared libraries, regardless of the interface used. 8989 case `$LD -v 2>&1` in 8990 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8991 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8992 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8993 *) 8994 lt_use_gnu_ld_interface=yes 8995 ;; 8996 esac 8997 ;; 8998 *) 8999 lt_use_gnu_ld_interface=yes 9000 ;; 9001 esac 9002 fi 9003 9004 if test yes = "$lt_use_gnu_ld_interface"; then 9005 # If archive_cmds runs LD, not CC, wlarc should be empty 9006 wlarc='$wl' 9007 9008 # Set some defaults for GNU ld with shared library support. These 9009 # are reset later if shared libraries are not supported. Putting them 9010 # here allows them to be overridden if necessary. 9011 runpath_var=LD_RUN_PATH 9012 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9013 export_dynamic_flag_spec='$wl--export-dynamic' 9014 # ancient GNU ld didn't support --whole-archive et. al. 9015 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9016 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9017 else 9018 whole_archive_flag_spec= 9019 fi 9020 supports_anon_versioning=no 9021 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9022 *GNU\ gold*) supports_anon_versioning=yes ;; 9023 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9024 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9025 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9026 *\ 2.11.*) ;; # other 2.11 versions 9027 *) supports_anon_versioning=yes ;; 9028 esac 9029 9030 # See if GNU ld supports shared libraries. 9031 case $host_os in 9032 aix[3-9]*) 9033 # On AIX/PPC, the GNU linker is very broken 9034 if test ia64 != "$host_cpu"; then 9035 ld_shlibs=no 9036 cat <<_LT_EOF 1>&2 9037 9038*** Warning: the GNU linker, at least up to release 2.19, is reported 9039*** to be unable to reliably create shared libraries on AIX. 9040*** Therefore, libtool is disabling shared libraries support. If you 9041*** really care for shared libraries, you may want to install binutils 9042*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9043*** You will then need to restart the configuration process. 9044 9045_LT_EOF 9046 fi 9047 ;; 9048 9049 amigaos*) 9050 case $host_cpu in 9051 powerpc) 9052 # see comment about AmigaOS4 .so support 9053 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9054 archive_expsym_cmds='' 9055 ;; 9056 m68k) 9057 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)' 9058 hardcode_libdir_flag_spec='-L$libdir' 9059 hardcode_minus_L=yes 9060 ;; 9061 esac 9062 ;; 9063 9064 beos*) 9065 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9066 allow_undefined_flag=unsupported 9067 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9068 # support --undefined. This deserves some investigation. FIXME 9069 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9070 else 9071 ld_shlibs=no 9072 fi 9073 ;; 9074 9075 cygwin* | mingw* | pw32* | cegcc*) 9076 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9077 # as there is no search path for DLLs. 9078 hardcode_libdir_flag_spec='-L$libdir' 9079 export_dynamic_flag_spec='$wl--export-all-symbols' 9080 allow_undefined_flag=unsupported 9081 always_export_symbols=no 9082 enable_shared_with_static_runtimes=yes 9083 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' 9084 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9085 9086 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9087 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9088 # If the export-symbols file already is a .def file, use it as 9089 # is; otherwise, prepend EXPORTS... 9090 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9091 cp $export_symbols $output_objdir/$soname.def; 9092 else 9093 echo EXPORTS > $output_objdir/$soname.def; 9094 cat $export_symbols >> $output_objdir/$soname.def; 9095 fi~ 9096 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9097 else 9098 ld_shlibs=no 9099 fi 9100 ;; 9101 9102 haiku*) 9103 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9104 link_all_deplibs=yes 9105 ;; 9106 9107 os2*) 9108 hardcode_libdir_flag_spec='-L$libdir' 9109 hardcode_minus_L=yes 9110 allow_undefined_flag=unsupported 9111 shrext_cmds=.dll 9112 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9113 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9114 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9115 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9116 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9117 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9118 emximp -o $lib $output_objdir/$libname.def' 9119 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9120 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9121 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9122 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9123 prefix_cmds="$SED"~ 9124 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9125 prefix_cmds="$prefix_cmds -e 1d"; 9126 fi~ 9127 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9128 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9129 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9130 emximp -o $lib $output_objdir/$libname.def' 9131 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9132 enable_shared_with_static_runtimes=yes 9133 ;; 9134 9135 interix[3-9]*) 9136 hardcode_direct=no 9137 hardcode_shlibpath_var=no 9138 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9139 export_dynamic_flag_spec='$wl-E' 9140 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9141 # Instead, shared libraries are loaded at an image base (0x10000000 by 9142 # default) and relocated if they conflict, which is a slow very memory 9143 # consuming and fragmenting process. To avoid this, we pick a random, 9144 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9145 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9146 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9147 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' 9148 ;; 9149 9150 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9151 tmp_diet=no 9152 if test linux-dietlibc = "$host_os"; then 9153 case $cc_basename in 9154 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9155 esac 9156 fi 9157 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9158 && test no = "$tmp_diet" 9159 then 9160 tmp_addflag=' $pic_flag' 9161 tmp_sharedflag='-shared' 9162 case $cc_basename,$host_cpu in 9163 pgcc*) # Portland Group C compiler 9164 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' 9165 tmp_addflag=' $pic_flag' 9166 ;; 9167 pgf77* | pgf90* | pgf95* | pgfortran*) 9168 # Portland Group f77 and f90 compilers 9169 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' 9170 tmp_addflag=' $pic_flag -Mnomain' ;; 9171 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9172 tmp_addflag=' -i_dynamic' ;; 9173 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9174 tmp_addflag=' -i_dynamic -nofor_main' ;; 9175 ifc* | ifort*) # Intel Fortran compiler 9176 tmp_addflag=' -nofor_main' ;; 9177 lf95*) # Lahey Fortran 8.1 9178 whole_archive_flag_spec= 9179 tmp_sharedflag='--shared' ;; 9180 nagfor*) # NAGFOR 5.3 9181 tmp_sharedflag='-Wl,-shared' ;; 9182 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9183 tmp_sharedflag='-qmkshrobj' 9184 tmp_addflag= ;; 9185 nvcc*) # Cuda Compiler Driver 2.2 9186 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' 9187 compiler_needs_object=yes 9188 ;; 9189 esac 9190 case `$CC -V 2>&1 | sed 5q` in 9191 *Sun\ C*) # Sun C 5.9 9192 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' 9193 compiler_needs_object=yes 9194 tmp_sharedflag='-G' ;; 9195 *Sun\ F*) # Sun Fortran 8.3 9196 tmp_sharedflag='-G' ;; 9197 esac 9198 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9199 9200 if test yes = "$supports_anon_versioning"; then 9201 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9202 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9203 echo "local: *; };" >> $output_objdir/$libname.ver~ 9204 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9205 fi 9206 9207 case $cc_basename in 9208 tcc*) 9209 export_dynamic_flag_spec='-rdynamic' 9210 ;; 9211 xlf* | bgf* | bgxlf* | mpixlf*) 9212 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9213 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9214 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9215 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9216 if test yes = "$supports_anon_versioning"; then 9217 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9218 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9219 echo "local: *; };" >> $output_objdir/$libname.ver~ 9220 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9221 fi 9222 ;; 9223 esac 9224 else 9225 ld_shlibs=no 9226 fi 9227 ;; 9228 9229 netbsd*) 9230 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9231 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9232 wlarc= 9233 else 9234 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9235 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9236 fi 9237 ;; 9238 9239 solaris*) 9240 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9241 ld_shlibs=no 9242 cat <<_LT_EOF 1>&2 9243 9244*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9245*** create shared libraries on Solaris systems. Therefore, libtool 9246*** is disabling shared libraries support. We urge you to upgrade GNU 9247*** binutils to release 2.9.1 or newer. Another option is to modify 9248*** your PATH or compiler configuration so that the native linker is 9249*** used, and then restart. 9250 9251_LT_EOF 9252 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9253 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9254 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9255 else 9256 ld_shlibs=no 9257 fi 9258 ;; 9259 9260 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9261 case `$LD -v 2>&1` in 9262 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9263 ld_shlibs=no 9264 cat <<_LT_EOF 1>&2 9265 9266*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9267*** reliably create shared libraries on SCO systems. Therefore, libtool 9268*** is disabling shared libraries support. We urge you to upgrade GNU 9269*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9270*** your PATH or compiler configuration so that the native linker is 9271*** used, and then restart. 9272 9273_LT_EOF 9274 ;; 9275 *) 9276 # For security reasons, it is highly recommended that you always 9277 # use absolute paths for naming shared libraries, and exclude the 9278 # DT_RUNPATH tag from executables and libraries. But doing so 9279 # requires that you compile everything twice, which is a pain. 9280 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9281 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9282 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9283 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9284 else 9285 ld_shlibs=no 9286 fi 9287 ;; 9288 esac 9289 ;; 9290 9291 sunos4*) 9292 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9293 wlarc= 9294 hardcode_direct=yes 9295 hardcode_shlibpath_var=no 9296 ;; 9297 9298 *) 9299 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9300 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9301 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9302 else 9303 ld_shlibs=no 9304 fi 9305 ;; 9306 esac 9307 9308 if test no = "$ld_shlibs"; then 9309 runpath_var= 9310 hardcode_libdir_flag_spec= 9311 export_dynamic_flag_spec= 9312 whole_archive_flag_spec= 9313 fi 9314 else 9315 # PORTME fill in a description of your system's linker (not GNU ld) 9316 case $host_os in 9317 aix3*) 9318 allow_undefined_flag=unsupported 9319 always_export_symbols=yes 9320 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' 9321 # Note: this linker hardcodes the directories in LIBPATH if there 9322 # are no directories specified by -L. 9323 hardcode_minus_L=yes 9324 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9325 # Neither direct hardcoding nor static linking is supported with a 9326 # broken collect2. 9327 hardcode_direct=unsupported 9328 fi 9329 ;; 9330 9331 aix[4-9]*) 9332 if test ia64 = "$host_cpu"; then 9333 # On IA64, the linker does run time linking by default, so we don't 9334 # have to do anything special. 9335 aix_use_runtimelinking=no 9336 exp_sym_flag='-Bexport' 9337 no_entry_flag= 9338 else 9339 # If we're using GNU nm, then we don't want the "-C" option. 9340 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9341 # Without the "-l" option, or with the "-B" option, AIX nm treats 9342 # weak defined symbols like other global defined symbols, whereas 9343 # GNU nm marks them as "W". 9344 # While the 'weak' keyword is ignored in the Export File, we need 9345 # it in the Import File for the 'aix-soname' feature, so we have 9346 # to replace the "-B" option with "-P" for AIX nm. 9347 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9348 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' 9349 else 9350 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' 9351 fi 9352 aix_use_runtimelinking=no 9353 9354 # Test if we are trying to use run time linking or normal 9355 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9356 # have runtime linking enabled, and use it for executables. 9357 # For shared libraries, we enable/disable runtime linking 9358 # depending on the kind of the shared library created - 9359 # when "with_aix_soname,aix_use_runtimelinking" is: 9360 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9361 # "aix,yes" lib.so shared, rtl:yes, for executables 9362 # lib.a static archive 9363 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9364 # lib.a(lib.so.V) shared, rtl:no, for executables 9365 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9366 # lib.a(lib.so.V) shared, rtl:no 9367 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9368 # lib.a static archive 9369 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9370 for ld_flag in $LDFLAGS; do 9371 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9372 aix_use_runtimelinking=yes 9373 break 9374 fi 9375 done 9376 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9377 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9378 # so we don't have lib.a shared libs to link our executables. 9379 # We have to force runtime linking in this case. 9380 aix_use_runtimelinking=yes 9381 LDFLAGS="$LDFLAGS -Wl,-brtl" 9382 fi 9383 ;; 9384 esac 9385 9386 exp_sym_flag='-bexport' 9387 no_entry_flag='-bnoentry' 9388 fi 9389 9390 # When large executables or shared objects are built, AIX ld can 9391 # have problems creating the table of contents. If linking a library 9392 # or program results in "error TOC overflow" add -mminimal-toc to 9393 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9394 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9395 9396 archive_cmds='' 9397 hardcode_direct=yes 9398 hardcode_direct_absolute=yes 9399 hardcode_libdir_separator=':' 9400 link_all_deplibs=yes 9401 file_list_spec='$wl-f,' 9402 case $with_aix_soname,$aix_use_runtimelinking in 9403 aix,*) ;; # traditional, no import file 9404 svr4,* | *,yes) # use import file 9405 # The Import File defines what to hardcode. 9406 hardcode_direct=no 9407 hardcode_direct_absolute=no 9408 ;; 9409 esac 9410 9411 if test yes = "$GCC"; then 9412 case $host_os in aix4.[012]|aix4.[012].*) 9413 # We only want to do this on AIX 4.2 and lower, the check 9414 # below for broken collect2 doesn't work under 4.3+ 9415 collect2name=`$CC -print-prog-name=collect2` 9416 if test -f "$collect2name" && 9417 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9418 then 9419 # We have reworked collect2 9420 : 9421 else 9422 # We have old collect2 9423 hardcode_direct=unsupported 9424 # It fails to find uninstalled libraries when the uninstalled 9425 # path is not listed in the libpath. Setting hardcode_minus_L 9426 # to unsupported forces relinking 9427 hardcode_minus_L=yes 9428 hardcode_libdir_flag_spec='-L$libdir' 9429 hardcode_libdir_separator= 9430 fi 9431 ;; 9432 esac 9433 shared_flag='-shared' 9434 if test yes = "$aix_use_runtimelinking"; then 9435 shared_flag="$shared_flag "'$wl-G' 9436 fi 9437 # Need to ensure runtime linking is disabled for the traditional 9438 # shared library, or the linker may eventually find shared libraries 9439 # /with/ Import File - we do not want to mix them. 9440 shared_flag_aix='-shared' 9441 shared_flag_svr4='-shared $wl-G' 9442 else 9443 # not using gcc 9444 if test ia64 = "$host_cpu"; then 9445 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9446 # chokes on -Wl,-G. The following line is correct: 9447 shared_flag='-G' 9448 else 9449 if test yes = "$aix_use_runtimelinking"; then 9450 shared_flag='$wl-G' 9451 else 9452 shared_flag='$wl-bM:SRE' 9453 fi 9454 shared_flag_aix='$wl-bM:SRE' 9455 shared_flag_svr4='$wl-G' 9456 fi 9457 fi 9458 9459 export_dynamic_flag_spec='$wl-bexpall' 9460 # It seems that -bexpall does not export symbols beginning with 9461 # underscore (_), so it is better to generate a list of symbols to export. 9462 always_export_symbols=yes 9463 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9464 # Warning - without using the other runtime loading flags (-brtl), 9465 # -berok will link without error, but may produce a broken library. 9466 allow_undefined_flag='-berok' 9467 # Determine the default libpath from the value encoded in an 9468 # empty executable. 9469 if test set = "${lt_cv_aix_libpath+set}"; then 9470 aix_libpath=$lt_cv_aix_libpath 9471else 9472 if ${lt_cv_aix_libpath_+:} false; then : 9473 $as_echo_n "(cached) " >&6 9474else 9475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9476/* end confdefs.h. */ 9477 9478int 9479main () 9480{ 9481 9482 ; 9483 return 0; 9484} 9485_ACEOF 9486if ac_fn_c_try_link "$LINENO"; then : 9487 9488 lt_aix_libpath_sed=' 9489 /Import File Strings/,/^$/ { 9490 /^0/ { 9491 s/^0 *\([^ ]*\) *$/\1/ 9492 p 9493 } 9494 }' 9495 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9496 # Check for a 64-bit object if we didn't find anything. 9497 if test -z "$lt_cv_aix_libpath_"; then 9498 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9499 fi 9500fi 9501rm -f core conftest.err conftest.$ac_objext \ 9502 conftest$ac_exeext conftest.$ac_ext 9503 if test -z "$lt_cv_aix_libpath_"; then 9504 lt_cv_aix_libpath_=/usr/lib:/lib 9505 fi 9506 9507fi 9508 9509 aix_libpath=$lt_cv_aix_libpath_ 9510fi 9511 9512 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9513 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 9514 else 9515 if test ia64 = "$host_cpu"; then 9516 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9517 allow_undefined_flag="-z nodefs" 9518 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" 9519 else 9520 # Determine the default libpath from the value encoded in an 9521 # empty executable. 9522 if test set = "${lt_cv_aix_libpath+set}"; then 9523 aix_libpath=$lt_cv_aix_libpath 9524else 9525 if ${lt_cv_aix_libpath_+:} false; then : 9526 $as_echo_n "(cached) " >&6 9527else 9528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9529/* end confdefs.h. */ 9530 9531int 9532main () 9533{ 9534 9535 ; 9536 return 0; 9537} 9538_ACEOF 9539if ac_fn_c_try_link "$LINENO"; then : 9540 9541 lt_aix_libpath_sed=' 9542 /Import File Strings/,/^$/ { 9543 /^0/ { 9544 s/^0 *\([^ ]*\) *$/\1/ 9545 p 9546 } 9547 }' 9548 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9549 # Check for a 64-bit object if we didn't find anything. 9550 if test -z "$lt_cv_aix_libpath_"; then 9551 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9552 fi 9553fi 9554rm -f core conftest.err conftest.$ac_objext \ 9555 conftest$ac_exeext conftest.$ac_ext 9556 if test -z "$lt_cv_aix_libpath_"; then 9557 lt_cv_aix_libpath_=/usr/lib:/lib 9558 fi 9559 9560fi 9561 9562 aix_libpath=$lt_cv_aix_libpath_ 9563fi 9564 9565 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9566 # Warning - without using the other run time loading flags, 9567 # -berok will link without error, but may produce a broken library. 9568 no_undefined_flag=' $wl-bernotok' 9569 allow_undefined_flag=' $wl-berok' 9570 if test yes = "$with_gnu_ld"; then 9571 # We only use this code for GNU lds that support --whole-archive. 9572 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9573 else 9574 # Exported symbols can be pulled into shared objects from archives 9575 whole_archive_flag_spec='$convenience' 9576 fi 9577 archive_cmds_need_lc=yes 9578 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9579 # -brtl affects multiple linker settings, -berok does not and is overridden later 9580 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9581 if test svr4 != "$with_aix_soname"; then 9582 # This is similar to how AIX traditionally builds its shared libraries. 9583 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' 9584 fi 9585 if test aix != "$with_aix_soname"; then 9586 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' 9587 else 9588 # used by -dlpreopen to get the symbols 9589 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9590 fi 9591 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9592 fi 9593 fi 9594 ;; 9595 9596 amigaos*) 9597 case $host_cpu in 9598 powerpc) 9599 # see comment about AmigaOS4 .so support 9600 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9601 archive_expsym_cmds='' 9602 ;; 9603 m68k) 9604 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)' 9605 hardcode_libdir_flag_spec='-L$libdir' 9606 hardcode_minus_L=yes 9607 ;; 9608 esac 9609 ;; 9610 9611 bsdi[45]*) 9612 export_dynamic_flag_spec=-rdynamic 9613 ;; 9614 9615 cygwin* | mingw* | pw32* | cegcc*) 9616 # When not using gcc, we currently assume that we are using 9617 # Microsoft Visual C++. 9618 # hardcode_libdir_flag_spec is actually meaningless, as there is 9619 # no search path for DLLs. 9620 case $cc_basename in 9621 cl*) 9622 # Native MSVC 9623 hardcode_libdir_flag_spec=' ' 9624 allow_undefined_flag=unsupported 9625 always_export_symbols=yes 9626 file_list_spec='@' 9627 # Tell ltmain to make .lib files, not .a files. 9628 libext=lib 9629 # Tell ltmain to make .dll files, not .so files. 9630 shrext_cmds=.dll 9631 # FIXME: Setting linknames here is a bad hack. 9632 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9633 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9634 cp "$export_symbols" "$output_objdir/$soname.def"; 9635 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9636 else 9637 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9638 fi~ 9639 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9640 linknames=' 9641 # The linker will not automatically build a static lib if we build a DLL. 9642 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9643 enable_shared_with_static_runtimes=yes 9644 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9645 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9646 # Don't use ranlib 9647 old_postinstall_cmds='chmod 644 $oldlib' 9648 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9649 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9650 case $lt_outputfile in 9651 *.exe|*.EXE) ;; 9652 *) 9653 lt_outputfile=$lt_outputfile.exe 9654 lt_tool_outputfile=$lt_tool_outputfile.exe 9655 ;; 9656 esac~ 9657 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9658 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9659 $RM "$lt_outputfile.manifest"; 9660 fi' 9661 ;; 9662 *) 9663 # Assume MSVC wrapper 9664 hardcode_libdir_flag_spec=' ' 9665 allow_undefined_flag=unsupported 9666 # Tell ltmain to make .lib files, not .a files. 9667 libext=lib 9668 # Tell ltmain to make .dll files, not .so files. 9669 shrext_cmds=.dll 9670 # FIXME: Setting linknames here is a bad hack. 9671 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9672 # The linker will automatically build a .lib file if we build a DLL. 9673 old_archive_from_new_cmds='true' 9674 # FIXME: Should let the user specify the lib program. 9675 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9676 enable_shared_with_static_runtimes=yes 9677 ;; 9678 esac 9679 ;; 9680 9681 darwin* | rhapsody*) 9682 9683 9684 archive_cmds_need_lc=no 9685 hardcode_direct=no 9686 hardcode_automatic=yes 9687 hardcode_shlibpath_var=unsupported 9688 if test yes = "$lt_cv_ld_force_load"; then 9689 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\"`' 9690 9691 else 9692 whole_archive_flag_spec='' 9693 fi 9694 link_all_deplibs=yes 9695 allow_undefined_flag=$_lt_dar_allow_undefined 9696 case $cc_basename in 9697 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9698 *) _lt_dar_can_shared=$GCC ;; 9699 esac 9700 if test yes = "$_lt_dar_can_shared"; then 9701 output_verbose_link_cmd=func_echo_all 9702 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9703 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9704 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" 9705 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" 9706 9707 else 9708 ld_shlibs=no 9709 fi 9710 9711 ;; 9712 9713 dgux*) 9714 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9715 hardcode_libdir_flag_spec='-L$libdir' 9716 hardcode_shlibpath_var=no 9717 ;; 9718 9719 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9720 # support. Future versions do this automatically, but an explicit c++rt0.o 9721 # does not break anything, and helps significantly (at the cost of a little 9722 # extra space). 9723 freebsd2.2*) 9724 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9725 hardcode_libdir_flag_spec='-R$libdir' 9726 hardcode_direct=yes 9727 hardcode_shlibpath_var=no 9728 ;; 9729 9730 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9731 freebsd2.*) 9732 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9733 hardcode_direct=yes 9734 hardcode_minus_L=yes 9735 hardcode_shlibpath_var=no 9736 ;; 9737 9738 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9739 freebsd* | dragonfly*) 9740 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9741 hardcode_libdir_flag_spec='-R$libdir' 9742 hardcode_direct=yes 9743 hardcode_shlibpath_var=no 9744 ;; 9745 9746 hpux9*) 9747 if test yes = "$GCC"; then 9748 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' 9749 else 9750 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' 9751 fi 9752 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9753 hardcode_libdir_separator=: 9754 hardcode_direct=yes 9755 9756 # hardcode_minus_L: Not really in the search PATH, 9757 # but as the default location of the library. 9758 hardcode_minus_L=yes 9759 export_dynamic_flag_spec='$wl-E' 9760 ;; 9761 9762 hpux10*) 9763 if test yes,no = "$GCC,$with_gnu_ld"; then 9764 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9765 else 9766 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9767 fi 9768 if test no = "$with_gnu_ld"; then 9769 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9770 hardcode_libdir_separator=: 9771 hardcode_direct=yes 9772 hardcode_direct_absolute=yes 9773 export_dynamic_flag_spec='$wl-E' 9774 # hardcode_minus_L: Not really in the search PATH, 9775 # but as the default location of the library. 9776 hardcode_minus_L=yes 9777 fi 9778 ;; 9779 9780 hpux11*) 9781 if test yes,no = "$GCC,$with_gnu_ld"; then 9782 case $host_cpu in 9783 hppa*64*) 9784 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9785 ;; 9786 ia64*) 9787 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9788 ;; 9789 *) 9790 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9791 ;; 9792 esac 9793 else 9794 case $host_cpu in 9795 hppa*64*) 9796 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9797 ;; 9798 ia64*) 9799 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9800 ;; 9801 *) 9802 9803 # Older versions of the 11.00 compiler do not understand -b yet 9804 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9806$as_echo_n "checking if $CC understands -b... " >&6; } 9807if ${lt_cv_prog_compiler__b+:} false; then : 9808 $as_echo_n "(cached) " >&6 9809else 9810 lt_cv_prog_compiler__b=no 9811 save_LDFLAGS=$LDFLAGS 9812 LDFLAGS="$LDFLAGS -b" 9813 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9814 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9815 # The linker can only warn and ignore the option if not recognized 9816 # So say no if there are warnings 9817 if test -s conftest.err; then 9818 # Append any errors to the config.log. 9819 cat conftest.err 1>&5 9820 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9821 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9822 if diff conftest.exp conftest.er2 >/dev/null; then 9823 lt_cv_prog_compiler__b=yes 9824 fi 9825 else 9826 lt_cv_prog_compiler__b=yes 9827 fi 9828 fi 9829 $RM -r conftest* 9830 LDFLAGS=$save_LDFLAGS 9831 9832fi 9833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9834$as_echo "$lt_cv_prog_compiler__b" >&6; } 9835 9836if test yes = "$lt_cv_prog_compiler__b"; then 9837 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9838else 9839 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9840fi 9841 9842 ;; 9843 esac 9844 fi 9845 if test no = "$with_gnu_ld"; then 9846 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9847 hardcode_libdir_separator=: 9848 9849 case $host_cpu in 9850 hppa*64*|ia64*) 9851 hardcode_direct=no 9852 hardcode_shlibpath_var=no 9853 ;; 9854 *) 9855 hardcode_direct=yes 9856 hardcode_direct_absolute=yes 9857 export_dynamic_flag_spec='$wl-E' 9858 9859 # hardcode_minus_L: Not really in the search PATH, 9860 # but as the default location of the library. 9861 hardcode_minus_L=yes 9862 ;; 9863 esac 9864 fi 9865 ;; 9866 9867 irix5* | irix6* | nonstopux*) 9868 if test yes = "$GCC"; then 9869 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' 9870 # Try to use the -exported_symbol ld option, if it does not 9871 # work, assume that -exports_file does not work either and 9872 # implicitly export all symbols. 9873 # This should be the same for all languages, so no per-tag cache variable. 9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9875$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9876if ${lt_cv_irix_exported_symbol+:} false; then : 9877 $as_echo_n "(cached) " >&6 9878else 9879 save_LDFLAGS=$LDFLAGS 9880 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 9881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9882/* end confdefs.h. */ 9883int foo (void) { return 0; } 9884_ACEOF 9885if ac_fn_c_try_link "$LINENO"; then : 9886 lt_cv_irix_exported_symbol=yes 9887else 9888 lt_cv_irix_exported_symbol=no 9889fi 9890rm -f core conftest.err conftest.$ac_objext \ 9891 conftest$ac_exeext conftest.$ac_ext 9892 LDFLAGS=$save_LDFLAGS 9893fi 9894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9895$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9896 if test yes = "$lt_cv_irix_exported_symbol"; then 9897 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' 9898 fi 9899 else 9900 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' 9901 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' 9902 fi 9903 archive_cmds_need_lc='no' 9904 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9905 hardcode_libdir_separator=: 9906 inherit_rpath=yes 9907 link_all_deplibs=yes 9908 ;; 9909 9910 linux*) 9911 case $cc_basename in 9912 tcc*) 9913 # Fabrice Bellard et al's Tiny C Compiler 9914 ld_shlibs=yes 9915 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9916 ;; 9917 esac 9918 ;; 9919 9920 netbsd*) 9921 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9922 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9923 else 9924 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9925 fi 9926 hardcode_libdir_flag_spec='-R$libdir' 9927 hardcode_direct=yes 9928 hardcode_shlibpath_var=no 9929 ;; 9930 9931 newsos6) 9932 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9933 hardcode_direct=yes 9934 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9935 hardcode_libdir_separator=: 9936 hardcode_shlibpath_var=no 9937 ;; 9938 9939 *nto* | *qnx*) 9940 ;; 9941 9942 openbsd* | bitrig*) 9943 if test -f /usr/libexec/ld.so; then 9944 hardcode_direct=yes 9945 hardcode_shlibpath_var=no 9946 hardcode_direct_absolute=yes 9947 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 9948 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9949 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 9950 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9951 export_dynamic_flag_spec='$wl-E' 9952 else 9953 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9954 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9955 fi 9956 else 9957 ld_shlibs=no 9958 fi 9959 ;; 9960 9961 os2*) 9962 hardcode_libdir_flag_spec='-L$libdir' 9963 hardcode_minus_L=yes 9964 allow_undefined_flag=unsupported 9965 shrext_cmds=.dll 9966 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9967 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9968 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9969 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9970 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9971 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9972 emximp -o $lib $output_objdir/$libname.def' 9973 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9974 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9975 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9976 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9977 prefix_cmds="$SED"~ 9978 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9979 prefix_cmds="$prefix_cmds -e 1d"; 9980 fi~ 9981 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9982 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9983 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9984 emximp -o $lib $output_objdir/$libname.def' 9985 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9986 enable_shared_with_static_runtimes=yes 9987 ;; 9988 9989 osf3*) 9990 if test yes = "$GCC"; then 9991 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 9992 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' 9993 else 9994 allow_undefined_flag=' -expect_unresolved \*' 9995 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' 9996 fi 9997 archive_cmds_need_lc='no' 9998 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9999 hardcode_libdir_separator=: 10000 ;; 10001 10002 osf4* | osf5*) # as osf3* with the addition of -msym flag 10003 if test yes = "$GCC"; then 10004 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10005 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' 10006 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10007 else 10008 allow_undefined_flag=' -expect_unresolved \*' 10009 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' 10010 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~ 10011 $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' 10012 10013 # Both c and cxx compiler support -rpath directly 10014 hardcode_libdir_flag_spec='-rpath $libdir' 10015 fi 10016 archive_cmds_need_lc='no' 10017 hardcode_libdir_separator=: 10018 ;; 10019 10020 solaris*) 10021 no_undefined_flag=' -z defs' 10022 if test yes = "$GCC"; then 10023 wlarc='$wl' 10024 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10025 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10026 $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' 10027 else 10028 case `$CC -V 2>&1` in 10029 *"Compilers 5.0"*) 10030 wlarc='' 10031 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10032 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10033 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10034 ;; 10035 *) 10036 wlarc='$wl' 10037 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10038 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10039 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10040 ;; 10041 esac 10042 fi 10043 hardcode_libdir_flag_spec='-R$libdir' 10044 hardcode_shlibpath_var=no 10045 case $host_os in 10046 solaris2.[0-5] | solaris2.[0-5].*) ;; 10047 *) 10048 # The compiler driver will combine and reorder linker options, 10049 # but understands '-z linker_flag'. GCC discards it without '$wl', 10050 # but is careful enough not to reorder. 10051 # Supported since Solaris 2.6 (maybe 2.5.1?) 10052 if test yes = "$GCC"; then 10053 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10054 else 10055 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10056 fi 10057 ;; 10058 esac 10059 link_all_deplibs=yes 10060 ;; 10061 10062 sunos4*) 10063 if test sequent = "$host_vendor"; then 10064 # Use $CC to link under sequent, because it throws in some extra .o 10065 # files that make .init and .fini sections work. 10066 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10067 else 10068 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10069 fi 10070 hardcode_libdir_flag_spec='-L$libdir' 10071 hardcode_direct=yes 10072 hardcode_minus_L=yes 10073 hardcode_shlibpath_var=no 10074 ;; 10075 10076 sysv4) 10077 case $host_vendor in 10078 sni) 10079 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10080 hardcode_direct=yes # is this really true??? 10081 ;; 10082 siemens) 10083 ## LD is ld it makes a PLAMLIB 10084 ## CC just makes a GrossModule. 10085 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10086 reload_cmds='$CC -r -o $output$reload_objs' 10087 hardcode_direct=no 10088 ;; 10089 motorola) 10090 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10091 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10092 ;; 10093 esac 10094 runpath_var='LD_RUN_PATH' 10095 hardcode_shlibpath_var=no 10096 ;; 10097 10098 sysv4.3*) 10099 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10100 hardcode_shlibpath_var=no 10101 export_dynamic_flag_spec='-Bexport' 10102 ;; 10103 10104 sysv4*MP*) 10105 if test -d /usr/nec; then 10106 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10107 hardcode_shlibpath_var=no 10108 runpath_var=LD_RUN_PATH 10109 hardcode_runpath_var=yes 10110 ld_shlibs=yes 10111 fi 10112 ;; 10113 10114 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10115 no_undefined_flag='$wl-z,text' 10116 archive_cmds_need_lc=no 10117 hardcode_shlibpath_var=no 10118 runpath_var='LD_RUN_PATH' 10119 10120 if test yes = "$GCC"; then 10121 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10122 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10123 else 10124 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10125 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10126 fi 10127 ;; 10128 10129 sysv5* | sco3.2v5* | sco5v6*) 10130 # Note: We CANNOT use -z defs as we might desire, because we do not 10131 # link with -lc, and that would cause any symbols used from libc to 10132 # always be unresolved, which means just about no library would 10133 # ever link correctly. If we're not using GNU ld we use -z text 10134 # though, which does catch some bad symbols but isn't as heavy-handed 10135 # as -z defs. 10136 no_undefined_flag='$wl-z,text' 10137 allow_undefined_flag='$wl-z,nodefs' 10138 archive_cmds_need_lc=no 10139 hardcode_shlibpath_var=no 10140 hardcode_libdir_flag_spec='$wl-R,$libdir' 10141 hardcode_libdir_separator=':' 10142 link_all_deplibs=yes 10143 export_dynamic_flag_spec='$wl-Bexport' 10144 runpath_var='LD_RUN_PATH' 10145 10146 if test yes = "$GCC"; then 10147 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10148 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10149 else 10150 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10151 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10152 fi 10153 ;; 10154 10155 uts4*) 10156 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10157 hardcode_libdir_flag_spec='-L$libdir' 10158 hardcode_shlibpath_var=no 10159 ;; 10160 10161 *) 10162 ld_shlibs=no 10163 ;; 10164 esac 10165 10166 if test sni = "$host_vendor"; then 10167 case $host in 10168 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10169 export_dynamic_flag_spec='$wl-Blargedynsym' 10170 ;; 10171 esac 10172 fi 10173 fi 10174 10175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10176$as_echo "$ld_shlibs" >&6; } 10177test no = "$ld_shlibs" && can_build_shared=no 10178 10179with_gnu_ld=$with_gnu_ld 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195# 10196# Do we need to explicitly link libc? 10197# 10198case "x$archive_cmds_need_lc" in 10199x|xyes) 10200 # Assume -lc should be added 10201 archive_cmds_need_lc=yes 10202 10203 if test yes,yes = "$GCC,$enable_shared"; then 10204 case $archive_cmds in 10205 *'~'*) 10206 # FIXME: we may have to deal with multi-command sequences. 10207 ;; 10208 '$CC '*) 10209 # Test whether the compiler implicitly links with -lc since on some 10210 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10211 # to ld, don't add -lc before -lgcc. 10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10213$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10214if ${lt_cv_archive_cmds_need_lc+:} false; then : 10215 $as_echo_n "(cached) " >&6 10216else 10217 $RM conftest* 10218 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10219 10220 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10221 (eval $ac_compile) 2>&5 10222 ac_status=$? 10223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10224 test $ac_status = 0; } 2>conftest.err; then 10225 soname=conftest 10226 lib=conftest 10227 libobjs=conftest.$ac_objext 10228 deplibs= 10229 wl=$lt_prog_compiler_wl 10230 pic_flag=$lt_prog_compiler_pic 10231 compiler_flags=-v 10232 linker_flags=-v 10233 verstring= 10234 output_objdir=. 10235 libname=conftest 10236 lt_save_allow_undefined_flag=$allow_undefined_flag 10237 allow_undefined_flag= 10238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10239 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10240 ac_status=$? 10241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10242 test $ac_status = 0; } 10243 then 10244 lt_cv_archive_cmds_need_lc=no 10245 else 10246 lt_cv_archive_cmds_need_lc=yes 10247 fi 10248 allow_undefined_flag=$lt_save_allow_undefined_flag 10249 else 10250 cat conftest.err 1>&5 10251 fi 10252 $RM conftest* 10253 10254fi 10255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10256$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10257 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10258 ;; 10259 esac 10260 fi 10261 ;; 10262esac 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 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10416$as_echo_n "checking dynamic linker characteristics... " >&6; } 10417 10418if test yes = "$GCC"; then 10419 case $host_os in 10420 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10421 *) lt_awk_arg='/^libraries:/' ;; 10422 esac 10423 case $host_os in 10424 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10425 *) lt_sed_strip_eq='s|=/|/|g' ;; 10426 esac 10427 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10428 case $lt_search_path_spec in 10429 *\;*) 10430 # if the path contains ";" then we assume it to be the separator 10431 # otherwise default to the standard path separator (i.e. ":") - it is 10432 # assumed that no part of a normal pathname contains ";" but that should 10433 # okay in the real world where ";" in dirpaths is itself problematic. 10434 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10435 ;; 10436 *) 10437 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10438 ;; 10439 esac 10440 # Ok, now we have the path, separated by spaces, we can step through it 10441 # and add multilib dir if necessary... 10442 lt_tmp_lt_search_path_spec= 10443 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10444 # ...but if some path component already ends with the multilib dir we assume 10445 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10446 case "$lt_multi_os_dir; $lt_search_path_spec " in 10447 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10448 lt_multi_os_dir= 10449 ;; 10450 esac 10451 for lt_sys_path in $lt_search_path_spec; do 10452 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10453 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10454 elif test -n "$lt_multi_os_dir"; then 10455 test -d "$lt_sys_path" && \ 10456 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10457 fi 10458 done 10459 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10460BEGIN {RS = " "; FS = "/|\n";} { 10461 lt_foo = ""; 10462 lt_count = 0; 10463 for (lt_i = NF; lt_i > 0; lt_i--) { 10464 if ($lt_i != "" && $lt_i != ".") { 10465 if ($lt_i == "..") { 10466 lt_count++; 10467 } else { 10468 if (lt_count == 0) { 10469 lt_foo = "/" $lt_i lt_foo; 10470 } else { 10471 lt_count--; 10472 } 10473 } 10474 } 10475 } 10476 if (lt_foo != "") { lt_freq[lt_foo]++; } 10477 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10478}'` 10479 # AWK program above erroneously prepends '/' to C:/dos/paths 10480 # for these hosts. 10481 case $host_os in 10482 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10483 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10484 esac 10485 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10486else 10487 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10488fi 10489library_names_spec= 10490libname_spec='lib$name' 10491soname_spec= 10492shrext_cmds=.so 10493postinstall_cmds= 10494postuninstall_cmds= 10495finish_cmds= 10496finish_eval= 10497shlibpath_var= 10498shlibpath_overrides_runpath=unknown 10499version_type=none 10500dynamic_linker="$host_os ld.so" 10501sys_lib_dlsearch_path_spec="/lib /usr/lib" 10502need_lib_prefix=unknown 10503hardcode_into_libs=no 10504 10505# when you set need_version to no, make sure it does not cause -set_version 10506# flags to be left without arguments 10507need_version=unknown 10508 10509 10510 10511case $host_os in 10512aix3*) 10513 version_type=linux # correct to gnu/linux during the next big refactor 10514 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10515 shlibpath_var=LIBPATH 10516 10517 # AIX 3 has no versioning support, so we append a major version to the name. 10518 soname_spec='$libname$release$shared_ext$major' 10519 ;; 10520 10521aix[4-9]*) 10522 version_type=linux # correct to gnu/linux during the next big refactor 10523 need_lib_prefix=no 10524 need_version=no 10525 hardcode_into_libs=yes 10526 if test ia64 = "$host_cpu"; then 10527 # AIX 5 supports IA64 10528 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10529 shlibpath_var=LD_LIBRARY_PATH 10530 else 10531 # With GCC up to 2.95.x, collect2 would create an import file 10532 # for dependence libraries. The import file would start with 10533 # the line '#! .'. This would cause the generated library to 10534 # depend on '.', always an invalid library. This was fixed in 10535 # development snapshots of GCC prior to 3.0. 10536 case $host_os in 10537 aix4 | aix4.[01] | aix4.[01].*) 10538 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10539 echo ' yes ' 10540 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10541 : 10542 else 10543 can_build_shared=no 10544 fi 10545 ;; 10546 esac 10547 # Using Import Files as archive members, it is possible to support 10548 # filename-based versioning of shared library archives on AIX. While 10549 # this would work for both with and without runtime linking, it will 10550 # prevent static linking of such archives. So we do filename-based 10551 # shared library versioning with .so extension only, which is used 10552 # when both runtime linking and shared linking is enabled. 10553 # Unfortunately, runtime linking may impact performance, so we do 10554 # not want this to be the default eventually. Also, we use the 10555 # versioned .so libs for executables only if there is the -brtl 10556 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10557 # To allow for filename-based versioning support, we need to create 10558 # libNAME.so.V as an archive file, containing: 10559 # *) an Import File, referring to the versioned filename of the 10560 # archive as well as the shared archive member, telling the 10561 # bitwidth (32 or 64) of that shared object, and providing the 10562 # list of exported symbols of that shared object, eventually 10563 # decorated with the 'weak' keyword 10564 # *) the shared object with the F_LOADONLY flag set, to really avoid 10565 # it being seen by the linker. 10566 # At run time we better use the real file rather than another symlink, 10567 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10568 10569 case $with_aix_soname,$aix_use_runtimelinking in 10570 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10571 # soname into executable. Probably we can add versioning support to 10572 # collect2, so additional links can be useful in future. 10573 aix,yes) # traditional libtool 10574 dynamic_linker='AIX unversionable lib.so' 10575 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10576 # instead of lib<name>.a to let people know that these are not 10577 # typical AIX shared libraries. 10578 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10579 ;; 10580 aix,no) # traditional AIX only 10581 dynamic_linker='AIX lib.a(lib.so.V)' 10582 # We preserve .a as extension for shared libraries through AIX4.2 10583 # and later when we are not doing run time linking. 10584 library_names_spec='$libname$release.a $libname.a' 10585 soname_spec='$libname$release$shared_ext$major' 10586 ;; 10587 svr4,*) # full svr4 only 10588 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10589 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10590 # We do not specify a path in Import Files, so LIBPATH fires. 10591 shlibpath_overrides_runpath=yes 10592 ;; 10593 *,yes) # both, prefer svr4 10594 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10595 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10596 # unpreferred sharedlib libNAME.a needs extra handling 10597 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"' 10598 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"' 10599 # We do not specify a path in Import Files, so LIBPATH fires. 10600 shlibpath_overrides_runpath=yes 10601 ;; 10602 *,no) # both, prefer aix 10603 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10604 library_names_spec='$libname$release.a $libname.a' 10605 soname_spec='$libname$release$shared_ext$major' 10606 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10607 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)' 10608 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"' 10609 ;; 10610 esac 10611 shlibpath_var=LIBPATH 10612 fi 10613 ;; 10614 10615amigaos*) 10616 case $host_cpu in 10617 powerpc) 10618 # Since July 2007 AmigaOS4 officially supports .so libraries. 10619 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10620 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10621 ;; 10622 m68k) 10623 library_names_spec='$libname.ixlibrary $libname.a' 10624 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10625 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' 10626 ;; 10627 esac 10628 ;; 10629 10630beos*) 10631 library_names_spec='$libname$shared_ext' 10632 dynamic_linker="$host_os ld.so" 10633 shlibpath_var=LIBRARY_PATH 10634 ;; 10635 10636bsdi[45]*) 10637 version_type=linux # correct to gnu/linux during the next big refactor 10638 need_version=no 10639 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10640 soname_spec='$libname$release$shared_ext$major' 10641 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10642 shlibpath_var=LD_LIBRARY_PATH 10643 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10644 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10645 # the default ld.so.conf also contains /usr/contrib/lib and 10646 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10647 # libtool to hard-code these into programs 10648 ;; 10649 10650cygwin* | mingw* | pw32* | cegcc*) 10651 version_type=windows 10652 shrext_cmds=.dll 10653 need_version=no 10654 need_lib_prefix=no 10655 10656 case $GCC,$cc_basename in 10657 yes,*) 10658 # gcc 10659 library_names_spec='$libname.dll.a' 10660 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10661 postinstall_cmds='base_file=`basename \$file`~ 10662 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10663 dldir=$destdir/`dirname \$dlpath`~ 10664 test -d \$dldir || mkdir -p \$dldir~ 10665 $install_prog $dir/$dlname \$dldir/$dlname~ 10666 chmod a+x \$dldir/$dlname~ 10667 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10668 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10669 fi' 10670 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10671 dlpath=$dir/\$dldll~ 10672 $RM \$dlpath' 10673 shlibpath_overrides_runpath=yes 10674 10675 case $host_os in 10676 cygwin*) 10677 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10678 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10679 10680 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10681 ;; 10682 mingw* | cegcc*) 10683 # MinGW DLLs use traditional 'lib' prefix 10684 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10685 ;; 10686 pw32*) 10687 # pw32 DLLs use 'pw' prefix rather than 'lib' 10688 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10689 ;; 10690 esac 10691 dynamic_linker='Win32 ld.exe' 10692 ;; 10693 10694 *,cl*) 10695 # Native MSVC 10696 libname_spec='$name' 10697 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10698 library_names_spec='$libname.dll.lib' 10699 10700 case $build_os in 10701 mingw*) 10702 sys_lib_search_path_spec= 10703 lt_save_ifs=$IFS 10704 IFS=';' 10705 for lt_path in $LIB 10706 do 10707 IFS=$lt_save_ifs 10708 # Let DOS variable expansion print the short 8.3 style file name. 10709 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10710 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10711 done 10712 IFS=$lt_save_ifs 10713 # Convert to MSYS style. 10714 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10715 ;; 10716 cygwin*) 10717 # Convert to unix form, then to dos form, then back to unix form 10718 # but this time dos style (no spaces!) so that the unix form looks 10719 # like /cygdrive/c/PROGRA~1:/cygdr... 10720 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10721 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10722 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10723 ;; 10724 *) 10725 sys_lib_search_path_spec=$LIB 10726 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10727 # It is most probably a Windows format PATH. 10728 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10729 else 10730 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10731 fi 10732 # FIXME: find the short name or the path components, as spaces are 10733 # common. (e.g. "Program Files" -> "PROGRA~1") 10734 ;; 10735 esac 10736 10737 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10738 postinstall_cmds='base_file=`basename \$file`~ 10739 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10740 dldir=$destdir/`dirname \$dlpath`~ 10741 test -d \$dldir || mkdir -p \$dldir~ 10742 $install_prog $dir/$dlname \$dldir/$dlname' 10743 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10744 dlpath=$dir/\$dldll~ 10745 $RM \$dlpath' 10746 shlibpath_overrides_runpath=yes 10747 dynamic_linker='Win32 link.exe' 10748 ;; 10749 10750 *) 10751 # Assume MSVC wrapper 10752 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10753 dynamic_linker='Win32 ld.exe' 10754 ;; 10755 esac 10756 # FIXME: first we should search . and the directory the executable is in 10757 shlibpath_var=PATH 10758 ;; 10759 10760darwin* | rhapsody*) 10761 dynamic_linker="$host_os dyld" 10762 version_type=darwin 10763 need_lib_prefix=no 10764 need_version=no 10765 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10766 soname_spec='$libname$release$major$shared_ext' 10767 shlibpath_overrides_runpath=yes 10768 shlibpath_var=DYLD_LIBRARY_PATH 10769 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10770 10771 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10772 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10773 ;; 10774 10775dgux*) 10776 version_type=linux # correct to gnu/linux during the next big refactor 10777 need_lib_prefix=no 10778 need_version=no 10779 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10780 soname_spec='$libname$release$shared_ext$major' 10781 shlibpath_var=LD_LIBRARY_PATH 10782 ;; 10783 10784freebsd* | dragonfly*) 10785 # DragonFly does not have aout. When/if they implement a new 10786 # versioning mechanism, adjust this. 10787 if test -x /usr/bin/objformat; then 10788 objformat=`/usr/bin/objformat` 10789 else 10790 case $host_os in 10791 freebsd[23].*) objformat=aout ;; 10792 *) objformat=elf ;; 10793 esac 10794 fi 10795 version_type=freebsd-$objformat 10796 case $version_type in 10797 freebsd-elf*) 10798 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10799 soname_spec='$libname$release$shared_ext$major' 10800 need_version=no 10801 need_lib_prefix=no 10802 ;; 10803 freebsd-*) 10804 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10805 need_version=yes 10806 ;; 10807 esac 10808 shlibpath_var=LD_LIBRARY_PATH 10809 case $host_os in 10810 freebsd2.*) 10811 shlibpath_overrides_runpath=yes 10812 ;; 10813 freebsd3.[01]* | freebsdelf3.[01]*) 10814 shlibpath_overrides_runpath=yes 10815 hardcode_into_libs=yes 10816 ;; 10817 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10818 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10819 shlibpath_overrides_runpath=no 10820 hardcode_into_libs=yes 10821 ;; 10822 *) # from 4.6 on, and DragonFly 10823 shlibpath_overrides_runpath=yes 10824 hardcode_into_libs=yes 10825 ;; 10826 esac 10827 ;; 10828 10829haiku*) 10830 version_type=linux # correct to gnu/linux during the next big refactor 10831 need_lib_prefix=no 10832 need_version=no 10833 dynamic_linker="$host_os runtime_loader" 10834 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10835 soname_spec='$libname$release$shared_ext$major' 10836 shlibpath_var=LIBRARY_PATH 10837 shlibpath_overrides_runpath=no 10838 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10839 hardcode_into_libs=yes 10840 ;; 10841 10842hpux9* | hpux10* | hpux11*) 10843 # Give a soname corresponding to the major version so that dld.sl refuses to 10844 # link against other versions. 10845 version_type=sunos 10846 need_lib_prefix=no 10847 need_version=no 10848 case $host_cpu in 10849 ia64*) 10850 shrext_cmds='.so' 10851 hardcode_into_libs=yes 10852 dynamic_linker="$host_os dld.so" 10853 shlibpath_var=LD_LIBRARY_PATH 10854 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10855 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10856 soname_spec='$libname$release$shared_ext$major' 10857 if test 32 = "$HPUX_IA64_MODE"; then 10858 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10859 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 10860 else 10861 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10862 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 10863 fi 10864 ;; 10865 hppa*64*) 10866 shrext_cmds='.sl' 10867 hardcode_into_libs=yes 10868 dynamic_linker="$host_os dld.sl" 10869 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10870 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10871 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10872 soname_spec='$libname$release$shared_ext$major' 10873 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10874 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10875 ;; 10876 *) 10877 shrext_cmds='.sl' 10878 dynamic_linker="$host_os dld.sl" 10879 shlibpath_var=SHLIB_PATH 10880 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10881 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10882 soname_spec='$libname$release$shared_ext$major' 10883 ;; 10884 esac 10885 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10886 postinstall_cmds='chmod 555 $lib' 10887 # or fails outright, so override atomically: 10888 install_override_mode=555 10889 ;; 10890 10891interix[3-9]*) 10892 version_type=linux # correct to gnu/linux during the next big refactor 10893 need_lib_prefix=no 10894 need_version=no 10895 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10896 soname_spec='$libname$release$shared_ext$major' 10897 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10898 shlibpath_var=LD_LIBRARY_PATH 10899 shlibpath_overrides_runpath=no 10900 hardcode_into_libs=yes 10901 ;; 10902 10903irix5* | irix6* | nonstopux*) 10904 case $host_os in 10905 nonstopux*) version_type=nonstopux ;; 10906 *) 10907 if test yes = "$lt_cv_prog_gnu_ld"; then 10908 version_type=linux # correct to gnu/linux during the next big refactor 10909 else 10910 version_type=irix 10911 fi ;; 10912 esac 10913 need_lib_prefix=no 10914 need_version=no 10915 soname_spec='$libname$release$shared_ext$major' 10916 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 10917 case $host_os in 10918 irix5* | nonstopux*) 10919 libsuff= shlibsuff= 10920 ;; 10921 *) 10922 case $LD in # libtool.m4 will add one of these switches to LD 10923 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10924 libsuff= shlibsuff= libmagic=32-bit;; 10925 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10926 libsuff=32 shlibsuff=N32 libmagic=N32;; 10927 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10928 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10929 *) libsuff= shlibsuff= libmagic=never-match;; 10930 esac 10931 ;; 10932 esac 10933 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10934 shlibpath_overrides_runpath=no 10935 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 10936 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 10937 hardcode_into_libs=yes 10938 ;; 10939 10940# No shared lib support for Linux oldld, aout, or coff. 10941linux*oldld* | linux*aout* | linux*coff*) 10942 dynamic_linker=no 10943 ;; 10944 10945linux*android*) 10946 version_type=none # Android doesn't support versioned libraries. 10947 need_lib_prefix=no 10948 need_version=no 10949 library_names_spec='$libname$release$shared_ext' 10950 soname_spec='$libname$release$shared_ext' 10951 finish_cmds= 10952 shlibpath_var=LD_LIBRARY_PATH 10953 shlibpath_overrides_runpath=yes 10954 10955 # This implies no fast_install, which is unacceptable. 10956 # Some rework will be needed to allow for fast_install 10957 # before this can be enabled. 10958 hardcode_into_libs=yes 10959 10960 dynamic_linker='Android linker' 10961 # Don't embed -rpath directories since the linker doesn't support them. 10962 hardcode_libdir_flag_spec='-L$libdir' 10963 ;; 10964 10965# This must be glibc/ELF. 10966linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10967 version_type=linux # correct to gnu/linux during the next big refactor 10968 need_lib_prefix=no 10969 need_version=no 10970 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10971 soname_spec='$libname$release$shared_ext$major' 10972 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10973 shlibpath_var=LD_LIBRARY_PATH 10974 shlibpath_overrides_runpath=no 10975 10976 # Some binutils ld are patched to set DT_RUNPATH 10977 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10978 $as_echo_n "(cached) " >&6 10979else 10980 lt_cv_shlibpath_overrides_runpath=no 10981 save_LDFLAGS=$LDFLAGS 10982 save_libdir=$libdir 10983 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10984 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10986/* end confdefs.h. */ 10987 10988int 10989main () 10990{ 10991 10992 ; 10993 return 0; 10994} 10995_ACEOF 10996if ac_fn_c_try_link "$LINENO"; then : 10997 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10998 lt_cv_shlibpath_overrides_runpath=yes 10999fi 11000fi 11001rm -f core conftest.err conftest.$ac_objext \ 11002 conftest$ac_exeext conftest.$ac_ext 11003 LDFLAGS=$save_LDFLAGS 11004 libdir=$save_libdir 11005 11006fi 11007 11008 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11009 11010 # This implies no fast_install, which is unacceptable. 11011 # Some rework will be needed to allow for fast_install 11012 # before this can be enabled. 11013 hardcode_into_libs=yes 11014 11015 # Ideally, we could use ldconfig to report *all* directores which are 11016 # searched for libraries, however this is still not possible. Aside from not 11017 # being certain /sbin/ldconfig is available, command 11018 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11019 # even though it is searched at run-time. Try to do the best guess by 11020 # appending ld.so.conf contents (and includes) to the search path. 11021 if test -f /etc/ld.so.conf; then 11022 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' ' '` 11023 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11024 fi 11025 11026 # We used to test for /lib/ld.so.1 and disable shared libraries on 11027 # powerpc, because MkLinux only supported shared libraries with the 11028 # GNU dynamic linker. Since this was broken with cross compilers, 11029 # most powerpc-linux boxes support dynamic linking these days and 11030 # people can always --disable-shared, the test was removed, and we 11031 # assume the GNU/Linux dynamic linker is in use. 11032 dynamic_linker='GNU/Linux ld.so' 11033 ;; 11034 11035netbsd*) 11036 version_type=sunos 11037 need_lib_prefix=no 11038 need_version=no 11039 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11040 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11041 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11042 dynamic_linker='NetBSD (a.out) ld.so' 11043 else 11044 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11045 soname_spec='$libname$release$shared_ext$major' 11046 dynamic_linker='NetBSD ld.elf_so' 11047 fi 11048 shlibpath_var=LD_LIBRARY_PATH 11049 shlibpath_overrides_runpath=yes 11050 hardcode_into_libs=yes 11051 ;; 11052 11053newsos6) 11054 version_type=linux # correct to gnu/linux during the next big refactor 11055 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11056 shlibpath_var=LD_LIBRARY_PATH 11057 shlibpath_overrides_runpath=yes 11058 ;; 11059 11060*nto* | *qnx*) 11061 version_type=qnx 11062 need_lib_prefix=no 11063 need_version=no 11064 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11065 soname_spec='$libname$release$shared_ext$major' 11066 shlibpath_var=LD_LIBRARY_PATH 11067 shlibpath_overrides_runpath=no 11068 hardcode_into_libs=yes 11069 dynamic_linker='ldqnx.so' 11070 ;; 11071 11072openbsd* | bitrig*) 11073 version_type=sunos 11074 sys_lib_dlsearch_path_spec=/usr/lib 11075 need_lib_prefix=no 11076 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11077 need_version=no 11078 else 11079 need_version=yes 11080 fi 11081 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11082 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11083 shlibpath_var=LD_LIBRARY_PATH 11084 shlibpath_overrides_runpath=yes 11085 ;; 11086 11087os2*) 11088 libname_spec='$name' 11089 version_type=windows 11090 shrext_cmds=.dll 11091 need_version=no 11092 need_lib_prefix=no 11093 # OS/2 can only load a DLL with a base name of 8 characters or less. 11094 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11095 v=$($ECHO $release$versuffix | tr -d .-); 11096 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11097 $ECHO $n$v`$shared_ext' 11098 library_names_spec='${libname}_dll.$libext' 11099 dynamic_linker='OS/2 ld.exe' 11100 shlibpath_var=BEGINLIBPATH 11101 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11102 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11103 postinstall_cmds='base_file=`basename \$file`~ 11104 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11105 dldir=$destdir/`dirname \$dlpath`~ 11106 test -d \$dldir || mkdir -p \$dldir~ 11107 $install_prog $dir/$dlname \$dldir/$dlname~ 11108 chmod a+x \$dldir/$dlname~ 11109 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11110 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11111 fi' 11112 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11113 dlpath=$dir/\$dldll~ 11114 $RM \$dlpath' 11115 ;; 11116 11117osf3* | osf4* | osf5*) 11118 version_type=osf 11119 need_lib_prefix=no 11120 need_version=no 11121 soname_spec='$libname$release$shared_ext$major' 11122 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11123 shlibpath_var=LD_LIBRARY_PATH 11124 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11125 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11126 ;; 11127 11128rdos*) 11129 dynamic_linker=no 11130 ;; 11131 11132solaris*) 11133 version_type=linux # correct to gnu/linux during the next big refactor 11134 need_lib_prefix=no 11135 need_version=no 11136 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11137 soname_spec='$libname$release$shared_ext$major' 11138 shlibpath_var=LD_LIBRARY_PATH 11139 shlibpath_overrides_runpath=yes 11140 hardcode_into_libs=yes 11141 # ldd complains unless libraries are executable 11142 postinstall_cmds='chmod +x $lib' 11143 ;; 11144 11145sunos4*) 11146 version_type=sunos 11147 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11148 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11149 shlibpath_var=LD_LIBRARY_PATH 11150 shlibpath_overrides_runpath=yes 11151 if test yes = "$with_gnu_ld"; then 11152 need_lib_prefix=no 11153 fi 11154 need_version=yes 11155 ;; 11156 11157sysv4 | sysv4.3*) 11158 version_type=linux # correct to gnu/linux during the next big refactor 11159 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11160 soname_spec='$libname$release$shared_ext$major' 11161 shlibpath_var=LD_LIBRARY_PATH 11162 case $host_vendor in 11163 sni) 11164 shlibpath_overrides_runpath=no 11165 need_lib_prefix=no 11166 runpath_var=LD_RUN_PATH 11167 ;; 11168 siemens) 11169 need_lib_prefix=no 11170 ;; 11171 motorola) 11172 need_lib_prefix=no 11173 need_version=no 11174 shlibpath_overrides_runpath=no 11175 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11176 ;; 11177 esac 11178 ;; 11179 11180sysv4*MP*) 11181 if test -d /usr/nec; then 11182 version_type=linux # correct to gnu/linux during the next big refactor 11183 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11184 soname_spec='$libname$shared_ext.$major' 11185 shlibpath_var=LD_LIBRARY_PATH 11186 fi 11187 ;; 11188 11189sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11190 version_type=sco 11191 need_lib_prefix=no 11192 need_version=no 11193 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11194 soname_spec='$libname$release$shared_ext$major' 11195 shlibpath_var=LD_LIBRARY_PATH 11196 shlibpath_overrides_runpath=yes 11197 hardcode_into_libs=yes 11198 if test yes = "$with_gnu_ld"; then 11199 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11200 else 11201 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11202 case $host_os in 11203 sco3.2v5*) 11204 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11205 ;; 11206 esac 11207 fi 11208 sys_lib_dlsearch_path_spec='/usr/lib' 11209 ;; 11210 11211tpf*) 11212 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11213 version_type=linux # correct to gnu/linux during the next big refactor 11214 need_lib_prefix=no 11215 need_version=no 11216 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11217 shlibpath_var=LD_LIBRARY_PATH 11218 shlibpath_overrides_runpath=no 11219 hardcode_into_libs=yes 11220 ;; 11221 11222uts4*) 11223 version_type=linux # correct to gnu/linux during the next big refactor 11224 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11225 soname_spec='$libname$release$shared_ext$major' 11226 shlibpath_var=LD_LIBRARY_PATH 11227 ;; 11228 11229*) 11230 dynamic_linker=no 11231 ;; 11232esac 11233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11234$as_echo "$dynamic_linker" >&6; } 11235test no = "$dynamic_linker" && can_build_shared=no 11236 11237variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11238if test yes = "$GCC"; then 11239 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11240fi 11241 11242if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11243 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11244fi 11245 11246if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11247 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11248fi 11249 11250# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11251configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11252 11253# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11254func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11255 11256# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11257configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 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 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11356$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11357hardcode_action= 11358if test -n "$hardcode_libdir_flag_spec" || 11359 test -n "$runpath_var" || 11360 test yes = "$hardcode_automatic"; then 11361 11362 # We can hardcode non-existent directories. 11363 if test no != "$hardcode_direct" && 11364 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11365 # have to relink, otherwise we might link with an installed library 11366 # when we should be linking with a yet-to-be-installed one 11367 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11368 test no != "$hardcode_minus_L"; then 11369 # Linking always hardcodes the temporary library directory. 11370 hardcode_action=relink 11371 else 11372 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11373 hardcode_action=immediate 11374 fi 11375else 11376 # We cannot hardcode anything, or else we can only hardcode existing 11377 # directories. 11378 hardcode_action=unsupported 11379fi 11380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11381$as_echo "$hardcode_action" >&6; } 11382 11383if test relink = "$hardcode_action" || 11384 test yes = "$inherit_rpath"; then 11385 # Fast installation is not supported 11386 enable_fast_install=no 11387elif test yes = "$shlibpath_overrides_runpath" || 11388 test no = "$enable_shared"; then 11389 # Fast installation is not necessary 11390 enable_fast_install=needless 11391fi 11392 11393 11394 11395 11396 11397 11398 if test yes != "$enable_dlopen"; then 11399 enable_dlopen=unknown 11400 enable_dlopen_self=unknown 11401 enable_dlopen_self_static=unknown 11402else 11403 lt_cv_dlopen=no 11404 lt_cv_dlopen_libs= 11405 11406 case $host_os in 11407 beos*) 11408 lt_cv_dlopen=load_add_on 11409 lt_cv_dlopen_libs= 11410 lt_cv_dlopen_self=yes 11411 ;; 11412 11413 mingw* | pw32* | cegcc*) 11414 lt_cv_dlopen=LoadLibrary 11415 lt_cv_dlopen_libs= 11416 ;; 11417 11418 cygwin*) 11419 lt_cv_dlopen=dlopen 11420 lt_cv_dlopen_libs= 11421 ;; 11422 11423 darwin*) 11424 # if libdl is installed we need to link against it 11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11426$as_echo_n "checking for dlopen in -ldl... " >&6; } 11427if ${ac_cv_lib_dl_dlopen+:} false; then : 11428 $as_echo_n "(cached) " >&6 11429else 11430 ac_check_lib_save_LIBS=$LIBS 11431LIBS="-ldl $LIBS" 11432cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11433/* end confdefs.h. */ 11434 11435/* Override any GCC internal prototype to avoid an error. 11436 Use char because int might match the return type of a GCC 11437 builtin and then its argument prototype would still apply. */ 11438#ifdef __cplusplus 11439extern "C" 11440#endif 11441char dlopen (); 11442int 11443main () 11444{ 11445return dlopen (); 11446 ; 11447 return 0; 11448} 11449_ACEOF 11450if ac_fn_c_try_link "$LINENO"; then : 11451 ac_cv_lib_dl_dlopen=yes 11452else 11453 ac_cv_lib_dl_dlopen=no 11454fi 11455rm -f core conftest.err conftest.$ac_objext \ 11456 conftest$ac_exeext conftest.$ac_ext 11457LIBS=$ac_check_lib_save_LIBS 11458fi 11459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11460$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11461if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11462 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11463else 11464 11465 lt_cv_dlopen=dyld 11466 lt_cv_dlopen_libs= 11467 lt_cv_dlopen_self=yes 11468 11469fi 11470 11471 ;; 11472 11473 tpf*) 11474 # Don't try to run any link tests for TPF. We know it's impossible 11475 # because TPF is a cross-compiler, and we know how we open DSOs. 11476 lt_cv_dlopen=dlopen 11477 lt_cv_dlopen_libs= 11478 lt_cv_dlopen_self=no 11479 ;; 11480 11481 *) 11482 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11483if test "x$ac_cv_func_shl_load" = xyes; then : 11484 lt_cv_dlopen=shl_load 11485else 11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11487$as_echo_n "checking for shl_load in -ldld... " >&6; } 11488if ${ac_cv_lib_dld_shl_load+:} false; then : 11489 $as_echo_n "(cached) " >&6 11490else 11491 ac_check_lib_save_LIBS=$LIBS 11492LIBS="-ldld $LIBS" 11493cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11494/* end confdefs.h. */ 11495 11496/* Override any GCC internal prototype to avoid an error. 11497 Use char because int might match the return type of a GCC 11498 builtin and then its argument prototype would still apply. */ 11499#ifdef __cplusplus 11500extern "C" 11501#endif 11502char shl_load (); 11503int 11504main () 11505{ 11506return shl_load (); 11507 ; 11508 return 0; 11509} 11510_ACEOF 11511if ac_fn_c_try_link "$LINENO"; then : 11512 ac_cv_lib_dld_shl_load=yes 11513else 11514 ac_cv_lib_dld_shl_load=no 11515fi 11516rm -f core conftest.err conftest.$ac_objext \ 11517 conftest$ac_exeext conftest.$ac_ext 11518LIBS=$ac_check_lib_save_LIBS 11519fi 11520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11521$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11522if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11523 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11524else 11525 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11526if test "x$ac_cv_func_dlopen" = xyes; then : 11527 lt_cv_dlopen=dlopen 11528else 11529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11530$as_echo_n "checking for dlopen in -ldl... " >&6; } 11531if ${ac_cv_lib_dl_dlopen+:} false; then : 11532 $as_echo_n "(cached) " >&6 11533else 11534 ac_check_lib_save_LIBS=$LIBS 11535LIBS="-ldl $LIBS" 11536cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11537/* end confdefs.h. */ 11538 11539/* Override any GCC internal prototype to avoid an error. 11540 Use char because int might match the return type of a GCC 11541 builtin and then its argument prototype would still apply. */ 11542#ifdef __cplusplus 11543extern "C" 11544#endif 11545char dlopen (); 11546int 11547main () 11548{ 11549return dlopen (); 11550 ; 11551 return 0; 11552} 11553_ACEOF 11554if ac_fn_c_try_link "$LINENO"; then : 11555 ac_cv_lib_dl_dlopen=yes 11556else 11557 ac_cv_lib_dl_dlopen=no 11558fi 11559rm -f core conftest.err conftest.$ac_objext \ 11560 conftest$ac_exeext conftest.$ac_ext 11561LIBS=$ac_check_lib_save_LIBS 11562fi 11563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11564$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11565if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11566 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11567else 11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11569$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11570if ${ac_cv_lib_svld_dlopen+:} false; then : 11571 $as_echo_n "(cached) " >&6 11572else 11573 ac_check_lib_save_LIBS=$LIBS 11574LIBS="-lsvld $LIBS" 11575cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11576/* end confdefs.h. */ 11577 11578/* Override any GCC internal prototype to avoid an error. 11579 Use char because int might match the return type of a GCC 11580 builtin and then its argument prototype would still apply. */ 11581#ifdef __cplusplus 11582extern "C" 11583#endif 11584char dlopen (); 11585int 11586main () 11587{ 11588return dlopen (); 11589 ; 11590 return 0; 11591} 11592_ACEOF 11593if ac_fn_c_try_link "$LINENO"; then : 11594 ac_cv_lib_svld_dlopen=yes 11595else 11596 ac_cv_lib_svld_dlopen=no 11597fi 11598rm -f core conftest.err conftest.$ac_objext \ 11599 conftest$ac_exeext conftest.$ac_ext 11600LIBS=$ac_check_lib_save_LIBS 11601fi 11602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11603$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11604if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11605 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11606else 11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11608$as_echo_n "checking for dld_link in -ldld... " >&6; } 11609if ${ac_cv_lib_dld_dld_link+:} false; then : 11610 $as_echo_n "(cached) " >&6 11611else 11612 ac_check_lib_save_LIBS=$LIBS 11613LIBS="-ldld $LIBS" 11614cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11615/* end confdefs.h. */ 11616 11617/* Override any GCC internal prototype to avoid an error. 11618 Use char because int might match the return type of a GCC 11619 builtin and then its argument prototype would still apply. */ 11620#ifdef __cplusplus 11621extern "C" 11622#endif 11623char dld_link (); 11624int 11625main () 11626{ 11627return dld_link (); 11628 ; 11629 return 0; 11630} 11631_ACEOF 11632if ac_fn_c_try_link "$LINENO"; then : 11633 ac_cv_lib_dld_dld_link=yes 11634else 11635 ac_cv_lib_dld_dld_link=no 11636fi 11637rm -f core conftest.err conftest.$ac_objext \ 11638 conftest$ac_exeext conftest.$ac_ext 11639LIBS=$ac_check_lib_save_LIBS 11640fi 11641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11642$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11643if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11644 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11645fi 11646 11647 11648fi 11649 11650 11651fi 11652 11653 11654fi 11655 11656 11657fi 11658 11659 11660fi 11661 11662 ;; 11663 esac 11664 11665 if test no = "$lt_cv_dlopen"; then 11666 enable_dlopen=no 11667 else 11668 enable_dlopen=yes 11669 fi 11670 11671 case $lt_cv_dlopen in 11672 dlopen) 11673 save_CPPFLAGS=$CPPFLAGS 11674 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11675 11676 save_LDFLAGS=$LDFLAGS 11677 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11678 11679 save_LIBS=$LIBS 11680 LIBS="$lt_cv_dlopen_libs $LIBS" 11681 11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11683$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11684if ${lt_cv_dlopen_self+:} false; then : 11685 $as_echo_n "(cached) " >&6 11686else 11687 if test yes = "$cross_compiling"; then : 11688 lt_cv_dlopen_self=cross 11689else 11690 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11691 lt_status=$lt_dlunknown 11692 cat > conftest.$ac_ext <<_LT_EOF 11693#line $LINENO "configure" 11694#include "confdefs.h" 11695 11696#if HAVE_DLFCN_H 11697#include <dlfcn.h> 11698#endif 11699 11700#include <stdio.h> 11701 11702#ifdef RTLD_GLOBAL 11703# define LT_DLGLOBAL RTLD_GLOBAL 11704#else 11705# ifdef DL_GLOBAL 11706# define LT_DLGLOBAL DL_GLOBAL 11707# else 11708# define LT_DLGLOBAL 0 11709# endif 11710#endif 11711 11712/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11713 find out it does not work in some platform. */ 11714#ifndef LT_DLLAZY_OR_NOW 11715# ifdef RTLD_LAZY 11716# define LT_DLLAZY_OR_NOW RTLD_LAZY 11717# else 11718# ifdef DL_LAZY 11719# define LT_DLLAZY_OR_NOW DL_LAZY 11720# else 11721# ifdef RTLD_NOW 11722# define LT_DLLAZY_OR_NOW RTLD_NOW 11723# else 11724# ifdef DL_NOW 11725# define LT_DLLAZY_OR_NOW DL_NOW 11726# else 11727# define LT_DLLAZY_OR_NOW 0 11728# endif 11729# endif 11730# endif 11731# endif 11732#endif 11733 11734/* When -fvisibility=hidden is used, assume the code has been annotated 11735 correspondingly for the symbols needed. */ 11736#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11737int fnord () __attribute__((visibility("default"))); 11738#endif 11739 11740int fnord () { return 42; } 11741int main () 11742{ 11743 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11744 int status = $lt_dlunknown; 11745 11746 if (self) 11747 { 11748 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11749 else 11750 { 11751 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11752 else puts (dlerror ()); 11753 } 11754 /* dlclose (self); */ 11755 } 11756 else 11757 puts (dlerror ()); 11758 11759 return status; 11760} 11761_LT_EOF 11762 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11763 (eval $ac_link) 2>&5 11764 ac_status=$? 11765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11766 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11767 (./conftest; exit; ) >&5 2>/dev/null 11768 lt_status=$? 11769 case x$lt_status in 11770 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11771 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11772 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11773 esac 11774 else : 11775 # compilation failed 11776 lt_cv_dlopen_self=no 11777 fi 11778fi 11779rm -fr conftest* 11780 11781 11782fi 11783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11784$as_echo "$lt_cv_dlopen_self" >&6; } 11785 11786 if test yes = "$lt_cv_dlopen_self"; then 11787 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11789$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11790if ${lt_cv_dlopen_self_static+:} false; then : 11791 $as_echo_n "(cached) " >&6 11792else 11793 if test yes = "$cross_compiling"; then : 11794 lt_cv_dlopen_self_static=cross 11795else 11796 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11797 lt_status=$lt_dlunknown 11798 cat > conftest.$ac_ext <<_LT_EOF 11799#line $LINENO "configure" 11800#include "confdefs.h" 11801 11802#if HAVE_DLFCN_H 11803#include <dlfcn.h> 11804#endif 11805 11806#include <stdio.h> 11807 11808#ifdef RTLD_GLOBAL 11809# define LT_DLGLOBAL RTLD_GLOBAL 11810#else 11811# ifdef DL_GLOBAL 11812# define LT_DLGLOBAL DL_GLOBAL 11813# else 11814# define LT_DLGLOBAL 0 11815# endif 11816#endif 11817 11818/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11819 find out it does not work in some platform. */ 11820#ifndef LT_DLLAZY_OR_NOW 11821# ifdef RTLD_LAZY 11822# define LT_DLLAZY_OR_NOW RTLD_LAZY 11823# else 11824# ifdef DL_LAZY 11825# define LT_DLLAZY_OR_NOW DL_LAZY 11826# else 11827# ifdef RTLD_NOW 11828# define LT_DLLAZY_OR_NOW RTLD_NOW 11829# else 11830# ifdef DL_NOW 11831# define LT_DLLAZY_OR_NOW DL_NOW 11832# else 11833# define LT_DLLAZY_OR_NOW 0 11834# endif 11835# endif 11836# endif 11837# endif 11838#endif 11839 11840/* When -fvisibility=hidden is used, assume the code has been annotated 11841 correspondingly for the symbols needed. */ 11842#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11843int fnord () __attribute__((visibility("default"))); 11844#endif 11845 11846int fnord () { return 42; } 11847int main () 11848{ 11849 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11850 int status = $lt_dlunknown; 11851 11852 if (self) 11853 { 11854 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11855 else 11856 { 11857 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11858 else puts (dlerror ()); 11859 } 11860 /* dlclose (self); */ 11861 } 11862 else 11863 puts (dlerror ()); 11864 11865 return status; 11866} 11867_LT_EOF 11868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11869 (eval $ac_link) 2>&5 11870 ac_status=$? 11871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11872 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11873 (./conftest; exit; ) >&5 2>/dev/null 11874 lt_status=$? 11875 case x$lt_status in 11876 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11877 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11878 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11879 esac 11880 else : 11881 # compilation failed 11882 lt_cv_dlopen_self_static=no 11883 fi 11884fi 11885rm -fr conftest* 11886 11887 11888fi 11889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11890$as_echo "$lt_cv_dlopen_self_static" >&6; } 11891 fi 11892 11893 CPPFLAGS=$save_CPPFLAGS 11894 LDFLAGS=$save_LDFLAGS 11895 LIBS=$save_LIBS 11896 ;; 11897 esac 11898 11899 case $lt_cv_dlopen_self in 11900 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11901 *) enable_dlopen_self=unknown ;; 11902 esac 11903 11904 case $lt_cv_dlopen_self_static in 11905 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11906 *) enable_dlopen_self_static=unknown ;; 11907 esac 11908fi 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926striplib= 11927old_striplib= 11928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11929$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11930if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11931 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11932 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11934$as_echo "yes" >&6; } 11935else 11936# FIXME - insert some real tests, host_os isn't really good enough 11937 case $host_os in 11938 darwin*) 11939 if test -n "$STRIP"; then 11940 striplib="$STRIP -x" 11941 old_striplib="$STRIP -S" 11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11943$as_echo "yes" >&6; } 11944 else 11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11946$as_echo "no" >&6; } 11947 fi 11948 ;; 11949 *) 11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11951$as_echo "no" >&6; } 11952 ;; 11953 esac 11954fi 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 # Report what library types will actually be built 11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11969$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11971$as_echo "$can_build_shared" >&6; } 11972 11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11974$as_echo_n "checking whether to build shared libraries... " >&6; } 11975 test no = "$can_build_shared" && enable_shared=no 11976 11977 # On AIX, shared libraries and static libraries use the same namespace, and 11978 # are all built from PIC. 11979 case $host_os in 11980 aix3*) 11981 test yes = "$enable_shared" && enable_static=no 11982 if test -n "$RANLIB"; then 11983 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11984 postinstall_cmds='$RANLIB $lib' 11985 fi 11986 ;; 11987 11988 aix[4-9]*) 11989 if test ia64 != "$host_cpu"; then 11990 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 11991 yes,aix,yes) ;; # shared object as lib.so file only 11992 yes,svr4,*) ;; # shared object as lib.so archive member only 11993 yes,*) enable_static=no ;; # shared object in lib.a archive as well 11994 esac 11995 fi 11996 ;; 11997 esac 11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11999$as_echo "$enable_shared" >&6; } 12000 12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12002$as_echo_n "checking whether to build static libraries... " >&6; } 12003 # Make sure either enable_shared or enable_static is yes. 12004 test yes = "$enable_shared" || enable_static=yes 12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12006$as_echo "$enable_static" >&6; } 12007 12008 12009 12010 12011fi 12012ac_ext=c 12013ac_cpp='$CPP $CPPFLAGS' 12014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12016ac_compiler_gnu=$ac_cv_c_compiler_gnu 12017 12018CC=$lt_save_CC 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 ac_config_commands="$ac_config_commands libtool" 12035 12036 12037 12038 12039# Only expand once: 12040 12041 12042 12043# Require X.Org macros 1.8 or later 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 12056$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 12057if ${ac_cv_prog_cc_c99+:} false; then : 12058 $as_echo_n "(cached) " >&6 12059else 12060 ac_cv_prog_cc_c99=no 12061ac_save_CC=$CC 12062cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12063/* end confdefs.h. */ 12064#include <stdarg.h> 12065#include <stdbool.h> 12066#include <stdlib.h> 12067#include <wchar.h> 12068#include <stdio.h> 12069 12070// Check varargs macros. These examples are taken from C99 6.10.3.5. 12071#define debug(...) fprintf (stderr, __VA_ARGS__) 12072#define showlist(...) puts (#__VA_ARGS__) 12073#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 12074static void 12075test_varargs_macros (void) 12076{ 12077 int x = 1234; 12078 int y = 5678; 12079 debug ("Flag"); 12080 debug ("X = %d\n", x); 12081 showlist (The first, second, and third items.); 12082 report (x>y, "x is %d but y is %d", x, y); 12083} 12084 12085// Check long long types. 12086#define BIG64 18446744073709551615ull 12087#define BIG32 4294967295ul 12088#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 12089#if !BIG_OK 12090 your preprocessor is broken; 12091#endif 12092#if BIG_OK 12093#else 12094 your preprocessor is broken; 12095#endif 12096static long long int bignum = -9223372036854775807LL; 12097static unsigned long long int ubignum = BIG64; 12098 12099struct incomplete_array 12100{ 12101 int datasize; 12102 double data[]; 12103}; 12104 12105struct named_init { 12106 int number; 12107 const wchar_t *name; 12108 double average; 12109}; 12110 12111typedef const char *ccp; 12112 12113static inline int 12114test_restrict (ccp restrict text) 12115{ 12116 // See if C++-style comments work. 12117 // Iterate through items via the restricted pointer. 12118 // Also check for declarations in for loops. 12119 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 12120 continue; 12121 return 0; 12122} 12123 12124// Check varargs and va_copy. 12125static void 12126test_varargs (const char *format, ...) 12127{ 12128 va_list args; 12129 va_start (args, format); 12130 va_list args_copy; 12131 va_copy (args_copy, args); 12132 12133 const char *str; 12134 int number; 12135 float fnumber; 12136 12137 while (*format) 12138 { 12139 switch (*format++) 12140 { 12141 case 's': // string 12142 str = va_arg (args_copy, const char *); 12143 break; 12144 case 'd': // int 12145 number = va_arg (args_copy, int); 12146 break; 12147 case 'f': // float 12148 fnumber = va_arg (args_copy, double); 12149 break; 12150 default: 12151 break; 12152 } 12153 } 12154 va_end (args_copy); 12155 va_end (args); 12156} 12157 12158int 12159main () 12160{ 12161 12162 // Check bool. 12163 _Bool success = false; 12164 12165 // Check restrict. 12166 if (test_restrict ("String literal") == 0) 12167 success = true; 12168 char *restrict newvar = "Another string"; 12169 12170 // Check varargs. 12171 test_varargs ("s, d' f .", "string", 65, 34.234); 12172 test_varargs_macros (); 12173 12174 // Check flexible array members. 12175 struct incomplete_array *ia = 12176 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 12177 ia->datasize = 10; 12178 for (int i = 0; i < ia->datasize; ++i) 12179 ia->data[i] = i * 1.234; 12180 12181 // Check named initializers. 12182 struct named_init ni = { 12183 .number = 34, 12184 .name = L"Test wide string", 12185 .average = 543.34343, 12186 }; 12187 12188 ni.number = 58; 12189 12190 int dynamic_array[ni.number]; 12191 dynamic_array[ni.number - 1] = 543; 12192 12193 // work around unused variable warnings 12194 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 12195 || dynamic_array[ni.number - 1] != 543); 12196 12197 ; 12198 return 0; 12199} 12200_ACEOF 12201for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 12202do 12203 CC="$ac_save_CC $ac_arg" 12204 if ac_fn_c_try_compile "$LINENO"; then : 12205 ac_cv_prog_cc_c99=$ac_arg 12206fi 12207rm -f core conftest.err conftest.$ac_objext 12208 test "x$ac_cv_prog_cc_c99" != "xno" && break 12209done 12210rm -f conftest.$ac_ext 12211CC=$ac_save_CC 12212 12213fi 12214# AC_CACHE_VAL 12215case "x$ac_cv_prog_cc_c99" in 12216 x) 12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12218$as_echo "none needed" >&6; } ;; 12219 xno) 12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12221$as_echo "unsupported" >&6; } ;; 12222 *) 12223 CC="$CC $ac_cv_prog_cc_c99" 12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 12225$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 12226esac 12227if test "x$ac_cv_prog_cc_c99" != xno; then : 12228 12229fi 12230 12231 12232 12233 12234 12235 12236ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 12237if test "x$ac_cv_have_decl___clang__" = xyes; then : 12238 CLANGCC="yes" 12239else 12240 CLANGCC="no" 12241fi 12242 12243ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 12244if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 12245 INTELCC="yes" 12246else 12247 INTELCC="no" 12248fi 12249 12250ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 12251if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 12252 SUNCC="yes" 12253else 12254 SUNCC="no" 12255fi 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12266 if test -n "$ac_tool_prefix"; then 12267 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12268set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12270$as_echo_n "checking for $ac_word... " >&6; } 12271if ${ac_cv_path_PKG_CONFIG+:} false; then : 12272 $as_echo_n "(cached) " >&6 12273else 12274 case $PKG_CONFIG in 12275 [\\/]* | ?:[\\/]*) 12276 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12277 ;; 12278 *) 12279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12280for as_dir in $PATH 12281do 12282 IFS=$as_save_IFS 12283 test -z "$as_dir" && as_dir=. 12284 for ac_exec_ext in '' $ac_executable_extensions; do 12285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12286 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12288 break 2 12289 fi 12290done 12291 done 12292IFS=$as_save_IFS 12293 12294 ;; 12295esac 12296fi 12297PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12298if test -n "$PKG_CONFIG"; then 12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12300$as_echo "$PKG_CONFIG" >&6; } 12301else 12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12303$as_echo "no" >&6; } 12304fi 12305 12306 12307fi 12308if test -z "$ac_cv_path_PKG_CONFIG"; then 12309 ac_pt_PKG_CONFIG=$PKG_CONFIG 12310 # Extract the first word of "pkg-config", so it can be a program name with args. 12311set dummy pkg-config; ac_word=$2 12312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12313$as_echo_n "checking for $ac_word... " >&6; } 12314if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 12315 $as_echo_n "(cached) " >&6 12316else 12317 case $ac_pt_PKG_CONFIG in 12318 [\\/]* | ?:[\\/]*) 12319 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12320 ;; 12321 *) 12322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12323for as_dir in $PATH 12324do 12325 IFS=$as_save_IFS 12326 test -z "$as_dir" && as_dir=. 12327 for ac_exec_ext in '' $ac_executable_extensions; do 12328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12329 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12331 break 2 12332 fi 12333done 12334 done 12335IFS=$as_save_IFS 12336 12337 ;; 12338esac 12339fi 12340ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12341if test -n "$ac_pt_PKG_CONFIG"; then 12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12343$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12344else 12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12346$as_echo "no" >&6; } 12347fi 12348 12349 if test "x$ac_pt_PKG_CONFIG" = x; then 12350 PKG_CONFIG="" 12351 else 12352 case $cross_compiling:$ac_tool_warned in 12353yes:) 12354{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12355$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12356ac_tool_warned=yes ;; 12357esac 12358 PKG_CONFIG=$ac_pt_PKG_CONFIG 12359 fi 12360else 12361 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12362fi 12363 12364fi 12365if test -n "$PKG_CONFIG"; then 12366 _pkg_min_version=0.9.0 12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12368$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12369 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12371$as_echo "yes" >&6; } 12372 else 12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12374$as_echo "no" >&6; } 12375 PKG_CONFIG="" 12376 fi 12377fi 12378 12379 12380 12381 12382 12383# Check whether --enable-selective-werror was given. 12384if test "${enable_selective_werror+set}" = set; then : 12385 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12386else 12387 SELECTIVE_WERROR=yes 12388fi 12389 12390 12391 12392 12393 12394# -v is too short to test reliably with XORG_TESTSET_CFLAG 12395if test "x$SUNCC" = "xyes"; then 12396 BASE_CFLAGS="-v" 12397else 12398 BASE_CFLAGS="" 12399fi 12400 12401# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12402 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415xorg_testset_save_CFLAGS="$CFLAGS" 12416 12417if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12420$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12421if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12422 $as_echo_n "(cached) " >&6 12423else 12424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12425/* end confdefs.h. */ 12426int i; 12427_ACEOF 12428if ac_fn_c_try_compile "$LINENO"; then : 12429 xorg_cv_cc_flag_unknown_warning_option=yes 12430else 12431 xorg_cv_cc_flag_unknown_warning_option=no 12432fi 12433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12434fi 12435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12436$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12437 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12438 CFLAGS="$xorg_testset_save_CFLAGS" 12439fi 12440 12441if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12444 fi 12445 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12447$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12448if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12449 $as_echo_n "(cached) " >&6 12450else 12451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12452/* end confdefs.h. */ 12453int i; 12454_ACEOF 12455if ac_fn_c_try_compile "$LINENO"; then : 12456 xorg_cv_cc_flag_unused_command_line_argument=yes 12457else 12458 xorg_cv_cc_flag_unused_command_line_argument=no 12459fi 12460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12461fi 12462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12463$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12464 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12465 CFLAGS="$xorg_testset_save_CFLAGS" 12466fi 12467 12468found="no" 12469 12470 if test $found = "no" ; then 12471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12472 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12473 fi 12474 12475 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12477 fi 12478 12479 CFLAGS="$CFLAGS -Wall" 12480 12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 12482$as_echo_n "checking if $CC supports -Wall... " >&6; } 12483 cacheid=xorg_cv_cc_flag__Wall 12484 if eval \${$cacheid+:} false; then : 12485 $as_echo_n "(cached) " >&6 12486else 12487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12488/* end confdefs.h. */ 12489int i; 12490int 12491main () 12492{ 12493 12494 ; 12495 return 0; 12496} 12497_ACEOF 12498if ac_fn_c_try_link "$LINENO"; then : 12499 eval $cacheid=yes 12500else 12501 eval $cacheid=no 12502fi 12503rm -f core conftest.err conftest.$ac_objext \ 12504 conftest$ac_exeext conftest.$ac_ext 12505fi 12506 12507 12508 CFLAGS="$xorg_testset_save_CFLAGS" 12509 12510 eval supported=\$$cacheid 12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12512$as_echo "$supported" >&6; } 12513 if test "$supported" = "yes" ; then 12514 BASE_CFLAGS="$BASE_CFLAGS -Wall" 12515 found="yes" 12516 fi 12517 fi 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533xorg_testset_save_CFLAGS="$CFLAGS" 12534 12535if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12538$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12539if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12540 $as_echo_n "(cached) " >&6 12541else 12542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12543/* end confdefs.h. */ 12544int i; 12545_ACEOF 12546if ac_fn_c_try_compile "$LINENO"; then : 12547 xorg_cv_cc_flag_unknown_warning_option=yes 12548else 12549 xorg_cv_cc_flag_unknown_warning_option=no 12550fi 12551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12552fi 12553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12554$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12555 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12556 CFLAGS="$xorg_testset_save_CFLAGS" 12557fi 12558 12559if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12560 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12561 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12562 fi 12563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12565$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12566if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12567 $as_echo_n "(cached) " >&6 12568else 12569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12570/* end confdefs.h. */ 12571int i; 12572_ACEOF 12573if ac_fn_c_try_compile "$LINENO"; then : 12574 xorg_cv_cc_flag_unused_command_line_argument=yes 12575else 12576 xorg_cv_cc_flag_unused_command_line_argument=no 12577fi 12578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12579fi 12580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12581$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12582 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12583 CFLAGS="$xorg_testset_save_CFLAGS" 12584fi 12585 12586found="no" 12587 12588 if test $found = "no" ; then 12589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12591 fi 12592 12593 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12594 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12595 fi 12596 12597 CFLAGS="$CFLAGS -Wpointer-arith" 12598 12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 12600$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 12601 cacheid=xorg_cv_cc_flag__Wpointer_arith 12602 if eval \${$cacheid+:} false; then : 12603 $as_echo_n "(cached) " >&6 12604else 12605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12606/* end confdefs.h. */ 12607int i; 12608int 12609main () 12610{ 12611 12612 ; 12613 return 0; 12614} 12615_ACEOF 12616if ac_fn_c_try_link "$LINENO"; then : 12617 eval $cacheid=yes 12618else 12619 eval $cacheid=no 12620fi 12621rm -f core conftest.err conftest.$ac_objext \ 12622 conftest$ac_exeext conftest.$ac_ext 12623fi 12624 12625 12626 CFLAGS="$xorg_testset_save_CFLAGS" 12627 12628 eval supported=\$$cacheid 12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12630$as_echo "$supported" >&6; } 12631 if test "$supported" = "yes" ; then 12632 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12633 found="yes" 12634 fi 12635 fi 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651xorg_testset_save_CFLAGS="$CFLAGS" 12652 12653if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12656$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12657if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12658 $as_echo_n "(cached) " >&6 12659else 12660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12661/* end confdefs.h. */ 12662int i; 12663_ACEOF 12664if ac_fn_c_try_compile "$LINENO"; then : 12665 xorg_cv_cc_flag_unknown_warning_option=yes 12666else 12667 xorg_cv_cc_flag_unknown_warning_option=no 12668fi 12669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12670fi 12671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12672$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12673 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12674 CFLAGS="$xorg_testset_save_CFLAGS" 12675fi 12676 12677if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12678 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12680 fi 12681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12683$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12684if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12685 $as_echo_n "(cached) " >&6 12686else 12687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12688/* end confdefs.h. */ 12689int i; 12690_ACEOF 12691if ac_fn_c_try_compile "$LINENO"; then : 12692 xorg_cv_cc_flag_unused_command_line_argument=yes 12693else 12694 xorg_cv_cc_flag_unused_command_line_argument=no 12695fi 12696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12697fi 12698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12699$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12700 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12701 CFLAGS="$xorg_testset_save_CFLAGS" 12702fi 12703 12704found="no" 12705 12706 if test $found = "no" ; then 12707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12709 fi 12710 12711 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12712 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12713 fi 12714 12715 CFLAGS="$CFLAGS -Wmissing-declarations" 12716 12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12718$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12719 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12720 if eval \${$cacheid+:} false; then : 12721 $as_echo_n "(cached) " >&6 12722else 12723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12724/* end confdefs.h. */ 12725int i; 12726int 12727main () 12728{ 12729 12730 ; 12731 return 0; 12732} 12733_ACEOF 12734if ac_fn_c_try_link "$LINENO"; then : 12735 eval $cacheid=yes 12736else 12737 eval $cacheid=no 12738fi 12739rm -f core conftest.err conftest.$ac_objext \ 12740 conftest$ac_exeext conftest.$ac_ext 12741fi 12742 12743 12744 CFLAGS="$xorg_testset_save_CFLAGS" 12745 12746 eval supported=\$$cacheid 12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12748$as_echo "$supported" >&6; } 12749 if test "$supported" = "yes" ; then 12750 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12751 found="yes" 12752 fi 12753 fi 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769xorg_testset_save_CFLAGS="$CFLAGS" 12770 12771if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12774$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12775if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12776 $as_echo_n "(cached) " >&6 12777else 12778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12779/* end confdefs.h. */ 12780int i; 12781_ACEOF 12782if ac_fn_c_try_compile "$LINENO"; then : 12783 xorg_cv_cc_flag_unknown_warning_option=yes 12784else 12785 xorg_cv_cc_flag_unknown_warning_option=no 12786fi 12787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12788fi 12789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12790$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12791 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12792 CFLAGS="$xorg_testset_save_CFLAGS" 12793fi 12794 12795if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12796 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12797 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12798 fi 12799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12801$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12802if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12803 $as_echo_n "(cached) " >&6 12804else 12805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12806/* end confdefs.h. */ 12807int i; 12808_ACEOF 12809if ac_fn_c_try_compile "$LINENO"; then : 12810 xorg_cv_cc_flag_unused_command_line_argument=yes 12811else 12812 xorg_cv_cc_flag_unused_command_line_argument=no 12813fi 12814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12815fi 12816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12817$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12818 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12819 CFLAGS="$xorg_testset_save_CFLAGS" 12820fi 12821 12822found="no" 12823 12824 if test $found = "no" ; then 12825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12827 fi 12828 12829 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12831 fi 12832 12833 CFLAGS="$CFLAGS -Wformat=2" 12834 12835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12836$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12837 cacheid=xorg_cv_cc_flag__Wformat_2 12838 if eval \${$cacheid+:} false; then : 12839 $as_echo_n "(cached) " >&6 12840else 12841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12842/* end confdefs.h. */ 12843int i; 12844int 12845main () 12846{ 12847 12848 ; 12849 return 0; 12850} 12851_ACEOF 12852if ac_fn_c_try_link "$LINENO"; then : 12853 eval $cacheid=yes 12854else 12855 eval $cacheid=no 12856fi 12857rm -f core conftest.err conftest.$ac_objext \ 12858 conftest$ac_exeext conftest.$ac_ext 12859fi 12860 12861 12862 CFLAGS="$xorg_testset_save_CFLAGS" 12863 12864 eval supported=\$$cacheid 12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12866$as_echo "$supported" >&6; } 12867 if test "$supported" = "yes" ; then 12868 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12869 found="yes" 12870 fi 12871 fi 12872 12873 if test $found = "no" ; then 12874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12875 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12876 fi 12877 12878 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12880 fi 12881 12882 CFLAGS="$CFLAGS -Wformat" 12883 12884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12885$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12886 cacheid=xorg_cv_cc_flag__Wformat 12887 if eval \${$cacheid+:} false; then : 12888 $as_echo_n "(cached) " >&6 12889else 12890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12891/* end confdefs.h. */ 12892int i; 12893int 12894main () 12895{ 12896 12897 ; 12898 return 0; 12899} 12900_ACEOF 12901if ac_fn_c_try_link "$LINENO"; then : 12902 eval $cacheid=yes 12903else 12904 eval $cacheid=no 12905fi 12906rm -f core conftest.err conftest.$ac_objext \ 12907 conftest$ac_exeext conftest.$ac_ext 12908fi 12909 12910 12911 CFLAGS="$xorg_testset_save_CFLAGS" 12912 12913 eval supported=\$$cacheid 12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12915$as_echo "$supported" >&6; } 12916 if test "$supported" = "yes" ; then 12917 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12918 found="yes" 12919 fi 12920 fi 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938xorg_testset_save_CFLAGS="$CFLAGS" 12939 12940if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12943$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12944if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12945 $as_echo_n "(cached) " >&6 12946else 12947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12948/* end confdefs.h. */ 12949int i; 12950_ACEOF 12951if ac_fn_c_try_compile "$LINENO"; then : 12952 xorg_cv_cc_flag_unknown_warning_option=yes 12953else 12954 xorg_cv_cc_flag_unknown_warning_option=no 12955fi 12956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12957fi 12958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12959$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12960 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12961 CFLAGS="$xorg_testset_save_CFLAGS" 12962fi 12963 12964if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12967 fi 12968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12970$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12971if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12972 $as_echo_n "(cached) " >&6 12973else 12974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12975/* end confdefs.h. */ 12976int i; 12977_ACEOF 12978if ac_fn_c_try_compile "$LINENO"; then : 12979 xorg_cv_cc_flag_unused_command_line_argument=yes 12980else 12981 xorg_cv_cc_flag_unused_command_line_argument=no 12982fi 12983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12984fi 12985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12986$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12987 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12988 CFLAGS="$xorg_testset_save_CFLAGS" 12989fi 12990 12991found="no" 12992 12993 if test $found = "no" ; then 12994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12995 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12996 fi 12997 12998 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13000 fi 13001 13002 CFLAGS="$CFLAGS -Wstrict-prototypes" 13003 13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 13005$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 13006 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 13007 if eval \${$cacheid+:} false; then : 13008 $as_echo_n "(cached) " >&6 13009else 13010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13011/* end confdefs.h. */ 13012int i; 13013int 13014main () 13015{ 13016 13017 ; 13018 return 0; 13019} 13020_ACEOF 13021if ac_fn_c_try_link "$LINENO"; then : 13022 eval $cacheid=yes 13023else 13024 eval $cacheid=no 13025fi 13026rm -f core conftest.err conftest.$ac_objext \ 13027 conftest$ac_exeext conftest.$ac_ext 13028fi 13029 13030 13031 CFLAGS="$xorg_testset_save_CFLAGS" 13032 13033 eval supported=\$$cacheid 13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13035$as_echo "$supported" >&6; } 13036 if test "$supported" = "yes" ; then 13037 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 13038 found="yes" 13039 fi 13040 fi 13041 13042 13043 13044 13045 13046 13047 13048 13049 13050 13051 13052 13053 13054 13055 13056xorg_testset_save_CFLAGS="$CFLAGS" 13057 13058if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13061$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13062if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13063 $as_echo_n "(cached) " >&6 13064else 13065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13066/* end confdefs.h. */ 13067int i; 13068_ACEOF 13069if ac_fn_c_try_compile "$LINENO"; then : 13070 xorg_cv_cc_flag_unknown_warning_option=yes 13071else 13072 xorg_cv_cc_flag_unknown_warning_option=no 13073fi 13074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13075fi 13076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13077$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13078 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13079 CFLAGS="$xorg_testset_save_CFLAGS" 13080fi 13081 13082if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13085 fi 13086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13088$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13089if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13090 $as_echo_n "(cached) " >&6 13091else 13092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13093/* end confdefs.h. */ 13094int i; 13095_ACEOF 13096if ac_fn_c_try_compile "$LINENO"; then : 13097 xorg_cv_cc_flag_unused_command_line_argument=yes 13098else 13099 xorg_cv_cc_flag_unused_command_line_argument=no 13100fi 13101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13102fi 13103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13104$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13105 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13106 CFLAGS="$xorg_testset_save_CFLAGS" 13107fi 13108 13109found="no" 13110 13111 if test $found = "no" ; then 13112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13114 fi 13115 13116 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13118 fi 13119 13120 CFLAGS="$CFLAGS -Wmissing-prototypes" 13121 13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13123$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 13124 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13125 if eval \${$cacheid+:} false; then : 13126 $as_echo_n "(cached) " >&6 13127else 13128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13129/* end confdefs.h. */ 13130int i; 13131int 13132main () 13133{ 13134 13135 ; 13136 return 0; 13137} 13138_ACEOF 13139if ac_fn_c_try_link "$LINENO"; then : 13140 eval $cacheid=yes 13141else 13142 eval $cacheid=no 13143fi 13144rm -f core conftest.err conftest.$ac_objext \ 13145 conftest$ac_exeext conftest.$ac_ext 13146fi 13147 13148 13149 CFLAGS="$xorg_testset_save_CFLAGS" 13150 13151 eval supported=\$$cacheid 13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13153$as_echo "$supported" >&6; } 13154 if test "$supported" = "yes" ; then 13155 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13156 found="yes" 13157 fi 13158 fi 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174xorg_testset_save_CFLAGS="$CFLAGS" 13175 13176if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13179$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13180if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13181 $as_echo_n "(cached) " >&6 13182else 13183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13184/* end confdefs.h. */ 13185int i; 13186_ACEOF 13187if ac_fn_c_try_compile "$LINENO"; then : 13188 xorg_cv_cc_flag_unknown_warning_option=yes 13189else 13190 xorg_cv_cc_flag_unknown_warning_option=no 13191fi 13192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13193fi 13194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13195$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13196 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13197 CFLAGS="$xorg_testset_save_CFLAGS" 13198fi 13199 13200if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13203 fi 13204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13206$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13207if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13208 $as_echo_n "(cached) " >&6 13209else 13210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13211/* end confdefs.h. */ 13212int i; 13213_ACEOF 13214if ac_fn_c_try_compile "$LINENO"; then : 13215 xorg_cv_cc_flag_unused_command_line_argument=yes 13216else 13217 xorg_cv_cc_flag_unused_command_line_argument=no 13218fi 13219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13220fi 13221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13222$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13223 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13224 CFLAGS="$xorg_testset_save_CFLAGS" 13225fi 13226 13227found="no" 13228 13229 if test $found = "no" ; then 13230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13232 fi 13233 13234 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13236 fi 13237 13238 CFLAGS="$CFLAGS -Wnested-externs" 13239 13240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13241$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 13242 cacheid=xorg_cv_cc_flag__Wnested_externs 13243 if eval \${$cacheid+:} false; then : 13244 $as_echo_n "(cached) " >&6 13245else 13246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13247/* end confdefs.h. */ 13248int i; 13249int 13250main () 13251{ 13252 13253 ; 13254 return 0; 13255} 13256_ACEOF 13257if ac_fn_c_try_link "$LINENO"; then : 13258 eval $cacheid=yes 13259else 13260 eval $cacheid=no 13261fi 13262rm -f core conftest.err conftest.$ac_objext \ 13263 conftest$ac_exeext conftest.$ac_ext 13264fi 13265 13266 13267 CFLAGS="$xorg_testset_save_CFLAGS" 13268 13269 eval supported=\$$cacheid 13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13271$as_echo "$supported" >&6; } 13272 if test "$supported" = "yes" ; then 13273 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 13274 found="yes" 13275 fi 13276 fi 13277 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292xorg_testset_save_CFLAGS="$CFLAGS" 13293 13294if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13297$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13298if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13299 $as_echo_n "(cached) " >&6 13300else 13301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13302/* end confdefs.h. */ 13303int i; 13304_ACEOF 13305if ac_fn_c_try_compile "$LINENO"; then : 13306 xorg_cv_cc_flag_unknown_warning_option=yes 13307else 13308 xorg_cv_cc_flag_unknown_warning_option=no 13309fi 13310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13311fi 13312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13313$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13314 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13315 CFLAGS="$xorg_testset_save_CFLAGS" 13316fi 13317 13318if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13321 fi 13322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13324$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13325if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13326 $as_echo_n "(cached) " >&6 13327else 13328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13329/* end confdefs.h. */ 13330int i; 13331_ACEOF 13332if ac_fn_c_try_compile "$LINENO"; then : 13333 xorg_cv_cc_flag_unused_command_line_argument=yes 13334else 13335 xorg_cv_cc_flag_unused_command_line_argument=no 13336fi 13337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13338fi 13339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13340$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13341 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13342 CFLAGS="$xorg_testset_save_CFLAGS" 13343fi 13344 13345found="no" 13346 13347 if test $found = "no" ; then 13348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13350 fi 13351 13352 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13354 fi 13355 13356 CFLAGS="$CFLAGS -Wbad-function-cast" 13357 13358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 13359$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 13360 cacheid=xorg_cv_cc_flag__Wbad_function_cast 13361 if eval \${$cacheid+:} false; then : 13362 $as_echo_n "(cached) " >&6 13363else 13364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13365/* end confdefs.h. */ 13366int i; 13367int 13368main () 13369{ 13370 13371 ; 13372 return 0; 13373} 13374_ACEOF 13375if ac_fn_c_try_link "$LINENO"; then : 13376 eval $cacheid=yes 13377else 13378 eval $cacheid=no 13379fi 13380rm -f core conftest.err conftest.$ac_objext \ 13381 conftest$ac_exeext conftest.$ac_ext 13382fi 13383 13384 13385 CFLAGS="$xorg_testset_save_CFLAGS" 13386 13387 eval supported=\$$cacheid 13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13389$as_echo "$supported" >&6; } 13390 if test "$supported" = "yes" ; then 13391 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 13392 found="yes" 13393 fi 13394 fi 13395 13396 13397 13398 13399 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410xorg_testset_save_CFLAGS="$CFLAGS" 13411 13412if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13415$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13416if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13417 $as_echo_n "(cached) " >&6 13418else 13419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13420/* end confdefs.h. */ 13421int i; 13422_ACEOF 13423if ac_fn_c_try_compile "$LINENO"; then : 13424 xorg_cv_cc_flag_unknown_warning_option=yes 13425else 13426 xorg_cv_cc_flag_unknown_warning_option=no 13427fi 13428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13429fi 13430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13431$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13432 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13433 CFLAGS="$xorg_testset_save_CFLAGS" 13434fi 13435 13436if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13439 fi 13440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13442$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13443if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13444 $as_echo_n "(cached) " >&6 13445else 13446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13447/* end confdefs.h. */ 13448int i; 13449_ACEOF 13450if ac_fn_c_try_compile "$LINENO"; then : 13451 xorg_cv_cc_flag_unused_command_line_argument=yes 13452else 13453 xorg_cv_cc_flag_unused_command_line_argument=no 13454fi 13455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13456fi 13457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13458$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13459 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13460 CFLAGS="$xorg_testset_save_CFLAGS" 13461fi 13462 13463found="no" 13464 13465 if test $found = "no" ; then 13466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13468 fi 13469 13470 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13472 fi 13473 13474 CFLAGS="$CFLAGS -Wold-style-definition" 13475 13476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 13477$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 13478 cacheid=xorg_cv_cc_flag__Wold_style_definition 13479 if eval \${$cacheid+:} false; then : 13480 $as_echo_n "(cached) " >&6 13481else 13482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13483/* end confdefs.h. */ 13484int i; 13485int 13486main () 13487{ 13488 13489 ; 13490 return 0; 13491} 13492_ACEOF 13493if ac_fn_c_try_link "$LINENO"; then : 13494 eval $cacheid=yes 13495else 13496 eval $cacheid=no 13497fi 13498rm -f core conftest.err conftest.$ac_objext \ 13499 conftest$ac_exeext conftest.$ac_ext 13500fi 13501 13502 13503 CFLAGS="$xorg_testset_save_CFLAGS" 13504 13505 eval supported=\$$cacheid 13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13507$as_echo "$supported" >&6; } 13508 if test "$supported" = "yes" ; then 13509 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 13510 found="yes" 13511 fi 13512 fi 13513 13514 if test $found = "no" ; then 13515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13517 fi 13518 13519 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13521 fi 13522 13523 CFLAGS="$CFLAGS -fd" 13524 13525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 13526$as_echo_n "checking if $CC supports -fd... " >&6; } 13527 cacheid=xorg_cv_cc_flag__fd 13528 if eval \${$cacheid+:} false; then : 13529 $as_echo_n "(cached) " >&6 13530else 13531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13532/* end confdefs.h. */ 13533int i; 13534int 13535main () 13536{ 13537 13538 ; 13539 return 0; 13540} 13541_ACEOF 13542if ac_fn_c_try_link "$LINENO"; then : 13543 eval $cacheid=yes 13544else 13545 eval $cacheid=no 13546fi 13547rm -f core conftest.err conftest.$ac_objext \ 13548 conftest$ac_exeext conftest.$ac_ext 13549fi 13550 13551 13552 CFLAGS="$xorg_testset_save_CFLAGS" 13553 13554 eval supported=\$$cacheid 13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13556$as_echo "$supported" >&6; } 13557 if test "$supported" = "yes" ; then 13558 BASE_CFLAGS="$BASE_CFLAGS -fd" 13559 found="yes" 13560 fi 13561 fi 13562 13563 13564 13565 13566 13567 13568 13569 13570 13571 13572 13573 13574 13575 13576 13577xorg_testset_save_CFLAGS="$CFLAGS" 13578 13579if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13580 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13582$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13583if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13584 $as_echo_n "(cached) " >&6 13585else 13586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13587/* end confdefs.h. */ 13588int i; 13589_ACEOF 13590if ac_fn_c_try_compile "$LINENO"; then : 13591 xorg_cv_cc_flag_unknown_warning_option=yes 13592else 13593 xorg_cv_cc_flag_unknown_warning_option=no 13594fi 13595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13596fi 13597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13598$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13599 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13600 CFLAGS="$xorg_testset_save_CFLAGS" 13601fi 13602 13603if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13606 fi 13607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13609$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13610if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13611 $as_echo_n "(cached) " >&6 13612else 13613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13614/* end confdefs.h. */ 13615int i; 13616_ACEOF 13617if ac_fn_c_try_compile "$LINENO"; then : 13618 xorg_cv_cc_flag_unused_command_line_argument=yes 13619else 13620 xorg_cv_cc_flag_unused_command_line_argument=no 13621fi 13622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13623fi 13624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13625$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13626 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13627 CFLAGS="$xorg_testset_save_CFLAGS" 13628fi 13629 13630found="no" 13631 13632 if test $found = "no" ; then 13633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13634 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13635 fi 13636 13637 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13639 fi 13640 13641 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 13642 13643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 13644$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 13645 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 13646 if eval \${$cacheid+:} false; then : 13647 $as_echo_n "(cached) " >&6 13648else 13649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13650/* end confdefs.h. */ 13651int i; 13652int 13653main () 13654{ 13655 13656 ; 13657 return 0; 13658} 13659_ACEOF 13660if ac_fn_c_try_link "$LINENO"; then : 13661 eval $cacheid=yes 13662else 13663 eval $cacheid=no 13664fi 13665rm -f core conftest.err conftest.$ac_objext \ 13666 conftest$ac_exeext conftest.$ac_ext 13667fi 13668 13669 13670 CFLAGS="$xorg_testset_save_CFLAGS" 13671 13672 eval supported=\$$cacheid 13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13674$as_echo "$supported" >&6; } 13675 if test "$supported" = "yes" ; then 13676 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13677 found="yes" 13678 fi 13679 fi 13680 13681 13682 13683 13684 13685# This chunk adds additional warnings that could catch undesired effects. 13686 13687 13688 13689 13690 13691 13692 13693 13694 13695 13696 13697 13698 13699xorg_testset_save_CFLAGS="$CFLAGS" 13700 13701if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13704$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13705if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13706 $as_echo_n "(cached) " >&6 13707else 13708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13709/* end confdefs.h. */ 13710int i; 13711_ACEOF 13712if ac_fn_c_try_compile "$LINENO"; then : 13713 xorg_cv_cc_flag_unknown_warning_option=yes 13714else 13715 xorg_cv_cc_flag_unknown_warning_option=no 13716fi 13717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13718fi 13719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13720$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13721 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13722 CFLAGS="$xorg_testset_save_CFLAGS" 13723fi 13724 13725if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13728 fi 13729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13731$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13732if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13733 $as_echo_n "(cached) " >&6 13734else 13735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13736/* end confdefs.h. */ 13737int i; 13738_ACEOF 13739if ac_fn_c_try_compile "$LINENO"; then : 13740 xorg_cv_cc_flag_unused_command_line_argument=yes 13741else 13742 xorg_cv_cc_flag_unused_command_line_argument=no 13743fi 13744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13745fi 13746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13747$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13748 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13749 CFLAGS="$xorg_testset_save_CFLAGS" 13750fi 13751 13752found="no" 13753 13754 if test $found = "no" ; then 13755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13757 fi 13758 13759 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13761 fi 13762 13763 CFLAGS="$CFLAGS -Wunused" 13764 13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13766$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13767 cacheid=xorg_cv_cc_flag__Wunused 13768 if eval \${$cacheid+:} false; then : 13769 $as_echo_n "(cached) " >&6 13770else 13771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13772/* end confdefs.h. */ 13773int i; 13774int 13775main () 13776{ 13777 13778 ; 13779 return 0; 13780} 13781_ACEOF 13782if ac_fn_c_try_link "$LINENO"; then : 13783 eval $cacheid=yes 13784else 13785 eval $cacheid=no 13786fi 13787rm -f core conftest.err conftest.$ac_objext \ 13788 conftest$ac_exeext conftest.$ac_ext 13789fi 13790 13791 13792 CFLAGS="$xorg_testset_save_CFLAGS" 13793 13794 eval supported=\$$cacheid 13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13796$as_echo "$supported" >&6; } 13797 if test "$supported" = "yes" ; then 13798 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13799 found="yes" 13800 fi 13801 fi 13802 13803 13804 13805 13806 13807 13808 13809 13810 13811 13812 13813 13814 13815 13816 13817xorg_testset_save_CFLAGS="$CFLAGS" 13818 13819if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13822$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13823if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13824 $as_echo_n "(cached) " >&6 13825else 13826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13827/* end confdefs.h. */ 13828int i; 13829_ACEOF 13830if ac_fn_c_try_compile "$LINENO"; then : 13831 xorg_cv_cc_flag_unknown_warning_option=yes 13832else 13833 xorg_cv_cc_flag_unknown_warning_option=no 13834fi 13835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13836fi 13837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13838$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13839 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13840 CFLAGS="$xorg_testset_save_CFLAGS" 13841fi 13842 13843if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13846 fi 13847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13849$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13850if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13851 $as_echo_n "(cached) " >&6 13852else 13853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13854/* end confdefs.h. */ 13855int i; 13856_ACEOF 13857if ac_fn_c_try_compile "$LINENO"; then : 13858 xorg_cv_cc_flag_unused_command_line_argument=yes 13859else 13860 xorg_cv_cc_flag_unused_command_line_argument=no 13861fi 13862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13863fi 13864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13865$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13866 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13867 CFLAGS="$xorg_testset_save_CFLAGS" 13868fi 13869 13870found="no" 13871 13872 if test $found = "no" ; then 13873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13875 fi 13876 13877 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13879 fi 13880 13881 CFLAGS="$CFLAGS -Wuninitialized" 13882 13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13884$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13885 cacheid=xorg_cv_cc_flag__Wuninitialized 13886 if eval \${$cacheid+:} false; then : 13887 $as_echo_n "(cached) " >&6 13888else 13889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13890/* end confdefs.h. */ 13891int i; 13892int 13893main () 13894{ 13895 13896 ; 13897 return 0; 13898} 13899_ACEOF 13900if ac_fn_c_try_link "$LINENO"; then : 13901 eval $cacheid=yes 13902else 13903 eval $cacheid=no 13904fi 13905rm -f core conftest.err conftest.$ac_objext \ 13906 conftest$ac_exeext conftest.$ac_ext 13907fi 13908 13909 13910 CFLAGS="$xorg_testset_save_CFLAGS" 13911 13912 eval supported=\$$cacheid 13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13914$as_echo "$supported" >&6; } 13915 if test "$supported" = "yes" ; then 13916 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13917 found="yes" 13918 fi 13919 fi 13920 13921 13922 13923 13924 13925 13926 13927 13928 13929 13930 13931 13932 13933 13934 13935xorg_testset_save_CFLAGS="$CFLAGS" 13936 13937if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13940$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13941if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13942 $as_echo_n "(cached) " >&6 13943else 13944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13945/* end confdefs.h. */ 13946int i; 13947_ACEOF 13948if ac_fn_c_try_compile "$LINENO"; then : 13949 xorg_cv_cc_flag_unknown_warning_option=yes 13950else 13951 xorg_cv_cc_flag_unknown_warning_option=no 13952fi 13953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13954fi 13955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13956$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13957 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13958 CFLAGS="$xorg_testset_save_CFLAGS" 13959fi 13960 13961if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13964 fi 13965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13967$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13968if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13969 $as_echo_n "(cached) " >&6 13970else 13971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13972/* end confdefs.h. */ 13973int i; 13974_ACEOF 13975if ac_fn_c_try_compile "$LINENO"; then : 13976 xorg_cv_cc_flag_unused_command_line_argument=yes 13977else 13978 xorg_cv_cc_flag_unused_command_line_argument=no 13979fi 13980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13981fi 13982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13983$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13984 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13985 CFLAGS="$xorg_testset_save_CFLAGS" 13986fi 13987 13988found="no" 13989 13990 if test $found = "no" ; then 13991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13993 fi 13994 13995 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13997 fi 13998 13999 CFLAGS="$CFLAGS -Wshadow" 14000 14001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 14002$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 14003 cacheid=xorg_cv_cc_flag__Wshadow 14004 if eval \${$cacheid+:} false; then : 14005 $as_echo_n "(cached) " >&6 14006else 14007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14008/* end confdefs.h. */ 14009int i; 14010int 14011main () 14012{ 14013 14014 ; 14015 return 0; 14016} 14017_ACEOF 14018if ac_fn_c_try_link "$LINENO"; then : 14019 eval $cacheid=yes 14020else 14021 eval $cacheid=no 14022fi 14023rm -f core conftest.err conftest.$ac_objext \ 14024 conftest$ac_exeext conftest.$ac_ext 14025fi 14026 14027 14028 CFLAGS="$xorg_testset_save_CFLAGS" 14029 14030 eval supported=\$$cacheid 14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14032$as_echo "$supported" >&6; } 14033 if test "$supported" = "yes" ; then 14034 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 14035 found="yes" 14036 fi 14037 fi 14038 14039 14040 14041 14042 14043 14044 14045 14046 14047 14048 14049 14050 14051 14052 14053xorg_testset_save_CFLAGS="$CFLAGS" 14054 14055if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14058$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14059if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14060 $as_echo_n "(cached) " >&6 14061else 14062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14063/* end confdefs.h. */ 14064int i; 14065_ACEOF 14066if ac_fn_c_try_compile "$LINENO"; then : 14067 xorg_cv_cc_flag_unknown_warning_option=yes 14068else 14069 xorg_cv_cc_flag_unknown_warning_option=no 14070fi 14071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14072fi 14073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14074$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14075 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14076 CFLAGS="$xorg_testset_save_CFLAGS" 14077fi 14078 14079if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14082 fi 14083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14085$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14086if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14087 $as_echo_n "(cached) " >&6 14088else 14089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14090/* end confdefs.h. */ 14091int i; 14092_ACEOF 14093if ac_fn_c_try_compile "$LINENO"; then : 14094 xorg_cv_cc_flag_unused_command_line_argument=yes 14095else 14096 xorg_cv_cc_flag_unused_command_line_argument=no 14097fi 14098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14099fi 14100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14101$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14102 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14103 CFLAGS="$xorg_testset_save_CFLAGS" 14104fi 14105 14106found="no" 14107 14108 if test $found = "no" ; then 14109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14111 fi 14112 14113 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14115 fi 14116 14117 CFLAGS="$CFLAGS -Wmissing-noreturn" 14118 14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14120$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 14121 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14122 if eval \${$cacheid+:} false; then : 14123 $as_echo_n "(cached) " >&6 14124else 14125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14126/* end confdefs.h. */ 14127int i; 14128int 14129main () 14130{ 14131 14132 ; 14133 return 0; 14134} 14135_ACEOF 14136if ac_fn_c_try_link "$LINENO"; then : 14137 eval $cacheid=yes 14138else 14139 eval $cacheid=no 14140fi 14141rm -f core conftest.err conftest.$ac_objext \ 14142 conftest$ac_exeext conftest.$ac_ext 14143fi 14144 14145 14146 CFLAGS="$xorg_testset_save_CFLAGS" 14147 14148 eval supported=\$$cacheid 14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14150$as_echo "$supported" >&6; } 14151 if test "$supported" = "yes" ; then 14152 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 14153 found="yes" 14154 fi 14155 fi 14156 14157 14158 14159 14160 14161 14162 14163 14164 14165 14166 14167 14168 14169 14170 14171xorg_testset_save_CFLAGS="$CFLAGS" 14172 14173if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14176$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14177if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14178 $as_echo_n "(cached) " >&6 14179else 14180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14181/* end confdefs.h. */ 14182int i; 14183_ACEOF 14184if ac_fn_c_try_compile "$LINENO"; then : 14185 xorg_cv_cc_flag_unknown_warning_option=yes 14186else 14187 xorg_cv_cc_flag_unknown_warning_option=no 14188fi 14189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14190fi 14191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14192$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14193 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14194 CFLAGS="$xorg_testset_save_CFLAGS" 14195fi 14196 14197if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14199 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14200 fi 14201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14203$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14204if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14205 $as_echo_n "(cached) " >&6 14206else 14207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14208/* end confdefs.h. */ 14209int i; 14210_ACEOF 14211if ac_fn_c_try_compile "$LINENO"; then : 14212 xorg_cv_cc_flag_unused_command_line_argument=yes 14213else 14214 xorg_cv_cc_flag_unused_command_line_argument=no 14215fi 14216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14217fi 14218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14219$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14220 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14221 CFLAGS="$xorg_testset_save_CFLAGS" 14222fi 14223 14224found="no" 14225 14226 if test $found = "no" ; then 14227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14228 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14229 fi 14230 14231 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14233 fi 14234 14235 CFLAGS="$CFLAGS -Wmissing-format-attribute" 14236 14237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 14238$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 14239 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 14240 if eval \${$cacheid+:} false; then : 14241 $as_echo_n "(cached) " >&6 14242else 14243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14244/* end confdefs.h. */ 14245int i; 14246int 14247main () 14248{ 14249 14250 ; 14251 return 0; 14252} 14253_ACEOF 14254if ac_fn_c_try_link "$LINENO"; then : 14255 eval $cacheid=yes 14256else 14257 eval $cacheid=no 14258fi 14259rm -f core conftest.err conftest.$ac_objext \ 14260 conftest$ac_exeext conftest.$ac_ext 14261fi 14262 14263 14264 CFLAGS="$xorg_testset_save_CFLAGS" 14265 14266 eval supported=\$$cacheid 14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14268$as_echo "$supported" >&6; } 14269 if test "$supported" = "yes" ; then 14270 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14271 found="yes" 14272 fi 14273 fi 14274 14275 14276 14277 14278 14279 14280 14281 14282 14283 14284 14285 14286 14287 14288 14289xorg_testset_save_CFLAGS="$CFLAGS" 14290 14291if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14292 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14294$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14295if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14296 $as_echo_n "(cached) " >&6 14297else 14298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14299/* end confdefs.h. */ 14300int i; 14301_ACEOF 14302if ac_fn_c_try_compile "$LINENO"; then : 14303 xorg_cv_cc_flag_unknown_warning_option=yes 14304else 14305 xorg_cv_cc_flag_unknown_warning_option=no 14306fi 14307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14308fi 14309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14310$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14311 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14312 CFLAGS="$xorg_testset_save_CFLAGS" 14313fi 14314 14315if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14316 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14317 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14318 fi 14319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14321$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14322if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14323 $as_echo_n "(cached) " >&6 14324else 14325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14326/* end confdefs.h. */ 14327int i; 14328_ACEOF 14329if ac_fn_c_try_compile "$LINENO"; then : 14330 xorg_cv_cc_flag_unused_command_line_argument=yes 14331else 14332 xorg_cv_cc_flag_unused_command_line_argument=no 14333fi 14334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14335fi 14336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14337$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14338 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14339 CFLAGS="$xorg_testset_save_CFLAGS" 14340fi 14341 14342found="no" 14343 14344 if test $found = "no" ; then 14345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14347 fi 14348 14349 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14351 fi 14352 14353 CFLAGS="$CFLAGS -Wredundant-decls" 14354 14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 14356$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 14357 cacheid=xorg_cv_cc_flag__Wredundant_decls 14358 if eval \${$cacheid+:} false; then : 14359 $as_echo_n "(cached) " >&6 14360else 14361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14362/* end confdefs.h. */ 14363int i; 14364int 14365main () 14366{ 14367 14368 ; 14369 return 0; 14370} 14371_ACEOF 14372if ac_fn_c_try_link "$LINENO"; then : 14373 eval $cacheid=yes 14374else 14375 eval $cacheid=no 14376fi 14377rm -f core conftest.err conftest.$ac_objext \ 14378 conftest$ac_exeext conftest.$ac_ext 14379fi 14380 14381 14382 CFLAGS="$xorg_testset_save_CFLAGS" 14383 14384 eval supported=\$$cacheid 14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14386$as_echo "$supported" >&6; } 14387 if test "$supported" = "yes" ; then 14388 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 14389 found="yes" 14390 fi 14391 fi 14392 14393 14394 14395 14396 14397 14398 14399 14400 14401 14402 14403 14404 14405 14406 14407xorg_testset_save_CFLAGS="$CFLAGS" 14408 14409if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14412$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14413if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14414 $as_echo_n "(cached) " >&6 14415else 14416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14417/* end confdefs.h. */ 14418int i; 14419_ACEOF 14420if ac_fn_c_try_compile "$LINENO"; then : 14421 xorg_cv_cc_flag_unknown_warning_option=yes 14422else 14423 xorg_cv_cc_flag_unknown_warning_option=no 14424fi 14425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14426fi 14427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14428$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14429 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14430 CFLAGS="$xorg_testset_save_CFLAGS" 14431fi 14432 14433if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14435 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14436 fi 14437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14439$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14440if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14441 $as_echo_n "(cached) " >&6 14442else 14443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14444/* end confdefs.h. */ 14445int i; 14446_ACEOF 14447if ac_fn_c_try_compile "$LINENO"; then : 14448 xorg_cv_cc_flag_unused_command_line_argument=yes 14449else 14450 xorg_cv_cc_flag_unused_command_line_argument=no 14451fi 14452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14453fi 14454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14455$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14456 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14457 CFLAGS="$xorg_testset_save_CFLAGS" 14458fi 14459 14460found="no" 14461 14462 if test $found = "no" ; then 14463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14465 fi 14466 14467 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14469 fi 14470 14471 CFLAGS="$CFLAGS -Wlogical-op" 14472 14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 14474$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 14475 cacheid=xorg_cv_cc_flag__Wlogical_op 14476 if eval \${$cacheid+:} false; then : 14477 $as_echo_n "(cached) " >&6 14478else 14479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14480/* end confdefs.h. */ 14481int i; 14482int 14483main () 14484{ 14485 14486 ; 14487 return 0; 14488} 14489_ACEOF 14490if ac_fn_c_try_link "$LINENO"; then : 14491 eval $cacheid=yes 14492else 14493 eval $cacheid=no 14494fi 14495rm -f core conftest.err conftest.$ac_objext \ 14496 conftest$ac_exeext conftest.$ac_ext 14497fi 14498 14499 14500 CFLAGS="$xorg_testset_save_CFLAGS" 14501 14502 eval supported=\$$cacheid 14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14504$as_echo "$supported" >&6; } 14505 if test "$supported" = "yes" ; then 14506 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 14507 found="yes" 14508 fi 14509 fi 14510 14511 14512 14513# These are currently disabled because they are noisy. They will be enabled 14514# in the future once the codebase is sufficiently modernized to silence 14515# them. For now, I don't want them to drown out the other warnings. 14516# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 14517# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 14518# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 14519 14520# Turn some warnings into errors, so we don't accidently get successful builds 14521# when there are problems that should be fixed. 14522 14523if test "x$SELECTIVE_WERROR" = "xyes" ; then 14524 14525 14526 14527 14528 14529 14530 14531 14532 14533 14534 14535 14536 14537xorg_testset_save_CFLAGS="$CFLAGS" 14538 14539if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14540 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14542$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14543if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14544 $as_echo_n "(cached) " >&6 14545else 14546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14547/* end confdefs.h. */ 14548int i; 14549_ACEOF 14550if ac_fn_c_try_compile "$LINENO"; then : 14551 xorg_cv_cc_flag_unknown_warning_option=yes 14552else 14553 xorg_cv_cc_flag_unknown_warning_option=no 14554fi 14555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14556fi 14557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14558$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14559 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14560 CFLAGS="$xorg_testset_save_CFLAGS" 14561fi 14562 14563if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14566 fi 14567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14569$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14570if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14571 $as_echo_n "(cached) " >&6 14572else 14573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14574/* end confdefs.h. */ 14575int i; 14576_ACEOF 14577if ac_fn_c_try_compile "$LINENO"; then : 14578 xorg_cv_cc_flag_unused_command_line_argument=yes 14579else 14580 xorg_cv_cc_flag_unused_command_line_argument=no 14581fi 14582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14583fi 14584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14585$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14586 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14587 CFLAGS="$xorg_testset_save_CFLAGS" 14588fi 14589 14590found="no" 14591 14592 if test $found = "no" ; then 14593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14595 fi 14596 14597 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14599 fi 14600 14601 CFLAGS="$CFLAGS -Werror=implicit" 14602 14603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 14604$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 14605 cacheid=xorg_cv_cc_flag__Werror_implicit 14606 if eval \${$cacheid+:} false; then : 14607 $as_echo_n "(cached) " >&6 14608else 14609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14610/* end confdefs.h. */ 14611int i; 14612int 14613main () 14614{ 14615 14616 ; 14617 return 0; 14618} 14619_ACEOF 14620if ac_fn_c_try_link "$LINENO"; then : 14621 eval $cacheid=yes 14622else 14623 eval $cacheid=no 14624fi 14625rm -f core conftest.err conftest.$ac_objext \ 14626 conftest$ac_exeext conftest.$ac_ext 14627fi 14628 14629 14630 CFLAGS="$xorg_testset_save_CFLAGS" 14631 14632 eval supported=\$$cacheid 14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14634$as_echo "$supported" >&6; } 14635 if test "$supported" = "yes" ; then 14636 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 14637 found="yes" 14638 fi 14639 fi 14640 14641 if test $found = "no" ; then 14642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14644 fi 14645 14646 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14648 fi 14649 14650 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14651 14652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 14653$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 14654 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 14655 if eval \${$cacheid+:} false; then : 14656 $as_echo_n "(cached) " >&6 14657else 14658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14659/* end confdefs.h. */ 14660int i; 14661int 14662main () 14663{ 14664 14665 ; 14666 return 0; 14667} 14668_ACEOF 14669if ac_fn_c_try_link "$LINENO"; then : 14670 eval $cacheid=yes 14671else 14672 eval $cacheid=no 14673fi 14674rm -f core conftest.err conftest.$ac_objext \ 14675 conftest$ac_exeext conftest.$ac_ext 14676fi 14677 14678 14679 CFLAGS="$xorg_testset_save_CFLAGS" 14680 14681 eval supported=\$$cacheid 14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14683$as_echo "$supported" >&6; } 14684 if test "$supported" = "yes" ; then 14685 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14686 found="yes" 14687 fi 14688 fi 14689 14690 14691 14692 14693 14694 14695 14696 14697 14698 14699 14700 14701 14702 14703 14704xorg_testset_save_CFLAGS="$CFLAGS" 14705 14706if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14709$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14710if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14711 $as_echo_n "(cached) " >&6 14712else 14713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14714/* end confdefs.h. */ 14715int i; 14716_ACEOF 14717if ac_fn_c_try_compile "$LINENO"; then : 14718 xorg_cv_cc_flag_unknown_warning_option=yes 14719else 14720 xorg_cv_cc_flag_unknown_warning_option=no 14721fi 14722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14723fi 14724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14725$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14726 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14727 CFLAGS="$xorg_testset_save_CFLAGS" 14728fi 14729 14730if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14733 fi 14734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14736$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14737if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14738 $as_echo_n "(cached) " >&6 14739else 14740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14741/* end confdefs.h. */ 14742int i; 14743_ACEOF 14744if ac_fn_c_try_compile "$LINENO"; then : 14745 xorg_cv_cc_flag_unused_command_line_argument=yes 14746else 14747 xorg_cv_cc_flag_unused_command_line_argument=no 14748fi 14749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14750fi 14751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14752$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14753 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14754 CFLAGS="$xorg_testset_save_CFLAGS" 14755fi 14756 14757found="no" 14758 14759 if test $found = "no" ; then 14760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14762 fi 14763 14764 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14766 fi 14767 14768 CFLAGS="$CFLAGS -Werror=nonnull" 14769 14770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14771$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14772 cacheid=xorg_cv_cc_flag__Werror_nonnull 14773 if eval \${$cacheid+:} false; then : 14774 $as_echo_n "(cached) " >&6 14775else 14776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14777/* end confdefs.h. */ 14778int i; 14779int 14780main () 14781{ 14782 14783 ; 14784 return 0; 14785} 14786_ACEOF 14787if ac_fn_c_try_link "$LINENO"; then : 14788 eval $cacheid=yes 14789else 14790 eval $cacheid=no 14791fi 14792rm -f core conftest.err conftest.$ac_objext \ 14793 conftest$ac_exeext conftest.$ac_ext 14794fi 14795 14796 14797 CFLAGS="$xorg_testset_save_CFLAGS" 14798 14799 eval supported=\$$cacheid 14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14801$as_echo "$supported" >&6; } 14802 if test "$supported" = "yes" ; then 14803 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14804 found="yes" 14805 fi 14806 fi 14807 14808 14809 14810 14811 14812 14813 14814 14815 14816 14817 14818 14819 14820 14821 14822xorg_testset_save_CFLAGS="$CFLAGS" 14823 14824if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14827$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14828if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14829 $as_echo_n "(cached) " >&6 14830else 14831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14832/* end confdefs.h. */ 14833int i; 14834_ACEOF 14835if ac_fn_c_try_compile "$LINENO"; then : 14836 xorg_cv_cc_flag_unknown_warning_option=yes 14837else 14838 xorg_cv_cc_flag_unknown_warning_option=no 14839fi 14840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14841fi 14842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14843$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14844 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14845 CFLAGS="$xorg_testset_save_CFLAGS" 14846fi 14847 14848if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14851 fi 14852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14854$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14855if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14856 $as_echo_n "(cached) " >&6 14857else 14858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14859/* end confdefs.h. */ 14860int i; 14861_ACEOF 14862if ac_fn_c_try_compile "$LINENO"; then : 14863 xorg_cv_cc_flag_unused_command_line_argument=yes 14864else 14865 xorg_cv_cc_flag_unused_command_line_argument=no 14866fi 14867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14868fi 14869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14870$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14871 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14872 CFLAGS="$xorg_testset_save_CFLAGS" 14873fi 14874 14875found="no" 14876 14877 if test $found = "no" ; then 14878 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14879 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14880 fi 14881 14882 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14884 fi 14885 14886 CFLAGS="$CFLAGS -Werror=init-self" 14887 14888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14889$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14890 cacheid=xorg_cv_cc_flag__Werror_init_self 14891 if eval \${$cacheid+:} false; then : 14892 $as_echo_n "(cached) " >&6 14893else 14894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14895/* end confdefs.h. */ 14896int i; 14897int 14898main () 14899{ 14900 14901 ; 14902 return 0; 14903} 14904_ACEOF 14905if ac_fn_c_try_link "$LINENO"; then : 14906 eval $cacheid=yes 14907else 14908 eval $cacheid=no 14909fi 14910rm -f core conftest.err conftest.$ac_objext \ 14911 conftest$ac_exeext conftest.$ac_ext 14912fi 14913 14914 14915 CFLAGS="$xorg_testset_save_CFLAGS" 14916 14917 eval supported=\$$cacheid 14918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14919$as_echo "$supported" >&6; } 14920 if test "$supported" = "yes" ; then 14921 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14922 found="yes" 14923 fi 14924 fi 14925 14926 14927 14928 14929 14930 14931 14932 14933 14934 14935 14936 14937 14938 14939 14940xorg_testset_save_CFLAGS="$CFLAGS" 14941 14942if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14945$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14946if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14947 $as_echo_n "(cached) " >&6 14948else 14949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14950/* end confdefs.h. */ 14951int i; 14952_ACEOF 14953if ac_fn_c_try_compile "$LINENO"; then : 14954 xorg_cv_cc_flag_unknown_warning_option=yes 14955else 14956 xorg_cv_cc_flag_unknown_warning_option=no 14957fi 14958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14959fi 14960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14961$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14962 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14963 CFLAGS="$xorg_testset_save_CFLAGS" 14964fi 14965 14966if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14969 fi 14970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14972$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14973if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14974 $as_echo_n "(cached) " >&6 14975else 14976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14977/* end confdefs.h. */ 14978int i; 14979_ACEOF 14980if ac_fn_c_try_compile "$LINENO"; then : 14981 xorg_cv_cc_flag_unused_command_line_argument=yes 14982else 14983 xorg_cv_cc_flag_unused_command_line_argument=no 14984fi 14985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14986fi 14987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14988$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14989 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14990 CFLAGS="$xorg_testset_save_CFLAGS" 14991fi 14992 14993found="no" 14994 14995 if test $found = "no" ; then 14996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14997 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14998 fi 14999 15000 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15002 fi 15003 15004 CFLAGS="$CFLAGS -Werror=main" 15005 15006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 15007$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 15008 cacheid=xorg_cv_cc_flag__Werror_main 15009 if eval \${$cacheid+:} false; then : 15010 $as_echo_n "(cached) " >&6 15011else 15012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15013/* end confdefs.h. */ 15014int i; 15015int 15016main () 15017{ 15018 15019 ; 15020 return 0; 15021} 15022_ACEOF 15023if ac_fn_c_try_link "$LINENO"; then : 15024 eval $cacheid=yes 15025else 15026 eval $cacheid=no 15027fi 15028rm -f core conftest.err conftest.$ac_objext \ 15029 conftest$ac_exeext conftest.$ac_ext 15030fi 15031 15032 15033 CFLAGS="$xorg_testset_save_CFLAGS" 15034 15035 eval supported=\$$cacheid 15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15037$as_echo "$supported" >&6; } 15038 if test "$supported" = "yes" ; then 15039 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 15040 found="yes" 15041 fi 15042 fi 15043 15044 15045 15046 15047 15048 15049 15050 15051 15052 15053 15054 15055 15056 15057 15058xorg_testset_save_CFLAGS="$CFLAGS" 15059 15060if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15063$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15064if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15065 $as_echo_n "(cached) " >&6 15066else 15067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15068/* end confdefs.h. */ 15069int i; 15070_ACEOF 15071if ac_fn_c_try_compile "$LINENO"; then : 15072 xorg_cv_cc_flag_unknown_warning_option=yes 15073else 15074 xorg_cv_cc_flag_unknown_warning_option=no 15075fi 15076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15077fi 15078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15079$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15080 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15081 CFLAGS="$xorg_testset_save_CFLAGS" 15082fi 15083 15084if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15087 fi 15088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15090$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15091if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15092 $as_echo_n "(cached) " >&6 15093else 15094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15095/* end confdefs.h. */ 15096int i; 15097_ACEOF 15098if ac_fn_c_try_compile "$LINENO"; then : 15099 xorg_cv_cc_flag_unused_command_line_argument=yes 15100else 15101 xorg_cv_cc_flag_unused_command_line_argument=no 15102fi 15103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15104fi 15105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15106$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15107 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15108 CFLAGS="$xorg_testset_save_CFLAGS" 15109fi 15110 15111found="no" 15112 15113 if test $found = "no" ; then 15114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15115 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15116 fi 15117 15118 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15120 fi 15121 15122 CFLAGS="$CFLAGS -Werror=missing-braces" 15123 15124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15125$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 15126 cacheid=xorg_cv_cc_flag__Werror_missing_braces 15127 if eval \${$cacheid+:} false; then : 15128 $as_echo_n "(cached) " >&6 15129else 15130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15131/* end confdefs.h. */ 15132int i; 15133int 15134main () 15135{ 15136 15137 ; 15138 return 0; 15139} 15140_ACEOF 15141if ac_fn_c_try_link "$LINENO"; then : 15142 eval $cacheid=yes 15143else 15144 eval $cacheid=no 15145fi 15146rm -f core conftest.err conftest.$ac_objext \ 15147 conftest$ac_exeext conftest.$ac_ext 15148fi 15149 15150 15151 CFLAGS="$xorg_testset_save_CFLAGS" 15152 15153 eval supported=\$$cacheid 15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15155$as_echo "$supported" >&6; } 15156 if test "$supported" = "yes" ; then 15157 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 15158 found="yes" 15159 fi 15160 fi 15161 15162 15163 15164 15165 15166 15167 15168 15169 15170 15171 15172 15173 15174 15175 15176xorg_testset_save_CFLAGS="$CFLAGS" 15177 15178if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15181$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15182if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15183 $as_echo_n "(cached) " >&6 15184else 15185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15186/* end confdefs.h. */ 15187int i; 15188_ACEOF 15189if ac_fn_c_try_compile "$LINENO"; then : 15190 xorg_cv_cc_flag_unknown_warning_option=yes 15191else 15192 xorg_cv_cc_flag_unknown_warning_option=no 15193fi 15194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15195fi 15196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15197$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15198 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15199 CFLAGS="$xorg_testset_save_CFLAGS" 15200fi 15201 15202if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15205 fi 15206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15208$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15209if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15210 $as_echo_n "(cached) " >&6 15211else 15212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15213/* end confdefs.h. */ 15214int i; 15215_ACEOF 15216if ac_fn_c_try_compile "$LINENO"; then : 15217 xorg_cv_cc_flag_unused_command_line_argument=yes 15218else 15219 xorg_cv_cc_flag_unused_command_line_argument=no 15220fi 15221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15222fi 15223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15224$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15225 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15226 CFLAGS="$xorg_testset_save_CFLAGS" 15227fi 15228 15229found="no" 15230 15231 if test $found = "no" ; then 15232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15234 fi 15235 15236 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15238 fi 15239 15240 CFLAGS="$CFLAGS -Werror=sequence-point" 15241 15242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 15243$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 15244 cacheid=xorg_cv_cc_flag__Werror_sequence_point 15245 if eval \${$cacheid+:} false; then : 15246 $as_echo_n "(cached) " >&6 15247else 15248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15249/* end confdefs.h. */ 15250int i; 15251int 15252main () 15253{ 15254 15255 ; 15256 return 0; 15257} 15258_ACEOF 15259if ac_fn_c_try_link "$LINENO"; then : 15260 eval $cacheid=yes 15261else 15262 eval $cacheid=no 15263fi 15264rm -f core conftest.err conftest.$ac_objext \ 15265 conftest$ac_exeext conftest.$ac_ext 15266fi 15267 15268 15269 CFLAGS="$xorg_testset_save_CFLAGS" 15270 15271 eval supported=\$$cacheid 15272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15273$as_echo "$supported" >&6; } 15274 if test "$supported" = "yes" ; then 15275 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 15276 found="yes" 15277 fi 15278 fi 15279 15280 15281 15282 15283 15284 15285 15286 15287 15288 15289 15290 15291 15292 15293 15294xorg_testset_save_CFLAGS="$CFLAGS" 15295 15296if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15299$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15300if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15301 $as_echo_n "(cached) " >&6 15302else 15303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15304/* end confdefs.h. */ 15305int i; 15306_ACEOF 15307if ac_fn_c_try_compile "$LINENO"; then : 15308 xorg_cv_cc_flag_unknown_warning_option=yes 15309else 15310 xorg_cv_cc_flag_unknown_warning_option=no 15311fi 15312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15313fi 15314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15315$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15316 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15317 CFLAGS="$xorg_testset_save_CFLAGS" 15318fi 15319 15320if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15323 fi 15324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15326$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15327if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15328 $as_echo_n "(cached) " >&6 15329else 15330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15331/* end confdefs.h. */ 15332int i; 15333_ACEOF 15334if ac_fn_c_try_compile "$LINENO"; then : 15335 xorg_cv_cc_flag_unused_command_line_argument=yes 15336else 15337 xorg_cv_cc_flag_unused_command_line_argument=no 15338fi 15339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15340fi 15341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15342$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15343 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15344 CFLAGS="$xorg_testset_save_CFLAGS" 15345fi 15346 15347found="no" 15348 15349 if test $found = "no" ; then 15350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15352 fi 15353 15354 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15356 fi 15357 15358 CFLAGS="$CFLAGS -Werror=return-type" 15359 15360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 15361$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 15362 cacheid=xorg_cv_cc_flag__Werror_return_type 15363 if eval \${$cacheid+:} false; then : 15364 $as_echo_n "(cached) " >&6 15365else 15366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15367/* end confdefs.h. */ 15368int i; 15369int 15370main () 15371{ 15372 15373 ; 15374 return 0; 15375} 15376_ACEOF 15377if ac_fn_c_try_link "$LINENO"; then : 15378 eval $cacheid=yes 15379else 15380 eval $cacheid=no 15381fi 15382rm -f core conftest.err conftest.$ac_objext \ 15383 conftest$ac_exeext conftest.$ac_ext 15384fi 15385 15386 15387 CFLAGS="$xorg_testset_save_CFLAGS" 15388 15389 eval supported=\$$cacheid 15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15391$as_echo "$supported" >&6; } 15392 if test "$supported" = "yes" ; then 15393 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 15394 found="yes" 15395 fi 15396 fi 15397 15398 if test $found = "no" ; then 15399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15401 fi 15402 15403 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15405 fi 15406 15407 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15408 15409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 15410$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 15411 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 15412 if eval \${$cacheid+:} false; then : 15413 $as_echo_n "(cached) " >&6 15414else 15415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15416/* end confdefs.h. */ 15417int i; 15418int 15419main () 15420{ 15421 15422 ; 15423 return 0; 15424} 15425_ACEOF 15426if ac_fn_c_try_link "$LINENO"; then : 15427 eval $cacheid=yes 15428else 15429 eval $cacheid=no 15430fi 15431rm -f core conftest.err conftest.$ac_objext \ 15432 conftest$ac_exeext conftest.$ac_ext 15433fi 15434 15435 15436 CFLAGS="$xorg_testset_save_CFLAGS" 15437 15438 eval supported=\$$cacheid 15439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15440$as_echo "$supported" >&6; } 15441 if test "$supported" = "yes" ; then 15442 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15443 found="yes" 15444 fi 15445 fi 15446 15447 15448 15449 15450 15451 15452 15453 15454 15455 15456 15457 15458 15459 15460 15461xorg_testset_save_CFLAGS="$CFLAGS" 15462 15463if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15466$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15467if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15468 $as_echo_n "(cached) " >&6 15469else 15470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15471/* end confdefs.h. */ 15472int i; 15473_ACEOF 15474if ac_fn_c_try_compile "$LINENO"; then : 15475 xorg_cv_cc_flag_unknown_warning_option=yes 15476else 15477 xorg_cv_cc_flag_unknown_warning_option=no 15478fi 15479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15480fi 15481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15482$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15483 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15484 CFLAGS="$xorg_testset_save_CFLAGS" 15485fi 15486 15487if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15490 fi 15491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15493$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15494if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15495 $as_echo_n "(cached) " >&6 15496else 15497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15498/* end confdefs.h. */ 15499int i; 15500_ACEOF 15501if ac_fn_c_try_compile "$LINENO"; then : 15502 xorg_cv_cc_flag_unused_command_line_argument=yes 15503else 15504 xorg_cv_cc_flag_unused_command_line_argument=no 15505fi 15506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15507fi 15508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15509$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15510 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15511 CFLAGS="$xorg_testset_save_CFLAGS" 15512fi 15513 15514found="no" 15515 15516 if test $found = "no" ; then 15517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15519 fi 15520 15521 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15523 fi 15524 15525 CFLAGS="$CFLAGS -Werror=trigraphs" 15526 15527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 15528$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 15529 cacheid=xorg_cv_cc_flag__Werror_trigraphs 15530 if eval \${$cacheid+:} false; then : 15531 $as_echo_n "(cached) " >&6 15532else 15533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15534/* end confdefs.h. */ 15535int i; 15536int 15537main () 15538{ 15539 15540 ; 15541 return 0; 15542} 15543_ACEOF 15544if ac_fn_c_try_link "$LINENO"; then : 15545 eval $cacheid=yes 15546else 15547 eval $cacheid=no 15548fi 15549rm -f core conftest.err conftest.$ac_objext \ 15550 conftest$ac_exeext conftest.$ac_ext 15551fi 15552 15553 15554 CFLAGS="$xorg_testset_save_CFLAGS" 15555 15556 eval supported=\$$cacheid 15557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15558$as_echo "$supported" >&6; } 15559 if test "$supported" = "yes" ; then 15560 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 15561 found="yes" 15562 fi 15563 fi 15564 15565 15566 15567 15568 15569 15570 15571 15572 15573 15574 15575 15576 15577 15578 15579xorg_testset_save_CFLAGS="$CFLAGS" 15580 15581if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15584$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15585if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15586 $as_echo_n "(cached) " >&6 15587else 15588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15589/* end confdefs.h. */ 15590int i; 15591_ACEOF 15592if ac_fn_c_try_compile "$LINENO"; then : 15593 xorg_cv_cc_flag_unknown_warning_option=yes 15594else 15595 xorg_cv_cc_flag_unknown_warning_option=no 15596fi 15597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15598fi 15599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15600$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15601 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15602 CFLAGS="$xorg_testset_save_CFLAGS" 15603fi 15604 15605if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15607 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15608 fi 15609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15611$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15612if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15613 $as_echo_n "(cached) " >&6 15614else 15615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15616/* end confdefs.h. */ 15617int i; 15618_ACEOF 15619if ac_fn_c_try_compile "$LINENO"; then : 15620 xorg_cv_cc_flag_unused_command_line_argument=yes 15621else 15622 xorg_cv_cc_flag_unused_command_line_argument=no 15623fi 15624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15625fi 15626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15627$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15628 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15629 CFLAGS="$xorg_testset_save_CFLAGS" 15630fi 15631 15632found="no" 15633 15634 if test $found = "no" ; then 15635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15637 fi 15638 15639 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15641 fi 15642 15643 CFLAGS="$CFLAGS -Werror=array-bounds" 15644 15645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 15646$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 15647 cacheid=xorg_cv_cc_flag__Werror_array_bounds 15648 if eval \${$cacheid+:} false; then : 15649 $as_echo_n "(cached) " >&6 15650else 15651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15652/* end confdefs.h. */ 15653int i; 15654int 15655main () 15656{ 15657 15658 ; 15659 return 0; 15660} 15661_ACEOF 15662if ac_fn_c_try_link "$LINENO"; then : 15663 eval $cacheid=yes 15664else 15665 eval $cacheid=no 15666fi 15667rm -f core conftest.err conftest.$ac_objext \ 15668 conftest$ac_exeext conftest.$ac_ext 15669fi 15670 15671 15672 CFLAGS="$xorg_testset_save_CFLAGS" 15673 15674 eval supported=\$$cacheid 15675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15676$as_echo "$supported" >&6; } 15677 if test "$supported" = "yes" ; then 15678 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15679 found="yes" 15680 fi 15681 fi 15682 15683 15684 15685 15686 15687 15688 15689 15690 15691 15692 15693 15694 15695 15696 15697xorg_testset_save_CFLAGS="$CFLAGS" 15698 15699if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15702$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15703if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15704 $as_echo_n "(cached) " >&6 15705else 15706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15707/* end confdefs.h. */ 15708int i; 15709_ACEOF 15710if ac_fn_c_try_compile "$LINENO"; then : 15711 xorg_cv_cc_flag_unknown_warning_option=yes 15712else 15713 xorg_cv_cc_flag_unknown_warning_option=no 15714fi 15715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15716fi 15717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15718$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15719 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15720 CFLAGS="$xorg_testset_save_CFLAGS" 15721fi 15722 15723if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15726 fi 15727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15729$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15730if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15731 $as_echo_n "(cached) " >&6 15732else 15733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15734/* end confdefs.h. */ 15735int i; 15736_ACEOF 15737if ac_fn_c_try_compile "$LINENO"; then : 15738 xorg_cv_cc_flag_unused_command_line_argument=yes 15739else 15740 xorg_cv_cc_flag_unused_command_line_argument=no 15741fi 15742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15743fi 15744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15745$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15746 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15747 CFLAGS="$xorg_testset_save_CFLAGS" 15748fi 15749 15750found="no" 15751 15752 if test $found = "no" ; then 15753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15755 fi 15756 15757 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15759 fi 15760 15761 CFLAGS="$CFLAGS -Werror=write-strings" 15762 15763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15764$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15765 cacheid=xorg_cv_cc_flag__Werror_write_strings 15766 if eval \${$cacheid+:} false; then : 15767 $as_echo_n "(cached) " >&6 15768else 15769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15770/* end confdefs.h. */ 15771int i; 15772int 15773main () 15774{ 15775 15776 ; 15777 return 0; 15778} 15779_ACEOF 15780if ac_fn_c_try_link "$LINENO"; then : 15781 eval $cacheid=yes 15782else 15783 eval $cacheid=no 15784fi 15785rm -f core conftest.err conftest.$ac_objext \ 15786 conftest$ac_exeext conftest.$ac_ext 15787fi 15788 15789 15790 CFLAGS="$xorg_testset_save_CFLAGS" 15791 15792 eval supported=\$$cacheid 15793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15794$as_echo "$supported" >&6; } 15795 if test "$supported" = "yes" ; then 15796 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15797 found="yes" 15798 fi 15799 fi 15800 15801 15802 15803 15804 15805 15806 15807 15808 15809 15810 15811 15812 15813 15814 15815xorg_testset_save_CFLAGS="$CFLAGS" 15816 15817if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15820$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15821if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15822 $as_echo_n "(cached) " >&6 15823else 15824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15825/* end confdefs.h. */ 15826int i; 15827_ACEOF 15828if ac_fn_c_try_compile "$LINENO"; then : 15829 xorg_cv_cc_flag_unknown_warning_option=yes 15830else 15831 xorg_cv_cc_flag_unknown_warning_option=no 15832fi 15833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15834fi 15835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15836$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15837 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15838 CFLAGS="$xorg_testset_save_CFLAGS" 15839fi 15840 15841if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15843 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15844 fi 15845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15847$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15848if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15849 $as_echo_n "(cached) " >&6 15850else 15851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15852/* end confdefs.h. */ 15853int i; 15854_ACEOF 15855if ac_fn_c_try_compile "$LINENO"; then : 15856 xorg_cv_cc_flag_unused_command_line_argument=yes 15857else 15858 xorg_cv_cc_flag_unused_command_line_argument=no 15859fi 15860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15861fi 15862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15863$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15864 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15865 CFLAGS="$xorg_testset_save_CFLAGS" 15866fi 15867 15868found="no" 15869 15870 if test $found = "no" ; then 15871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15873 fi 15874 15875 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15877 fi 15878 15879 CFLAGS="$CFLAGS -Werror=address" 15880 15881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15882$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15883 cacheid=xorg_cv_cc_flag__Werror_address 15884 if eval \${$cacheid+:} false; then : 15885 $as_echo_n "(cached) " >&6 15886else 15887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15888/* end confdefs.h. */ 15889int i; 15890int 15891main () 15892{ 15893 15894 ; 15895 return 0; 15896} 15897_ACEOF 15898if ac_fn_c_try_link "$LINENO"; then : 15899 eval $cacheid=yes 15900else 15901 eval $cacheid=no 15902fi 15903rm -f core conftest.err conftest.$ac_objext \ 15904 conftest$ac_exeext conftest.$ac_ext 15905fi 15906 15907 15908 CFLAGS="$xorg_testset_save_CFLAGS" 15909 15910 eval supported=\$$cacheid 15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15912$as_echo "$supported" >&6; } 15913 if test "$supported" = "yes" ; then 15914 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15915 found="yes" 15916 fi 15917 fi 15918 15919 15920 15921 15922 15923 15924 15925 15926 15927 15928 15929 15930 15931 15932 15933xorg_testset_save_CFLAGS="$CFLAGS" 15934 15935if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15938$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15939if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15940 $as_echo_n "(cached) " >&6 15941else 15942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15943/* end confdefs.h. */ 15944int i; 15945_ACEOF 15946if ac_fn_c_try_compile "$LINENO"; then : 15947 xorg_cv_cc_flag_unknown_warning_option=yes 15948else 15949 xorg_cv_cc_flag_unknown_warning_option=no 15950fi 15951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15952fi 15953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15954$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15955 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15956 CFLAGS="$xorg_testset_save_CFLAGS" 15957fi 15958 15959if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15962 fi 15963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15965$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15966if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15967 $as_echo_n "(cached) " >&6 15968else 15969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15970/* end confdefs.h. */ 15971int i; 15972_ACEOF 15973if ac_fn_c_try_compile "$LINENO"; then : 15974 xorg_cv_cc_flag_unused_command_line_argument=yes 15975else 15976 xorg_cv_cc_flag_unused_command_line_argument=no 15977fi 15978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15979fi 15980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15981$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15982 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15983 CFLAGS="$xorg_testset_save_CFLAGS" 15984fi 15985 15986found="no" 15987 15988 if test $found = "no" ; then 15989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15991 fi 15992 15993 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15995 fi 15996 15997 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15998 15999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 16000$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 16001 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 16002 if eval \${$cacheid+:} false; then : 16003 $as_echo_n "(cached) " >&6 16004else 16005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16006/* end confdefs.h. */ 16007int i; 16008int 16009main () 16010{ 16011 16012 ; 16013 return 0; 16014} 16015_ACEOF 16016if ac_fn_c_try_link "$LINENO"; then : 16017 eval $cacheid=yes 16018else 16019 eval $cacheid=no 16020fi 16021rm -f core conftest.err conftest.$ac_objext \ 16022 conftest$ac_exeext conftest.$ac_ext 16023fi 16024 16025 16026 CFLAGS="$xorg_testset_save_CFLAGS" 16027 16028 eval supported=\$$cacheid 16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16030$as_echo "$supported" >&6; } 16031 if test "$supported" = "yes" ; then 16032 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 16033 found="yes" 16034 fi 16035 fi 16036 16037 if test $found = "no" ; then 16038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16040 fi 16041 16042 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16044 fi 16045 16046 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16047 16048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 16049$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 16050 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 16051 if eval \${$cacheid+:} false; then : 16052 $as_echo_n "(cached) " >&6 16053else 16054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16055/* end confdefs.h. */ 16056int i; 16057int 16058main () 16059{ 16060 16061 ; 16062 return 0; 16063} 16064_ACEOF 16065if ac_fn_c_try_link "$LINENO"; then : 16066 eval $cacheid=yes 16067else 16068 eval $cacheid=no 16069fi 16070rm -f core conftest.err conftest.$ac_objext \ 16071 conftest$ac_exeext conftest.$ac_ext 16072fi 16073 16074 16075 CFLAGS="$xorg_testset_save_CFLAGS" 16076 16077 eval supported=\$$cacheid 16078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16079$as_echo "$supported" >&6; } 16080 if test "$supported" = "yes" ; then 16081 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16082 found="yes" 16083 fi 16084 fi 16085 16086 16087 16088 16089 16090 16091 16092 16093 16094 16095 16096 16097 16098 16099 16100xorg_testset_save_CFLAGS="$CFLAGS" 16101 16102if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16103 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16105$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16106if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16107 $as_echo_n "(cached) " >&6 16108else 16109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16110/* end confdefs.h. */ 16111int i; 16112_ACEOF 16113if ac_fn_c_try_compile "$LINENO"; then : 16114 xorg_cv_cc_flag_unknown_warning_option=yes 16115else 16116 xorg_cv_cc_flag_unknown_warning_option=no 16117fi 16118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16119fi 16120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16121$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16122 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16123 CFLAGS="$xorg_testset_save_CFLAGS" 16124fi 16125 16126if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16129 fi 16130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16132$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16133if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16134 $as_echo_n "(cached) " >&6 16135else 16136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16137/* end confdefs.h. */ 16138int i; 16139_ACEOF 16140if ac_fn_c_try_compile "$LINENO"; then : 16141 xorg_cv_cc_flag_unused_command_line_argument=yes 16142else 16143 xorg_cv_cc_flag_unused_command_line_argument=no 16144fi 16145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16146fi 16147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16148$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16149 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16150 CFLAGS="$xorg_testset_save_CFLAGS" 16151fi 16152 16153found="no" 16154 16155 if test $found = "no" ; then 16156 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16158 fi 16159 16160 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16162 fi 16163 16164 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 16165 16166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 16167$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 16168 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 16169 if eval \${$cacheid+:} false; then : 16170 $as_echo_n "(cached) " >&6 16171else 16172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16173/* end confdefs.h. */ 16174int i; 16175int 16176main () 16177{ 16178 16179 ; 16180 return 0; 16181} 16182_ACEOF 16183if ac_fn_c_try_link "$LINENO"; then : 16184 eval $cacheid=yes 16185else 16186 eval $cacheid=no 16187fi 16188rm -f core conftest.err conftest.$ac_objext \ 16189 conftest$ac_exeext conftest.$ac_ext 16190fi 16191 16192 16193 CFLAGS="$xorg_testset_save_CFLAGS" 16194 16195 eval supported=\$$cacheid 16196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16197$as_echo "$supported" >&6; } 16198 if test "$supported" = "yes" ; then 16199 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 16200 found="yes" 16201 fi 16202 fi 16203 16204 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 16205else 16206{ $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 16207$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;} 16208 16209 16210 16211 16212 16213 16214 16215 16216 16217 16218 16219 16220 16221xorg_testset_save_CFLAGS="$CFLAGS" 16222 16223if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16224 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16226$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16227if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16228 $as_echo_n "(cached) " >&6 16229else 16230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16231/* end confdefs.h. */ 16232int i; 16233_ACEOF 16234if ac_fn_c_try_compile "$LINENO"; then : 16235 xorg_cv_cc_flag_unknown_warning_option=yes 16236else 16237 xorg_cv_cc_flag_unknown_warning_option=no 16238fi 16239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16240fi 16241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16242$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16243 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16244 CFLAGS="$xorg_testset_save_CFLAGS" 16245fi 16246 16247if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16249 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16250 fi 16251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16253$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16254if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16255 $as_echo_n "(cached) " >&6 16256else 16257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16258/* end confdefs.h. */ 16259int i; 16260_ACEOF 16261if ac_fn_c_try_compile "$LINENO"; then : 16262 xorg_cv_cc_flag_unused_command_line_argument=yes 16263else 16264 xorg_cv_cc_flag_unused_command_line_argument=no 16265fi 16266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16267fi 16268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16269$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16270 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16271 CFLAGS="$xorg_testset_save_CFLAGS" 16272fi 16273 16274found="no" 16275 16276 if test $found = "no" ; then 16277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16279 fi 16280 16281 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16283 fi 16284 16285 CFLAGS="$CFLAGS -Wimplicit" 16286 16287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 16288$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 16289 cacheid=xorg_cv_cc_flag__Wimplicit 16290 if eval \${$cacheid+:} false; then : 16291 $as_echo_n "(cached) " >&6 16292else 16293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16294/* end confdefs.h. */ 16295int i; 16296int 16297main () 16298{ 16299 16300 ; 16301 return 0; 16302} 16303_ACEOF 16304if ac_fn_c_try_link "$LINENO"; then : 16305 eval $cacheid=yes 16306else 16307 eval $cacheid=no 16308fi 16309rm -f core conftest.err conftest.$ac_objext \ 16310 conftest$ac_exeext conftest.$ac_ext 16311fi 16312 16313 16314 CFLAGS="$xorg_testset_save_CFLAGS" 16315 16316 eval supported=\$$cacheid 16317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16318$as_echo "$supported" >&6; } 16319 if test "$supported" = "yes" ; then 16320 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 16321 found="yes" 16322 fi 16323 fi 16324 16325 16326 16327 16328 16329 16330 16331 16332 16333 16334 16335 16336 16337 16338 16339xorg_testset_save_CFLAGS="$CFLAGS" 16340 16341if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16344$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16345if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16346 $as_echo_n "(cached) " >&6 16347else 16348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16349/* end confdefs.h. */ 16350int i; 16351_ACEOF 16352if ac_fn_c_try_compile "$LINENO"; then : 16353 xorg_cv_cc_flag_unknown_warning_option=yes 16354else 16355 xorg_cv_cc_flag_unknown_warning_option=no 16356fi 16357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16358fi 16359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16360$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16361 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16362 CFLAGS="$xorg_testset_save_CFLAGS" 16363fi 16364 16365if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16367 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16368 fi 16369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16371$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16372if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16373 $as_echo_n "(cached) " >&6 16374else 16375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16376/* end confdefs.h. */ 16377int i; 16378_ACEOF 16379if ac_fn_c_try_compile "$LINENO"; then : 16380 xorg_cv_cc_flag_unused_command_line_argument=yes 16381else 16382 xorg_cv_cc_flag_unused_command_line_argument=no 16383fi 16384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16385fi 16386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16387$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16388 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16389 CFLAGS="$xorg_testset_save_CFLAGS" 16390fi 16391 16392found="no" 16393 16394 if test $found = "no" ; then 16395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16397 fi 16398 16399 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16401 fi 16402 16403 CFLAGS="$CFLAGS -Wnonnull" 16404 16405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 16406$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 16407 cacheid=xorg_cv_cc_flag__Wnonnull 16408 if eval \${$cacheid+:} false; then : 16409 $as_echo_n "(cached) " >&6 16410else 16411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16412/* end confdefs.h. */ 16413int i; 16414int 16415main () 16416{ 16417 16418 ; 16419 return 0; 16420} 16421_ACEOF 16422if ac_fn_c_try_link "$LINENO"; then : 16423 eval $cacheid=yes 16424else 16425 eval $cacheid=no 16426fi 16427rm -f core conftest.err conftest.$ac_objext \ 16428 conftest$ac_exeext conftest.$ac_ext 16429fi 16430 16431 16432 CFLAGS="$xorg_testset_save_CFLAGS" 16433 16434 eval supported=\$$cacheid 16435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16436$as_echo "$supported" >&6; } 16437 if test "$supported" = "yes" ; then 16438 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 16439 found="yes" 16440 fi 16441 fi 16442 16443 16444 16445 16446 16447 16448 16449 16450 16451 16452 16453 16454 16455 16456 16457xorg_testset_save_CFLAGS="$CFLAGS" 16458 16459if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16460 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16462$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16463if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16464 $as_echo_n "(cached) " >&6 16465else 16466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16467/* end confdefs.h. */ 16468int i; 16469_ACEOF 16470if ac_fn_c_try_compile "$LINENO"; then : 16471 xorg_cv_cc_flag_unknown_warning_option=yes 16472else 16473 xorg_cv_cc_flag_unknown_warning_option=no 16474fi 16475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16476fi 16477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16478$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16479 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16480 CFLAGS="$xorg_testset_save_CFLAGS" 16481fi 16482 16483if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16486 fi 16487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16489$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16490if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16491 $as_echo_n "(cached) " >&6 16492else 16493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16494/* end confdefs.h. */ 16495int i; 16496_ACEOF 16497if ac_fn_c_try_compile "$LINENO"; then : 16498 xorg_cv_cc_flag_unused_command_line_argument=yes 16499else 16500 xorg_cv_cc_flag_unused_command_line_argument=no 16501fi 16502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16503fi 16504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16505$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16506 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16507 CFLAGS="$xorg_testset_save_CFLAGS" 16508fi 16509 16510found="no" 16511 16512 if test $found = "no" ; then 16513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16515 fi 16516 16517 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16519 fi 16520 16521 CFLAGS="$CFLAGS -Winit-self" 16522 16523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 16524$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 16525 cacheid=xorg_cv_cc_flag__Winit_self 16526 if eval \${$cacheid+:} false; then : 16527 $as_echo_n "(cached) " >&6 16528else 16529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16530/* end confdefs.h. */ 16531int i; 16532int 16533main () 16534{ 16535 16536 ; 16537 return 0; 16538} 16539_ACEOF 16540if ac_fn_c_try_link "$LINENO"; then : 16541 eval $cacheid=yes 16542else 16543 eval $cacheid=no 16544fi 16545rm -f core conftest.err conftest.$ac_objext \ 16546 conftest$ac_exeext conftest.$ac_ext 16547fi 16548 16549 16550 CFLAGS="$xorg_testset_save_CFLAGS" 16551 16552 eval supported=\$$cacheid 16553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16554$as_echo "$supported" >&6; } 16555 if test "$supported" = "yes" ; then 16556 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 16557 found="yes" 16558 fi 16559 fi 16560 16561 16562 16563 16564 16565 16566 16567 16568 16569 16570 16571 16572 16573 16574 16575xorg_testset_save_CFLAGS="$CFLAGS" 16576 16577if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16578 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16580$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16581if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16582 $as_echo_n "(cached) " >&6 16583else 16584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16585/* end confdefs.h. */ 16586int i; 16587_ACEOF 16588if ac_fn_c_try_compile "$LINENO"; then : 16589 xorg_cv_cc_flag_unknown_warning_option=yes 16590else 16591 xorg_cv_cc_flag_unknown_warning_option=no 16592fi 16593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16594fi 16595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16596$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16597 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16598 CFLAGS="$xorg_testset_save_CFLAGS" 16599fi 16600 16601if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16602 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16603 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16604 fi 16605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16607$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16608if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16609 $as_echo_n "(cached) " >&6 16610else 16611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16612/* end confdefs.h. */ 16613int i; 16614_ACEOF 16615if ac_fn_c_try_compile "$LINENO"; then : 16616 xorg_cv_cc_flag_unused_command_line_argument=yes 16617else 16618 xorg_cv_cc_flag_unused_command_line_argument=no 16619fi 16620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16621fi 16622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16623$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16624 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16625 CFLAGS="$xorg_testset_save_CFLAGS" 16626fi 16627 16628found="no" 16629 16630 if test $found = "no" ; then 16631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16633 fi 16634 16635 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16637 fi 16638 16639 CFLAGS="$CFLAGS -Wmain" 16640 16641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 16642$as_echo_n "checking if $CC supports -Wmain... " >&6; } 16643 cacheid=xorg_cv_cc_flag__Wmain 16644 if eval \${$cacheid+:} false; then : 16645 $as_echo_n "(cached) " >&6 16646else 16647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16648/* end confdefs.h. */ 16649int i; 16650int 16651main () 16652{ 16653 16654 ; 16655 return 0; 16656} 16657_ACEOF 16658if ac_fn_c_try_link "$LINENO"; then : 16659 eval $cacheid=yes 16660else 16661 eval $cacheid=no 16662fi 16663rm -f core conftest.err conftest.$ac_objext \ 16664 conftest$ac_exeext conftest.$ac_ext 16665fi 16666 16667 16668 CFLAGS="$xorg_testset_save_CFLAGS" 16669 16670 eval supported=\$$cacheid 16671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16672$as_echo "$supported" >&6; } 16673 if test "$supported" = "yes" ; then 16674 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16675 found="yes" 16676 fi 16677 fi 16678 16679 16680 16681 16682 16683 16684 16685 16686 16687 16688 16689 16690 16691 16692 16693xorg_testset_save_CFLAGS="$CFLAGS" 16694 16695if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16696 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16698$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16699if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16700 $as_echo_n "(cached) " >&6 16701else 16702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16703/* end confdefs.h. */ 16704int i; 16705_ACEOF 16706if ac_fn_c_try_compile "$LINENO"; then : 16707 xorg_cv_cc_flag_unknown_warning_option=yes 16708else 16709 xorg_cv_cc_flag_unknown_warning_option=no 16710fi 16711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16712fi 16713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16714$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16715 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16716 CFLAGS="$xorg_testset_save_CFLAGS" 16717fi 16718 16719if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16722 fi 16723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16725$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16726if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16727 $as_echo_n "(cached) " >&6 16728else 16729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16730/* end confdefs.h. */ 16731int i; 16732_ACEOF 16733if ac_fn_c_try_compile "$LINENO"; then : 16734 xorg_cv_cc_flag_unused_command_line_argument=yes 16735else 16736 xorg_cv_cc_flag_unused_command_line_argument=no 16737fi 16738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16739fi 16740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16741$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16742 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16743 CFLAGS="$xorg_testset_save_CFLAGS" 16744fi 16745 16746found="no" 16747 16748 if test $found = "no" ; then 16749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16751 fi 16752 16753 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16755 fi 16756 16757 CFLAGS="$CFLAGS -Wmissing-braces" 16758 16759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16760$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16761 cacheid=xorg_cv_cc_flag__Wmissing_braces 16762 if eval \${$cacheid+:} false; then : 16763 $as_echo_n "(cached) " >&6 16764else 16765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16766/* end confdefs.h. */ 16767int i; 16768int 16769main () 16770{ 16771 16772 ; 16773 return 0; 16774} 16775_ACEOF 16776if ac_fn_c_try_link "$LINENO"; then : 16777 eval $cacheid=yes 16778else 16779 eval $cacheid=no 16780fi 16781rm -f core conftest.err conftest.$ac_objext \ 16782 conftest$ac_exeext conftest.$ac_ext 16783fi 16784 16785 16786 CFLAGS="$xorg_testset_save_CFLAGS" 16787 16788 eval supported=\$$cacheid 16789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16790$as_echo "$supported" >&6; } 16791 if test "$supported" = "yes" ; then 16792 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16793 found="yes" 16794 fi 16795 fi 16796 16797 16798 16799 16800 16801 16802 16803 16804 16805 16806 16807 16808 16809 16810 16811xorg_testset_save_CFLAGS="$CFLAGS" 16812 16813if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16814 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16816$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16817if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16818 $as_echo_n "(cached) " >&6 16819else 16820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16821/* end confdefs.h. */ 16822int i; 16823_ACEOF 16824if ac_fn_c_try_compile "$LINENO"; then : 16825 xorg_cv_cc_flag_unknown_warning_option=yes 16826else 16827 xorg_cv_cc_flag_unknown_warning_option=no 16828fi 16829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16830fi 16831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16832$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16833 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16834 CFLAGS="$xorg_testset_save_CFLAGS" 16835fi 16836 16837if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16840 fi 16841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16843$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16844if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16845 $as_echo_n "(cached) " >&6 16846else 16847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16848/* end confdefs.h. */ 16849int i; 16850_ACEOF 16851if ac_fn_c_try_compile "$LINENO"; then : 16852 xorg_cv_cc_flag_unused_command_line_argument=yes 16853else 16854 xorg_cv_cc_flag_unused_command_line_argument=no 16855fi 16856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16857fi 16858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16859$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16860 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16861 CFLAGS="$xorg_testset_save_CFLAGS" 16862fi 16863 16864found="no" 16865 16866 if test $found = "no" ; then 16867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16869 fi 16870 16871 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16873 fi 16874 16875 CFLAGS="$CFLAGS -Wsequence-point" 16876 16877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16878$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16879 cacheid=xorg_cv_cc_flag__Wsequence_point 16880 if eval \${$cacheid+:} false; then : 16881 $as_echo_n "(cached) " >&6 16882else 16883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16884/* end confdefs.h. */ 16885int i; 16886int 16887main () 16888{ 16889 16890 ; 16891 return 0; 16892} 16893_ACEOF 16894if ac_fn_c_try_link "$LINENO"; then : 16895 eval $cacheid=yes 16896else 16897 eval $cacheid=no 16898fi 16899rm -f core conftest.err conftest.$ac_objext \ 16900 conftest$ac_exeext conftest.$ac_ext 16901fi 16902 16903 16904 CFLAGS="$xorg_testset_save_CFLAGS" 16905 16906 eval supported=\$$cacheid 16907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16908$as_echo "$supported" >&6; } 16909 if test "$supported" = "yes" ; then 16910 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16911 found="yes" 16912 fi 16913 fi 16914 16915 16916 16917 16918 16919 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929xorg_testset_save_CFLAGS="$CFLAGS" 16930 16931if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16932 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16934$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16935if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16936 $as_echo_n "(cached) " >&6 16937else 16938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16939/* end confdefs.h. */ 16940int i; 16941_ACEOF 16942if ac_fn_c_try_compile "$LINENO"; then : 16943 xorg_cv_cc_flag_unknown_warning_option=yes 16944else 16945 xorg_cv_cc_flag_unknown_warning_option=no 16946fi 16947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16948fi 16949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16950$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16951 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16952 CFLAGS="$xorg_testset_save_CFLAGS" 16953fi 16954 16955if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16958 fi 16959 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16961$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16962if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16963 $as_echo_n "(cached) " >&6 16964else 16965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16966/* end confdefs.h. */ 16967int i; 16968_ACEOF 16969if ac_fn_c_try_compile "$LINENO"; then : 16970 xorg_cv_cc_flag_unused_command_line_argument=yes 16971else 16972 xorg_cv_cc_flag_unused_command_line_argument=no 16973fi 16974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16975fi 16976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16977$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16978 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16979 CFLAGS="$xorg_testset_save_CFLAGS" 16980fi 16981 16982found="no" 16983 16984 if test $found = "no" ; then 16985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16986 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16987 fi 16988 16989 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16991 fi 16992 16993 CFLAGS="$CFLAGS -Wreturn-type" 16994 16995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16996$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16997 cacheid=xorg_cv_cc_flag__Wreturn_type 16998 if eval \${$cacheid+:} false; then : 16999 $as_echo_n "(cached) " >&6 17000else 17001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17002/* end confdefs.h. */ 17003int i; 17004int 17005main () 17006{ 17007 17008 ; 17009 return 0; 17010} 17011_ACEOF 17012if ac_fn_c_try_link "$LINENO"; then : 17013 eval $cacheid=yes 17014else 17015 eval $cacheid=no 17016fi 17017rm -f core conftest.err conftest.$ac_objext \ 17018 conftest$ac_exeext conftest.$ac_ext 17019fi 17020 17021 17022 CFLAGS="$xorg_testset_save_CFLAGS" 17023 17024 eval supported=\$$cacheid 17025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17026$as_echo "$supported" >&6; } 17027 if test "$supported" = "yes" ; then 17028 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 17029 found="yes" 17030 fi 17031 fi 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047xorg_testset_save_CFLAGS="$CFLAGS" 17048 17049if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17052$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17053if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17054 $as_echo_n "(cached) " >&6 17055else 17056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17057/* end confdefs.h. */ 17058int i; 17059_ACEOF 17060if ac_fn_c_try_compile "$LINENO"; then : 17061 xorg_cv_cc_flag_unknown_warning_option=yes 17062else 17063 xorg_cv_cc_flag_unknown_warning_option=no 17064fi 17065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17066fi 17067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17068$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17069 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17070 CFLAGS="$xorg_testset_save_CFLAGS" 17071fi 17072 17073if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17076 fi 17077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17079$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17080if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17081 $as_echo_n "(cached) " >&6 17082else 17083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17084/* end confdefs.h. */ 17085int i; 17086_ACEOF 17087if ac_fn_c_try_compile "$LINENO"; then : 17088 xorg_cv_cc_flag_unused_command_line_argument=yes 17089else 17090 xorg_cv_cc_flag_unused_command_line_argument=no 17091fi 17092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17093fi 17094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17095$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17096 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17097 CFLAGS="$xorg_testset_save_CFLAGS" 17098fi 17099 17100found="no" 17101 17102 if test $found = "no" ; then 17103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17105 fi 17106 17107 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17109 fi 17110 17111 CFLAGS="$CFLAGS -Wtrigraphs" 17112 17113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 17114$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 17115 cacheid=xorg_cv_cc_flag__Wtrigraphs 17116 if eval \${$cacheid+:} false; then : 17117 $as_echo_n "(cached) " >&6 17118else 17119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17120/* end confdefs.h. */ 17121int i; 17122int 17123main () 17124{ 17125 17126 ; 17127 return 0; 17128} 17129_ACEOF 17130if ac_fn_c_try_link "$LINENO"; then : 17131 eval $cacheid=yes 17132else 17133 eval $cacheid=no 17134fi 17135rm -f core conftest.err conftest.$ac_objext \ 17136 conftest$ac_exeext conftest.$ac_ext 17137fi 17138 17139 17140 CFLAGS="$xorg_testset_save_CFLAGS" 17141 17142 eval supported=\$$cacheid 17143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17144$as_echo "$supported" >&6; } 17145 if test "$supported" = "yes" ; then 17146 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 17147 found="yes" 17148 fi 17149 fi 17150 17151 17152 17153 17154 17155 17156 17157 17158 17159 17160 17161 17162 17163 17164 17165xorg_testset_save_CFLAGS="$CFLAGS" 17166 17167if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17170$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17171if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17172 $as_echo_n "(cached) " >&6 17173else 17174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17175/* end confdefs.h. */ 17176int i; 17177_ACEOF 17178if ac_fn_c_try_compile "$LINENO"; then : 17179 xorg_cv_cc_flag_unknown_warning_option=yes 17180else 17181 xorg_cv_cc_flag_unknown_warning_option=no 17182fi 17183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17184fi 17185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17186$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17187 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17188 CFLAGS="$xorg_testset_save_CFLAGS" 17189fi 17190 17191if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17194 fi 17195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17197$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17198if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17199 $as_echo_n "(cached) " >&6 17200else 17201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17202/* end confdefs.h. */ 17203int i; 17204_ACEOF 17205if ac_fn_c_try_compile "$LINENO"; then : 17206 xorg_cv_cc_flag_unused_command_line_argument=yes 17207else 17208 xorg_cv_cc_flag_unused_command_line_argument=no 17209fi 17210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17211fi 17212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17213$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17214 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17215 CFLAGS="$xorg_testset_save_CFLAGS" 17216fi 17217 17218found="no" 17219 17220 if test $found = "no" ; then 17221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17223 fi 17224 17225 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17227 fi 17228 17229 CFLAGS="$CFLAGS -Warray-bounds" 17230 17231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 17232$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 17233 cacheid=xorg_cv_cc_flag__Warray_bounds 17234 if eval \${$cacheid+:} false; then : 17235 $as_echo_n "(cached) " >&6 17236else 17237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17238/* end confdefs.h. */ 17239int i; 17240int 17241main () 17242{ 17243 17244 ; 17245 return 0; 17246} 17247_ACEOF 17248if ac_fn_c_try_link "$LINENO"; then : 17249 eval $cacheid=yes 17250else 17251 eval $cacheid=no 17252fi 17253rm -f core conftest.err conftest.$ac_objext \ 17254 conftest$ac_exeext conftest.$ac_ext 17255fi 17256 17257 17258 CFLAGS="$xorg_testset_save_CFLAGS" 17259 17260 eval supported=\$$cacheid 17261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17262$as_echo "$supported" >&6; } 17263 if test "$supported" = "yes" ; then 17264 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 17265 found="yes" 17266 fi 17267 fi 17268 17269 17270 17271 17272 17273 17274 17275 17276 17277 17278 17279 17280 17281 17282 17283xorg_testset_save_CFLAGS="$CFLAGS" 17284 17285if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17286 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17288$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17289if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17290 $as_echo_n "(cached) " >&6 17291else 17292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17293/* end confdefs.h. */ 17294int i; 17295_ACEOF 17296if ac_fn_c_try_compile "$LINENO"; then : 17297 xorg_cv_cc_flag_unknown_warning_option=yes 17298else 17299 xorg_cv_cc_flag_unknown_warning_option=no 17300fi 17301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17302fi 17303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17304$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17305 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17306 CFLAGS="$xorg_testset_save_CFLAGS" 17307fi 17308 17309if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17312 fi 17313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17315$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17316if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17317 $as_echo_n "(cached) " >&6 17318else 17319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17320/* end confdefs.h. */ 17321int i; 17322_ACEOF 17323if ac_fn_c_try_compile "$LINENO"; then : 17324 xorg_cv_cc_flag_unused_command_line_argument=yes 17325else 17326 xorg_cv_cc_flag_unused_command_line_argument=no 17327fi 17328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17329fi 17330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17331$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17332 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17333 CFLAGS="$xorg_testset_save_CFLAGS" 17334fi 17335 17336found="no" 17337 17338 if test $found = "no" ; then 17339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17341 fi 17342 17343 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17345 fi 17346 17347 CFLAGS="$CFLAGS -Wwrite-strings" 17348 17349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 17350$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 17351 cacheid=xorg_cv_cc_flag__Wwrite_strings 17352 if eval \${$cacheid+:} false; then : 17353 $as_echo_n "(cached) " >&6 17354else 17355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17356/* end confdefs.h. */ 17357int i; 17358int 17359main () 17360{ 17361 17362 ; 17363 return 0; 17364} 17365_ACEOF 17366if ac_fn_c_try_link "$LINENO"; then : 17367 eval $cacheid=yes 17368else 17369 eval $cacheid=no 17370fi 17371rm -f core conftest.err conftest.$ac_objext \ 17372 conftest$ac_exeext conftest.$ac_ext 17373fi 17374 17375 17376 CFLAGS="$xorg_testset_save_CFLAGS" 17377 17378 eval supported=\$$cacheid 17379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17380$as_echo "$supported" >&6; } 17381 if test "$supported" = "yes" ; then 17382 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 17383 found="yes" 17384 fi 17385 fi 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401xorg_testset_save_CFLAGS="$CFLAGS" 17402 17403if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17406$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17407if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17408 $as_echo_n "(cached) " >&6 17409else 17410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17411/* end confdefs.h. */ 17412int i; 17413_ACEOF 17414if ac_fn_c_try_compile "$LINENO"; then : 17415 xorg_cv_cc_flag_unknown_warning_option=yes 17416else 17417 xorg_cv_cc_flag_unknown_warning_option=no 17418fi 17419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17420fi 17421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17422$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17423 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17424 CFLAGS="$xorg_testset_save_CFLAGS" 17425fi 17426 17427if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17429 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17430 fi 17431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17433$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17434if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17435 $as_echo_n "(cached) " >&6 17436else 17437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17438/* end confdefs.h. */ 17439int i; 17440_ACEOF 17441if ac_fn_c_try_compile "$LINENO"; then : 17442 xorg_cv_cc_flag_unused_command_line_argument=yes 17443else 17444 xorg_cv_cc_flag_unused_command_line_argument=no 17445fi 17446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17447fi 17448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17449$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17450 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17451 CFLAGS="$xorg_testset_save_CFLAGS" 17452fi 17453 17454found="no" 17455 17456 if test $found = "no" ; then 17457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17459 fi 17460 17461 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17463 fi 17464 17465 CFLAGS="$CFLAGS -Waddress" 17466 17467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 17468$as_echo_n "checking if $CC supports -Waddress... " >&6; } 17469 cacheid=xorg_cv_cc_flag__Waddress 17470 if eval \${$cacheid+:} false; then : 17471 $as_echo_n "(cached) " >&6 17472else 17473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17474/* end confdefs.h. */ 17475int i; 17476int 17477main () 17478{ 17479 17480 ; 17481 return 0; 17482} 17483_ACEOF 17484if ac_fn_c_try_link "$LINENO"; then : 17485 eval $cacheid=yes 17486else 17487 eval $cacheid=no 17488fi 17489rm -f core conftest.err conftest.$ac_objext \ 17490 conftest$ac_exeext conftest.$ac_ext 17491fi 17492 17493 17494 CFLAGS="$xorg_testset_save_CFLAGS" 17495 17496 eval supported=\$$cacheid 17497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17498$as_echo "$supported" >&6; } 17499 if test "$supported" = "yes" ; then 17500 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 17501 found="yes" 17502 fi 17503 fi 17504 17505 17506 17507 17508 17509 17510 17511 17512 17513 17514 17515 17516 17517 17518 17519xorg_testset_save_CFLAGS="$CFLAGS" 17520 17521if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17522 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17524$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17525if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17526 $as_echo_n "(cached) " >&6 17527else 17528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17529/* end confdefs.h. */ 17530int i; 17531_ACEOF 17532if ac_fn_c_try_compile "$LINENO"; then : 17533 xorg_cv_cc_flag_unknown_warning_option=yes 17534else 17535 xorg_cv_cc_flag_unknown_warning_option=no 17536fi 17537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17538fi 17539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17540$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17541 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17542 CFLAGS="$xorg_testset_save_CFLAGS" 17543fi 17544 17545if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17548 fi 17549 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17551$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17552if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17553 $as_echo_n "(cached) " >&6 17554else 17555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17556/* end confdefs.h. */ 17557int i; 17558_ACEOF 17559if ac_fn_c_try_compile "$LINENO"; then : 17560 xorg_cv_cc_flag_unused_command_line_argument=yes 17561else 17562 xorg_cv_cc_flag_unused_command_line_argument=no 17563fi 17564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17565fi 17566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17567$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17568 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17569 CFLAGS="$xorg_testset_save_CFLAGS" 17570fi 17571 17572found="no" 17573 17574 if test $found = "no" ; then 17575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17576 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17577 fi 17578 17579 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17581 fi 17582 17583 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 17584 17585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 17586$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 17587 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 17588 if eval \${$cacheid+:} false; then : 17589 $as_echo_n "(cached) " >&6 17590else 17591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17592/* end confdefs.h. */ 17593int i; 17594int 17595main () 17596{ 17597 17598 ; 17599 return 0; 17600} 17601_ACEOF 17602if ac_fn_c_try_link "$LINENO"; then : 17603 eval $cacheid=yes 17604else 17605 eval $cacheid=no 17606fi 17607rm -f core conftest.err conftest.$ac_objext \ 17608 conftest$ac_exeext conftest.$ac_ext 17609fi 17610 17611 17612 CFLAGS="$xorg_testset_save_CFLAGS" 17613 17614 eval supported=\$$cacheid 17615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17616$as_echo "$supported" >&6; } 17617 if test "$supported" = "yes" ; then 17618 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 17619 found="yes" 17620 fi 17621 fi 17622 17623 17624 17625 17626 17627 17628 17629 17630 17631 17632 17633 17634 17635 17636 17637xorg_testset_save_CFLAGS="$CFLAGS" 17638 17639if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17642$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17643if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17644 $as_echo_n "(cached) " >&6 17645else 17646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17647/* end confdefs.h. */ 17648int i; 17649_ACEOF 17650if ac_fn_c_try_compile "$LINENO"; then : 17651 xorg_cv_cc_flag_unknown_warning_option=yes 17652else 17653 xorg_cv_cc_flag_unknown_warning_option=no 17654fi 17655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17656fi 17657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17658$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17659 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17660 CFLAGS="$xorg_testset_save_CFLAGS" 17661fi 17662 17663if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17666 fi 17667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17669$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17670if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17671 $as_echo_n "(cached) " >&6 17672else 17673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17674/* end confdefs.h. */ 17675int i; 17676_ACEOF 17677if ac_fn_c_try_compile "$LINENO"; then : 17678 xorg_cv_cc_flag_unused_command_line_argument=yes 17679else 17680 xorg_cv_cc_flag_unused_command_line_argument=no 17681fi 17682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17683fi 17684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17685$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17686 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17687 CFLAGS="$xorg_testset_save_CFLAGS" 17688fi 17689 17690found="no" 17691 17692 if test $found = "no" ; then 17693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17695 fi 17696 17697 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17699 fi 17700 17701 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17702 17703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17704$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17705 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17706 if eval \${$cacheid+:} false; then : 17707 $as_echo_n "(cached) " >&6 17708else 17709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17710/* end confdefs.h. */ 17711int i; 17712int 17713main () 17714{ 17715 17716 ; 17717 return 0; 17718} 17719_ACEOF 17720if ac_fn_c_try_link "$LINENO"; then : 17721 eval $cacheid=yes 17722else 17723 eval $cacheid=no 17724fi 17725rm -f core conftest.err conftest.$ac_objext \ 17726 conftest$ac_exeext conftest.$ac_ext 17727fi 17728 17729 17730 CFLAGS="$xorg_testset_save_CFLAGS" 17731 17732 eval supported=\$$cacheid 17733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17734$as_echo "$supported" >&6; } 17735 if test "$supported" = "yes" ; then 17736 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17737 found="yes" 17738 fi 17739 fi 17740 17741 17742fi 17743 17744 17745 17746 17747 17748 17749 17750 CWARNFLAGS="$BASE_CFLAGS" 17751 if test "x$GCC" = xyes ; then 17752 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17753 fi 17754 17755 17756 17757 17758 17759 17760 17761 17762# Check whether --enable-strict-compilation was given. 17763if test "${enable_strict_compilation+set}" = set; then : 17764 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17765else 17766 STRICT_COMPILE=no 17767fi 17768 17769 17770 17771 17772 17773 17774STRICT_CFLAGS="" 17775 17776 17777 17778 17779 17780 17781 17782 17783 17784 17785 17786 17787 17788xorg_testset_save_CFLAGS="$CFLAGS" 17789 17790if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17791 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17793$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17794if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17795 $as_echo_n "(cached) " >&6 17796else 17797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17798/* end confdefs.h. */ 17799int i; 17800_ACEOF 17801if ac_fn_c_try_compile "$LINENO"; then : 17802 xorg_cv_cc_flag_unknown_warning_option=yes 17803else 17804 xorg_cv_cc_flag_unknown_warning_option=no 17805fi 17806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17807fi 17808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17809$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17810 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17811 CFLAGS="$xorg_testset_save_CFLAGS" 17812fi 17813 17814if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17815 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17816 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17817 fi 17818 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17820$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17821if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17822 $as_echo_n "(cached) " >&6 17823else 17824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17825/* end confdefs.h. */ 17826int i; 17827_ACEOF 17828if ac_fn_c_try_compile "$LINENO"; then : 17829 xorg_cv_cc_flag_unused_command_line_argument=yes 17830else 17831 xorg_cv_cc_flag_unused_command_line_argument=no 17832fi 17833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17834fi 17835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17836$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17837 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17838 CFLAGS="$xorg_testset_save_CFLAGS" 17839fi 17840 17841found="no" 17842 17843 if test $found = "no" ; then 17844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17846 fi 17847 17848 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17850 fi 17851 17852 CFLAGS="$CFLAGS -pedantic" 17853 17854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17855$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17856 cacheid=xorg_cv_cc_flag__pedantic 17857 if eval \${$cacheid+:} false; then : 17858 $as_echo_n "(cached) " >&6 17859else 17860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17861/* end confdefs.h. */ 17862int i; 17863int 17864main () 17865{ 17866 17867 ; 17868 return 0; 17869} 17870_ACEOF 17871if ac_fn_c_try_link "$LINENO"; then : 17872 eval $cacheid=yes 17873else 17874 eval $cacheid=no 17875fi 17876rm -f core conftest.err conftest.$ac_objext \ 17877 conftest$ac_exeext conftest.$ac_ext 17878fi 17879 17880 17881 CFLAGS="$xorg_testset_save_CFLAGS" 17882 17883 eval supported=\$$cacheid 17884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17885$as_echo "$supported" >&6; } 17886 if test "$supported" = "yes" ; then 17887 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17888 found="yes" 17889 fi 17890 fi 17891 17892 17893 17894 17895 17896 17897 17898 17899 17900 17901 17902 17903 17904 17905 17906xorg_testset_save_CFLAGS="$CFLAGS" 17907 17908if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17909 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17911$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17912if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17913 $as_echo_n "(cached) " >&6 17914else 17915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17916/* end confdefs.h. */ 17917int i; 17918_ACEOF 17919if ac_fn_c_try_compile "$LINENO"; then : 17920 xorg_cv_cc_flag_unknown_warning_option=yes 17921else 17922 xorg_cv_cc_flag_unknown_warning_option=no 17923fi 17924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17925fi 17926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17927$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17928 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17929 CFLAGS="$xorg_testset_save_CFLAGS" 17930fi 17931 17932if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17935 fi 17936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17938$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17939if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17940 $as_echo_n "(cached) " >&6 17941else 17942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17943/* end confdefs.h. */ 17944int i; 17945_ACEOF 17946if ac_fn_c_try_compile "$LINENO"; then : 17947 xorg_cv_cc_flag_unused_command_line_argument=yes 17948else 17949 xorg_cv_cc_flag_unused_command_line_argument=no 17950fi 17951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17952fi 17953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17954$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17955 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17956 CFLAGS="$xorg_testset_save_CFLAGS" 17957fi 17958 17959found="no" 17960 17961 if test $found = "no" ; then 17962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17964 fi 17965 17966 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17968 fi 17969 17970 CFLAGS="$CFLAGS -Werror" 17971 17972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17973$as_echo_n "checking if $CC supports -Werror... " >&6; } 17974 cacheid=xorg_cv_cc_flag__Werror 17975 if eval \${$cacheid+:} false; then : 17976 $as_echo_n "(cached) " >&6 17977else 17978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17979/* end confdefs.h. */ 17980int i; 17981int 17982main () 17983{ 17984 17985 ; 17986 return 0; 17987} 17988_ACEOF 17989if ac_fn_c_try_link "$LINENO"; then : 17990 eval $cacheid=yes 17991else 17992 eval $cacheid=no 17993fi 17994rm -f core conftest.err conftest.$ac_objext \ 17995 conftest$ac_exeext conftest.$ac_ext 17996fi 17997 17998 17999 CFLAGS="$xorg_testset_save_CFLAGS" 18000 18001 eval supported=\$$cacheid 18002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18003$as_echo "$supported" >&6; } 18004 if test "$supported" = "yes" ; then 18005 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 18006 found="yes" 18007 fi 18008 fi 18009 18010 if test $found = "no" ; then 18011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18013 fi 18014 18015 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18017 fi 18018 18019 CFLAGS="$CFLAGS -errwarn" 18020 18021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 18022$as_echo_n "checking if $CC supports -errwarn... " >&6; } 18023 cacheid=xorg_cv_cc_flag__errwarn 18024 if eval \${$cacheid+:} false; then : 18025 $as_echo_n "(cached) " >&6 18026else 18027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18028/* end confdefs.h. */ 18029int i; 18030int 18031main () 18032{ 18033 18034 ; 18035 return 0; 18036} 18037_ACEOF 18038if ac_fn_c_try_link "$LINENO"; then : 18039 eval $cacheid=yes 18040else 18041 eval $cacheid=no 18042fi 18043rm -f core conftest.err conftest.$ac_objext \ 18044 conftest$ac_exeext conftest.$ac_ext 18045fi 18046 18047 18048 CFLAGS="$xorg_testset_save_CFLAGS" 18049 18050 eval supported=\$$cacheid 18051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18052$as_echo "$supported" >&6; } 18053 if test "$supported" = "yes" ; then 18054 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 18055 found="yes" 18056 fi 18057 fi 18058 18059 18060 18061# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 18062# activate it with -Werror, so we add it here explicitly. 18063 18064 18065 18066 18067 18068 18069 18070 18071 18072 18073 18074 18075 18076xorg_testset_save_CFLAGS="$CFLAGS" 18077 18078if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18081$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18082if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18083 $as_echo_n "(cached) " >&6 18084else 18085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18086/* end confdefs.h. */ 18087int i; 18088_ACEOF 18089if ac_fn_c_try_compile "$LINENO"; then : 18090 xorg_cv_cc_flag_unknown_warning_option=yes 18091else 18092 xorg_cv_cc_flag_unknown_warning_option=no 18093fi 18094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18095fi 18096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18097$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18098 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18099 CFLAGS="$xorg_testset_save_CFLAGS" 18100fi 18101 18102if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18105 fi 18106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18108$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18109if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18110 $as_echo_n "(cached) " >&6 18111else 18112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18113/* end confdefs.h. */ 18114int i; 18115_ACEOF 18116if ac_fn_c_try_compile "$LINENO"; then : 18117 xorg_cv_cc_flag_unused_command_line_argument=yes 18118else 18119 xorg_cv_cc_flag_unused_command_line_argument=no 18120fi 18121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18122fi 18123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18124$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18125 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18126 CFLAGS="$xorg_testset_save_CFLAGS" 18127fi 18128 18129found="no" 18130 18131 if test $found = "no" ; then 18132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18134 fi 18135 18136 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18138 fi 18139 18140 CFLAGS="$CFLAGS -Werror=attributes" 18141 18142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 18143$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 18144 cacheid=xorg_cv_cc_flag__Werror_attributes 18145 if eval \${$cacheid+:} false; then : 18146 $as_echo_n "(cached) " >&6 18147else 18148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18149/* end confdefs.h. */ 18150int i; 18151int 18152main () 18153{ 18154 18155 ; 18156 return 0; 18157} 18158_ACEOF 18159if ac_fn_c_try_link "$LINENO"; then : 18160 eval $cacheid=yes 18161else 18162 eval $cacheid=no 18163fi 18164rm -f core conftest.err conftest.$ac_objext \ 18165 conftest$ac_exeext conftest.$ac_ext 18166fi 18167 18168 18169 CFLAGS="$xorg_testset_save_CFLAGS" 18170 18171 eval supported=\$$cacheid 18172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18173$as_echo "$supported" >&6; } 18174 if test "$supported" = "yes" ; then 18175 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 18176 found="yes" 18177 fi 18178 fi 18179 18180 18181 18182if test "x$STRICT_COMPILE" = "xyes"; then 18183 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 18184 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 18185fi 18186 18187 18188 18189 18190 18191 18192cat >>confdefs.h <<_ACEOF 18193#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 18194_ACEOF 18195 18196 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 18197 if test "x$PVM" = "x"; then 18198 PVM="0" 18199 fi 18200 18201cat >>confdefs.h <<_ACEOF 18202#define PACKAGE_VERSION_MINOR $PVM 18203_ACEOF 18204 18205 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 18206 if test "x$PVP" = "x"; then 18207 PVP="0" 18208 fi 18209 18210cat >>confdefs.h <<_ACEOF 18211#define PACKAGE_VERSION_PATCHLEVEL $PVP 18212_ACEOF 18213 18214 18215 18216CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 18217mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 18218|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 18219echo 'git directory not found: installing possibly empty changelog.' >&2)" 18220 18221 18222 18223 18224macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 18225INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 18226mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 18227|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 18228echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 18229 18230 18231 18232 18233 18234 18235if test x$APP_MAN_SUFFIX = x ; then 18236 APP_MAN_SUFFIX=1 18237fi 18238if test x$APP_MAN_DIR = x ; then 18239 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 18240fi 18241 18242if test x$LIB_MAN_SUFFIX = x ; then 18243 LIB_MAN_SUFFIX=3 18244fi 18245if test x$LIB_MAN_DIR = x ; then 18246 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 18247fi 18248 18249if test x$FILE_MAN_SUFFIX = x ; then 18250 case $host_os in 18251 # Solaris 2.0 - 11 use SysV man page sections 18252 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;; 18253 *) FILE_MAN_SUFFIX=5 ;; 18254 esac 18255fi 18256if test x$FILE_MAN_DIR = x ; then 18257 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 18258fi 18259 18260if test x$MISC_MAN_SUFFIX = x ; then 18261 case $host_os in 18262 # Solaris 2.0 - 11 use SysV man page sections 18263 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;; 18264 *) MISC_MAN_SUFFIX=7 ;; 18265 esac 18266fi 18267if test x$MISC_MAN_DIR = x ; then 18268 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 18269fi 18270 18271if test x$DRIVER_MAN_SUFFIX = x ; then 18272 case $host_os in 18273 # Solaris 2.0 - 11 use SysV man page sections 18274 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;; 18275 *) DRIVER_MAN_SUFFIX=4 ;; 18276 esac 18277fi 18278if test x$DRIVER_MAN_DIR = x ; then 18279 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 18280fi 18281 18282if test x$ADMIN_MAN_SUFFIX = x ; then 18283 case $host_os in 18284 # Solaris 2.0 - 11 use SysV man page sections 18285 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;; 18286 *) ADMIN_MAN_SUFFIX=8 ;; 18287 esac 18288fi 18289if test x$ADMIN_MAN_DIR = x ; then 18290 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 18291fi 18292 18293 18294 18295 18296 18297 18298 18299 18300 18301 18302 18303 18304 18305 18306 18307XORG_MAN_PAGE="X Version 11" 18308 18309MAN_SUBSTS="\ 18310 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18311 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18312 -e 's|__xservername__|Xorg|g' \ 18313 -e 's|__xconfigfile__|xorg.conf|g' \ 18314 -e 's|__projectroot__|\$(prefix)|g' \ 18315 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 18316 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 18317 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 18318 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 18319 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 18320 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 18321 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 18322 18323 18324 18325# Check whether --enable-silent-rules was given. 18326if test "${enable_silent_rules+set}" = set; then : 18327 enableval=$enable_silent_rules; 18328fi 18329 18330case $enable_silent_rules in # ((( 18331 yes) AM_DEFAULT_VERBOSITY=0;; 18332 no) AM_DEFAULT_VERBOSITY=1;; 18333 *) AM_DEFAULT_VERBOSITY=0;; 18334esac 18335am_make=${MAKE-make} 18336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 18337$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 18338if ${am_cv_make_support_nested_variables+:} false; then : 18339 $as_echo_n "(cached) " >&6 18340else 18341 if $as_echo 'TRUE=$(BAR$(V)) 18342BAR0=false 18343BAR1=true 18344V=1 18345am__doit: 18346 @$(TRUE) 18347.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 18348 am_cv_make_support_nested_variables=yes 18349else 18350 am_cv_make_support_nested_variables=no 18351fi 18352fi 18353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 18354$as_echo "$am_cv_make_support_nested_variables" >&6; } 18355if test $am_cv_make_support_nested_variables = yes; then 18356 AM_V='$(V)' 18357 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 18358else 18359 AM_V=$AM_DEFAULT_VERBOSITY 18360 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 18361fi 18362AM_BACKSLASH='\' 18363 18364 18365 18366# Require X.Org's font util macros 1.1 or later for XORG_FONTROOTDIR 18367 18368 18369 18370 18371 18372 18373 18374 18375 18376 18377 18378 18379 18380 18381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5 18382$as_echo_n "checking for root directory for font files... " >&6; } 18383 18384# Check whether --with-fontrootdir was given. 18385if test "${with_fontrootdir+set}" = set; then : 18386 withval=$with_fontrootdir; FONTROOTDIR="$withval" 18387fi 18388 18389 # if --with-fontrootdir not specified... 18390 if test "x${FONTROOTDIR}" = "x"; then 18391 FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil` 18392 fi 18393 # ...and if pkg-config didn't find fontdir in fontutil.pc... 18394 if test "x${FONTROOTDIR}" = "x"; then 18395 FONTROOTDIR="${datadir}/fonts/X11" 18396 fi 18397 18398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5 18399$as_echo "${FONTROOTDIR}" >&6; } 18400 18401 18402 18403 18404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for encodings files" >&5 18405$as_echo_n "checking for directory for encodings files... " >&6; } 18406 18407# Check whether --with-encodingsdir was given. 18408if test "${with_encodingsdir+set}" = set; then : 18409 withval=$with_encodingsdir; ENCODINGSDIR="${withval}" 18410else 18411 ENCODINGSDIR='${FONTROOTDIR}/encodings' 18412fi 18413 18414 18415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ENCODINGSDIR}" >&5 18416$as_echo "${ENCODINGSDIR}" >&6; } 18417 18418 18419# zlib 18420ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 18421if test "x$ac_cv_header_zlib_h" = xyes; then : 18422 18423else 18424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18425$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18426as_fn_error $? "zlib.h is required to compile libfontenc 18427See \`config.log' for more details" "$LINENO" 5; } 18428fi 18429 18430 18431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzclose in -lz" >&5 18432$as_echo_n "checking for gzclose in -lz... " >&6; } 18433if ${ac_cv_lib_z_gzclose+:} false; then : 18434 $as_echo_n "(cached) " >&6 18435else 18436 ac_check_lib_save_LIBS=$LIBS 18437LIBS="-lz $LIBS" 18438cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18439/* end confdefs.h. */ 18440 18441/* Override any GCC internal prototype to avoid an error. 18442 Use char because int might match the return type of a GCC 18443 builtin and then its argument prototype would still apply. */ 18444#ifdef __cplusplus 18445extern "C" 18446#endif 18447char gzclose (); 18448int 18449main () 18450{ 18451return gzclose (); 18452 ; 18453 return 0; 18454} 18455_ACEOF 18456if ac_fn_c_try_link "$LINENO"; then : 18457 ac_cv_lib_z_gzclose=yes 18458else 18459 ac_cv_lib_z_gzclose=no 18460fi 18461rm -f core conftest.err conftest.$ac_objext \ 18462 conftest$ac_exeext conftest.$ac_ext 18463LIBS=$ac_check_lib_save_LIBS 18464fi 18465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzclose" >&5 18466$as_echo "$ac_cv_lib_z_gzclose" >&6; } 18467if test "x$ac_cv_lib_z_gzclose" = xyes; then : 18468 cat >>confdefs.h <<_ACEOF 18469#define HAVE_LIBZ 1 18470_ACEOF 18471 18472 LIBS="-lz $LIBS" 18473 18474else 18475 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18476$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18477as_fn_error $? "zlib is required to compile libfontenc 18478See \`config.log' for more details" "$LINENO" 5; } 18479fi 18480 18481 18482# Obtain compiler/linker options for depedencies 18483 18484pkg_failed=no 18485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTENC" >&5 18486$as_echo_n "checking for FONTENC... " >&6; } 18487 18488if test -n "$FONTENC_CFLAGS"; then 18489 pkg_cv_FONTENC_CFLAGS="$FONTENC_CFLAGS" 18490 elif test -n "$PKG_CONFIG"; then 18491 if test -n "$PKG_CONFIG" && \ 18492 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5 18493 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 18494 ac_status=$? 18495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18496 test $ac_status = 0; }; then 18497 pkg_cv_FONTENC_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null` 18498 test "x$?" != "x0" && pkg_failed=yes 18499else 18500 pkg_failed=yes 18501fi 18502 else 18503 pkg_failed=untried 18504fi 18505if test -n "$FONTENC_LIBS"; then 18506 pkg_cv_FONTENC_LIBS="$FONTENC_LIBS" 18507 elif test -n "$PKG_CONFIG"; then 18508 if test -n "$PKG_CONFIG" && \ 18509 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5 18510 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 18511 ac_status=$? 18512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18513 test $ac_status = 0; }; then 18514 pkg_cv_FONTENC_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null` 18515 test "x$?" != "x0" && pkg_failed=yes 18516else 18517 pkg_failed=yes 18518fi 18519 else 18520 pkg_failed=untried 18521fi 18522 18523 18524 18525if test $pkg_failed = yes; then 18526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18527$as_echo "no" >&6; } 18528 18529if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18530 _pkg_short_errors_supported=yes 18531else 18532 _pkg_short_errors_supported=no 18533fi 18534 if test $_pkg_short_errors_supported = yes; then 18535 FONTENC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto" 2>&1` 18536 else 18537 FONTENC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto" 2>&1` 18538 fi 18539 # Put the nasty error message in config.log where it belongs 18540 echo "$FONTENC_PKG_ERRORS" >&5 18541 18542 as_fn_error $? "Package requirements (xproto) were not met: 18543 18544$FONTENC_PKG_ERRORS 18545 18546Consider adjusting the PKG_CONFIG_PATH environment variable if you 18547installed software in a non-standard prefix. 18548 18549Alternatively, you may set the environment variables FONTENC_CFLAGS 18550and FONTENC_LIBS to avoid the need to call pkg-config. 18551See the pkg-config man page for more details." "$LINENO" 5 18552elif test $pkg_failed = untried; then 18553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18554$as_echo "no" >&6; } 18555 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18556$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18557as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18558is in your PATH or set the PKG_CONFIG environment variable to the full 18559path to pkg-config. 18560 18561Alternatively, you may set the environment variables FONTENC_CFLAGS 18562and FONTENC_LIBS to avoid the need to call pkg-config. 18563See the pkg-config man page for more details. 18564 18565To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18566See \`config.log' for more details" "$LINENO" 5; } 18567else 18568 FONTENC_CFLAGS=$pkg_cv_FONTENC_CFLAGS 18569 FONTENC_LIBS=$pkg_cv_FONTENC_LIBS 18570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18571$as_echo "yes" >&6; } 18572 18573fi 18574 18575# Allow checking code with lint, sparse, etc. 18576 18577 18578 18579 18580 18581# Check whether --with-lint was given. 18582if test "${with_lint+set}" = set; then : 18583 withval=$with_lint; use_lint=$withval 18584else 18585 use_lint=no 18586fi 18587 18588 18589# Obtain platform specific info like program name and options 18590# The lint program on FreeBSD and NetBSD is different from the one on Solaris 18591case $host_os in 18592 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 18593 lint_name=splint 18594 lint_options="-badflag" 18595 ;; 18596 *freebsd* | *netbsd*) 18597 lint_name=lint 18598 lint_options="-u -b" 18599 ;; 18600 *solaris*) 18601 lint_name=lint 18602 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 18603 ;; 18604esac 18605 18606# Test for the presence of the program (either guessed by the code or spelled out by the user) 18607if test "x$use_lint" = x"yes" ; then 18608 # Extract the first word of "$lint_name", so it can be a program name with args. 18609set dummy $lint_name; ac_word=$2 18610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18611$as_echo_n "checking for $ac_word... " >&6; } 18612if ${ac_cv_path_LINT+:} false; then : 18613 $as_echo_n "(cached) " >&6 18614else 18615 case $LINT in 18616 [\\/]* | ?:[\\/]*) 18617 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 18618 ;; 18619 *) 18620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18621for as_dir in $PATH 18622do 18623 IFS=$as_save_IFS 18624 test -z "$as_dir" && as_dir=. 18625 for ac_exec_ext in '' $ac_executable_extensions; do 18626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18627 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 18628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18629 break 2 18630 fi 18631done 18632 done 18633IFS=$as_save_IFS 18634 18635 ;; 18636esac 18637fi 18638LINT=$ac_cv_path_LINT 18639if test -n "$LINT"; then 18640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 18641$as_echo "$LINT" >&6; } 18642else 18643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18644$as_echo "no" >&6; } 18645fi 18646 18647 18648 if test "x$LINT" = "x"; then 18649 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 18650 fi 18651elif test "x$use_lint" = x"no" ; then 18652 if test "x$LINT" != "x"; then 18653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 18654$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 18655 fi 18656else 18657 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 18658fi 18659 18660# User supplied flags override default flags 18661if test "x$LINT_FLAGS" != "x"; then 18662 lint_options=$LINT_FLAGS 18663fi 18664 18665LINT_FLAGS=$lint_options 18666 18667 if test "x$LINT" != x; then 18668 LINT_TRUE= 18669 LINT_FALSE='#' 18670else 18671 LINT_TRUE='#' 18672 LINT_FALSE= 18673fi 18674 18675 18676 18677LINT_FLAGS="${LINT_FLAGS} ${FONTENC_CFLAGS}" 18678 18679ac_config_files="$ac_config_files Makefile src/Makefile fontenc.pc" 18680 18681cat >confcache <<\_ACEOF 18682# This file is a shell script that caches the results of configure 18683# tests run on this system so they can be shared between configure 18684# scripts and configure runs, see configure's option --config-cache. 18685# It is not useful on other systems. If it contains results you don't 18686# want to keep, you may remove or edit it. 18687# 18688# config.status only pays attention to the cache file if you give it 18689# the --recheck option to rerun configure. 18690# 18691# `ac_cv_env_foo' variables (set or unset) will be overridden when 18692# loading this file, other *unset* `ac_cv_foo' will be assigned the 18693# following values. 18694 18695_ACEOF 18696 18697# The following way of writing the cache mishandles newlines in values, 18698# but we know of no workaround that is simple, portable, and efficient. 18699# So, we kill variables containing newlines. 18700# Ultrix sh set writes to stderr and can't be redirected directly, 18701# and sets the high bit in the cache file unless we assign to the vars. 18702( 18703 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18704 eval ac_val=\$$ac_var 18705 case $ac_val in #( 18706 *${as_nl}*) 18707 case $ac_var in #( 18708 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18709$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18710 esac 18711 case $ac_var in #( 18712 _ | IFS | as_nl) ;; #( 18713 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18714 *) { eval $ac_var=; unset $ac_var;} ;; 18715 esac ;; 18716 esac 18717 done 18718 18719 (set) 2>&1 | 18720 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18721 *${as_nl}ac_space=\ *) 18722 # `set' does not quote correctly, so add quotes: double-quote 18723 # substitution turns \\\\ into \\, and sed turns \\ into \. 18724 sed -n \ 18725 "s/'/'\\\\''/g; 18726 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18727 ;; #( 18728 *) 18729 # `set' quotes correctly as required by POSIX, so do not add quotes. 18730 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18731 ;; 18732 esac | 18733 sort 18734) | 18735 sed ' 18736 /^ac_cv_env_/b end 18737 t clear 18738 :clear 18739 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18740 t end 18741 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18742 :end' >>confcache 18743if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18744 if test -w "$cache_file"; then 18745 if test "x$cache_file" != "x/dev/null"; then 18746 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18747$as_echo "$as_me: updating cache $cache_file" >&6;} 18748 if test ! -f "$cache_file" || test -h "$cache_file"; then 18749 cat confcache >"$cache_file" 18750 else 18751 case $cache_file in #( 18752 */* | ?:*) 18753 mv -f confcache "$cache_file"$$ && 18754 mv -f "$cache_file"$$ "$cache_file" ;; #( 18755 *) 18756 mv -f confcache "$cache_file" ;; 18757 esac 18758 fi 18759 fi 18760 else 18761 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18762$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18763 fi 18764fi 18765rm -f confcache 18766 18767test "x$prefix" = xNONE && prefix=$ac_default_prefix 18768# Let make expand exec_prefix. 18769test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18770 18771DEFS=-DHAVE_CONFIG_H 18772 18773ac_libobjs= 18774ac_ltlibobjs= 18775U= 18776for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18777 # 1. Remove the extension, and $U if already installed. 18778 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18779 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18780 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18781 # will be set to the directory where LIBOBJS objects are built. 18782 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18783 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18784done 18785LIBOBJS=$ac_libobjs 18786 18787LTLIBOBJS=$ac_ltlibobjs 18788 18789 18790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18791$as_echo_n "checking that generated files are newer than configure... " >&6; } 18792 if test -n "$am_sleep_pid"; then 18793 # Hide warnings about reused PIDs. 18794 wait $am_sleep_pid 2>/dev/null 18795 fi 18796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18797$as_echo "done" >&6; } 18798 if test -n "$EXEEXT"; then 18799 am__EXEEXT_TRUE= 18800 am__EXEEXT_FALSE='#' 18801else 18802 am__EXEEXT_TRUE='#' 18803 am__EXEEXT_FALSE= 18804fi 18805 18806if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18807 as_fn_error $? "conditional \"AMDEP\" was never defined. 18808Usually this means the macro was only invoked conditionally." "$LINENO" 5 18809fi 18810if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18811 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18812Usually this means the macro was only invoked conditionally." "$LINENO" 5 18813fi 18814if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 18815 as_fn_error $? "conditional \"LINT\" was never defined. 18816Usually this means the macro was only invoked conditionally." "$LINENO" 5 18817fi 18818 18819: "${CONFIG_STATUS=./config.status}" 18820ac_write_fail=0 18821ac_clean_files_save=$ac_clean_files 18822ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18823{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18824$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18825as_write_fail=0 18826cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18827#! $SHELL 18828# Generated by $as_me. 18829# Run this file to recreate the current configuration. 18830# Compiler output produced by configure, useful for debugging 18831# configure, is in config.log if it exists. 18832 18833debug=false 18834ac_cs_recheck=false 18835ac_cs_silent=false 18836 18837SHELL=\${CONFIG_SHELL-$SHELL} 18838export SHELL 18839_ASEOF 18840cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18841## -------------------- ## 18842## M4sh Initialization. ## 18843## -------------------- ## 18844 18845# Be more Bourne compatible 18846DUALCASE=1; export DUALCASE # for MKS sh 18847if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18848 emulate sh 18849 NULLCMD=: 18850 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18851 # is contrary to our usage. Disable this feature. 18852 alias -g '${1+"$@"}'='"$@"' 18853 setopt NO_GLOB_SUBST 18854else 18855 case `(set -o) 2>/dev/null` in #( 18856 *posix*) : 18857 set -o posix ;; #( 18858 *) : 18859 ;; 18860esac 18861fi 18862 18863 18864as_nl=' 18865' 18866export as_nl 18867# Printing a long string crashes Solaris 7 /usr/bin/printf. 18868as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18869as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18870as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18871# Prefer a ksh shell builtin over an external printf program on Solaris, 18872# but without wasting forks for bash or zsh. 18873if test -z "$BASH_VERSION$ZSH_VERSION" \ 18874 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18875 as_echo='print -r --' 18876 as_echo_n='print -rn --' 18877elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18878 as_echo='printf %s\n' 18879 as_echo_n='printf %s' 18880else 18881 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18882 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18883 as_echo_n='/usr/ucb/echo -n' 18884 else 18885 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18886 as_echo_n_body='eval 18887 arg=$1; 18888 case $arg in #( 18889 *"$as_nl"*) 18890 expr "X$arg" : "X\\(.*\\)$as_nl"; 18891 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18892 esac; 18893 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18894 ' 18895 export as_echo_n_body 18896 as_echo_n='sh -c $as_echo_n_body as_echo' 18897 fi 18898 export as_echo_body 18899 as_echo='sh -c $as_echo_body as_echo' 18900fi 18901 18902# The user is always right. 18903if test "${PATH_SEPARATOR+set}" != set; then 18904 PATH_SEPARATOR=: 18905 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18906 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18907 PATH_SEPARATOR=';' 18908 } 18909fi 18910 18911 18912# IFS 18913# We need space, tab and new line, in precisely that order. Quoting is 18914# there to prevent editors from complaining about space-tab. 18915# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18916# splitting by setting IFS to empty value.) 18917IFS=" "" $as_nl" 18918 18919# Find who we are. Look in the path if we contain no directory separator. 18920as_myself= 18921case $0 in #(( 18922 *[\\/]* ) as_myself=$0 ;; 18923 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18924for as_dir in $PATH 18925do 18926 IFS=$as_save_IFS 18927 test -z "$as_dir" && as_dir=. 18928 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18929 done 18930IFS=$as_save_IFS 18931 18932 ;; 18933esac 18934# We did not find ourselves, most probably we were run as `sh COMMAND' 18935# in which case we are not to be found in the path. 18936if test "x$as_myself" = x; then 18937 as_myself=$0 18938fi 18939if test ! -f "$as_myself"; then 18940 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18941 exit 1 18942fi 18943 18944# Unset variables that we do not need and which cause bugs (e.g. in 18945# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18946# suppresses any "Segmentation fault" message there. '((' could 18947# trigger a bug in pdksh 5.2.14. 18948for as_var in BASH_ENV ENV MAIL MAILPATH 18949do eval test x\${$as_var+set} = xset \ 18950 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18951done 18952PS1='$ ' 18953PS2='> ' 18954PS4='+ ' 18955 18956# NLS nuisances. 18957LC_ALL=C 18958export LC_ALL 18959LANGUAGE=C 18960export LANGUAGE 18961 18962# CDPATH. 18963(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18964 18965 18966# as_fn_error STATUS ERROR [LINENO LOG_FD] 18967# ---------------------------------------- 18968# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18969# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18970# script with STATUS, using 1 if that was 0. 18971as_fn_error () 18972{ 18973 as_status=$1; test $as_status -eq 0 && as_status=1 18974 if test "$4"; then 18975 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18976 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18977 fi 18978 $as_echo "$as_me: error: $2" >&2 18979 as_fn_exit $as_status 18980} # as_fn_error 18981 18982 18983# as_fn_set_status STATUS 18984# ----------------------- 18985# Set $? to STATUS, without forking. 18986as_fn_set_status () 18987{ 18988 return $1 18989} # as_fn_set_status 18990 18991# as_fn_exit STATUS 18992# ----------------- 18993# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18994as_fn_exit () 18995{ 18996 set +e 18997 as_fn_set_status $1 18998 exit $1 18999} # as_fn_exit 19000 19001# as_fn_unset VAR 19002# --------------- 19003# Portably unset VAR. 19004as_fn_unset () 19005{ 19006 { eval $1=; unset $1;} 19007} 19008as_unset=as_fn_unset 19009# as_fn_append VAR VALUE 19010# ---------------------- 19011# Append the text in VALUE to the end of the definition contained in VAR. Take 19012# advantage of any shell optimizations that allow amortized linear growth over 19013# repeated appends, instead of the typical quadratic growth present in naive 19014# implementations. 19015if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19016 eval 'as_fn_append () 19017 { 19018 eval $1+=\$2 19019 }' 19020else 19021 as_fn_append () 19022 { 19023 eval $1=\$$1\$2 19024 } 19025fi # as_fn_append 19026 19027# as_fn_arith ARG... 19028# ------------------ 19029# Perform arithmetic evaluation on the ARGs, and store the result in the 19030# global $as_val. Take advantage of shells that can avoid forks. The arguments 19031# must be portable across $(()) and expr. 19032if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19033 eval 'as_fn_arith () 19034 { 19035 as_val=$(( $* )) 19036 }' 19037else 19038 as_fn_arith () 19039 { 19040 as_val=`expr "$@" || test $? -eq 1` 19041 } 19042fi # as_fn_arith 19043 19044 19045if expr a : '\(a\)' >/dev/null 2>&1 && 19046 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19047 as_expr=expr 19048else 19049 as_expr=false 19050fi 19051 19052if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19053 as_basename=basename 19054else 19055 as_basename=false 19056fi 19057 19058if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19059 as_dirname=dirname 19060else 19061 as_dirname=false 19062fi 19063 19064as_me=`$as_basename -- "$0" || 19065$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19066 X"$0" : 'X\(//\)$' \| \ 19067 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19068$as_echo X/"$0" | 19069 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19070 s//\1/ 19071 q 19072 } 19073 /^X\/\(\/\/\)$/{ 19074 s//\1/ 19075 q 19076 } 19077 /^X\/\(\/\).*/{ 19078 s//\1/ 19079 q 19080 } 19081 s/.*/./; q'` 19082 19083# Avoid depending upon Character Ranges. 19084as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19085as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19086as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19087as_cr_digits='0123456789' 19088as_cr_alnum=$as_cr_Letters$as_cr_digits 19089 19090ECHO_C= ECHO_N= ECHO_T= 19091case `echo -n x` in #((((( 19092-n*) 19093 case `echo 'xy\c'` in 19094 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19095 xy) ECHO_C='\c';; 19096 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19097 ECHO_T=' ';; 19098 esac;; 19099*) 19100 ECHO_N='-n';; 19101esac 19102 19103rm -f conf$$ conf$$.exe conf$$.file 19104if test -d conf$$.dir; then 19105 rm -f conf$$.dir/conf$$.file 19106else 19107 rm -f conf$$.dir 19108 mkdir conf$$.dir 2>/dev/null 19109fi 19110if (echo >conf$$.file) 2>/dev/null; then 19111 if ln -s conf$$.file conf$$ 2>/dev/null; then 19112 as_ln_s='ln -s' 19113 # ... but there are two gotchas: 19114 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19115 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19116 # In both cases, we have to default to `cp -pR'. 19117 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19118 as_ln_s='cp -pR' 19119 elif ln conf$$.file conf$$ 2>/dev/null; then 19120 as_ln_s=ln 19121 else 19122 as_ln_s='cp -pR' 19123 fi 19124else 19125 as_ln_s='cp -pR' 19126fi 19127rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19128rmdir conf$$.dir 2>/dev/null 19129 19130 19131# as_fn_mkdir_p 19132# ------------- 19133# Create "$as_dir" as a directory, including parents if necessary. 19134as_fn_mkdir_p () 19135{ 19136 19137 case $as_dir in #( 19138 -*) as_dir=./$as_dir;; 19139 esac 19140 test -d "$as_dir" || eval $as_mkdir_p || { 19141 as_dirs= 19142 while :; do 19143 case $as_dir in #( 19144 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19145 *) as_qdir=$as_dir;; 19146 esac 19147 as_dirs="'$as_qdir' $as_dirs" 19148 as_dir=`$as_dirname -- "$as_dir" || 19149$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19150 X"$as_dir" : 'X\(//\)[^/]' \| \ 19151 X"$as_dir" : 'X\(//\)$' \| \ 19152 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19153$as_echo X"$as_dir" | 19154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19155 s//\1/ 19156 q 19157 } 19158 /^X\(\/\/\)[^/].*/{ 19159 s//\1/ 19160 q 19161 } 19162 /^X\(\/\/\)$/{ 19163 s//\1/ 19164 q 19165 } 19166 /^X\(\/\).*/{ 19167 s//\1/ 19168 q 19169 } 19170 s/.*/./; q'` 19171 test -d "$as_dir" && break 19172 done 19173 test -z "$as_dirs" || eval "mkdir $as_dirs" 19174 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19175 19176 19177} # as_fn_mkdir_p 19178if mkdir -p . 2>/dev/null; then 19179 as_mkdir_p='mkdir -p "$as_dir"' 19180else 19181 test -d ./-p && rmdir ./-p 19182 as_mkdir_p=false 19183fi 19184 19185 19186# as_fn_executable_p FILE 19187# ----------------------- 19188# Test if FILE is an executable regular file. 19189as_fn_executable_p () 19190{ 19191 test -f "$1" && test -x "$1" 19192} # as_fn_executable_p 19193as_test_x='test -x' 19194as_executable_p=as_fn_executable_p 19195 19196# Sed expression to map a string onto a valid CPP name. 19197as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19198 19199# Sed expression to map a string onto a valid variable name. 19200as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19201 19202 19203exec 6>&1 19204## ----------------------------------- ## 19205## Main body of $CONFIG_STATUS script. ## 19206## ----------------------------------- ## 19207_ASEOF 19208test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19209 19210cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19211# Save the log message, to keep $0 and so on meaningful, and to 19212# report actual input values of CONFIG_FILES etc. instead of their 19213# values after options handling. 19214ac_log=" 19215This file was extended by libfontenc $as_me 1.1.4, which was 19216generated by GNU Autoconf 2.69. Invocation command line was 19217 19218 CONFIG_FILES = $CONFIG_FILES 19219 CONFIG_HEADERS = $CONFIG_HEADERS 19220 CONFIG_LINKS = $CONFIG_LINKS 19221 CONFIG_COMMANDS = $CONFIG_COMMANDS 19222 $ $0 $@ 19223 19224on `(hostname || uname -n) 2>/dev/null | sed 1q` 19225" 19226 19227_ACEOF 19228 19229case $ac_config_files in *" 19230"*) set x $ac_config_files; shift; ac_config_files=$*;; 19231esac 19232 19233case $ac_config_headers in *" 19234"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19235esac 19236 19237 19238cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19239# Files that config.status was made for. 19240config_files="$ac_config_files" 19241config_headers="$ac_config_headers" 19242config_commands="$ac_config_commands" 19243 19244_ACEOF 19245 19246cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19247ac_cs_usage="\ 19248\`$as_me' instantiates files and other configuration actions 19249from templates according to the current configuration. Unless the files 19250and actions are specified as TAGs, all are instantiated by default. 19251 19252Usage: $0 [OPTION]... [TAG]... 19253 19254 -h, --help print this help, then exit 19255 -V, --version print version number and configuration settings, then exit 19256 --config print configuration, then exit 19257 -q, --quiet, --silent 19258 do not print progress messages 19259 -d, --debug don't remove temporary files 19260 --recheck update $as_me by reconfiguring in the same conditions 19261 --file=FILE[:TEMPLATE] 19262 instantiate the configuration file FILE 19263 --header=FILE[:TEMPLATE] 19264 instantiate the configuration header FILE 19265 19266Configuration files: 19267$config_files 19268 19269Configuration headers: 19270$config_headers 19271 19272Configuration commands: 19273$config_commands 19274 19275Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libfontenc/issues>." 19276 19277_ACEOF 19278cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19279ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19280ac_cs_version="\\ 19281libfontenc config.status 1.1.4 19282configured by $0, generated by GNU Autoconf 2.69, 19283 with options \\"\$ac_cs_config\\" 19284 19285Copyright (C) 2012 Free Software Foundation, Inc. 19286This config.status script is free software; the Free Software Foundation 19287gives unlimited permission to copy, distribute and modify it." 19288 19289ac_pwd='$ac_pwd' 19290srcdir='$srcdir' 19291INSTALL='$INSTALL' 19292MKDIR_P='$MKDIR_P' 19293AWK='$AWK' 19294test -n "\$AWK" || AWK=awk 19295_ACEOF 19296 19297cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19298# The default lists apply if the user does not specify any file. 19299ac_need_defaults=: 19300while test $# != 0 19301do 19302 case $1 in 19303 --*=?*) 19304 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19305 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19306 ac_shift=: 19307 ;; 19308 --*=) 19309 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19310 ac_optarg= 19311 ac_shift=: 19312 ;; 19313 *) 19314 ac_option=$1 19315 ac_optarg=$2 19316 ac_shift=shift 19317 ;; 19318 esac 19319 19320 case $ac_option in 19321 # Handling of the options. 19322 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19323 ac_cs_recheck=: ;; 19324 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19325 $as_echo "$ac_cs_version"; exit ;; 19326 --config | --confi | --conf | --con | --co | --c ) 19327 $as_echo "$ac_cs_config"; exit ;; 19328 --debug | --debu | --deb | --de | --d | -d ) 19329 debug=: ;; 19330 --file | --fil | --fi | --f ) 19331 $ac_shift 19332 case $ac_optarg in 19333 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19334 '') as_fn_error $? "missing file argument" ;; 19335 esac 19336 as_fn_append CONFIG_FILES " '$ac_optarg'" 19337 ac_need_defaults=false;; 19338 --header | --heade | --head | --hea ) 19339 $ac_shift 19340 case $ac_optarg in 19341 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19342 esac 19343 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19344 ac_need_defaults=false;; 19345 --he | --h) 19346 # Conflict between --help and --header 19347 as_fn_error $? "ambiguous option: \`$1' 19348Try \`$0 --help' for more information.";; 19349 --help | --hel | -h ) 19350 $as_echo "$ac_cs_usage"; exit ;; 19351 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19352 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19353 ac_cs_silent=: ;; 19354 19355 # This is an error. 19356 -*) as_fn_error $? "unrecognized option: \`$1' 19357Try \`$0 --help' for more information." ;; 19358 19359 *) as_fn_append ac_config_targets " $1" 19360 ac_need_defaults=false ;; 19361 19362 esac 19363 shift 19364done 19365 19366ac_configure_extra_args= 19367 19368if $ac_cs_silent; then 19369 exec 6>/dev/null 19370 ac_configure_extra_args="$ac_configure_extra_args --silent" 19371fi 19372 19373_ACEOF 19374cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19375if \$ac_cs_recheck; then 19376 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19377 shift 19378 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19379 CONFIG_SHELL='$SHELL' 19380 export CONFIG_SHELL 19381 exec "\$@" 19382fi 19383 19384_ACEOF 19385cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19386exec 5>>config.log 19387{ 19388 echo 19389 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19390## Running $as_me. ## 19391_ASBOX 19392 $as_echo "$ac_log" 19393} >&5 19394 19395_ACEOF 19396cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19397# 19398# INIT-COMMANDS 19399# 19400AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19401 19402 19403# The HP-UX ksh and POSIX shell print the target directory to stdout 19404# if CDPATH is set. 19405(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19406 19407sed_quote_subst='$sed_quote_subst' 19408double_quote_subst='$double_quote_subst' 19409delay_variable_subst='$delay_variable_subst' 19410macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19411macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19412enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19413enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19414pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19415enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19416shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 19417SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19418ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19419PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19420host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19421host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19422host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19423build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19424build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19425build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19426SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19427Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19428GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19429EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19430FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19431LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19432NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19433LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19434max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19435ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19436exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19437lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19438lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19439lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19440lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19441lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19442reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19443reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19444OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19445deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19446file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19447file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19448want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19449DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19450sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19451AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19452AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19453archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19454STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19455RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19456old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19457old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19458old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19459lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19460CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19461CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19462compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19463GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19464lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19465lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19466lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 19467lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19468lt_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"`' 19469lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 19470nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19471lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19472lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 19473objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19474MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19475lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19476lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19477lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19478lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19479lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19480need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19481MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19482DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19483NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19484LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19485OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19486OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19487libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19488shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19489extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19490archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19491enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19492export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19493whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19494compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19495old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19496old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19497archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19498archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19499module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19500module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19501with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19502allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19503no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19504hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19505hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19506hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19507hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19508hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19509hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19510hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19511inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19512link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19513always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19514export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19515exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19516include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19517prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19518postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19519file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19520variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19521need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19522need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19523version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19524runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19525shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19526shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19527libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19528library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19529soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19530install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19531postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19532postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19533finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19534finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19535hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19536sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19537configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 19538configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 19539hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19540enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19541enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19542enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19543old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19544striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19545 19546LTCC='$LTCC' 19547LTCFLAGS='$LTCFLAGS' 19548compiler='$compiler_DEFAULT' 19549 19550# A function that is used when there is no print builtin or printf. 19551func_fallback_echo () 19552{ 19553 eval 'cat <<_LTECHO_EOF 19554\$1 19555_LTECHO_EOF' 19556} 19557 19558# Quote evaled strings. 19559for var in SHELL \ 19560ECHO \ 19561PATH_SEPARATOR \ 19562SED \ 19563GREP \ 19564EGREP \ 19565FGREP \ 19566LD \ 19567NM \ 19568LN_S \ 19569lt_SP2NL \ 19570lt_NL2SP \ 19571reload_flag \ 19572OBJDUMP \ 19573deplibs_check_method \ 19574file_magic_cmd \ 19575file_magic_glob \ 19576want_nocaseglob \ 19577DLLTOOL \ 19578sharedlib_from_linklib_cmd \ 19579AR \ 19580AR_FLAGS \ 19581archiver_list_spec \ 19582STRIP \ 19583RANLIB \ 19584CC \ 19585CFLAGS \ 19586compiler \ 19587lt_cv_sys_global_symbol_pipe \ 19588lt_cv_sys_global_symbol_to_cdecl \ 19589lt_cv_sys_global_symbol_to_import \ 19590lt_cv_sys_global_symbol_to_c_name_address \ 19591lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19592lt_cv_nm_interface \ 19593nm_file_list_spec \ 19594lt_cv_truncate_bin \ 19595lt_prog_compiler_no_builtin_flag \ 19596lt_prog_compiler_pic \ 19597lt_prog_compiler_wl \ 19598lt_prog_compiler_static \ 19599lt_cv_prog_compiler_c_o \ 19600need_locks \ 19601MANIFEST_TOOL \ 19602DSYMUTIL \ 19603NMEDIT \ 19604LIPO \ 19605OTOOL \ 19606OTOOL64 \ 19607shrext_cmds \ 19608export_dynamic_flag_spec \ 19609whole_archive_flag_spec \ 19610compiler_needs_object \ 19611with_gnu_ld \ 19612allow_undefined_flag \ 19613no_undefined_flag \ 19614hardcode_libdir_flag_spec \ 19615hardcode_libdir_separator \ 19616exclude_expsyms \ 19617include_expsyms \ 19618file_list_spec \ 19619variables_saved_for_relink \ 19620libname_spec \ 19621library_names_spec \ 19622soname_spec \ 19623install_override_mode \ 19624finish_eval \ 19625old_striplib \ 19626striplib; do 19627 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19628 *[\\\\\\\`\\"\\\$]*) 19629 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19630 ;; 19631 *) 19632 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19633 ;; 19634 esac 19635done 19636 19637# Double-quote double-evaled strings. 19638for var in reload_cmds \ 19639old_postinstall_cmds \ 19640old_postuninstall_cmds \ 19641old_archive_cmds \ 19642extract_expsyms_cmds \ 19643old_archive_from_new_cmds \ 19644old_archive_from_expsyms_cmds \ 19645archive_cmds \ 19646archive_expsym_cmds \ 19647module_cmds \ 19648module_expsym_cmds \ 19649export_symbols_cmds \ 19650prelink_cmds \ 19651postlink_cmds \ 19652postinstall_cmds \ 19653postuninstall_cmds \ 19654finish_cmds \ 19655sys_lib_search_path_spec \ 19656configure_time_dlsearch_path \ 19657configure_time_lt_sys_library_path; do 19658 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19659 *[\\\\\\\`\\"\\\$]*) 19660 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19661 ;; 19662 *) 19663 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19664 ;; 19665 esac 19666done 19667 19668ac_aux_dir='$ac_aux_dir' 19669 19670# See if we are running on zsh, and set the options that allow our 19671# commands through without removal of \ escapes INIT. 19672if test -n "\${ZSH_VERSION+set}"; then 19673 setopt NO_GLOB_SUBST 19674fi 19675 19676 19677 PACKAGE='$PACKAGE' 19678 VERSION='$VERSION' 19679 RM='$RM' 19680 ofile='$ofile' 19681 19682 19683 19684 19685_ACEOF 19686 19687cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19688 19689# Handling of arguments. 19690for ac_config_target in $ac_config_targets 19691do 19692 case $ac_config_target in 19693 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19694 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19695 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19696 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19697 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19698 "fontenc.pc") CONFIG_FILES="$CONFIG_FILES fontenc.pc" ;; 19699 19700 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19701 esac 19702done 19703 19704 19705# If the user did not use the arguments to specify the items to instantiate, 19706# then the envvar interface is used. Set only those that are not. 19707# We use the long form for the default assignment because of an extremely 19708# bizarre bug on SunOS 4.1.3. 19709if $ac_need_defaults; then 19710 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19711 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19712 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19713fi 19714 19715# Have a temporary directory for convenience. Make it in the build tree 19716# simply because there is no reason against having it here, and in addition, 19717# creating and moving files from /tmp can sometimes cause problems. 19718# Hook for its removal unless debugging. 19719# Note that there is a small window in which the directory will not be cleaned: 19720# after its creation but before its name has been assigned to `$tmp'. 19721$debug || 19722{ 19723 tmp= ac_tmp= 19724 trap 'exit_status=$? 19725 : "${ac_tmp:=$tmp}" 19726 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19727' 0 19728 trap 'as_fn_exit 1' 1 2 13 15 19729} 19730# Create a (secure) tmp directory for tmp files. 19731 19732{ 19733 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19734 test -d "$tmp" 19735} || 19736{ 19737 tmp=./conf$$-$RANDOM 19738 (umask 077 && mkdir "$tmp") 19739} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19740ac_tmp=$tmp 19741 19742# Set up the scripts for CONFIG_FILES section. 19743# No need to generate them if there are no CONFIG_FILES. 19744# This happens for instance with `./config.status config.h'. 19745if test -n "$CONFIG_FILES"; then 19746 19747 19748ac_cr=`echo X | tr X '\015'` 19749# On cygwin, bash can eat \r inside `` if the user requested igncr. 19750# But we know of no other shell where ac_cr would be empty at this 19751# point, so we can use a bashism as a fallback. 19752if test "x$ac_cr" = x; then 19753 eval ac_cr=\$\'\\r\' 19754fi 19755ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19756if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19757 ac_cs_awk_cr='\\r' 19758else 19759 ac_cs_awk_cr=$ac_cr 19760fi 19761 19762echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19763_ACEOF 19764 19765 19766{ 19767 echo "cat >conf$$subs.awk <<_ACEOF" && 19768 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19769 echo "_ACEOF" 19770} >conf$$subs.sh || 19771 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19772ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19773ac_delim='%!_!# ' 19774for ac_last_try in false false false false false :; do 19775 . ./conf$$subs.sh || 19776 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19777 19778 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19779 if test $ac_delim_n = $ac_delim_num; then 19780 break 19781 elif $ac_last_try; then 19782 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19783 else 19784 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19785 fi 19786done 19787rm -f conf$$subs.sh 19788 19789cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19790cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19791_ACEOF 19792sed -n ' 19793h 19794s/^/S["/; s/!.*/"]=/ 19795p 19796g 19797s/^[^!]*!// 19798:repl 19799t repl 19800s/'"$ac_delim"'$// 19801t delim 19802:nl 19803h 19804s/\(.\{148\}\)..*/\1/ 19805t more1 19806s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19807p 19808n 19809b repl 19810:more1 19811s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19812p 19813g 19814s/.\{148\}// 19815t nl 19816:delim 19817h 19818s/\(.\{148\}\)..*/\1/ 19819t more2 19820s/["\\]/\\&/g; s/^/"/; s/$/"/ 19821p 19822b 19823:more2 19824s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19825p 19826g 19827s/.\{148\}// 19828t delim 19829' <conf$$subs.awk | sed ' 19830/^[^""]/{ 19831 N 19832 s/\n// 19833} 19834' >>$CONFIG_STATUS || ac_write_fail=1 19835rm -f conf$$subs.awk 19836cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19837_ACAWK 19838cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19839 for (key in S) S_is_set[key] = 1 19840 FS = "" 19841 19842} 19843{ 19844 line = $ 0 19845 nfields = split(line, field, "@") 19846 substed = 0 19847 len = length(field[1]) 19848 for (i = 2; i < nfields; i++) { 19849 key = field[i] 19850 keylen = length(key) 19851 if (S_is_set[key]) { 19852 value = S[key] 19853 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19854 len += length(value) + length(field[++i]) 19855 substed = 1 19856 } else 19857 len += 1 + keylen 19858 } 19859 19860 print line 19861} 19862 19863_ACAWK 19864_ACEOF 19865cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19866if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19867 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19868else 19869 cat 19870fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19871 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19872_ACEOF 19873 19874# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19875# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19876# trailing colons and then remove the whole line if VPATH becomes empty 19877# (actually we leave an empty line to preserve line numbers). 19878if test "x$srcdir" = x.; then 19879 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19880h 19881s/// 19882s/^/:/ 19883s/[ ]*$/:/ 19884s/:\$(srcdir):/:/g 19885s/:\${srcdir}:/:/g 19886s/:@srcdir@:/:/g 19887s/^:*// 19888s/:*$// 19889x 19890s/\(=[ ]*\).*/\1/ 19891G 19892s/\n// 19893s/^[^=]*=[ ]*$// 19894}' 19895fi 19896 19897cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19898fi # test -n "$CONFIG_FILES" 19899 19900# Set up the scripts for CONFIG_HEADERS section. 19901# No need to generate them if there are no CONFIG_HEADERS. 19902# This happens for instance with `./config.status Makefile'. 19903if test -n "$CONFIG_HEADERS"; then 19904cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19905BEGIN { 19906_ACEOF 19907 19908# Transform confdefs.h into an awk script `defines.awk', embedded as 19909# here-document in config.status, that substitutes the proper values into 19910# config.h.in to produce config.h. 19911 19912# Create a delimiter string that does not exist in confdefs.h, to ease 19913# handling of long lines. 19914ac_delim='%!_!# ' 19915for ac_last_try in false false :; do 19916 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19917 if test -z "$ac_tt"; then 19918 break 19919 elif $ac_last_try; then 19920 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19921 else 19922 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19923 fi 19924done 19925 19926# For the awk script, D is an array of macro values keyed by name, 19927# likewise P contains macro parameters if any. Preserve backslash 19928# newline sequences. 19929 19930ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19931sed -n ' 19932s/.\{148\}/&'"$ac_delim"'/g 19933t rset 19934:rset 19935s/^[ ]*#[ ]*define[ ][ ]*/ / 19936t def 19937d 19938:def 19939s/\\$// 19940t bsnl 19941s/["\\]/\\&/g 19942s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19943D["\1"]=" \3"/p 19944s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19945d 19946:bsnl 19947s/["\\]/\\&/g 19948s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19949D["\1"]=" \3\\\\\\n"\\/p 19950t cont 19951s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19952t cont 19953d 19954:cont 19955n 19956s/.\{148\}/&'"$ac_delim"'/g 19957t clear 19958:clear 19959s/\\$// 19960t bsnlc 19961s/["\\]/\\&/g; s/^/"/; s/$/"/p 19962d 19963:bsnlc 19964s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19965b cont 19966' <confdefs.h | sed ' 19967s/'"$ac_delim"'/"\\\ 19968"/g' >>$CONFIG_STATUS || ac_write_fail=1 19969 19970cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19971 for (key in D) D_is_set[key] = 1 19972 FS = "" 19973} 19974/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19975 line = \$ 0 19976 split(line, arg, " ") 19977 if (arg[1] == "#") { 19978 defundef = arg[2] 19979 mac1 = arg[3] 19980 } else { 19981 defundef = substr(arg[1], 2) 19982 mac1 = arg[2] 19983 } 19984 split(mac1, mac2, "(") #) 19985 macro = mac2[1] 19986 prefix = substr(line, 1, index(line, defundef) - 1) 19987 if (D_is_set[macro]) { 19988 # Preserve the white space surrounding the "#". 19989 print prefix "define", macro P[macro] D[macro] 19990 next 19991 } else { 19992 # Replace #undef with comments. This is necessary, for example, 19993 # in the case of _POSIX_SOURCE, which is predefined and required 19994 # on some systems where configure will not decide to define it. 19995 if (defundef == "undef") { 19996 print "/*", prefix defundef, macro, "*/" 19997 next 19998 } 19999 } 20000} 20001{ print } 20002_ACAWK 20003_ACEOF 20004cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20005 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20006fi # test -n "$CONFIG_HEADERS" 20007 20008 20009eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20010shift 20011for ac_tag 20012do 20013 case $ac_tag in 20014 :[FHLC]) ac_mode=$ac_tag; continue;; 20015 esac 20016 case $ac_mode$ac_tag in 20017 :[FHL]*:*);; 20018 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20019 :[FH]-) ac_tag=-:-;; 20020 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20021 esac 20022 ac_save_IFS=$IFS 20023 IFS=: 20024 set x $ac_tag 20025 IFS=$ac_save_IFS 20026 shift 20027 ac_file=$1 20028 shift 20029 20030 case $ac_mode in 20031 :L) ac_source=$1;; 20032 :[FH]) 20033 ac_file_inputs= 20034 for ac_f 20035 do 20036 case $ac_f in 20037 -) ac_f="$ac_tmp/stdin";; 20038 *) # Look for the file first in the build tree, then in the source tree 20039 # (if the path is not absolute). The absolute path cannot be DOS-style, 20040 # because $ac_f cannot contain `:'. 20041 test -f "$ac_f" || 20042 case $ac_f in 20043 [\\/$]*) false;; 20044 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20045 esac || 20046 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20047 esac 20048 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20049 as_fn_append ac_file_inputs " '$ac_f'" 20050 done 20051 20052 # Let's still pretend it is `configure' which instantiates (i.e., don't 20053 # use $as_me), people would be surprised to read: 20054 # /* config.h. Generated by config.status. */ 20055 configure_input='Generated from '` 20056 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20057 `' by configure.' 20058 if test x"$ac_file" != x-; then 20059 configure_input="$ac_file. $configure_input" 20060 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20061$as_echo "$as_me: creating $ac_file" >&6;} 20062 fi 20063 # Neutralize special characters interpreted by sed in replacement strings. 20064 case $configure_input in #( 20065 *\&* | *\|* | *\\* ) 20066 ac_sed_conf_input=`$as_echo "$configure_input" | 20067 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20068 *) ac_sed_conf_input=$configure_input;; 20069 esac 20070 20071 case $ac_tag in 20072 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20073 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20074 esac 20075 ;; 20076 esac 20077 20078 ac_dir=`$as_dirname -- "$ac_file" || 20079$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20080 X"$ac_file" : 'X\(//\)[^/]' \| \ 20081 X"$ac_file" : 'X\(//\)$' \| \ 20082 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20083$as_echo X"$ac_file" | 20084 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20085 s//\1/ 20086 q 20087 } 20088 /^X\(\/\/\)[^/].*/{ 20089 s//\1/ 20090 q 20091 } 20092 /^X\(\/\/\)$/{ 20093 s//\1/ 20094 q 20095 } 20096 /^X\(\/\).*/{ 20097 s//\1/ 20098 q 20099 } 20100 s/.*/./; q'` 20101 as_dir="$ac_dir"; as_fn_mkdir_p 20102 ac_builddir=. 20103 20104case "$ac_dir" in 20105.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20106*) 20107 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20108 # A ".." for each directory in $ac_dir_suffix. 20109 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20110 case $ac_top_builddir_sub in 20111 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20112 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20113 esac ;; 20114esac 20115ac_abs_top_builddir=$ac_pwd 20116ac_abs_builddir=$ac_pwd$ac_dir_suffix 20117# for backward compatibility: 20118ac_top_builddir=$ac_top_build_prefix 20119 20120case $srcdir in 20121 .) # We are building in place. 20122 ac_srcdir=. 20123 ac_top_srcdir=$ac_top_builddir_sub 20124 ac_abs_top_srcdir=$ac_pwd ;; 20125 [\\/]* | ?:[\\/]* ) # Absolute name. 20126 ac_srcdir=$srcdir$ac_dir_suffix; 20127 ac_top_srcdir=$srcdir 20128 ac_abs_top_srcdir=$srcdir ;; 20129 *) # Relative name. 20130 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20131 ac_top_srcdir=$ac_top_build_prefix$srcdir 20132 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20133esac 20134ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20135 20136 20137 case $ac_mode in 20138 :F) 20139 # 20140 # CONFIG_FILE 20141 # 20142 20143 case $INSTALL in 20144 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20145 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20146 esac 20147 ac_MKDIR_P=$MKDIR_P 20148 case $MKDIR_P in 20149 [\\/$]* | ?:[\\/]* ) ;; 20150 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20151 esac 20152_ACEOF 20153 20154cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20155# If the template does not know about datarootdir, expand it. 20156# FIXME: This hack should be removed a few years after 2.60. 20157ac_datarootdir_hack=; ac_datarootdir_seen= 20158ac_sed_dataroot=' 20159/datarootdir/ { 20160 p 20161 q 20162} 20163/@datadir@/p 20164/@docdir@/p 20165/@infodir@/p 20166/@localedir@/p 20167/@mandir@/p' 20168case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20169*datarootdir*) ac_datarootdir_seen=yes;; 20170*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20172$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20173_ACEOF 20174cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20175 ac_datarootdir_hack=' 20176 s&@datadir@&$datadir&g 20177 s&@docdir@&$docdir&g 20178 s&@infodir@&$infodir&g 20179 s&@localedir@&$localedir&g 20180 s&@mandir@&$mandir&g 20181 s&\\\${datarootdir}&$datarootdir&g' ;; 20182esac 20183_ACEOF 20184 20185# Neutralize VPATH when `$srcdir' = `.'. 20186# Shell code in configure.ac might set extrasub. 20187# FIXME: do we really want to maintain this feature? 20188cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20189ac_sed_extra="$ac_vpsub 20190$extrasub 20191_ACEOF 20192cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20193:t 20194/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20195s|@configure_input@|$ac_sed_conf_input|;t t 20196s&@top_builddir@&$ac_top_builddir_sub&;t t 20197s&@top_build_prefix@&$ac_top_build_prefix&;t t 20198s&@srcdir@&$ac_srcdir&;t t 20199s&@abs_srcdir@&$ac_abs_srcdir&;t t 20200s&@top_srcdir@&$ac_top_srcdir&;t t 20201s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20202s&@builddir@&$ac_builddir&;t t 20203s&@abs_builddir@&$ac_abs_builddir&;t t 20204s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20205s&@INSTALL@&$ac_INSTALL&;t t 20206s&@MKDIR_P@&$ac_MKDIR_P&;t t 20207$ac_datarootdir_hack 20208" 20209eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20210 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20211 20212test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20213 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20214 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20215 "$ac_tmp/out"`; test -z "$ac_out"; } && 20216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20217which seems to be undefined. Please make sure it is defined" >&5 20218$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20219which seems to be undefined. Please make sure it is defined" >&2;} 20220 20221 rm -f "$ac_tmp/stdin" 20222 case $ac_file in 20223 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20224 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20225 esac \ 20226 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20227 ;; 20228 :H) 20229 # 20230 # CONFIG_HEADER 20231 # 20232 if test x"$ac_file" != x-; then 20233 { 20234 $as_echo "/* $configure_input */" \ 20235 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20236 } >"$ac_tmp/config.h" \ 20237 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20238 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20239 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20240$as_echo "$as_me: $ac_file is unchanged" >&6;} 20241 else 20242 rm -f "$ac_file" 20243 mv "$ac_tmp/config.h" "$ac_file" \ 20244 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20245 fi 20246 else 20247 $as_echo "/* $configure_input */" \ 20248 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20249 || as_fn_error $? "could not create -" "$LINENO" 5 20250 fi 20251# Compute "$ac_file"'s index in $config_headers. 20252_am_arg="$ac_file" 20253_am_stamp_count=1 20254for _am_header in $config_headers :; do 20255 case $_am_header in 20256 $_am_arg | $_am_arg:* ) 20257 break ;; 20258 * ) 20259 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20260 esac 20261done 20262echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20263$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20264 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20265 X"$_am_arg" : 'X\(//\)$' \| \ 20266 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20267$as_echo X"$_am_arg" | 20268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20269 s//\1/ 20270 q 20271 } 20272 /^X\(\/\/\)[^/].*/{ 20273 s//\1/ 20274 q 20275 } 20276 /^X\(\/\/\)$/{ 20277 s//\1/ 20278 q 20279 } 20280 /^X\(\/\).*/{ 20281 s//\1/ 20282 q 20283 } 20284 s/.*/./; q'`/stamp-h$_am_stamp_count 20285 ;; 20286 20287 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20288$as_echo "$as_me: executing $ac_file commands" >&6;} 20289 ;; 20290 esac 20291 20292 20293 case $ac_file$ac_mode in 20294 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20295 # Older Autoconf quotes --file arguments for eval, but not when files 20296 # are listed without --file. Let's play safe and only enable the eval 20297 # if we detect the quoting. 20298 case $CONFIG_FILES in 20299 *\'*) eval set x "$CONFIG_FILES" ;; 20300 *) set x $CONFIG_FILES ;; 20301 esac 20302 shift 20303 for mf 20304 do 20305 # Strip MF so we end up with the name of the file. 20306 mf=`echo "$mf" | sed -e 's/:.*$//'` 20307 # Check whether this is an Automake generated Makefile or not. 20308 # We used to match only the files named 'Makefile.in', but 20309 # some people rename them; so instead we look at the file content. 20310 # Grep'ing the first line is not enough: some people post-process 20311 # each Makefile.in and add a new line on top of each file to say so. 20312 # Grep'ing the whole file is not good either: AIX grep has a line 20313 # limit of 2048, but all sed's we know have understand at least 4000. 20314 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20315 dirpart=`$as_dirname -- "$mf" || 20316$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20317 X"$mf" : 'X\(//\)[^/]' \| \ 20318 X"$mf" : 'X\(//\)$' \| \ 20319 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20320$as_echo X"$mf" | 20321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20322 s//\1/ 20323 q 20324 } 20325 /^X\(\/\/\)[^/].*/{ 20326 s//\1/ 20327 q 20328 } 20329 /^X\(\/\/\)$/{ 20330 s//\1/ 20331 q 20332 } 20333 /^X\(\/\).*/{ 20334 s//\1/ 20335 q 20336 } 20337 s/.*/./; q'` 20338 else 20339 continue 20340 fi 20341 # Extract the definition of DEPDIR, am__include, and am__quote 20342 # from the Makefile without running 'make'. 20343 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20344 test -z "$DEPDIR" && continue 20345 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20346 test -z "$am__include" && continue 20347 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20348 # Find all dependency output files, they are included files with 20349 # $(DEPDIR) in their names. We invoke sed twice because it is the 20350 # simplest approach to changing $(DEPDIR) to its actual value in the 20351 # expansion. 20352 for file in `sed -n " 20353 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20354 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20355 # Make sure the directory exists. 20356 test -f "$dirpart/$file" && continue 20357 fdir=`$as_dirname -- "$file" || 20358$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20359 X"$file" : 'X\(//\)[^/]' \| \ 20360 X"$file" : 'X\(//\)$' \| \ 20361 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20362$as_echo X"$file" | 20363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20364 s//\1/ 20365 q 20366 } 20367 /^X\(\/\/\)[^/].*/{ 20368 s//\1/ 20369 q 20370 } 20371 /^X\(\/\/\)$/{ 20372 s//\1/ 20373 q 20374 } 20375 /^X\(\/\).*/{ 20376 s//\1/ 20377 q 20378 } 20379 s/.*/./; q'` 20380 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20381 # echo "creating $dirpart/$file" 20382 echo '# dummy' > "$dirpart/$file" 20383 done 20384 done 20385} 20386 ;; 20387 "libtool":C) 20388 20389 # See if we are running on zsh, and set the options that allow our 20390 # commands through without removal of \ escapes. 20391 if test -n "${ZSH_VERSION+set}"; then 20392 setopt NO_GLOB_SUBST 20393 fi 20394 20395 cfgfile=${ofile}T 20396 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20397 $RM "$cfgfile" 20398 20399 cat <<_LT_EOF >> "$cfgfile" 20400#! $SHELL 20401# Generated automatically by $as_me ($PACKAGE) $VERSION 20402# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20403# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20404 20405# Provide generalized library-building support services. 20406# Written by Gordon Matzigkeit, 1996 20407 20408# Copyright (C) 2014 Free Software Foundation, Inc. 20409# This is free software; see the source for copying conditions. There is NO 20410# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 20411 20412# GNU Libtool is free software; you can redistribute it and/or modify 20413# it under the terms of the GNU General Public License as published by 20414# the Free Software Foundation; either version 2 of of the License, or 20415# (at your option) any later version. 20416# 20417# As a special exception to the GNU General Public License, if you 20418# distribute this file as part of a program or library that is built 20419# using GNU Libtool, you may include this file under the same 20420# distribution terms that you use for the rest of that program. 20421# 20422# GNU Libtool is distributed in the hope that it will be useful, but 20423# WITHOUT ANY WARRANTY; without even the implied warranty of 20424# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20425# GNU General Public License for more details. 20426# 20427# You should have received a copy of the GNU General Public License 20428# along with this program. If not, see <http://www.gnu.org/licenses/>. 20429 20430 20431# The names of the tagged configurations supported by this script. 20432available_tags='' 20433 20434# Configured defaults for sys_lib_dlsearch_path munging. 20435: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 20436 20437# ### BEGIN LIBTOOL CONFIG 20438 20439# Which release of libtool.m4 was used? 20440macro_version=$macro_version 20441macro_revision=$macro_revision 20442 20443# Whether or not to build shared libraries. 20444build_libtool_libs=$enable_shared 20445 20446# Whether or not to build static libraries. 20447build_old_libs=$enable_static 20448 20449# What type of objects to build. 20450pic_mode=$pic_mode 20451 20452# Whether or not to optimize for fast installation. 20453fast_install=$enable_fast_install 20454 20455# Shared archive member basename,for filename based shared library versioning on AIX. 20456shared_archive_member_spec=$shared_archive_member_spec 20457 20458# Shell to use when invoking shell scripts. 20459SHELL=$lt_SHELL 20460 20461# An echo program that protects backslashes. 20462ECHO=$lt_ECHO 20463 20464# The PATH separator for the build system. 20465PATH_SEPARATOR=$lt_PATH_SEPARATOR 20466 20467# The host system. 20468host_alias=$host_alias 20469host=$host 20470host_os=$host_os 20471 20472# The build system. 20473build_alias=$build_alias 20474build=$build 20475build_os=$build_os 20476 20477# A sed program that does not truncate output. 20478SED=$lt_SED 20479 20480# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20481Xsed="\$SED -e 1s/^X//" 20482 20483# A grep program that handles long lines. 20484GREP=$lt_GREP 20485 20486# An ERE matcher. 20487EGREP=$lt_EGREP 20488 20489# A literal string matcher. 20490FGREP=$lt_FGREP 20491 20492# A BSD- or MS-compatible name lister. 20493NM=$lt_NM 20494 20495# Whether we need soft or hard links. 20496LN_S=$lt_LN_S 20497 20498# What is the maximum length of a command? 20499max_cmd_len=$max_cmd_len 20500 20501# Object file suffix (normally "o"). 20502objext=$ac_objext 20503 20504# Executable file suffix (normally ""). 20505exeext=$exeext 20506 20507# whether the shell understands "unset". 20508lt_unset=$lt_unset 20509 20510# turn spaces into newlines. 20511SP2NL=$lt_lt_SP2NL 20512 20513# turn newlines into spaces. 20514NL2SP=$lt_lt_NL2SP 20515 20516# convert \$build file names to \$host format. 20517to_host_file_cmd=$lt_cv_to_host_file_cmd 20518 20519# convert \$build files to toolchain format. 20520to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20521 20522# An object symbol dumper. 20523OBJDUMP=$lt_OBJDUMP 20524 20525# Method to check whether dependent libraries are shared objects. 20526deplibs_check_method=$lt_deplibs_check_method 20527 20528# Command to use when deplibs_check_method = "file_magic". 20529file_magic_cmd=$lt_file_magic_cmd 20530 20531# How to find potential files when deplibs_check_method = "file_magic". 20532file_magic_glob=$lt_file_magic_glob 20533 20534# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20535want_nocaseglob=$lt_want_nocaseglob 20536 20537# DLL creation program. 20538DLLTOOL=$lt_DLLTOOL 20539 20540# Command to associate shared and link libraries. 20541sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20542 20543# The archiver. 20544AR=$lt_AR 20545 20546# Flags to create an archive. 20547AR_FLAGS=$lt_AR_FLAGS 20548 20549# How to feed a file listing to the archiver. 20550archiver_list_spec=$lt_archiver_list_spec 20551 20552# A symbol stripping program. 20553STRIP=$lt_STRIP 20554 20555# Commands used to install an old-style archive. 20556RANLIB=$lt_RANLIB 20557old_postinstall_cmds=$lt_old_postinstall_cmds 20558old_postuninstall_cmds=$lt_old_postuninstall_cmds 20559 20560# Whether to use a lock for old archive extraction. 20561lock_old_archive_extraction=$lock_old_archive_extraction 20562 20563# A C compiler. 20564LTCC=$lt_CC 20565 20566# LTCC compiler flags. 20567LTCFLAGS=$lt_CFLAGS 20568 20569# Take the output of nm and produce a listing of raw symbols and C names. 20570global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20571 20572# Transform the output of nm in a proper C declaration. 20573global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20574 20575# Transform the output of nm into a list of symbols to manually relocate. 20576global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 20577 20578# Transform the output of nm in a C name address pair. 20579global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20580 20581# Transform the output of nm in a C name address pair when lib prefix is needed. 20582global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20583 20584# The name lister interface. 20585nm_interface=$lt_lt_cv_nm_interface 20586 20587# Specify filename containing input files for \$NM. 20588nm_file_list_spec=$lt_nm_file_list_spec 20589 20590# The root where to search for dependent libraries,and where our libraries should be installed. 20591lt_sysroot=$lt_sysroot 20592 20593# Command to truncate a binary pipe. 20594lt_truncate_bin=$lt_lt_cv_truncate_bin 20595 20596# The name of the directory that contains temporary libtool files. 20597objdir=$objdir 20598 20599# Used to examine libraries when file_magic_cmd begins with "file". 20600MAGIC_CMD=$MAGIC_CMD 20601 20602# Must we lock files when doing compilation? 20603need_locks=$lt_need_locks 20604 20605# Manifest tool. 20606MANIFEST_TOOL=$lt_MANIFEST_TOOL 20607 20608# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20609DSYMUTIL=$lt_DSYMUTIL 20610 20611# Tool to change global to local symbols on Mac OS X. 20612NMEDIT=$lt_NMEDIT 20613 20614# Tool to manipulate fat objects and archives on Mac OS X. 20615LIPO=$lt_LIPO 20616 20617# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20618OTOOL=$lt_OTOOL 20619 20620# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20621OTOOL64=$lt_OTOOL64 20622 20623# Old archive suffix (normally "a"). 20624libext=$libext 20625 20626# Shared library suffix (normally ".so"). 20627shrext_cmds=$lt_shrext_cmds 20628 20629# The commands to extract the exported symbol list from a shared archive. 20630extract_expsyms_cmds=$lt_extract_expsyms_cmds 20631 20632# Variables whose values should be saved in libtool wrapper scripts and 20633# restored at link time. 20634variables_saved_for_relink=$lt_variables_saved_for_relink 20635 20636# Do we need the "lib" prefix for modules? 20637need_lib_prefix=$need_lib_prefix 20638 20639# Do we need a version for libraries? 20640need_version=$need_version 20641 20642# Library versioning type. 20643version_type=$version_type 20644 20645# Shared library runtime path variable. 20646runpath_var=$runpath_var 20647 20648# Shared library path variable. 20649shlibpath_var=$shlibpath_var 20650 20651# Is shlibpath searched before the hard-coded library search path? 20652shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20653 20654# Format of library name prefix. 20655libname_spec=$lt_libname_spec 20656 20657# List of archive names. First name is the real one, the rest are links. 20658# The last name is the one that the linker finds with -lNAME 20659library_names_spec=$lt_library_names_spec 20660 20661# The coded name of the library, if different from the real name. 20662soname_spec=$lt_soname_spec 20663 20664# Permission mode override for installation of shared libraries. 20665install_override_mode=$lt_install_override_mode 20666 20667# Command to use after installation of a shared archive. 20668postinstall_cmds=$lt_postinstall_cmds 20669 20670# Command to use after uninstallation of a shared archive. 20671postuninstall_cmds=$lt_postuninstall_cmds 20672 20673# Commands used to finish a libtool library installation in a directory. 20674finish_cmds=$lt_finish_cmds 20675 20676# As "finish_cmds", except a single script fragment to be evaled but 20677# not shown. 20678finish_eval=$lt_finish_eval 20679 20680# Whether we should hardcode library paths into libraries. 20681hardcode_into_libs=$hardcode_into_libs 20682 20683# Compile-time system search path for libraries. 20684sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20685 20686# Detected run-time system search path for libraries. 20687sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 20688 20689# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 20690configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 20691 20692# Whether dlopen is supported. 20693dlopen_support=$enable_dlopen 20694 20695# Whether dlopen of programs is supported. 20696dlopen_self=$enable_dlopen_self 20697 20698# Whether dlopen of statically linked programs is supported. 20699dlopen_self_static=$enable_dlopen_self_static 20700 20701# Commands to strip libraries. 20702old_striplib=$lt_old_striplib 20703striplib=$lt_striplib 20704 20705 20706# The linker used to build libraries. 20707LD=$lt_LD 20708 20709# How to create reloadable object files. 20710reload_flag=$lt_reload_flag 20711reload_cmds=$lt_reload_cmds 20712 20713# Commands used to build an old-style archive. 20714old_archive_cmds=$lt_old_archive_cmds 20715 20716# A language specific compiler. 20717CC=$lt_compiler 20718 20719# Is the compiler the GNU compiler? 20720with_gcc=$GCC 20721 20722# Compiler flag to turn off builtin functions. 20723no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20724 20725# Additional compiler flags for building library objects. 20726pic_flag=$lt_lt_prog_compiler_pic 20727 20728# How to pass a linker flag through the compiler. 20729wl=$lt_lt_prog_compiler_wl 20730 20731# Compiler flag to prevent dynamic linking. 20732link_static_flag=$lt_lt_prog_compiler_static 20733 20734# Does compiler simultaneously support -c and -o options? 20735compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20736 20737# Whether or not to add -lc for building shared libraries. 20738build_libtool_need_lc=$archive_cmds_need_lc 20739 20740# Whether or not to disallow shared libs when runtime libs are static. 20741allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20742 20743# Compiler flag to allow reflexive dlopens. 20744export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20745 20746# Compiler flag to generate shared objects directly from archives. 20747whole_archive_flag_spec=$lt_whole_archive_flag_spec 20748 20749# Whether the compiler copes with passing no objects directly. 20750compiler_needs_object=$lt_compiler_needs_object 20751 20752# Create an old-style archive from a shared archive. 20753old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20754 20755# Create a temporary old-style archive to link instead of a shared archive. 20756old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20757 20758# Commands used to build a shared archive. 20759archive_cmds=$lt_archive_cmds 20760archive_expsym_cmds=$lt_archive_expsym_cmds 20761 20762# Commands used to build a loadable module if different from building 20763# a shared archive. 20764module_cmds=$lt_module_cmds 20765module_expsym_cmds=$lt_module_expsym_cmds 20766 20767# Whether we are building with GNU ld or not. 20768with_gnu_ld=$lt_with_gnu_ld 20769 20770# Flag that allows shared libraries with undefined symbols to be built. 20771allow_undefined_flag=$lt_allow_undefined_flag 20772 20773# Flag that enforces no undefined symbols. 20774no_undefined_flag=$lt_no_undefined_flag 20775 20776# Flag to hardcode \$libdir into a binary during linking. 20777# This must work even if \$libdir does not exist 20778hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20779 20780# Whether we need a single "-rpath" flag with a separated argument. 20781hardcode_libdir_separator=$lt_hardcode_libdir_separator 20782 20783# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20784# DIR into the resulting binary. 20785hardcode_direct=$hardcode_direct 20786 20787# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20788# DIR into the resulting binary and the resulting library dependency is 20789# "absolute",i.e impossible to change by setting \$shlibpath_var if the 20790# library is relocated. 20791hardcode_direct_absolute=$hardcode_direct_absolute 20792 20793# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20794# into the resulting binary. 20795hardcode_minus_L=$hardcode_minus_L 20796 20797# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20798# into the resulting binary. 20799hardcode_shlibpath_var=$hardcode_shlibpath_var 20800 20801# Set to "yes" if building a shared library automatically hardcodes DIR 20802# into the library and all subsequent libraries and executables linked 20803# against it. 20804hardcode_automatic=$hardcode_automatic 20805 20806# Set to yes if linker adds runtime paths of dependent libraries 20807# to runtime path list. 20808inherit_rpath=$inherit_rpath 20809 20810# Whether libtool must link a program against all its dependency libraries. 20811link_all_deplibs=$link_all_deplibs 20812 20813# Set to "yes" if exported symbols are required. 20814always_export_symbols=$always_export_symbols 20815 20816# The commands to list exported symbols. 20817export_symbols_cmds=$lt_export_symbols_cmds 20818 20819# Symbols that should not be listed in the preloaded symbols. 20820exclude_expsyms=$lt_exclude_expsyms 20821 20822# Symbols that must always be exported. 20823include_expsyms=$lt_include_expsyms 20824 20825# Commands necessary for linking programs (against libraries) with templates. 20826prelink_cmds=$lt_prelink_cmds 20827 20828# Commands necessary for finishing linking programs. 20829postlink_cmds=$lt_postlink_cmds 20830 20831# Specify filename containing input files. 20832file_list_spec=$lt_file_list_spec 20833 20834# How to hardcode a shared library path into an executable. 20835hardcode_action=$hardcode_action 20836 20837# ### END LIBTOOL CONFIG 20838 20839_LT_EOF 20840 20841 cat <<'_LT_EOF' >> "$cfgfile" 20842 20843# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 20844 20845# func_munge_path_list VARIABLE PATH 20846# ----------------------------------- 20847# VARIABLE is name of variable containing _space_ separated list of 20848# directories to be munged by the contents of PATH, which is string 20849# having a format: 20850# "DIR[:DIR]:" 20851# string "DIR[ DIR]" will be prepended to VARIABLE 20852# ":DIR[:DIR]" 20853# string "DIR[ DIR]" will be appended to VARIABLE 20854# "DIRP[:DIRP]::[DIRA:]DIRA" 20855# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 20856# "DIRA[ DIRA]" will be appended to VARIABLE 20857# "DIR[:DIR]" 20858# VARIABLE will be replaced by "DIR[ DIR]" 20859func_munge_path_list () 20860{ 20861 case x$2 in 20862 x) 20863 ;; 20864 *:) 20865 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 20866 ;; 20867 x:*) 20868 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 20869 ;; 20870 *::*) 20871 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 20872 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 20873 ;; 20874 *) 20875 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 20876 ;; 20877 esac 20878} 20879 20880 20881# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 20882func_cc_basename () 20883{ 20884 for cc_temp in $*""; do 20885 case $cc_temp in 20886 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 20887 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 20888 \-*) ;; 20889 *) break;; 20890 esac 20891 done 20892 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 20893} 20894 20895 20896# ### END FUNCTIONS SHARED WITH CONFIGURE 20897 20898_LT_EOF 20899 20900 case $host_os in 20901 aix3*) 20902 cat <<\_LT_EOF >> "$cfgfile" 20903# AIX sometimes has problems with the GCC collect2 program. For some 20904# reason, if we set the COLLECT_NAMES environment variable, the problems 20905# vanish in a puff of smoke. 20906if test set != "${COLLECT_NAMES+set}"; then 20907 COLLECT_NAMES= 20908 export COLLECT_NAMES 20909fi 20910_LT_EOF 20911 ;; 20912 esac 20913 20914 20915ltmain=$ac_aux_dir/ltmain.sh 20916 20917 20918 # We use sed instead of cat because bash on DJGPP gets confused if 20919 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20920 # text mode, it properly converts lines to CR/LF. This bash problem 20921 # is reportedly fixed, but why not run on old versions too? 20922 sed '$q' "$ltmain" >> "$cfgfile" \ 20923 || (rm -f "$cfgfile"; exit 1) 20924 20925 mv -f "$cfgfile" "$ofile" || 20926 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20927 chmod +x "$ofile" 20928 20929 ;; 20930 20931 esac 20932done # for ac_tag 20933 20934 20935as_fn_exit 0 20936_ACEOF 20937ac_clean_files=$ac_clean_files_save 20938 20939test $ac_write_fail = 0 || 20940 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20941 20942 20943# configure is writing to config.log, and then calls config.status. 20944# config.status does its own redirection, appending to config.log. 20945# Unfortunately, on DOS this fails, as config.log is still kept open 20946# by configure, so config.status won't be able to write to it; its 20947# output is simply discarded. So we exec the FD to /dev/null, 20948# effectively closing config.log, so it can be properly (re)opened and 20949# appended to by config.status. When coming back to configure, we 20950# need to make the FD available again. 20951if test "$no_create" != yes; then 20952 ac_cs_success=: 20953 ac_config_status_args= 20954 test "$silent" = yes && 20955 ac_config_status_args="$ac_config_status_args --quiet" 20956 exec 5>/dev/null 20957 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20958 exec 5>>config.log 20959 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20960 # would make configure fail if this is the last instruction. 20961 $ac_cs_success || as_fn_exit 1 20962fi 20963if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20965$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20966fi 20967 20968