configure revision 4cd6a3ae
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for libxkbfile 1.0.8. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177 178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182 PATH=/empty FPATH=/empty; export PATH FPATH 183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 185test \$(( 1 + 1 )) = 2 || exit 1" 186 if (eval "$as_required") 2>/dev/null; then : 187 as_have_required=yes 188else 189 as_have_required=no 190fi 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 192 193else 194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 195as_found=false 196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 197do 198 IFS=$as_save_IFS 199 test -z "$as_dir" && as_dir=. 200 as_found=: 201 case $as_dir in #( 202 /*) 203 for as_base in sh bash ksh sh5; do 204 # Try only shells that exist, to save several forks. 205 as_shell=$as_dir/$as_base 206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 208 CONFIG_SHELL=$as_shell as_have_required=yes 209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 210 break 2 211fi 212fi 213 done;; 214 esac 215 as_found=false 216done 217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 219 CONFIG_SHELL=$SHELL as_have_required=yes 220fi; } 221IFS=$as_save_IFS 222 223 224 if test "x$CONFIG_SHELL" != x; then : 225 # We cannot yet assume a decent shell, so we have to provide a 226 # neutralization value for shells without unset; and this also 227 # works around shells that cannot unset nonexistent variables. 228 # Preserve -v and -x to the replacement shell. 229 BASH_ENV=/dev/null 230 ENV=/dev/null 231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 232 export CONFIG_SHELL 233 case $- in # (((( 234 *v*x* | *x*v* ) as_opts=-vx ;; 235 *v* ) as_opts=-v ;; 236 *x* ) as_opts=-x ;; 237 * ) as_opts= ;; 238 esac 239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 240fi 241 242 if test x$as_have_required = xno; then : 243 $as_echo "$0: This script requires a shell more modern than all" 244 $as_echo "$0: the shells that I found on your system." 245 if test x${ZSH_VERSION+set} = xset ; then 246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 247 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 248 else 249 $as_echo "$0: Please tell bug-autoconf@gnu.org and 250$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 251$0: about your system, including any error possibly output 252$0: before this message. Then install a modern shell, or 253$0: manually run the script under such a shell if you do 254$0: have one." 255 fi 256 exit 1 257fi 258fi 259fi 260SHELL=${CONFIG_SHELL-/bin/sh} 261export SHELL 262# Unset more variables known to interfere with behavior of common tools. 263CLICOLOR_FORCE= GREP_OPTIONS= 264unset CLICOLOR_FORCE GREP_OPTIONS 265 266## --------------------- ## 267## M4sh Shell Functions. ## 268## --------------------- ## 269# as_fn_unset VAR 270# --------------- 271# Portably unset VAR. 272as_fn_unset () 273{ 274 { eval $1=; unset $1;} 275} 276as_unset=as_fn_unset 277 278# as_fn_set_status STATUS 279# ----------------------- 280# Set $? to STATUS, without forking. 281as_fn_set_status () 282{ 283 return $1 284} # as_fn_set_status 285 286# as_fn_exit STATUS 287# ----------------- 288# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 289as_fn_exit () 290{ 291 set +e 292 as_fn_set_status $1 293 exit $1 294} # as_fn_exit 295 296# as_fn_mkdir_p 297# ------------- 298# Create "$as_dir" as a directory, including parents if necessary. 299as_fn_mkdir_p () 300{ 301 302 case $as_dir in #( 303 -*) as_dir=./$as_dir;; 304 esac 305 test -d "$as_dir" || eval $as_mkdir_p || { 306 as_dirs= 307 while :; do 308 case $as_dir in #( 309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 310 *) as_qdir=$as_dir;; 311 esac 312 as_dirs="'$as_qdir' $as_dirs" 313 as_dir=`$as_dirname -- "$as_dir" || 314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 315 X"$as_dir" : 'X\(//\)[^/]' \| \ 316 X"$as_dir" : 'X\(//\)$' \| \ 317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 318$as_echo X"$as_dir" | 319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\/\)[^/].*/{ 324 s//\1/ 325 q 326 } 327 /^X\(\/\/\)$/{ 328 s//\1/ 329 q 330 } 331 /^X\(\/\).*/{ 332 s//\1/ 333 q 334 } 335 s/.*/./; q'` 336 test -d "$as_dir" && break 337 done 338 test -z "$as_dirs" || eval "mkdir $as_dirs" 339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 340 341 342} # as_fn_mkdir_p 343# as_fn_append VAR VALUE 344# ---------------------- 345# Append the text in VALUE to the end of the definition contained in VAR. Take 346# advantage of any shell optimizations that allow amortized linear growth over 347# repeated appends, instead of the typical quadratic growth present in naive 348# implementations. 349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 350 eval 'as_fn_append () 351 { 352 eval $1+=\$2 353 }' 354else 355 as_fn_append () 356 { 357 eval $1=\$$1\$2 358 } 359fi # as_fn_append 360 361# as_fn_arith ARG... 362# ------------------ 363# Perform arithmetic evaluation on the ARGs, and store the result in the 364# global $as_val. Take advantage of shells that can avoid forks. The arguments 365# must be portable across $(()) and expr. 366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 367 eval 'as_fn_arith () 368 { 369 as_val=$(( $* )) 370 }' 371else 372 as_fn_arith () 373 { 374 as_val=`expr "$@" || test $? -eq 1` 375 } 376fi # as_fn_arith 377 378 379# as_fn_error STATUS ERROR [LINENO LOG_FD] 380# ---------------------------------------- 381# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 382# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 383# script with STATUS, using 1 if that was 0. 384as_fn_error () 385{ 386 as_status=$1; test $as_status -eq 0 && as_status=1 387 if test "$4"; then 388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 390 fi 391 $as_echo "$as_me: error: $2" >&2 392 as_fn_exit $as_status 393} # as_fn_error 394 395if expr a : '\(a\)' >/dev/null 2>&1 && 396 test "X`expr 00001 : '.*\(...\)'`" = X001; then 397 as_expr=expr 398else 399 as_expr=false 400fi 401 402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 403 as_basename=basename 404else 405 as_basename=false 406fi 407 408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 409 as_dirname=dirname 410else 411 as_dirname=false 412fi 413 414as_me=`$as_basename -- "$0" || 415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 416 X"$0" : 'X\(//\)$' \| \ 417 X"$0" : 'X\(/\)' \| . 2>/dev/null || 418$as_echo X/"$0" | 419 sed '/^.*\/\([^/][^/]*\)\/*$/{ 420 s//\1/ 421 q 422 } 423 /^X\/\(\/\/\)$/{ 424 s//\1/ 425 q 426 } 427 /^X\/\(\/\).*/{ 428 s//\1/ 429 q 430 } 431 s/.*/./; q'` 432 433# Avoid depending upon Character Ranges. 434as_cr_letters='abcdefghijklmnopqrstuvwxyz' 435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 436as_cr_Letters=$as_cr_letters$as_cr_LETTERS 437as_cr_digits='0123456789' 438as_cr_alnum=$as_cr_Letters$as_cr_digits 439 440 441 as_lineno_1=$LINENO as_lineno_1a=$LINENO 442 as_lineno_2=$LINENO as_lineno_2a=$LINENO 443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 446 sed -n ' 447 p 448 /[$]LINENO/= 449 ' <$as_myself | 450 sed ' 451 s/[$]LINENO.*/&-/ 452 t lineno 453 b 454 :lineno 455 N 456 :loop 457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 458 t loop 459 s/-\n.*// 460 ' >$as_me.lineno && 461 chmod +x "$as_me.lineno" || 462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 463 464 # Don't try to exec as it changes $[0], causing all sort of problems 465 # (the dirname of $[0] is not the place where we might find the 466 # original and so on. Autoconf is especially sensitive to this). 467 . "./$as_me.lineno" 468 # Exit status is that of the last command. 469 exit 470} 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in #((((( 474-n*) 475 case `echo 'xy\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 xy) ECHO_C='\c';; 478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 479 ECHO_T=' ';; 480 esac;; 481*) 482 ECHO_N='-n';; 483esac 484 485rm -f conf$$ conf$$.exe conf$$.file 486if test -d conf$$.dir; then 487 rm -f conf$$.dir/conf$$.file 488else 489 rm -f conf$$.dir 490 mkdir conf$$.dir 2>/dev/null 491fi 492if (echo >conf$$.file) 2>/dev/null; then 493 if ln -s conf$$.file conf$$ 2>/dev/null; then 494 as_ln_s='ln -s' 495 # ... but there are two gotchas: 496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 498 # In both cases, we have to default to `cp -p'. 499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 500 as_ln_s='cp -p' 501 elif ln conf$$.file conf$$ 2>/dev/null; then 502 as_ln_s=ln 503 else 504 as_ln_s='cp -p' 505 fi 506else 507 as_ln_s='cp -p' 508fi 509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 510rmdir conf$$.dir 2>/dev/null 511 512if mkdir -p . 2>/dev/null; then 513 as_mkdir_p='mkdir -p "$as_dir"' 514else 515 test -d ./-p && rmdir ./-p 516 as_mkdir_p=false 517fi 518 519if test -x / >/dev/null 2>&1; then 520 as_test_x='test -x' 521else 522 if ls -dL / >/dev/null 2>&1; then 523 as_ls_L_option=L 524 else 525 as_ls_L_option= 526 fi 527 as_test_x=' 528 eval sh -c '\'' 529 if test -d "$1"; then 530 test -d "$1/."; 531 else 532 case $1 in #( 533 -*)set "./$1";; 534 esac; 535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 536 ???[sx]*):;;*)false;;esac;fi 537 '\'' sh 538 ' 539fi 540as_executable_p=$as_test_x 541 542# Sed expression to map a string onto a valid CPP name. 543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 544 545# Sed expression to map a string onto a valid variable name. 546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 547 548SHELL=${CONFIG_SHELL-/bin/sh} 549 550 551test -n "$DJDIR" || exec 7<&0 </dev/null 552exec 6>&1 553 554# Name of the host. 555# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 556# so uname gets run too. 557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 558 559# 560# Initializations. 561# 562ac_default_prefix=/usr/local 563ac_clean_files= 564ac_config_libobj_dir=. 565LIBOBJS= 566cross_compiling=no 567subdirs= 568MFLAGS= 569MAKEFLAGS= 570 571# Identity of this package. 572PACKAGE_NAME='libxkbfile' 573PACKAGE_TARNAME='libxkbfile' 574PACKAGE_VERSION='1.0.8' 575PACKAGE_STRING='libxkbfile 1.0.8' 576PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 577PACKAGE_URL='' 578 579ac_unique_file="Makefile.am" 580# Factoring default headers for most tests. 581ac_includes_default="\ 582#include <stdio.h> 583#ifdef HAVE_SYS_TYPES_H 584# include <sys/types.h> 585#endif 586#ifdef HAVE_SYS_STAT_H 587# include <sys/stat.h> 588#endif 589#ifdef STDC_HEADERS 590# include <stdlib.h> 591# include <stddef.h> 592#else 593# ifdef HAVE_STDLIB_H 594# include <stdlib.h> 595# endif 596#endif 597#ifdef HAVE_STRING_H 598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 599# include <memory.h> 600# endif 601# include <string.h> 602#endif 603#ifdef HAVE_STRINGS_H 604# include <strings.h> 605#endif 606#ifdef HAVE_INTTYPES_H 607# include <inttypes.h> 608#endif 609#ifdef HAVE_STDINT_H 610# include <stdint.h> 611#endif 612#ifdef HAVE_UNISTD_H 613# include <unistd.h> 614#endif" 615 616ac_subst_vars='am__EXEEXT_FALSE 617am__EXEEXT_TRUE 618LTLIBOBJS 619LIBOBJS 620XKBFILE_LIBS 621XKBFILE_CFLAGS 622AM_BACKSLASH 623AM_DEFAULT_VERBOSITY 624MAN_SUBSTS 625XORG_MAN_PAGE 626ADMIN_MAN_DIR 627DRIVER_MAN_DIR 628MISC_MAN_DIR 629FILE_MAN_DIR 630LIB_MAN_DIR 631APP_MAN_DIR 632ADMIN_MAN_SUFFIX 633DRIVER_MAN_SUFFIX 634MISC_MAN_SUFFIX 635FILE_MAN_SUFFIX 636LIB_MAN_SUFFIX 637APP_MAN_SUFFIX 638INSTALL_CMD 639PKG_CONFIG 640CHANGELOG_CMD 641STRICT_CFLAGS 642CWARNFLAGS 643BASE_CFLAGS 644CPP 645OTOOL64 646OTOOL 647LIPO 648NMEDIT 649DSYMUTIL 650MANIFEST_TOOL 651RANLIB 652ac_ct_AR 653AR 654DLLTOOL 655OBJDUMP 656LN_S 657NM 658ac_ct_DUMPBIN 659DUMPBIN 660LD 661FGREP 662EGREP 663GREP 664SED 665am__fastdepCC_FALSE 666am__fastdepCC_TRUE 667CCDEPMODE 668AMDEPBACKSLASH 669AMDEP_FALSE 670AMDEP_TRUE 671am__quote 672am__include 673DEPDIR 674OBJEXT 675EXEEXT 676ac_ct_CC 677CPPFLAGS 678LDFLAGS 679CFLAGS 680CC 681host_os 682host_vendor 683host_cpu 684host 685build_os 686build_vendor 687build_cpu 688build 689LIBTOOL 690MAINT 691MAINTAINER_MODE_FALSE 692MAINTAINER_MODE_TRUE 693am__untar 694am__tar 695AMTAR 696am__leading_dot 697SET_MAKE 698AWK 699mkdir_p 700MKDIR_P 701INSTALL_STRIP_PROGRAM 702STRIP 703install_sh 704MAKEINFO 705AUTOHEADER 706AUTOMAKE 707AUTOCONF 708ACLOCAL 709VERSION 710PACKAGE 711CYGPATH_W 712am__isrc 713INSTALL_DATA 714INSTALL_SCRIPT 715INSTALL_PROGRAM 716target_alias 717host_alias 718build_alias 719LIBS 720ECHO_T 721ECHO_N 722ECHO_C 723DEFS 724mandir 725localedir 726libdir 727psdir 728pdfdir 729dvidir 730htmldir 731infodir 732docdir 733oldincludedir 734includedir 735localstatedir 736sharedstatedir 737sysconfdir 738datadir 739datarootdir 740libexecdir 741sbindir 742bindir 743program_transform_name 744prefix 745exec_prefix 746PACKAGE_URL 747PACKAGE_BUGREPORT 748PACKAGE_STRING 749PACKAGE_VERSION 750PACKAGE_TARNAME 751PACKAGE_NAME 752PATH_SEPARATOR 753SHELL' 754ac_subst_files='' 755ac_user_opts=' 756enable_option_checking 757enable_maintainer_mode 758enable_shared 759enable_static 760with_pic 761enable_fast_install 762enable_dependency_tracking 763with_gnu_ld 764with_sysroot 765enable_libtool_lock 766enable_selective_werror 767enable_strict_compilation 768enable_silent_rules 769' 770 ac_precious_vars='build_alias 771host_alias 772target_alias 773CC 774CFLAGS 775LDFLAGS 776LIBS 777CPPFLAGS 778CPP 779PKG_CONFIG 780XKBFILE_CFLAGS 781XKBFILE_LIBS' 782 783 784# Initialize some variables set by options. 785ac_init_help= 786ac_init_version=false 787ac_unrecognized_opts= 788ac_unrecognized_sep= 789# The variables have the same names as the options, with 790# dashes changed to underlines. 791cache_file=/dev/null 792exec_prefix=NONE 793no_create= 794no_recursion= 795prefix=NONE 796program_prefix=NONE 797program_suffix=NONE 798program_transform_name=s,x,x, 799silent= 800site= 801srcdir= 802verbose= 803x_includes=NONE 804x_libraries=NONE 805 806# Installation directory options. 807# These are left unexpanded so users can "make install exec_prefix=/foo" 808# and all the variables that are supposed to be based on exec_prefix 809# by default will actually change. 810# Use braces instead of parens because sh, perl, etc. also accept them. 811# (The list follows the same order as the GNU Coding Standards.) 812bindir='${exec_prefix}/bin' 813sbindir='${exec_prefix}/sbin' 814libexecdir='${exec_prefix}/libexec' 815datarootdir='${prefix}/share' 816datadir='${datarootdir}' 817sysconfdir='${prefix}/etc' 818sharedstatedir='${prefix}/com' 819localstatedir='${prefix}/var' 820includedir='${prefix}/include' 821oldincludedir='/usr/include' 822docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 823infodir='${datarootdir}/info' 824htmldir='${docdir}' 825dvidir='${docdir}' 826pdfdir='${docdir}' 827psdir='${docdir}' 828libdir='${exec_prefix}/lib' 829localedir='${datarootdir}/locale' 830mandir='${datarootdir}/man' 831 832ac_prev= 833ac_dashdash= 834for ac_option 835do 836 # If the previous option needs an argument, assign it. 837 if test -n "$ac_prev"; then 838 eval $ac_prev=\$ac_option 839 ac_prev= 840 continue 841 fi 842 843 case $ac_option in 844 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 845 *=) ac_optarg= ;; 846 *) ac_optarg=yes ;; 847 esac 848 849 # Accept the important Cygnus configure options, so we can diagnose typos. 850 851 case $ac_dashdash$ac_option in 852 --) 853 ac_dashdash=yes ;; 854 855 -bindir | --bindir | --bindi | --bind | --bin | --bi) 856 ac_prev=bindir ;; 857 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 858 bindir=$ac_optarg ;; 859 860 -build | --build | --buil | --bui | --bu) 861 ac_prev=build_alias ;; 862 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 863 build_alias=$ac_optarg ;; 864 865 -cache-file | --cache-file | --cache-fil | --cache-fi \ 866 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 867 ac_prev=cache_file ;; 868 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 869 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 870 cache_file=$ac_optarg ;; 871 872 --config-cache | -C) 873 cache_file=config.cache ;; 874 875 -datadir | --datadir | --datadi | --datad) 876 ac_prev=datadir ;; 877 -datadir=* | --datadir=* | --datadi=* | --datad=*) 878 datadir=$ac_optarg ;; 879 880 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 881 | --dataroo | --dataro | --datar) 882 ac_prev=datarootdir ;; 883 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 884 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 885 datarootdir=$ac_optarg ;; 886 887 -disable-* | --disable-*) 888 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 889 # Reject names that are not valid shell variable names. 890 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 891 as_fn_error $? "invalid feature name: $ac_useropt" 892 ac_useropt_orig=$ac_useropt 893 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 894 case $ac_user_opts in 895 *" 896"enable_$ac_useropt" 897"*) ;; 898 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 899 ac_unrecognized_sep=', ';; 900 esac 901 eval enable_$ac_useropt=no ;; 902 903 -docdir | --docdir | --docdi | --doc | --do) 904 ac_prev=docdir ;; 905 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 906 docdir=$ac_optarg ;; 907 908 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 909 ac_prev=dvidir ;; 910 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 911 dvidir=$ac_optarg ;; 912 913 -enable-* | --enable-*) 914 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 915 # Reject names that are not valid shell variable names. 916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 917 as_fn_error $? "invalid feature name: $ac_useropt" 918 ac_useropt_orig=$ac_useropt 919 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 920 case $ac_user_opts in 921 *" 922"enable_$ac_useropt" 923"*) ;; 924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 925 ac_unrecognized_sep=', ';; 926 esac 927 eval enable_$ac_useropt=\$ac_optarg ;; 928 929 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 930 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 931 | --exec | --exe | --ex) 932 ac_prev=exec_prefix ;; 933 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 934 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 935 | --exec=* | --exe=* | --ex=*) 936 exec_prefix=$ac_optarg ;; 937 938 -gas | --gas | --ga | --g) 939 # Obsolete; use --with-gas. 940 with_gas=yes ;; 941 942 -help | --help | --hel | --he | -h) 943 ac_init_help=long ;; 944 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 945 ac_init_help=recursive ;; 946 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 947 ac_init_help=short ;; 948 949 -host | --host | --hos | --ho) 950 ac_prev=host_alias ;; 951 -host=* | --host=* | --hos=* | --ho=*) 952 host_alias=$ac_optarg ;; 953 954 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 955 ac_prev=htmldir ;; 956 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 957 | --ht=*) 958 htmldir=$ac_optarg ;; 959 960 -includedir | --includedir | --includedi | --included | --include \ 961 | --includ | --inclu | --incl | --inc) 962 ac_prev=includedir ;; 963 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 964 | --includ=* | --inclu=* | --incl=* | --inc=*) 965 includedir=$ac_optarg ;; 966 967 -infodir | --infodir | --infodi | --infod | --info | --inf) 968 ac_prev=infodir ;; 969 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 970 infodir=$ac_optarg ;; 971 972 -libdir | --libdir | --libdi | --libd) 973 ac_prev=libdir ;; 974 -libdir=* | --libdir=* | --libdi=* | --libd=*) 975 libdir=$ac_optarg ;; 976 977 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 978 | --libexe | --libex | --libe) 979 ac_prev=libexecdir ;; 980 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 981 | --libexe=* | --libex=* | --libe=*) 982 libexecdir=$ac_optarg ;; 983 984 -localedir | --localedir | --localedi | --localed | --locale) 985 ac_prev=localedir ;; 986 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 987 localedir=$ac_optarg ;; 988 989 -localstatedir | --localstatedir | --localstatedi | --localstated \ 990 | --localstate | --localstat | --localsta | --localst | --locals) 991 ac_prev=localstatedir ;; 992 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 993 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 994 localstatedir=$ac_optarg ;; 995 996 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 997 ac_prev=mandir ;; 998 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 999 mandir=$ac_optarg ;; 1000 1001 -nfp | --nfp | --nf) 1002 # Obsolete; use --without-fp. 1003 with_fp=no ;; 1004 1005 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1006 | --no-cr | --no-c | -n) 1007 no_create=yes ;; 1008 1009 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1010 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1011 no_recursion=yes ;; 1012 1013 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1014 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1015 | --oldin | --oldi | --old | --ol | --o) 1016 ac_prev=oldincludedir ;; 1017 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1018 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1019 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1020 oldincludedir=$ac_optarg ;; 1021 1022 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1023 ac_prev=prefix ;; 1024 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1025 prefix=$ac_optarg ;; 1026 1027 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1028 | --program-pre | --program-pr | --program-p) 1029 ac_prev=program_prefix ;; 1030 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1031 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1032 program_prefix=$ac_optarg ;; 1033 1034 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1035 | --program-suf | --program-su | --program-s) 1036 ac_prev=program_suffix ;; 1037 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1038 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1039 program_suffix=$ac_optarg ;; 1040 1041 -program-transform-name | --program-transform-name \ 1042 | --program-transform-nam | --program-transform-na \ 1043 | --program-transform-n | --program-transform- \ 1044 | --program-transform | --program-transfor \ 1045 | --program-transfo | --program-transf \ 1046 | --program-trans | --program-tran \ 1047 | --progr-tra | --program-tr | --program-t) 1048 ac_prev=program_transform_name ;; 1049 -program-transform-name=* | --program-transform-name=* \ 1050 | --program-transform-nam=* | --program-transform-na=* \ 1051 | --program-transform-n=* | --program-transform-=* \ 1052 | --program-transform=* | --program-transfor=* \ 1053 | --program-transfo=* | --program-transf=* \ 1054 | --program-trans=* | --program-tran=* \ 1055 | --progr-tra=* | --program-tr=* | --program-t=*) 1056 program_transform_name=$ac_optarg ;; 1057 1058 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1059 ac_prev=pdfdir ;; 1060 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1061 pdfdir=$ac_optarg ;; 1062 1063 -psdir | --psdir | --psdi | --psd | --ps) 1064 ac_prev=psdir ;; 1065 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1066 psdir=$ac_optarg ;; 1067 1068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1069 | -silent | --silent | --silen | --sile | --sil) 1070 silent=yes ;; 1071 1072 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1073 ac_prev=sbindir ;; 1074 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1075 | --sbi=* | --sb=*) 1076 sbindir=$ac_optarg ;; 1077 1078 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1079 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1080 | --sharedst | --shareds | --shared | --share | --shar \ 1081 | --sha | --sh) 1082 ac_prev=sharedstatedir ;; 1083 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1084 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1085 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1086 | --sha=* | --sh=*) 1087 sharedstatedir=$ac_optarg ;; 1088 1089 -site | --site | --sit) 1090 ac_prev=site ;; 1091 -site=* | --site=* | --sit=*) 1092 site=$ac_optarg ;; 1093 1094 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1095 ac_prev=srcdir ;; 1096 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1097 srcdir=$ac_optarg ;; 1098 1099 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1100 | --syscon | --sysco | --sysc | --sys | --sy) 1101 ac_prev=sysconfdir ;; 1102 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1103 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1104 sysconfdir=$ac_optarg ;; 1105 1106 -target | --target | --targe | --targ | --tar | --ta | --t) 1107 ac_prev=target_alias ;; 1108 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1109 target_alias=$ac_optarg ;; 1110 1111 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1112 verbose=yes ;; 1113 1114 -version | --version | --versio | --versi | --vers | -V) 1115 ac_init_version=: ;; 1116 1117 -with-* | --with-*) 1118 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1119 # Reject names that are not valid shell variable names. 1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1121 as_fn_error $? "invalid package name: $ac_useropt" 1122 ac_useropt_orig=$ac_useropt 1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1124 case $ac_user_opts in 1125 *" 1126"with_$ac_useropt" 1127"*) ;; 1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1129 ac_unrecognized_sep=', ';; 1130 esac 1131 eval with_$ac_useropt=\$ac_optarg ;; 1132 1133 -without-* | --without-*) 1134 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1135 # Reject names that are not valid shell variable names. 1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1137 as_fn_error $? "invalid package name: $ac_useropt" 1138 ac_useropt_orig=$ac_useropt 1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1140 case $ac_user_opts in 1141 *" 1142"with_$ac_useropt" 1143"*) ;; 1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1145 ac_unrecognized_sep=', ';; 1146 esac 1147 eval with_$ac_useropt=no ;; 1148 1149 --x) 1150 # Obsolete; use --with-x. 1151 with_x=yes ;; 1152 1153 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1154 | --x-incl | --x-inc | --x-in | --x-i) 1155 ac_prev=x_includes ;; 1156 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1157 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1158 x_includes=$ac_optarg ;; 1159 1160 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1161 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1162 ac_prev=x_libraries ;; 1163 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1164 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1165 x_libraries=$ac_optarg ;; 1166 1167 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1168Try \`$0 --help' for more information" 1169 ;; 1170 1171 *=*) 1172 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1173 # Reject names that are not valid shell variable names. 1174 case $ac_envvar in #( 1175 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1176 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1177 esac 1178 eval $ac_envvar=\$ac_optarg 1179 export $ac_envvar ;; 1180 1181 *) 1182 # FIXME: should be removed in autoconf 3.0. 1183 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1184 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1185 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1186 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1187 ;; 1188 1189 esac 1190done 1191 1192if test -n "$ac_prev"; then 1193 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1194 as_fn_error $? "missing argument to $ac_option" 1195fi 1196 1197if test -n "$ac_unrecognized_opts"; then 1198 case $enable_option_checking in 1199 no) ;; 1200 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1201 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1202 esac 1203fi 1204 1205# Check all directory arguments for consistency. 1206for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1207 datadir sysconfdir sharedstatedir localstatedir includedir \ 1208 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1209 libdir localedir mandir 1210do 1211 eval ac_val=\$$ac_var 1212 # Remove trailing slashes. 1213 case $ac_val in 1214 */ ) 1215 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1216 eval $ac_var=\$ac_val;; 1217 esac 1218 # Be sure to have absolute directory names. 1219 case $ac_val in 1220 [\\/$]* | ?:[\\/]* ) continue;; 1221 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1222 esac 1223 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1224done 1225 1226# There might be people who depend on the old broken behavior: `$host' 1227# used to hold the argument of --host etc. 1228# FIXME: To remove some day. 1229build=$build_alias 1230host=$host_alias 1231target=$target_alias 1232 1233# FIXME: To remove some day. 1234if test "x$host_alias" != x; then 1235 if test "x$build_alias" = x; then 1236 cross_compiling=maybe 1237 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1238 If a cross compiler is detected then cross compile mode will be used" >&2 1239 elif test "x$build_alias" != "x$host_alias"; then 1240 cross_compiling=yes 1241 fi 1242fi 1243 1244ac_tool_prefix= 1245test -n "$host_alias" && ac_tool_prefix=$host_alias- 1246 1247test "$silent" = yes && exec 6>/dev/null 1248 1249 1250ac_pwd=`pwd` && test -n "$ac_pwd" && 1251ac_ls_di=`ls -di .` && 1252ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1253 as_fn_error $? "working directory cannot be determined" 1254test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1255 as_fn_error $? "pwd does not report name of working directory" 1256 1257 1258# Find the source files, if location was not specified. 1259if test -z "$srcdir"; then 1260 ac_srcdir_defaulted=yes 1261 # Try the directory containing this script, then the parent directory. 1262 ac_confdir=`$as_dirname -- "$as_myself" || 1263$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1264 X"$as_myself" : 'X\(//\)[^/]' \| \ 1265 X"$as_myself" : 'X\(//\)$' \| \ 1266 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1267$as_echo X"$as_myself" | 1268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1269 s//\1/ 1270 q 1271 } 1272 /^X\(\/\/\)[^/].*/{ 1273 s//\1/ 1274 q 1275 } 1276 /^X\(\/\/\)$/{ 1277 s//\1/ 1278 q 1279 } 1280 /^X\(\/\).*/{ 1281 s//\1/ 1282 q 1283 } 1284 s/.*/./; q'` 1285 srcdir=$ac_confdir 1286 if test ! -r "$srcdir/$ac_unique_file"; then 1287 srcdir=.. 1288 fi 1289else 1290 ac_srcdir_defaulted=no 1291fi 1292if test ! -r "$srcdir/$ac_unique_file"; then 1293 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1294 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1295fi 1296ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1297ac_abs_confdir=`( 1298 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1299 pwd)` 1300# When building in place, set srcdir=. 1301if test "$ac_abs_confdir" = "$ac_pwd"; then 1302 srcdir=. 1303fi 1304# Remove unnecessary trailing slashes from srcdir. 1305# Double slashes in file names in object file debugging info 1306# mess up M-x gdb in Emacs. 1307case $srcdir in 1308*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1309esac 1310for ac_var in $ac_precious_vars; do 1311 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1312 eval ac_env_${ac_var}_value=\$${ac_var} 1313 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1314 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1315done 1316 1317# 1318# Report the --help message. 1319# 1320if test "$ac_init_help" = "long"; then 1321 # Omit some internal or obsolete options to make the list less imposing. 1322 # This message is too long to be a string in the A/UX 3.1 sh. 1323 cat <<_ACEOF 1324\`configure' configures libxkbfile 1.0.8 to adapt to many kinds of systems. 1325 1326Usage: $0 [OPTION]... [VAR=VALUE]... 1327 1328To assign environment variables (e.g., CC, CFLAGS...), specify them as 1329VAR=VALUE. See below for descriptions of some of the useful variables. 1330 1331Defaults for the options are specified in brackets. 1332 1333Configuration: 1334 -h, --help display this help and exit 1335 --help=short display options specific to this package 1336 --help=recursive display the short help of all the included packages 1337 -V, --version display version information and exit 1338 -q, --quiet, --silent do not print \`checking ...' messages 1339 --cache-file=FILE cache test results in FILE [disabled] 1340 -C, --config-cache alias for \`--cache-file=config.cache' 1341 -n, --no-create do not create output files 1342 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1343 1344Installation directories: 1345 --prefix=PREFIX install architecture-independent files in PREFIX 1346 [$ac_default_prefix] 1347 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1348 [PREFIX] 1349 1350By default, \`make install' will install all the files in 1351\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1352an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1353for instance \`--prefix=\$HOME'. 1354 1355For better control, use the options below. 1356 1357Fine tuning of the installation directories: 1358 --bindir=DIR user executables [EPREFIX/bin] 1359 --sbindir=DIR system admin executables [EPREFIX/sbin] 1360 --libexecdir=DIR program executables [EPREFIX/libexec] 1361 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1362 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1363 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1364 --libdir=DIR object code libraries [EPREFIX/lib] 1365 --includedir=DIR C header files [PREFIX/include] 1366 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1367 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1368 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1369 --infodir=DIR info documentation [DATAROOTDIR/info] 1370 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1371 --mandir=DIR man documentation [DATAROOTDIR/man] 1372 --docdir=DIR documentation root [DATAROOTDIR/doc/libxkbfile] 1373 --htmldir=DIR html documentation [DOCDIR] 1374 --dvidir=DIR dvi documentation [DOCDIR] 1375 --pdfdir=DIR pdf documentation [DOCDIR] 1376 --psdir=DIR ps documentation [DOCDIR] 1377_ACEOF 1378 1379 cat <<\_ACEOF 1380 1381Program names: 1382 --program-prefix=PREFIX prepend PREFIX to installed program names 1383 --program-suffix=SUFFIX append SUFFIX to installed program names 1384 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1385 1386System types: 1387 --build=BUILD configure for building on BUILD [guessed] 1388 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1389_ACEOF 1390fi 1391 1392if test -n "$ac_init_help"; then 1393 case $ac_init_help in 1394 short | recursive ) echo "Configuration of libxkbfile 1.0.8:";; 1395 esac 1396 cat <<\_ACEOF 1397 1398Optional Features: 1399 --disable-option-checking ignore unrecognized --enable/--with options 1400 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1401 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1402 --enable-maintainer-mode enable make rules and dependencies not useful 1403 (and sometimes confusing) to the casual installer 1404 --enable-shared[=PKGS] build shared libraries [default=yes] 1405 --enable-static[=PKGS] build static libraries [default=yes] 1406 --enable-fast-install[=PKGS] 1407 optimize for fast installation [default=yes] 1408 --disable-dependency-tracking speeds up one-time build 1409 --enable-dependency-tracking do not reject slow dependency extractors 1410 --disable-libtool-lock avoid locking (might break parallel builds) 1411 --disable-selective-werror 1412 Turn off selective compiler errors. (default: 1413 enabled) 1414 --enable-strict-compilation 1415 Enable all warnings from compiler and make them 1416 errors (default: disabled) 1417 --enable-silent-rules less verbose build output (undo: `make V=1') 1418 --disable-silent-rules verbose build output (undo: `make V=0') 1419 1420Optional Packages: 1421 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1422 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1423 --with-pic try to use only PIC/non-PIC objects [default=use 1424 both] 1425 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1426 --with-sysroot=DIR Search for dependent libraries within DIR 1427 (or the compiler's sysroot if not specified). 1428 1429Some influential environment variables: 1430 CC C compiler command 1431 CFLAGS C compiler flags 1432 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1433 nonstandard directory <lib dir> 1434 LIBS libraries to pass to the linker, e.g. -l<library> 1435 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1436 you have headers in a nonstandard directory <include dir> 1437 CPP C preprocessor 1438 PKG_CONFIG path to pkg-config utility 1439 XKBFILE_CFLAGS 1440 C compiler flags for XKBFILE, overriding pkg-config 1441 XKBFILE_LIBS 1442 linker flags for XKBFILE, overriding pkg-config 1443 1444Use these variables to override the choices made by `configure' or to help 1445it to find libraries and programs with nonstandard names/locations. 1446 1447Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1448_ACEOF 1449ac_status=$? 1450fi 1451 1452if test "$ac_init_help" = "recursive"; then 1453 # If there are subdirs, report their specific --help. 1454 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1455 test -d "$ac_dir" || 1456 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1457 continue 1458 ac_builddir=. 1459 1460case "$ac_dir" in 1461.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1462*) 1463 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1464 # A ".." for each directory in $ac_dir_suffix. 1465 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1466 case $ac_top_builddir_sub in 1467 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1468 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1469 esac ;; 1470esac 1471ac_abs_top_builddir=$ac_pwd 1472ac_abs_builddir=$ac_pwd$ac_dir_suffix 1473# for backward compatibility: 1474ac_top_builddir=$ac_top_build_prefix 1475 1476case $srcdir in 1477 .) # We are building in place. 1478 ac_srcdir=. 1479 ac_top_srcdir=$ac_top_builddir_sub 1480 ac_abs_top_srcdir=$ac_pwd ;; 1481 [\\/]* | ?:[\\/]* ) # Absolute name. 1482 ac_srcdir=$srcdir$ac_dir_suffix; 1483 ac_top_srcdir=$srcdir 1484 ac_abs_top_srcdir=$srcdir ;; 1485 *) # Relative name. 1486 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1487 ac_top_srcdir=$ac_top_build_prefix$srcdir 1488 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1489esac 1490ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1491 1492 cd "$ac_dir" || { ac_status=$?; continue; } 1493 # Check for guested configure. 1494 if test -f "$ac_srcdir/configure.gnu"; then 1495 echo && 1496 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1497 elif test -f "$ac_srcdir/configure"; then 1498 echo && 1499 $SHELL "$ac_srcdir/configure" --help=recursive 1500 else 1501 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1502 fi || ac_status=$? 1503 cd "$ac_pwd" || { ac_status=$?; break; } 1504 done 1505fi 1506 1507test -n "$ac_init_help" && exit $ac_status 1508if $ac_init_version; then 1509 cat <<\_ACEOF 1510libxkbfile configure 1.0.8 1511generated by GNU Autoconf 2.68 1512 1513Copyright (C) 2010 Free Software Foundation, Inc. 1514This configure script is free software; the Free Software Foundation 1515gives unlimited permission to copy, distribute and modify it. 1516_ACEOF 1517 exit 1518fi 1519 1520## ------------------------ ## 1521## Autoconf initialization. ## 1522## ------------------------ ## 1523 1524# ac_fn_c_try_compile LINENO 1525# -------------------------- 1526# Try to compile conftest.$ac_ext, and return whether this succeeded. 1527ac_fn_c_try_compile () 1528{ 1529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1530 rm -f conftest.$ac_objext 1531 if { { ac_try="$ac_compile" 1532case "(($ac_try" in 1533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1534 *) ac_try_echo=$ac_try;; 1535esac 1536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1537$as_echo "$ac_try_echo"; } >&5 1538 (eval "$ac_compile") 2>conftest.err 1539 ac_status=$? 1540 if test -s conftest.err; then 1541 grep -v '^ *+' conftest.err >conftest.er1 1542 cat conftest.er1 >&5 1543 mv -f conftest.er1 conftest.err 1544 fi 1545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1546 test $ac_status = 0; } && { 1547 test -z "$ac_c_werror_flag" || 1548 test ! -s conftest.err 1549 } && test -s conftest.$ac_objext; then : 1550 ac_retval=0 1551else 1552 $as_echo "$as_me: failed program was:" >&5 1553sed 's/^/| /' conftest.$ac_ext >&5 1554 1555 ac_retval=1 1556fi 1557 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1558 as_fn_set_status $ac_retval 1559 1560} # ac_fn_c_try_compile 1561 1562# ac_fn_c_try_link LINENO 1563# ----------------------- 1564# Try to link conftest.$ac_ext, and return whether this succeeded. 1565ac_fn_c_try_link () 1566{ 1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1568 rm -f conftest.$ac_objext conftest$ac_exeext 1569 if { { ac_try="$ac_link" 1570case "(($ac_try" in 1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1572 *) ac_try_echo=$ac_try;; 1573esac 1574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1575$as_echo "$ac_try_echo"; } >&5 1576 (eval "$ac_link") 2>conftest.err 1577 ac_status=$? 1578 if test -s conftest.err; then 1579 grep -v '^ *+' conftest.err >conftest.er1 1580 cat conftest.er1 >&5 1581 mv -f conftest.er1 conftest.err 1582 fi 1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1584 test $ac_status = 0; } && { 1585 test -z "$ac_c_werror_flag" || 1586 test ! -s conftest.err 1587 } && test -s conftest$ac_exeext && { 1588 test "$cross_compiling" = yes || 1589 $as_test_x conftest$ac_exeext 1590 }; then : 1591 ac_retval=0 1592else 1593 $as_echo "$as_me: failed program was:" >&5 1594sed 's/^/| /' conftest.$ac_ext >&5 1595 1596 ac_retval=1 1597fi 1598 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1599 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1600 # interfere with the next link command; also delete a directory that is 1601 # left behind by Apple's compiler. We do this before executing the actions. 1602 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1604 as_fn_set_status $ac_retval 1605 1606} # ac_fn_c_try_link 1607 1608# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1609# ------------------------------------------------------- 1610# Tests whether HEADER exists and can be compiled using the include files in 1611# INCLUDES, setting the cache variable VAR accordingly. 1612ac_fn_c_check_header_compile () 1613{ 1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1616$as_echo_n "checking for $2... " >&6; } 1617if eval \${$3+:} false; then : 1618 $as_echo_n "(cached) " >&6 1619else 1620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1621/* end confdefs.h. */ 1622$4 1623#include <$2> 1624_ACEOF 1625if ac_fn_c_try_compile "$LINENO"; then : 1626 eval "$3=yes" 1627else 1628 eval "$3=no" 1629fi 1630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1631fi 1632eval ac_res=\$$3 1633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1634$as_echo "$ac_res" >&6; } 1635 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1636 1637} # ac_fn_c_check_header_compile 1638 1639# ac_fn_c_try_cpp LINENO 1640# ---------------------- 1641# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1642ac_fn_c_try_cpp () 1643{ 1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1645 if { { ac_try="$ac_cpp conftest.$ac_ext" 1646case "(($ac_try" in 1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1648 *) ac_try_echo=$ac_try;; 1649esac 1650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1651$as_echo "$ac_try_echo"; } >&5 1652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1653 ac_status=$? 1654 if test -s conftest.err; then 1655 grep -v '^ *+' conftest.err >conftest.er1 1656 cat conftest.er1 >&5 1657 mv -f conftest.er1 conftest.err 1658 fi 1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1660 test $ac_status = 0; } > conftest.i && { 1661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1662 test ! -s conftest.err 1663 }; then : 1664 ac_retval=0 1665else 1666 $as_echo "$as_me: failed program was:" >&5 1667sed 's/^/| /' conftest.$ac_ext >&5 1668 1669 ac_retval=1 1670fi 1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1672 as_fn_set_status $ac_retval 1673 1674} # ac_fn_c_try_cpp 1675 1676# ac_fn_c_try_run LINENO 1677# ---------------------- 1678# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1679# that executables *can* be run. 1680ac_fn_c_try_run () 1681{ 1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1683 if { { ac_try="$ac_link" 1684case "(($ac_try" in 1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1686 *) ac_try_echo=$ac_try;; 1687esac 1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1689$as_echo "$ac_try_echo"; } >&5 1690 (eval "$ac_link") 2>&5 1691 ac_status=$? 1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1693 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1694 { { case "(($ac_try" in 1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1696 *) ac_try_echo=$ac_try;; 1697esac 1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1699$as_echo "$ac_try_echo"; } >&5 1700 (eval "$ac_try") 2>&5 1701 ac_status=$? 1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1703 test $ac_status = 0; }; }; then : 1704 ac_retval=0 1705else 1706 $as_echo "$as_me: program exited with status $ac_status" >&5 1707 $as_echo "$as_me: failed program was:" >&5 1708sed 's/^/| /' conftest.$ac_ext >&5 1709 1710 ac_retval=$ac_status 1711fi 1712 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1714 as_fn_set_status $ac_retval 1715 1716} # ac_fn_c_try_run 1717 1718# ac_fn_c_check_func LINENO FUNC VAR 1719# ---------------------------------- 1720# Tests whether FUNC exists, setting the cache variable VAR accordingly 1721ac_fn_c_check_func () 1722{ 1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1725$as_echo_n "checking for $2... " >&6; } 1726if eval \${$3+:} false; then : 1727 $as_echo_n "(cached) " >&6 1728else 1729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1730/* end confdefs.h. */ 1731/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1732 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1733#define $2 innocuous_$2 1734 1735/* System header to define __stub macros and hopefully few prototypes, 1736 which can conflict with char $2 (); below. 1737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1738 <limits.h> exists even on freestanding compilers. */ 1739 1740#ifdef __STDC__ 1741# include <limits.h> 1742#else 1743# include <assert.h> 1744#endif 1745 1746#undef $2 1747 1748/* Override any GCC internal prototype to avoid an error. 1749 Use char because int might match the return type of a GCC 1750 builtin and then its argument prototype would still apply. */ 1751#ifdef __cplusplus 1752extern "C" 1753#endif 1754char $2 (); 1755/* The GNU C library defines this for functions which it implements 1756 to always fail with ENOSYS. Some functions are actually named 1757 something starting with __ and the normal name is an alias. */ 1758#if defined __stub_$2 || defined __stub___$2 1759choke me 1760#endif 1761 1762int 1763main () 1764{ 1765return $2 (); 1766 ; 1767 return 0; 1768} 1769_ACEOF 1770if ac_fn_c_try_link "$LINENO"; then : 1771 eval "$3=yes" 1772else 1773 eval "$3=no" 1774fi 1775rm -f core conftest.err conftest.$ac_objext \ 1776 conftest$ac_exeext conftest.$ac_ext 1777fi 1778eval ac_res=\$$3 1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1780$as_echo "$ac_res" >&6; } 1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1782 1783} # ac_fn_c_check_func 1784 1785# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1786# --------------------------------------------- 1787# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1788# accordingly. 1789ac_fn_c_check_decl () 1790{ 1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1792 as_decl_name=`echo $2|sed 's/ *(.*//'` 1793 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1795$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1796if eval \${$3+:} false; then : 1797 $as_echo_n "(cached) " >&6 1798else 1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1800/* end confdefs.h. */ 1801$4 1802int 1803main () 1804{ 1805#ifndef $as_decl_name 1806#ifdef __cplusplus 1807 (void) $as_decl_use; 1808#else 1809 (void) $as_decl_name; 1810#endif 1811#endif 1812 1813 ; 1814 return 0; 1815} 1816_ACEOF 1817if ac_fn_c_try_compile "$LINENO"; then : 1818 eval "$3=yes" 1819else 1820 eval "$3=no" 1821fi 1822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1823fi 1824eval ac_res=\$$3 1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1826$as_echo "$ac_res" >&6; } 1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1828 1829} # ac_fn_c_check_decl 1830cat >config.log <<_ACEOF 1831This file contains any messages produced by compilers while 1832running configure, to aid debugging if configure makes a mistake. 1833 1834It was created by libxkbfile $as_me 1.0.8, which was 1835generated by GNU Autoconf 2.68. Invocation command line was 1836 1837 $ $0 $@ 1838 1839_ACEOF 1840exec 5>>config.log 1841{ 1842cat <<_ASUNAME 1843## --------- ## 1844## Platform. ## 1845## --------- ## 1846 1847hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1848uname -m = `(uname -m) 2>/dev/null || echo unknown` 1849uname -r = `(uname -r) 2>/dev/null || echo unknown` 1850uname -s = `(uname -s) 2>/dev/null || echo unknown` 1851uname -v = `(uname -v) 2>/dev/null || echo unknown` 1852 1853/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1854/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1855 1856/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1857/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1858/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1859/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1860/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1861/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1862/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1863 1864_ASUNAME 1865 1866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1867for as_dir in $PATH 1868do 1869 IFS=$as_save_IFS 1870 test -z "$as_dir" && as_dir=. 1871 $as_echo "PATH: $as_dir" 1872 done 1873IFS=$as_save_IFS 1874 1875} >&5 1876 1877cat >&5 <<_ACEOF 1878 1879 1880## ----------- ## 1881## Core tests. ## 1882## ----------- ## 1883 1884_ACEOF 1885 1886 1887# Keep a trace of the command line. 1888# Strip out --no-create and --no-recursion so they do not pile up. 1889# Strip out --silent because we don't want to record it for future runs. 1890# Also quote any args containing shell meta-characters. 1891# Make two passes to allow for proper duplicate-argument suppression. 1892ac_configure_args= 1893ac_configure_args0= 1894ac_configure_args1= 1895ac_must_keep_next=false 1896for ac_pass in 1 2 1897do 1898 for ac_arg 1899 do 1900 case $ac_arg in 1901 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1902 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1903 | -silent | --silent | --silen | --sile | --sil) 1904 continue ;; 1905 *\'*) 1906 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1907 esac 1908 case $ac_pass in 1909 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1910 2) 1911 as_fn_append ac_configure_args1 " '$ac_arg'" 1912 if test $ac_must_keep_next = true; then 1913 ac_must_keep_next=false # Got value, back to normal. 1914 else 1915 case $ac_arg in 1916 *=* | --config-cache | -C | -disable-* | --disable-* \ 1917 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1918 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1919 | -with-* | --with-* | -without-* | --without-* | --x) 1920 case "$ac_configure_args0 " in 1921 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1922 esac 1923 ;; 1924 -* ) ac_must_keep_next=true ;; 1925 esac 1926 fi 1927 as_fn_append ac_configure_args " '$ac_arg'" 1928 ;; 1929 esac 1930 done 1931done 1932{ ac_configure_args0=; unset ac_configure_args0;} 1933{ ac_configure_args1=; unset ac_configure_args1;} 1934 1935# When interrupted or exit'd, cleanup temporary files, and complete 1936# config.log. We remove comments because anyway the quotes in there 1937# would cause problems or look ugly. 1938# WARNING: Use '\'' to represent an apostrophe within the trap. 1939# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1940trap 'exit_status=$? 1941 # Save into config.log some information that might help in debugging. 1942 { 1943 echo 1944 1945 $as_echo "## ---------------- ## 1946## Cache variables. ## 1947## ---------------- ##" 1948 echo 1949 # The following way of writing the cache mishandles newlines in values, 1950( 1951 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1952 eval ac_val=\$$ac_var 1953 case $ac_val in #( 1954 *${as_nl}*) 1955 case $ac_var in #( 1956 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1957$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1958 esac 1959 case $ac_var in #( 1960 _ | IFS | as_nl) ;; #( 1961 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1962 *) { eval $ac_var=; unset $ac_var;} ;; 1963 esac ;; 1964 esac 1965 done 1966 (set) 2>&1 | 1967 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1968 *${as_nl}ac_space=\ *) 1969 sed -n \ 1970 "s/'\''/'\''\\\\'\'''\''/g; 1971 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1972 ;; #( 1973 *) 1974 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1975 ;; 1976 esac | 1977 sort 1978) 1979 echo 1980 1981 $as_echo "## ----------------- ## 1982## Output variables. ## 1983## ----------------- ##" 1984 echo 1985 for ac_var in $ac_subst_vars 1986 do 1987 eval ac_val=\$$ac_var 1988 case $ac_val in 1989 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1990 esac 1991 $as_echo "$ac_var='\''$ac_val'\''" 1992 done | sort 1993 echo 1994 1995 if test -n "$ac_subst_files"; then 1996 $as_echo "## ------------------- ## 1997## File substitutions. ## 1998## ------------------- ##" 1999 echo 2000 for ac_var in $ac_subst_files 2001 do 2002 eval ac_val=\$$ac_var 2003 case $ac_val in 2004 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2005 esac 2006 $as_echo "$ac_var='\''$ac_val'\''" 2007 done | sort 2008 echo 2009 fi 2010 2011 if test -s confdefs.h; then 2012 $as_echo "## ----------- ## 2013## confdefs.h. ## 2014## ----------- ##" 2015 echo 2016 cat confdefs.h 2017 echo 2018 fi 2019 test "$ac_signal" != 0 && 2020 $as_echo "$as_me: caught signal $ac_signal" 2021 $as_echo "$as_me: exit $exit_status" 2022 } >&5 2023 rm -f core *.core core.conftest.* && 2024 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2025 exit $exit_status 2026' 0 2027for ac_signal in 1 2 13 15; do 2028 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2029done 2030ac_signal=0 2031 2032# confdefs.h avoids OS command line length limits that DEFS can exceed. 2033rm -f -r conftest* confdefs.h 2034 2035$as_echo "/* confdefs.h */" > confdefs.h 2036 2037# Predefined preprocessor variables. 2038 2039cat >>confdefs.h <<_ACEOF 2040#define PACKAGE_NAME "$PACKAGE_NAME" 2041_ACEOF 2042 2043cat >>confdefs.h <<_ACEOF 2044#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2045_ACEOF 2046 2047cat >>confdefs.h <<_ACEOF 2048#define PACKAGE_VERSION "$PACKAGE_VERSION" 2049_ACEOF 2050 2051cat >>confdefs.h <<_ACEOF 2052#define PACKAGE_STRING "$PACKAGE_STRING" 2053_ACEOF 2054 2055cat >>confdefs.h <<_ACEOF 2056#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2057_ACEOF 2058 2059cat >>confdefs.h <<_ACEOF 2060#define PACKAGE_URL "$PACKAGE_URL" 2061_ACEOF 2062 2063 2064# Let the site file select an alternate cache file if it wants to. 2065# Prefer an explicitly selected file to automatically selected ones. 2066ac_site_file1=NONE 2067ac_site_file2=NONE 2068if test -n "$CONFIG_SITE"; then 2069 # We do not want a PATH search for config.site. 2070 case $CONFIG_SITE in #(( 2071 -*) ac_site_file1=./$CONFIG_SITE;; 2072 */*) ac_site_file1=$CONFIG_SITE;; 2073 *) ac_site_file1=./$CONFIG_SITE;; 2074 esac 2075elif test "x$prefix" != xNONE; then 2076 ac_site_file1=$prefix/share/config.site 2077 ac_site_file2=$prefix/etc/config.site 2078else 2079 ac_site_file1=$ac_default_prefix/share/config.site 2080 ac_site_file2=$ac_default_prefix/etc/config.site 2081fi 2082for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2083do 2084 test "x$ac_site_file" = xNONE && continue 2085 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2086 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2087$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2088 sed 's/^/| /' "$ac_site_file" >&5 2089 . "$ac_site_file" \ 2090 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2091$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2092as_fn_error $? "failed to load site script $ac_site_file 2093See \`config.log' for more details" "$LINENO" 5; } 2094 fi 2095done 2096 2097if test -r "$cache_file"; then 2098 # Some versions of bash will fail to source /dev/null (special files 2099 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2100 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2101 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2102$as_echo "$as_me: loading cache $cache_file" >&6;} 2103 case $cache_file in 2104 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2105 *) . "./$cache_file";; 2106 esac 2107 fi 2108else 2109 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2110$as_echo "$as_me: creating cache $cache_file" >&6;} 2111 >$cache_file 2112fi 2113 2114# Check that the precious variables saved in the cache have kept the same 2115# value. 2116ac_cache_corrupted=false 2117for ac_var in $ac_precious_vars; do 2118 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2119 eval ac_new_set=\$ac_env_${ac_var}_set 2120 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2121 eval ac_new_val=\$ac_env_${ac_var}_value 2122 case $ac_old_set,$ac_new_set in 2123 set,) 2124 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2125$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2126 ac_cache_corrupted=: ;; 2127 ,set) 2128 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2129$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2130 ac_cache_corrupted=: ;; 2131 ,);; 2132 *) 2133 if test "x$ac_old_val" != "x$ac_new_val"; then 2134 # differences in whitespace do not lead to failure. 2135 ac_old_val_w=`echo x $ac_old_val` 2136 ac_new_val_w=`echo x $ac_new_val` 2137 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2138 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2139$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2140 ac_cache_corrupted=: 2141 else 2142 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2143$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2144 eval $ac_var=\$ac_old_val 2145 fi 2146 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2147$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2148 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2149$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2150 fi;; 2151 esac 2152 # Pass precious variables to config.status. 2153 if test "$ac_new_set" = set; then 2154 case $ac_new_val in 2155 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2156 *) ac_arg=$ac_var=$ac_new_val ;; 2157 esac 2158 case " $ac_configure_args " in 2159 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2160 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2161 esac 2162 fi 2163done 2164if $ac_cache_corrupted; then 2165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2166$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2167 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2168$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2169 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2170fi 2171## -------------------- ## 2172## Main body of script. ## 2173## -------------------- ## 2174 2175ac_ext=c 2176ac_cpp='$CPP $CPPFLAGS' 2177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2179ac_compiler_gnu=$ac_cv_c_compiler_gnu 2180 2181 2182 2183ac_config_headers="$ac_config_headers config.h" 2184 2185 2186# Initialize Automake 2187am__api_version='1.11' 2188 2189ac_aux_dir= 2190for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2191 if test -f "$ac_dir/install-sh"; then 2192 ac_aux_dir=$ac_dir 2193 ac_install_sh="$ac_aux_dir/install-sh -c" 2194 break 2195 elif test -f "$ac_dir/install.sh"; then 2196 ac_aux_dir=$ac_dir 2197 ac_install_sh="$ac_aux_dir/install.sh -c" 2198 break 2199 elif test -f "$ac_dir/shtool"; then 2200 ac_aux_dir=$ac_dir 2201 ac_install_sh="$ac_aux_dir/shtool install -c" 2202 break 2203 fi 2204done 2205if test -z "$ac_aux_dir"; then 2206 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2207fi 2208 2209# These three variables are undocumented and unsupported, 2210# and are intended to be withdrawn in a future Autoconf release. 2211# They can cause serious problems if a builder's source tree is in a directory 2212# whose full name contains unusual characters. 2213ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2214ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2215ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2216 2217 2218# Find a good install program. We prefer a C program (faster), 2219# so one script is as good as another. But avoid the broken or 2220# incompatible versions: 2221# SysV /etc/install, /usr/sbin/install 2222# SunOS /usr/etc/install 2223# IRIX /sbin/install 2224# AIX /bin/install 2225# AmigaOS /C/install, which installs bootblocks on floppy discs 2226# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2227# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2228# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2229# OS/2's system install, which has a completely different semantic 2230# ./install, which can be erroneously created by make from ./install.sh. 2231# Reject install programs that cannot install multiple files. 2232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2233$as_echo_n "checking for a BSD-compatible install... " >&6; } 2234if test -z "$INSTALL"; then 2235if ${ac_cv_path_install+:} false; then : 2236 $as_echo_n "(cached) " >&6 2237else 2238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2239for as_dir in $PATH 2240do 2241 IFS=$as_save_IFS 2242 test -z "$as_dir" && as_dir=. 2243 # Account for people who put trailing slashes in PATH elements. 2244case $as_dir/ in #(( 2245 ./ | .// | /[cC]/* | \ 2246 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2247 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2248 /usr/ucb/* ) ;; 2249 *) 2250 # OSF1 and SCO ODT 3.0 have their own names for install. 2251 # Don't use installbsd from OSF since it installs stuff as root 2252 # by default. 2253 for ac_prog in ginstall scoinst install; do 2254 for ac_exec_ext in '' $ac_executable_extensions; do 2255 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2256 if test $ac_prog = install && 2257 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2258 # AIX install. It has an incompatible calling convention. 2259 : 2260 elif test $ac_prog = install && 2261 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2262 # program-specific install script used by HP pwplus--don't use. 2263 : 2264 else 2265 rm -rf conftest.one conftest.two conftest.dir 2266 echo one > conftest.one 2267 echo two > conftest.two 2268 mkdir conftest.dir 2269 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2270 test -s conftest.one && test -s conftest.two && 2271 test -s conftest.dir/conftest.one && 2272 test -s conftest.dir/conftest.two 2273 then 2274 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2275 break 3 2276 fi 2277 fi 2278 fi 2279 done 2280 done 2281 ;; 2282esac 2283 2284 done 2285IFS=$as_save_IFS 2286 2287rm -rf conftest.one conftest.two conftest.dir 2288 2289fi 2290 if test "${ac_cv_path_install+set}" = set; then 2291 INSTALL=$ac_cv_path_install 2292 else 2293 # As a last resort, use the slow shell script. Don't cache a 2294 # value for INSTALL within a source directory, because that will 2295 # break other packages using the cache if that directory is 2296 # removed, or if the value is a relative name. 2297 INSTALL=$ac_install_sh 2298 fi 2299fi 2300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2301$as_echo "$INSTALL" >&6; } 2302 2303# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2304# It thinks the first close brace ends the variable substitution. 2305test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2306 2307test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2308 2309test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2310 2311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2312$as_echo_n "checking whether build environment is sane... " >&6; } 2313# Just in case 2314sleep 1 2315echo timestamp > conftest.file 2316# Reject unsafe characters in $srcdir or the absolute working directory 2317# name. Accept space and tab only in the latter. 2318am_lf=' 2319' 2320case `pwd` in 2321 *[\\\"\#\$\&\'\`$am_lf]*) 2322 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2323esac 2324case $srcdir in 2325 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2326 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2327esac 2328 2329# Do `set' in a subshell so we don't clobber the current shell's 2330# arguments. Must try -L first in case configure is actually a 2331# symlink; some systems play weird games with the mod time of symlinks 2332# (eg FreeBSD returns the mod time of the symlink's containing 2333# directory). 2334if ( 2335 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2336 if test "$*" = "X"; then 2337 # -L didn't work. 2338 set X `ls -t "$srcdir/configure" conftest.file` 2339 fi 2340 rm -f conftest.file 2341 if test "$*" != "X $srcdir/configure conftest.file" \ 2342 && test "$*" != "X conftest.file $srcdir/configure"; then 2343 2344 # If neither matched, then we have a broken ls. This can happen 2345 # if, for instance, CONFIG_SHELL is bash and it inherits a 2346 # broken ls alias from the environment. This has actually 2347 # happened. Such a system could not be considered "sane". 2348 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2349alias in your environment" "$LINENO" 5 2350 fi 2351 2352 test "$2" = conftest.file 2353 ) 2354then 2355 # Ok. 2356 : 2357else 2358 as_fn_error $? "newly created file is older than distributed files! 2359Check your system clock" "$LINENO" 5 2360fi 2361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2362$as_echo "yes" >&6; } 2363test "$program_prefix" != NONE && 2364 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2365# Use a double $ so make ignores it. 2366test "$program_suffix" != NONE && 2367 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2368# Double any \ or $. 2369# By default was `s,x,x', remove it if useless. 2370ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2371program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2372 2373# expand $ac_aux_dir to an absolute path 2374am_aux_dir=`cd $ac_aux_dir && pwd` 2375 2376if test x"${MISSING+set}" != xset; then 2377 case $am_aux_dir in 2378 *\ * | *\ *) 2379 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2380 *) 2381 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2382 esac 2383fi 2384# Use eval to expand $SHELL 2385if eval "$MISSING --run true"; then 2386 am_missing_run="$MISSING --run " 2387else 2388 am_missing_run= 2389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2390$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2391fi 2392 2393if test x"${install_sh}" != xset; then 2394 case $am_aux_dir in 2395 *\ * | *\ *) 2396 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2397 *) 2398 install_sh="\${SHELL} $am_aux_dir/install-sh" 2399 esac 2400fi 2401 2402# Installed binaries are usually stripped using `strip' when the user 2403# run `make install-strip'. However `strip' might not be the right 2404# tool to use in cross-compilation environments, therefore Automake 2405# will honor the `STRIP' environment variable to overrule this program. 2406if test "$cross_compiling" != no; then 2407 if test -n "$ac_tool_prefix"; then 2408 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2409set dummy ${ac_tool_prefix}strip; ac_word=$2 2410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2411$as_echo_n "checking for $ac_word... " >&6; } 2412if ${ac_cv_prog_STRIP+:} false; then : 2413 $as_echo_n "(cached) " >&6 2414else 2415 if test -n "$STRIP"; then 2416 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2417else 2418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2419for as_dir in $PATH 2420do 2421 IFS=$as_save_IFS 2422 test -z "$as_dir" && as_dir=. 2423 for ac_exec_ext in '' $ac_executable_extensions; do 2424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2425 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2427 break 2 2428 fi 2429done 2430 done 2431IFS=$as_save_IFS 2432 2433fi 2434fi 2435STRIP=$ac_cv_prog_STRIP 2436if test -n "$STRIP"; then 2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2438$as_echo "$STRIP" >&6; } 2439else 2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2441$as_echo "no" >&6; } 2442fi 2443 2444 2445fi 2446if test -z "$ac_cv_prog_STRIP"; then 2447 ac_ct_STRIP=$STRIP 2448 # Extract the first word of "strip", so it can be a program name with args. 2449set dummy strip; ac_word=$2 2450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2451$as_echo_n "checking for $ac_word... " >&6; } 2452if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2453 $as_echo_n "(cached) " >&6 2454else 2455 if test -n "$ac_ct_STRIP"; then 2456 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2457else 2458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2459for as_dir in $PATH 2460do 2461 IFS=$as_save_IFS 2462 test -z "$as_dir" && as_dir=. 2463 for ac_exec_ext in '' $ac_executable_extensions; do 2464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2465 ac_cv_prog_ac_ct_STRIP="strip" 2466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2467 break 2 2468 fi 2469done 2470 done 2471IFS=$as_save_IFS 2472 2473fi 2474fi 2475ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2476if test -n "$ac_ct_STRIP"; then 2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2478$as_echo "$ac_ct_STRIP" >&6; } 2479else 2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2481$as_echo "no" >&6; } 2482fi 2483 2484 if test "x$ac_ct_STRIP" = x; then 2485 STRIP=":" 2486 else 2487 case $cross_compiling:$ac_tool_warned in 2488yes:) 2489{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2490$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2491ac_tool_warned=yes ;; 2492esac 2493 STRIP=$ac_ct_STRIP 2494 fi 2495else 2496 STRIP="$ac_cv_prog_STRIP" 2497fi 2498 2499fi 2500INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2501 2502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2503$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2504if test -z "$MKDIR_P"; then 2505 if ${ac_cv_path_mkdir+:} false; then : 2506 $as_echo_n "(cached) " >&6 2507else 2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2509for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2510do 2511 IFS=$as_save_IFS 2512 test -z "$as_dir" && as_dir=. 2513 for ac_prog in mkdir gmkdir; do 2514 for ac_exec_ext in '' $ac_executable_extensions; do 2515 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2516 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2517 'mkdir (GNU coreutils) '* | \ 2518 'mkdir (coreutils) '* | \ 2519 'mkdir (fileutils) '4.1*) 2520 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2521 break 3;; 2522 esac 2523 done 2524 done 2525 done 2526IFS=$as_save_IFS 2527 2528fi 2529 2530 test -d ./--version && rmdir ./--version 2531 if test "${ac_cv_path_mkdir+set}" = set; then 2532 MKDIR_P="$ac_cv_path_mkdir -p" 2533 else 2534 # As a last resort, use the slow shell script. Don't cache a 2535 # value for MKDIR_P within a source directory, because that will 2536 # break other packages using the cache if that directory is 2537 # removed, or if the value is a relative name. 2538 MKDIR_P="$ac_install_sh -d" 2539 fi 2540fi 2541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2542$as_echo "$MKDIR_P" >&6; } 2543 2544mkdir_p="$MKDIR_P" 2545case $mkdir_p in 2546 [\\/$]* | ?:[\\/]*) ;; 2547 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2548esac 2549 2550for ac_prog in gawk mawk nawk awk 2551do 2552 # Extract the first word of "$ac_prog", so it can be a program name with args. 2553set dummy $ac_prog; ac_word=$2 2554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2555$as_echo_n "checking for $ac_word... " >&6; } 2556if ${ac_cv_prog_AWK+:} false; then : 2557 $as_echo_n "(cached) " >&6 2558else 2559 if test -n "$AWK"; then 2560 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2561else 2562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2563for as_dir in $PATH 2564do 2565 IFS=$as_save_IFS 2566 test -z "$as_dir" && as_dir=. 2567 for ac_exec_ext in '' $ac_executable_extensions; do 2568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2569 ac_cv_prog_AWK="$ac_prog" 2570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2571 break 2 2572 fi 2573done 2574 done 2575IFS=$as_save_IFS 2576 2577fi 2578fi 2579AWK=$ac_cv_prog_AWK 2580if test -n "$AWK"; then 2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2582$as_echo "$AWK" >&6; } 2583else 2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2585$as_echo "no" >&6; } 2586fi 2587 2588 2589 test -n "$AWK" && break 2590done 2591 2592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2593$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2594set x ${MAKE-make} 2595ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2596if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2597 $as_echo_n "(cached) " >&6 2598else 2599 cat >conftest.make <<\_ACEOF 2600SHELL = /bin/sh 2601all: 2602 @echo '@@@%%%=$(MAKE)=@@@%%%' 2603_ACEOF 2604# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2605case `${MAKE-make} -f conftest.make 2>/dev/null` in 2606 *@@@%%%=?*=@@@%%%*) 2607 eval ac_cv_prog_make_${ac_make}_set=yes;; 2608 *) 2609 eval ac_cv_prog_make_${ac_make}_set=no;; 2610esac 2611rm -f conftest.make 2612fi 2613if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2615$as_echo "yes" >&6; } 2616 SET_MAKE= 2617else 2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2619$as_echo "no" >&6; } 2620 SET_MAKE="MAKE=${MAKE-make}" 2621fi 2622 2623rm -rf .tst 2>/dev/null 2624mkdir .tst 2>/dev/null 2625if test -d .tst; then 2626 am__leading_dot=. 2627else 2628 am__leading_dot=_ 2629fi 2630rmdir .tst 2>/dev/null 2631 2632if test "`cd $srcdir && pwd`" != "`pwd`"; then 2633 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2634 # is not polluted with repeated "-I." 2635 am__isrc=' -I$(srcdir)' 2636 # test to see if srcdir already configured 2637 if test -f $srcdir/config.status; then 2638 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2639 fi 2640fi 2641 2642# test whether we have cygpath 2643if test -z "$CYGPATH_W"; then 2644 if (cygpath --version) >/dev/null 2>/dev/null; then 2645 CYGPATH_W='cygpath -w' 2646 else 2647 CYGPATH_W=echo 2648 fi 2649fi 2650 2651 2652# Define the identity of the package. 2653 PACKAGE='libxkbfile' 2654 VERSION='1.0.8' 2655 2656 2657cat >>confdefs.h <<_ACEOF 2658#define PACKAGE "$PACKAGE" 2659_ACEOF 2660 2661 2662cat >>confdefs.h <<_ACEOF 2663#define VERSION "$VERSION" 2664_ACEOF 2665 2666# Some tools Automake needs. 2667 2668ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2669 2670 2671AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2672 2673 2674AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2675 2676 2677AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2678 2679 2680MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2681 2682# We need awk for the "check" target. The system "awk" is bad on 2683# some platforms. 2684# Always define AMTAR for backward compatibility. 2685 2686AMTAR=${AMTAR-"${am_missing_run}tar"} 2687 2688am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2689 2690 2691 2692 2693 2694 2695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2696$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2697 # Check whether --enable-maintainer-mode was given. 2698if test "${enable_maintainer_mode+set}" = set; then : 2699 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2700else 2701 USE_MAINTAINER_MODE=no 2702fi 2703 2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2705$as_echo "$USE_MAINTAINER_MODE" >&6; } 2706 if test $USE_MAINTAINER_MODE = yes; then 2707 MAINTAINER_MODE_TRUE= 2708 MAINTAINER_MODE_FALSE='#' 2709else 2710 MAINTAINER_MODE_TRUE='#' 2711 MAINTAINER_MODE_FALSE= 2712fi 2713 2714 MAINT=$MAINTAINER_MODE_TRUE 2715 2716 2717 2718# Initialize libtool 2719case `pwd` in 2720 *\ * | *\ *) 2721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2722$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2723esac 2724 2725 2726 2727macro_version='2.4' 2728macro_revision='1.3293' 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742ltmain="$ac_aux_dir/ltmain.sh" 2743 2744# Make sure we can run config.sub. 2745$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2746 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2747 2748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2749$as_echo_n "checking build system type... " >&6; } 2750if ${ac_cv_build+:} false; then : 2751 $as_echo_n "(cached) " >&6 2752else 2753 ac_build_alias=$build_alias 2754test "x$ac_build_alias" = x && 2755 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2756test "x$ac_build_alias" = x && 2757 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2758ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2759 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2760 2761fi 2762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2763$as_echo "$ac_cv_build" >&6; } 2764case $ac_cv_build in 2765*-*-*) ;; 2766*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2767esac 2768build=$ac_cv_build 2769ac_save_IFS=$IFS; IFS='-' 2770set x $ac_cv_build 2771shift 2772build_cpu=$1 2773build_vendor=$2 2774shift; shift 2775# Remember, the first character of IFS is used to create $*, 2776# except with old shells: 2777build_os=$* 2778IFS=$ac_save_IFS 2779case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2780 2781 2782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2783$as_echo_n "checking host system type... " >&6; } 2784if ${ac_cv_host+:} false; then : 2785 $as_echo_n "(cached) " >&6 2786else 2787 if test "x$host_alias" = x; then 2788 ac_cv_host=$ac_cv_build 2789else 2790 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2791 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2792fi 2793 2794fi 2795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2796$as_echo "$ac_cv_host" >&6; } 2797case $ac_cv_host in 2798*-*-*) ;; 2799*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2800esac 2801host=$ac_cv_host 2802ac_save_IFS=$IFS; IFS='-' 2803set x $ac_cv_host 2804shift 2805host_cpu=$1 2806host_vendor=$2 2807shift; shift 2808# Remember, the first character of IFS is used to create $*, 2809# except with old shells: 2810host_os=$* 2811IFS=$ac_save_IFS 2812case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2813 2814 2815# Backslashify metacharacters that are still active within 2816# double-quoted strings. 2817sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2818 2819# Same as above, but do not quote variable references. 2820double_quote_subst='s/\(["`\\]\)/\\\1/g' 2821 2822# Sed substitution to delay expansion of an escaped shell variable in a 2823# double_quote_subst'ed string. 2824delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2825 2826# Sed substitution to delay expansion of an escaped single quote. 2827delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2828 2829# Sed substitution to avoid accidental globbing in evaled expressions 2830no_glob_subst='s/\*/\\\*/g' 2831 2832ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2833ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2834ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2835 2836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 2837$as_echo_n "checking how to print strings... " >&6; } 2838# Test print first, because it will be a builtin if present. 2839if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 2840 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 2841 ECHO='print -r --' 2842elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 2843 ECHO='printf %s\n' 2844else 2845 # Use this function as a fallback that always works. 2846 func_fallback_echo () 2847 { 2848 eval 'cat <<_LTECHO_EOF 2849$1 2850_LTECHO_EOF' 2851 } 2852 ECHO='func_fallback_echo' 2853fi 2854 2855# func_echo_all arg... 2856# Invoke $ECHO with all args, space-separated. 2857func_echo_all () 2858{ 2859 $ECHO "" 2860} 2861 2862case "$ECHO" in 2863 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 2864$as_echo "printf" >&6; } ;; 2865 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 2866$as_echo "print -r" >&6; } ;; 2867 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 2868$as_echo "cat" >&6; } ;; 2869esac 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884DEPDIR="${am__leading_dot}deps" 2885 2886ac_config_commands="$ac_config_commands depfiles" 2887 2888 2889am_make=${MAKE-make} 2890cat > confinc << 'END' 2891am__doit: 2892 @echo this is the am__doit target 2893.PHONY: am__doit 2894END 2895# If we don't find an include directive, just comment out the code. 2896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2897$as_echo_n "checking for style of include used by $am_make... " >&6; } 2898am__include="#" 2899am__quote= 2900_am_result=none 2901# First try GNU make style include. 2902echo "include confinc" > confmf 2903# Ignore all kinds of additional output from `make'. 2904case `$am_make -s -f confmf 2> /dev/null` in #( 2905*the\ am__doit\ target*) 2906 am__include=include 2907 am__quote= 2908 _am_result=GNU 2909 ;; 2910esac 2911# Now try BSD make style include. 2912if test "$am__include" = "#"; then 2913 echo '.include "confinc"' > confmf 2914 case `$am_make -s -f confmf 2> /dev/null` in #( 2915 *the\ am__doit\ target*) 2916 am__include=.include 2917 am__quote="\"" 2918 _am_result=BSD 2919 ;; 2920 esac 2921fi 2922 2923 2924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2925$as_echo "$_am_result" >&6; } 2926rm -f confinc confmf 2927 2928# Check whether --enable-dependency-tracking was given. 2929if test "${enable_dependency_tracking+set}" = set; then : 2930 enableval=$enable_dependency_tracking; 2931fi 2932 2933if test "x$enable_dependency_tracking" != xno; then 2934 am_depcomp="$ac_aux_dir/depcomp" 2935 AMDEPBACKSLASH='\' 2936fi 2937 if test "x$enable_dependency_tracking" != xno; then 2938 AMDEP_TRUE= 2939 AMDEP_FALSE='#' 2940else 2941 AMDEP_TRUE='#' 2942 AMDEP_FALSE= 2943fi 2944 2945 2946ac_ext=c 2947ac_cpp='$CPP $CPPFLAGS' 2948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2950ac_compiler_gnu=$ac_cv_c_compiler_gnu 2951if test -n "$ac_tool_prefix"; then 2952 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2953set dummy ${ac_tool_prefix}gcc; ac_word=$2 2954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2955$as_echo_n "checking for $ac_word... " >&6; } 2956if ${ac_cv_prog_CC+:} false; then : 2957 $as_echo_n "(cached) " >&6 2958else 2959 if test -n "$CC"; then 2960 ac_cv_prog_CC="$CC" # Let the user override the test. 2961else 2962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2963for as_dir in $PATH 2964do 2965 IFS=$as_save_IFS 2966 test -z "$as_dir" && as_dir=. 2967 for ac_exec_ext in '' $ac_executable_extensions; do 2968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2969 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2971 break 2 2972 fi 2973done 2974 done 2975IFS=$as_save_IFS 2976 2977fi 2978fi 2979CC=$ac_cv_prog_CC 2980if test -n "$CC"; then 2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2982$as_echo "$CC" >&6; } 2983else 2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2985$as_echo "no" >&6; } 2986fi 2987 2988 2989fi 2990if test -z "$ac_cv_prog_CC"; then 2991 ac_ct_CC=$CC 2992 # Extract the first word of "gcc", so it can be a program name with args. 2993set dummy gcc; ac_word=$2 2994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2995$as_echo_n "checking for $ac_word... " >&6; } 2996if ${ac_cv_prog_ac_ct_CC+:} false; then : 2997 $as_echo_n "(cached) " >&6 2998else 2999 if test -n "$ac_ct_CC"; then 3000 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3001else 3002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3003for as_dir in $PATH 3004do 3005 IFS=$as_save_IFS 3006 test -z "$as_dir" && as_dir=. 3007 for ac_exec_ext in '' $ac_executable_extensions; do 3008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3009 ac_cv_prog_ac_ct_CC="gcc" 3010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3011 break 2 3012 fi 3013done 3014 done 3015IFS=$as_save_IFS 3016 3017fi 3018fi 3019ac_ct_CC=$ac_cv_prog_ac_ct_CC 3020if test -n "$ac_ct_CC"; then 3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3022$as_echo "$ac_ct_CC" >&6; } 3023else 3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3025$as_echo "no" >&6; } 3026fi 3027 3028 if test "x$ac_ct_CC" = x; then 3029 CC="" 3030 else 3031 case $cross_compiling:$ac_tool_warned in 3032yes:) 3033{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3034$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3035ac_tool_warned=yes ;; 3036esac 3037 CC=$ac_ct_CC 3038 fi 3039else 3040 CC="$ac_cv_prog_CC" 3041fi 3042 3043if test -z "$CC"; then 3044 if test -n "$ac_tool_prefix"; then 3045 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3046set dummy ${ac_tool_prefix}cc; ac_word=$2 3047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3048$as_echo_n "checking for $ac_word... " >&6; } 3049if ${ac_cv_prog_CC+:} false; then : 3050 $as_echo_n "(cached) " >&6 3051else 3052 if test -n "$CC"; then 3053 ac_cv_prog_CC="$CC" # Let the user override the test. 3054else 3055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3056for as_dir in $PATH 3057do 3058 IFS=$as_save_IFS 3059 test -z "$as_dir" && as_dir=. 3060 for ac_exec_ext in '' $ac_executable_extensions; do 3061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3062 ac_cv_prog_CC="${ac_tool_prefix}cc" 3063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3064 break 2 3065 fi 3066done 3067 done 3068IFS=$as_save_IFS 3069 3070fi 3071fi 3072CC=$ac_cv_prog_CC 3073if test -n "$CC"; then 3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3075$as_echo "$CC" >&6; } 3076else 3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3078$as_echo "no" >&6; } 3079fi 3080 3081 3082 fi 3083fi 3084if test -z "$CC"; then 3085 # Extract the first word of "cc", so it can be a program name with args. 3086set dummy cc; ac_word=$2 3087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3088$as_echo_n "checking for $ac_word... " >&6; } 3089if ${ac_cv_prog_CC+:} false; then : 3090 $as_echo_n "(cached) " >&6 3091else 3092 if test -n "$CC"; then 3093 ac_cv_prog_CC="$CC" # Let the user override the test. 3094else 3095 ac_prog_rejected=no 3096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3097for as_dir in $PATH 3098do 3099 IFS=$as_save_IFS 3100 test -z "$as_dir" && as_dir=. 3101 for ac_exec_ext in '' $ac_executable_extensions; do 3102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3103 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3104 ac_prog_rejected=yes 3105 continue 3106 fi 3107 ac_cv_prog_CC="cc" 3108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3109 break 2 3110 fi 3111done 3112 done 3113IFS=$as_save_IFS 3114 3115if test $ac_prog_rejected = yes; then 3116 # We found a bogon in the path, so make sure we never use it. 3117 set dummy $ac_cv_prog_CC 3118 shift 3119 if test $# != 0; then 3120 # We chose a different compiler from the bogus one. 3121 # However, it has the same basename, so the bogon will be chosen 3122 # first if we set CC to just the basename; use the full file name. 3123 shift 3124 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3125 fi 3126fi 3127fi 3128fi 3129CC=$ac_cv_prog_CC 3130if test -n "$CC"; then 3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3132$as_echo "$CC" >&6; } 3133else 3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3135$as_echo "no" >&6; } 3136fi 3137 3138 3139fi 3140if test -z "$CC"; then 3141 if test -n "$ac_tool_prefix"; then 3142 for ac_prog in cl.exe 3143 do 3144 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3145set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3147$as_echo_n "checking for $ac_word... " >&6; } 3148if ${ac_cv_prog_CC+:} false; then : 3149 $as_echo_n "(cached) " >&6 3150else 3151 if test -n "$CC"; then 3152 ac_cv_prog_CC="$CC" # Let the user override the test. 3153else 3154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3155for as_dir in $PATH 3156do 3157 IFS=$as_save_IFS 3158 test -z "$as_dir" && as_dir=. 3159 for ac_exec_ext in '' $ac_executable_extensions; do 3160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3161 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3163 break 2 3164 fi 3165done 3166 done 3167IFS=$as_save_IFS 3168 3169fi 3170fi 3171CC=$ac_cv_prog_CC 3172if test -n "$CC"; then 3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3174$as_echo "$CC" >&6; } 3175else 3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3177$as_echo "no" >&6; } 3178fi 3179 3180 3181 test -n "$CC" && break 3182 done 3183fi 3184if test -z "$CC"; then 3185 ac_ct_CC=$CC 3186 for ac_prog in cl.exe 3187do 3188 # Extract the first word of "$ac_prog", so it can be a program name with args. 3189set dummy $ac_prog; ac_word=$2 3190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3191$as_echo_n "checking for $ac_word... " >&6; } 3192if ${ac_cv_prog_ac_ct_CC+:} false; then : 3193 $as_echo_n "(cached) " >&6 3194else 3195 if test -n "$ac_ct_CC"; then 3196 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3197else 3198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3199for as_dir in $PATH 3200do 3201 IFS=$as_save_IFS 3202 test -z "$as_dir" && as_dir=. 3203 for ac_exec_ext in '' $ac_executable_extensions; do 3204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3205 ac_cv_prog_ac_ct_CC="$ac_prog" 3206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3207 break 2 3208 fi 3209done 3210 done 3211IFS=$as_save_IFS 3212 3213fi 3214fi 3215ac_ct_CC=$ac_cv_prog_ac_ct_CC 3216if test -n "$ac_ct_CC"; then 3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3218$as_echo "$ac_ct_CC" >&6; } 3219else 3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3221$as_echo "no" >&6; } 3222fi 3223 3224 3225 test -n "$ac_ct_CC" && break 3226done 3227 3228 if test "x$ac_ct_CC" = x; then 3229 CC="" 3230 else 3231 case $cross_compiling:$ac_tool_warned in 3232yes:) 3233{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3234$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3235ac_tool_warned=yes ;; 3236esac 3237 CC=$ac_ct_CC 3238 fi 3239fi 3240 3241fi 3242 3243 3244test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3245$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3246as_fn_error $? "no acceptable C compiler found in \$PATH 3247See \`config.log' for more details" "$LINENO" 5; } 3248 3249# Provide some information about the compiler. 3250$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3251set X $ac_compile 3252ac_compiler=$2 3253for ac_option in --version -v -V -qversion; do 3254 { { ac_try="$ac_compiler $ac_option >&5" 3255case "(($ac_try" in 3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3257 *) ac_try_echo=$ac_try;; 3258esac 3259eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3260$as_echo "$ac_try_echo"; } >&5 3261 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3262 ac_status=$? 3263 if test -s conftest.err; then 3264 sed '10a\ 3265... rest of stderr output deleted ... 3266 10q' conftest.err >conftest.er1 3267 cat conftest.er1 >&5 3268 fi 3269 rm -f conftest.er1 conftest.err 3270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3271 test $ac_status = 0; } 3272done 3273 3274cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3275/* end confdefs.h. */ 3276 3277int 3278main () 3279{ 3280 3281 ; 3282 return 0; 3283} 3284_ACEOF 3285ac_clean_files_save=$ac_clean_files 3286ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3287# Try to create an executable without -o first, disregard a.out. 3288# It will help us diagnose broken compilers, and finding out an intuition 3289# of exeext. 3290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3291$as_echo_n "checking whether the C compiler works... " >&6; } 3292ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3293 3294# The possible output files: 3295ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3296 3297ac_rmfiles= 3298for ac_file in $ac_files 3299do 3300 case $ac_file in 3301 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3302 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3303 esac 3304done 3305rm -f $ac_rmfiles 3306 3307if { { ac_try="$ac_link_default" 3308case "(($ac_try" in 3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3310 *) ac_try_echo=$ac_try;; 3311esac 3312eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3313$as_echo "$ac_try_echo"; } >&5 3314 (eval "$ac_link_default") 2>&5 3315 ac_status=$? 3316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3317 test $ac_status = 0; }; then : 3318 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3319# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3320# in a Makefile. We should not override ac_cv_exeext if it was cached, 3321# so that the user can short-circuit this test for compilers unknown to 3322# Autoconf. 3323for ac_file in $ac_files '' 3324do 3325 test -f "$ac_file" || continue 3326 case $ac_file in 3327 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3328 ;; 3329 [ab].out ) 3330 # We found the default executable, but exeext='' is most 3331 # certainly right. 3332 break;; 3333 *.* ) 3334 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3335 then :; else 3336 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3337 fi 3338 # We set ac_cv_exeext here because the later test for it is not 3339 # safe: cross compilers may not add the suffix if given an `-o' 3340 # argument, so we may need to know it at that point already. 3341 # Even if this section looks crufty: it has the advantage of 3342 # actually working. 3343 break;; 3344 * ) 3345 break;; 3346 esac 3347done 3348test "$ac_cv_exeext" = no && ac_cv_exeext= 3349 3350else 3351 ac_file='' 3352fi 3353if test -z "$ac_file"; then : 3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3355$as_echo "no" >&6; } 3356$as_echo "$as_me: failed program was:" >&5 3357sed 's/^/| /' conftest.$ac_ext >&5 3358 3359{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3360$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3361as_fn_error 77 "C compiler cannot create executables 3362See \`config.log' for more details" "$LINENO" 5; } 3363else 3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3365$as_echo "yes" >&6; } 3366fi 3367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3368$as_echo_n "checking for C compiler default output file name... " >&6; } 3369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3370$as_echo "$ac_file" >&6; } 3371ac_exeext=$ac_cv_exeext 3372 3373rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3374ac_clean_files=$ac_clean_files_save 3375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3376$as_echo_n "checking for suffix of executables... " >&6; } 3377if { { ac_try="$ac_link" 3378case "(($ac_try" in 3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3380 *) ac_try_echo=$ac_try;; 3381esac 3382eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3383$as_echo "$ac_try_echo"; } >&5 3384 (eval "$ac_link") 2>&5 3385 ac_status=$? 3386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3387 test $ac_status = 0; }; then : 3388 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3389# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3390# work properly (i.e., refer to `conftest.exe'), while it won't with 3391# `rm'. 3392for ac_file in conftest.exe conftest conftest.*; do 3393 test -f "$ac_file" || continue 3394 case $ac_file in 3395 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3396 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3397 break;; 3398 * ) break;; 3399 esac 3400done 3401else 3402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3403$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3404as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3405See \`config.log' for more details" "$LINENO" 5; } 3406fi 3407rm -f conftest conftest$ac_cv_exeext 3408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3409$as_echo "$ac_cv_exeext" >&6; } 3410 3411rm -f conftest.$ac_ext 3412EXEEXT=$ac_cv_exeext 3413ac_exeext=$EXEEXT 3414cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3415/* end confdefs.h. */ 3416#include <stdio.h> 3417int 3418main () 3419{ 3420FILE *f = fopen ("conftest.out", "w"); 3421 return ferror (f) || fclose (f) != 0; 3422 3423 ; 3424 return 0; 3425} 3426_ACEOF 3427ac_clean_files="$ac_clean_files conftest.out" 3428# Check that the compiler produces executables we can run. If not, either 3429# the compiler is broken, or we cross compile. 3430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3431$as_echo_n "checking whether we are cross compiling... " >&6; } 3432if test "$cross_compiling" != yes; then 3433 { { ac_try="$ac_link" 3434case "(($ac_try" in 3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3436 *) ac_try_echo=$ac_try;; 3437esac 3438eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3439$as_echo "$ac_try_echo"; } >&5 3440 (eval "$ac_link") 2>&5 3441 ac_status=$? 3442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3443 test $ac_status = 0; } 3444 if { ac_try='./conftest$ac_cv_exeext' 3445 { { case "(($ac_try" in 3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3447 *) ac_try_echo=$ac_try;; 3448esac 3449eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3450$as_echo "$ac_try_echo"; } >&5 3451 (eval "$ac_try") 2>&5 3452 ac_status=$? 3453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3454 test $ac_status = 0; }; }; then 3455 cross_compiling=no 3456 else 3457 if test "$cross_compiling" = maybe; then 3458 cross_compiling=yes 3459 else 3460 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3461$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3462as_fn_error $? "cannot run C compiled programs. 3463If you meant to cross compile, use \`--host'. 3464See \`config.log' for more details" "$LINENO" 5; } 3465 fi 3466 fi 3467fi 3468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3469$as_echo "$cross_compiling" >&6; } 3470 3471rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3472ac_clean_files=$ac_clean_files_save 3473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3474$as_echo_n "checking for suffix of object files... " >&6; } 3475if ${ac_cv_objext+:} false; then : 3476 $as_echo_n "(cached) " >&6 3477else 3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3479/* end confdefs.h. */ 3480 3481int 3482main () 3483{ 3484 3485 ; 3486 return 0; 3487} 3488_ACEOF 3489rm -f conftest.o conftest.obj 3490if { { ac_try="$ac_compile" 3491case "(($ac_try" in 3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3493 *) ac_try_echo=$ac_try;; 3494esac 3495eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3496$as_echo "$ac_try_echo"; } >&5 3497 (eval "$ac_compile") 2>&5 3498 ac_status=$? 3499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3500 test $ac_status = 0; }; then : 3501 for ac_file in conftest.o conftest.obj conftest.*; do 3502 test -f "$ac_file" || continue; 3503 case $ac_file in 3504 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3505 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3506 break;; 3507 esac 3508done 3509else 3510 $as_echo "$as_me: failed program was:" >&5 3511sed 's/^/| /' conftest.$ac_ext >&5 3512 3513{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3515as_fn_error $? "cannot compute suffix of object files: cannot compile 3516See \`config.log' for more details" "$LINENO" 5; } 3517fi 3518rm -f conftest.$ac_cv_objext conftest.$ac_ext 3519fi 3520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3521$as_echo "$ac_cv_objext" >&6; } 3522OBJEXT=$ac_cv_objext 3523ac_objext=$OBJEXT 3524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3525$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3526if ${ac_cv_c_compiler_gnu+:} false; then : 3527 $as_echo_n "(cached) " >&6 3528else 3529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3530/* end confdefs.h. */ 3531 3532int 3533main () 3534{ 3535#ifndef __GNUC__ 3536 choke me 3537#endif 3538 3539 ; 3540 return 0; 3541} 3542_ACEOF 3543if ac_fn_c_try_compile "$LINENO"; then : 3544 ac_compiler_gnu=yes 3545else 3546 ac_compiler_gnu=no 3547fi 3548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3549ac_cv_c_compiler_gnu=$ac_compiler_gnu 3550 3551fi 3552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3553$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3554if test $ac_compiler_gnu = yes; then 3555 GCC=yes 3556else 3557 GCC= 3558fi 3559ac_test_CFLAGS=${CFLAGS+set} 3560ac_save_CFLAGS=$CFLAGS 3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3562$as_echo_n "checking whether $CC accepts -g... " >&6; } 3563if ${ac_cv_prog_cc_g+:} false; then : 3564 $as_echo_n "(cached) " >&6 3565else 3566 ac_save_c_werror_flag=$ac_c_werror_flag 3567 ac_c_werror_flag=yes 3568 ac_cv_prog_cc_g=no 3569 CFLAGS="-g" 3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3571/* end confdefs.h. */ 3572 3573int 3574main () 3575{ 3576 3577 ; 3578 return 0; 3579} 3580_ACEOF 3581if ac_fn_c_try_compile "$LINENO"; then : 3582 ac_cv_prog_cc_g=yes 3583else 3584 CFLAGS="" 3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3586/* end confdefs.h. */ 3587 3588int 3589main () 3590{ 3591 3592 ; 3593 return 0; 3594} 3595_ACEOF 3596if ac_fn_c_try_compile "$LINENO"; then : 3597 3598else 3599 ac_c_werror_flag=$ac_save_c_werror_flag 3600 CFLAGS="-g" 3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3602/* end confdefs.h. */ 3603 3604int 3605main () 3606{ 3607 3608 ; 3609 return 0; 3610} 3611_ACEOF 3612if ac_fn_c_try_compile "$LINENO"; then : 3613 ac_cv_prog_cc_g=yes 3614fi 3615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3616fi 3617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3618fi 3619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3620 ac_c_werror_flag=$ac_save_c_werror_flag 3621fi 3622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3623$as_echo "$ac_cv_prog_cc_g" >&6; } 3624if test "$ac_test_CFLAGS" = set; then 3625 CFLAGS=$ac_save_CFLAGS 3626elif test $ac_cv_prog_cc_g = yes; then 3627 if test "$GCC" = yes; then 3628 CFLAGS="-g -O2" 3629 else 3630 CFLAGS="-g" 3631 fi 3632else 3633 if test "$GCC" = yes; then 3634 CFLAGS="-O2" 3635 else 3636 CFLAGS= 3637 fi 3638fi 3639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3640$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3641if ${ac_cv_prog_cc_c89+:} false; then : 3642 $as_echo_n "(cached) " >&6 3643else 3644 ac_cv_prog_cc_c89=no 3645ac_save_CC=$CC 3646cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3647/* end confdefs.h. */ 3648#include <stdarg.h> 3649#include <stdio.h> 3650#include <sys/types.h> 3651#include <sys/stat.h> 3652/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3653struct buf { int x; }; 3654FILE * (*rcsopen) (struct buf *, struct stat *, int); 3655static char *e (p, i) 3656 char **p; 3657 int i; 3658{ 3659 return p[i]; 3660} 3661static char *f (char * (*g) (char **, int), char **p, ...) 3662{ 3663 char *s; 3664 va_list v; 3665 va_start (v,p); 3666 s = g (p, va_arg (v,int)); 3667 va_end (v); 3668 return s; 3669} 3670 3671/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3672 function prototypes and stuff, but not '\xHH' hex character constants. 3673 These don't provoke an error unfortunately, instead are silently treated 3674 as 'x'. The following induces an error, until -std is added to get 3675 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3676 array size at least. It's necessary to write '\x00'==0 to get something 3677 that's true only with -std. */ 3678int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3679 3680/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3681 inside strings and character constants. */ 3682#define FOO(x) 'x' 3683int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3684 3685int test (int i, double x); 3686struct s1 {int (*f) (int a);}; 3687struct s2 {int (*f) (double a);}; 3688int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3689int argc; 3690char **argv; 3691int 3692main () 3693{ 3694return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3695 ; 3696 return 0; 3697} 3698_ACEOF 3699for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3700 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3701do 3702 CC="$ac_save_CC $ac_arg" 3703 if ac_fn_c_try_compile "$LINENO"; then : 3704 ac_cv_prog_cc_c89=$ac_arg 3705fi 3706rm -f core conftest.err conftest.$ac_objext 3707 test "x$ac_cv_prog_cc_c89" != "xno" && break 3708done 3709rm -f conftest.$ac_ext 3710CC=$ac_save_CC 3711 3712fi 3713# AC_CACHE_VAL 3714case "x$ac_cv_prog_cc_c89" in 3715 x) 3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3717$as_echo "none needed" >&6; } ;; 3718 xno) 3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3720$as_echo "unsupported" >&6; } ;; 3721 *) 3722 CC="$CC $ac_cv_prog_cc_c89" 3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3724$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3725esac 3726if test "x$ac_cv_prog_cc_c89" != xno; then : 3727 3728fi 3729 3730ac_ext=c 3731ac_cpp='$CPP $CPPFLAGS' 3732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3734ac_compiler_gnu=$ac_cv_c_compiler_gnu 3735 3736depcc="$CC" am_compiler_list= 3737 3738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3739$as_echo_n "checking dependency style of $depcc... " >&6; } 3740if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3741 $as_echo_n "(cached) " >&6 3742else 3743 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3744 # We make a subdir and do the tests there. Otherwise we can end up 3745 # making bogus files that we don't know about and never remove. For 3746 # instance it was reported that on HP-UX the gcc test will end up 3747 # making a dummy file named `D' -- because `-MD' means `put the output 3748 # in D'. 3749 mkdir conftest.dir 3750 # Copy depcomp to subdir because otherwise we won't find it if we're 3751 # using a relative directory. 3752 cp "$am_depcomp" conftest.dir 3753 cd conftest.dir 3754 # We will build objects and dependencies in a subdirectory because 3755 # it helps to detect inapplicable dependency modes. For instance 3756 # both Tru64's cc and ICC support -MD to output dependencies as a 3757 # side effect of compilation, but ICC will put the dependencies in 3758 # the current directory while Tru64 will put them in the object 3759 # directory. 3760 mkdir sub 3761 3762 am_cv_CC_dependencies_compiler_type=none 3763 if test "$am_compiler_list" = ""; then 3764 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3765 fi 3766 am__universal=false 3767 case " $depcc " in #( 3768 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3769 esac 3770 3771 for depmode in $am_compiler_list; do 3772 # Setup a source with many dependencies, because some compilers 3773 # like to wrap large dependency lists on column 80 (with \), and 3774 # we should not choose a depcomp mode which is confused by this. 3775 # 3776 # We need to recreate these files for each test, as the compiler may 3777 # overwrite some of them when testing with obscure command lines. 3778 # This happens at least with the AIX C compiler. 3779 : > sub/conftest.c 3780 for i in 1 2 3 4 5 6; do 3781 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3782 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3783 # Solaris 8's {/usr,}/bin/sh. 3784 touch sub/conftst$i.h 3785 done 3786 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3787 3788 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3789 # mode. It turns out that the SunPro C++ compiler does not properly 3790 # handle `-M -o', and we need to detect this. Also, some Intel 3791 # versions had trouble with output in subdirs 3792 am__obj=sub/conftest.${OBJEXT-o} 3793 am__minus_obj="-o $am__obj" 3794 case $depmode in 3795 gcc) 3796 # This depmode causes a compiler race in universal mode. 3797 test "$am__universal" = false || continue 3798 ;; 3799 nosideeffect) 3800 # after this tag, mechanisms are not by side-effect, so they'll 3801 # only be used when explicitly requested 3802 if test "x$enable_dependency_tracking" = xyes; then 3803 continue 3804 else 3805 break 3806 fi 3807 ;; 3808 msvisualcpp | msvcmsys) 3809 # This compiler won't grok `-c -o', but also, the minuso test has 3810 # not run yet. These depmodes are late enough in the game, and 3811 # so weak that their functioning should not be impacted. 3812 am__obj=conftest.${OBJEXT-o} 3813 am__minus_obj= 3814 ;; 3815 none) break ;; 3816 esac 3817 if depmode=$depmode \ 3818 source=sub/conftest.c object=$am__obj \ 3819 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3820 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3821 >/dev/null 2>conftest.err && 3822 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3823 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3824 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3825 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3826 # icc doesn't choke on unknown options, it will just issue warnings 3827 # or remarks (even with -Werror). So we grep stderr for any message 3828 # that says an option was ignored or not supported. 3829 # When given -MP, icc 7.0 and 7.1 complain thusly: 3830 # icc: Command line warning: ignoring option '-M'; no argument required 3831 # The diagnosis changed in icc 8.0: 3832 # icc: Command line remark: option '-MP' not supported 3833 if (grep 'ignoring option' conftest.err || 3834 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3835 am_cv_CC_dependencies_compiler_type=$depmode 3836 break 3837 fi 3838 fi 3839 done 3840 3841 cd .. 3842 rm -rf conftest.dir 3843else 3844 am_cv_CC_dependencies_compiler_type=none 3845fi 3846 3847fi 3848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3849$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3850CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3851 3852 if 3853 test "x$enable_dependency_tracking" != xno \ 3854 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3855 am__fastdepCC_TRUE= 3856 am__fastdepCC_FALSE='#' 3857else 3858 am__fastdepCC_TRUE='#' 3859 am__fastdepCC_FALSE= 3860fi 3861 3862 3863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3864$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3865if ${ac_cv_path_SED+:} false; then : 3866 $as_echo_n "(cached) " >&6 3867else 3868 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3869 for ac_i in 1 2 3 4 5 6 7; do 3870 ac_script="$ac_script$as_nl$ac_script" 3871 done 3872 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3873 { ac_script=; unset ac_script;} 3874 if test -z "$SED"; then 3875 ac_path_SED_found=false 3876 # Loop through the user's path and test for each of PROGNAME-LIST 3877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3878for as_dir in $PATH 3879do 3880 IFS=$as_save_IFS 3881 test -z "$as_dir" && as_dir=. 3882 for ac_prog in sed gsed; do 3883 for ac_exec_ext in '' $ac_executable_extensions; do 3884 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3885 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 3886# Check for GNU ac_path_SED and select it if it is found. 3887 # Check for GNU $ac_path_SED 3888case `"$ac_path_SED" --version 2>&1` in 3889*GNU*) 3890 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3891*) 3892 ac_count=0 3893 $as_echo_n 0123456789 >"conftest.in" 3894 while : 3895 do 3896 cat "conftest.in" "conftest.in" >"conftest.tmp" 3897 mv "conftest.tmp" "conftest.in" 3898 cp "conftest.in" "conftest.nl" 3899 $as_echo '' >> "conftest.nl" 3900 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3901 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3902 as_fn_arith $ac_count + 1 && ac_count=$as_val 3903 if test $ac_count -gt ${ac_path_SED_max-0}; then 3904 # Best one so far, save it but keep looking for a better one 3905 ac_cv_path_SED="$ac_path_SED" 3906 ac_path_SED_max=$ac_count 3907 fi 3908 # 10*(2^10) chars as input seems more than enough 3909 test $ac_count -gt 10 && break 3910 done 3911 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3912esac 3913 3914 $ac_path_SED_found && break 3 3915 done 3916 done 3917 done 3918IFS=$as_save_IFS 3919 if test -z "$ac_cv_path_SED"; then 3920 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 3921 fi 3922else 3923 ac_cv_path_SED=$SED 3924fi 3925 3926fi 3927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 3928$as_echo "$ac_cv_path_SED" >&6; } 3929 SED="$ac_cv_path_SED" 3930 rm -f conftest.sed 3931 3932test -z "$SED" && SED=sed 3933Xsed="$SED -e 1s/^X//" 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3946$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3947if ${ac_cv_path_GREP+:} false; then : 3948 $as_echo_n "(cached) " >&6 3949else 3950 if test -z "$GREP"; then 3951 ac_path_GREP_found=false 3952 # Loop through the user's path and test for each of PROGNAME-LIST 3953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3954for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3955do 3956 IFS=$as_save_IFS 3957 test -z "$as_dir" && as_dir=. 3958 for ac_prog in grep ggrep; do 3959 for ac_exec_ext in '' $ac_executable_extensions; do 3960 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3961 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3962# Check for GNU ac_path_GREP and select it if it is found. 3963 # Check for GNU $ac_path_GREP 3964case `"$ac_path_GREP" --version 2>&1` in 3965*GNU*) 3966 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3967*) 3968 ac_count=0 3969 $as_echo_n 0123456789 >"conftest.in" 3970 while : 3971 do 3972 cat "conftest.in" "conftest.in" >"conftest.tmp" 3973 mv "conftest.tmp" "conftest.in" 3974 cp "conftest.in" "conftest.nl" 3975 $as_echo 'GREP' >> "conftest.nl" 3976 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3977 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3978 as_fn_arith $ac_count + 1 && ac_count=$as_val 3979 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3980 # Best one so far, save it but keep looking for a better one 3981 ac_cv_path_GREP="$ac_path_GREP" 3982 ac_path_GREP_max=$ac_count 3983 fi 3984 # 10*(2^10) chars as input seems more than enough 3985 test $ac_count -gt 10 && break 3986 done 3987 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3988esac 3989 3990 $ac_path_GREP_found && break 3 3991 done 3992 done 3993 done 3994IFS=$as_save_IFS 3995 if test -z "$ac_cv_path_GREP"; then 3996 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3997 fi 3998else 3999 ac_cv_path_GREP=$GREP 4000fi 4001 4002fi 4003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4004$as_echo "$ac_cv_path_GREP" >&6; } 4005 GREP="$ac_cv_path_GREP" 4006 4007 4008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4009$as_echo_n "checking for egrep... " >&6; } 4010if ${ac_cv_path_EGREP+:} false; then : 4011 $as_echo_n "(cached) " >&6 4012else 4013 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4014 then ac_cv_path_EGREP="$GREP -E" 4015 else 4016 if test -z "$EGREP"; then 4017 ac_path_EGREP_found=false 4018 # Loop through the user's path and test for each of PROGNAME-LIST 4019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4020for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4021do 4022 IFS=$as_save_IFS 4023 test -z "$as_dir" && as_dir=. 4024 for ac_prog in egrep; do 4025 for ac_exec_ext in '' $ac_executable_extensions; do 4026 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4027 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4028# Check for GNU ac_path_EGREP and select it if it is found. 4029 # Check for GNU $ac_path_EGREP 4030case `"$ac_path_EGREP" --version 2>&1` in 4031*GNU*) 4032 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4033*) 4034 ac_count=0 4035 $as_echo_n 0123456789 >"conftest.in" 4036 while : 4037 do 4038 cat "conftest.in" "conftest.in" >"conftest.tmp" 4039 mv "conftest.tmp" "conftest.in" 4040 cp "conftest.in" "conftest.nl" 4041 $as_echo 'EGREP' >> "conftest.nl" 4042 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4043 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4044 as_fn_arith $ac_count + 1 && ac_count=$as_val 4045 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4046 # Best one so far, save it but keep looking for a better one 4047 ac_cv_path_EGREP="$ac_path_EGREP" 4048 ac_path_EGREP_max=$ac_count 4049 fi 4050 # 10*(2^10) chars as input seems more than enough 4051 test $ac_count -gt 10 && break 4052 done 4053 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4054esac 4055 4056 $ac_path_EGREP_found && break 3 4057 done 4058 done 4059 done 4060IFS=$as_save_IFS 4061 if test -z "$ac_cv_path_EGREP"; then 4062 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4063 fi 4064else 4065 ac_cv_path_EGREP=$EGREP 4066fi 4067 4068 fi 4069fi 4070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4071$as_echo "$ac_cv_path_EGREP" >&6; } 4072 EGREP="$ac_cv_path_EGREP" 4073 4074 4075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4076$as_echo_n "checking for fgrep... " >&6; } 4077if ${ac_cv_path_FGREP+:} false; then : 4078 $as_echo_n "(cached) " >&6 4079else 4080 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4081 then ac_cv_path_FGREP="$GREP -F" 4082 else 4083 if test -z "$FGREP"; then 4084 ac_path_FGREP_found=false 4085 # Loop through the user's path and test for each of PROGNAME-LIST 4086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4087for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4088do 4089 IFS=$as_save_IFS 4090 test -z "$as_dir" && as_dir=. 4091 for ac_prog in fgrep; do 4092 for ac_exec_ext in '' $ac_executable_extensions; do 4093 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4094 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4095# Check for GNU ac_path_FGREP and select it if it is found. 4096 # Check for GNU $ac_path_FGREP 4097case `"$ac_path_FGREP" --version 2>&1` in 4098*GNU*) 4099 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4100*) 4101 ac_count=0 4102 $as_echo_n 0123456789 >"conftest.in" 4103 while : 4104 do 4105 cat "conftest.in" "conftest.in" >"conftest.tmp" 4106 mv "conftest.tmp" "conftest.in" 4107 cp "conftest.in" "conftest.nl" 4108 $as_echo 'FGREP' >> "conftest.nl" 4109 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4110 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4111 as_fn_arith $ac_count + 1 && ac_count=$as_val 4112 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4113 # Best one so far, save it but keep looking for a better one 4114 ac_cv_path_FGREP="$ac_path_FGREP" 4115 ac_path_FGREP_max=$ac_count 4116 fi 4117 # 10*(2^10) chars as input seems more than enough 4118 test $ac_count -gt 10 && break 4119 done 4120 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4121esac 4122 4123 $ac_path_FGREP_found && break 3 4124 done 4125 done 4126 done 4127IFS=$as_save_IFS 4128 if test -z "$ac_cv_path_FGREP"; then 4129 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4130 fi 4131else 4132 ac_cv_path_FGREP=$FGREP 4133fi 4134 4135 fi 4136fi 4137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4138$as_echo "$ac_cv_path_FGREP" >&6; } 4139 FGREP="$ac_cv_path_FGREP" 4140 4141 4142test -z "$GREP" && GREP=grep 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162# Check whether --with-gnu-ld was given. 4163if test "${with_gnu_ld+set}" = set; then : 4164 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4165else 4166 with_gnu_ld=no 4167fi 4168 4169ac_prog=ld 4170if test "$GCC" = yes; then 4171 # Check if gcc -print-prog-name=ld gives a path. 4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4173$as_echo_n "checking for ld used by $CC... " >&6; } 4174 case $host in 4175 *-*-mingw*) 4176 # gcc leaves a trailing carriage return which upsets mingw 4177 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4178 *) 4179 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4180 esac 4181 case $ac_prog in 4182 # Accept absolute paths. 4183 [\\/]* | ?:[\\/]*) 4184 re_direlt='/[^/][^/]*/\.\./' 4185 # Canonicalize the pathname of ld 4186 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4187 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4188 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4189 done 4190 test -z "$LD" && LD="$ac_prog" 4191 ;; 4192 "") 4193 # If it fails, then pretend we aren't using GCC. 4194 ac_prog=ld 4195 ;; 4196 *) 4197 # If it is relative, then search for the first ld in PATH. 4198 with_gnu_ld=unknown 4199 ;; 4200 esac 4201elif test "$with_gnu_ld" = yes; then 4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4203$as_echo_n "checking for GNU ld... " >&6; } 4204else 4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4206$as_echo_n "checking for non-GNU ld... " >&6; } 4207fi 4208if ${lt_cv_path_LD+:} false; then : 4209 $as_echo_n "(cached) " >&6 4210else 4211 if test -z "$LD"; then 4212 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4213 for ac_dir in $PATH; do 4214 IFS="$lt_save_ifs" 4215 test -z "$ac_dir" && ac_dir=. 4216 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4217 lt_cv_path_LD="$ac_dir/$ac_prog" 4218 # Check to see if the program is GNU ld. I'd rather use --version, 4219 # but apparently some variants of GNU ld only accept -v. 4220 # Break only if it was the GNU/non-GNU ld that we prefer. 4221 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4222 *GNU* | *'with BFD'*) 4223 test "$with_gnu_ld" != no && break 4224 ;; 4225 *) 4226 test "$with_gnu_ld" != yes && break 4227 ;; 4228 esac 4229 fi 4230 done 4231 IFS="$lt_save_ifs" 4232else 4233 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4234fi 4235fi 4236 4237LD="$lt_cv_path_LD" 4238if test -n "$LD"; then 4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4240$as_echo "$LD" >&6; } 4241else 4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4243$as_echo "no" >&6; } 4244fi 4245test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4247$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4248if ${lt_cv_prog_gnu_ld+:} false; then : 4249 $as_echo_n "(cached) " >&6 4250else 4251 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4252case `$LD -v 2>&1 </dev/null` in 4253*GNU* | *'with BFD'*) 4254 lt_cv_prog_gnu_ld=yes 4255 ;; 4256*) 4257 lt_cv_prog_gnu_ld=no 4258 ;; 4259esac 4260fi 4261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4262$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4263with_gnu_ld=$lt_cv_prog_gnu_ld 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4274$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4275if ${lt_cv_path_NM+:} false; then : 4276 $as_echo_n "(cached) " >&6 4277else 4278 if test -n "$NM"; then 4279 # Let the user override the test. 4280 lt_cv_path_NM="$NM" 4281else 4282 lt_nm_to_check="${ac_tool_prefix}nm" 4283 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4284 lt_nm_to_check="$lt_nm_to_check nm" 4285 fi 4286 for lt_tmp_nm in $lt_nm_to_check; do 4287 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4288 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4289 IFS="$lt_save_ifs" 4290 test -z "$ac_dir" && ac_dir=. 4291 tmp_nm="$ac_dir/$lt_tmp_nm" 4292 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4293 # Check to see if the nm accepts a BSD-compat flag. 4294 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4295 # nm: unknown option "B" ignored 4296 # Tru64's nm complains that /dev/null is an invalid object file 4297 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4298 */dev/null* | *'Invalid file or object type'*) 4299 lt_cv_path_NM="$tmp_nm -B" 4300 break 4301 ;; 4302 *) 4303 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4304 */dev/null*) 4305 lt_cv_path_NM="$tmp_nm -p" 4306 break 4307 ;; 4308 *) 4309 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4310 continue # so that we can try to find one that supports BSD flags 4311 ;; 4312 esac 4313 ;; 4314 esac 4315 fi 4316 done 4317 IFS="$lt_save_ifs" 4318 done 4319 : ${lt_cv_path_NM=no} 4320fi 4321fi 4322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4323$as_echo "$lt_cv_path_NM" >&6; } 4324if test "$lt_cv_path_NM" != "no"; then 4325 NM="$lt_cv_path_NM" 4326else 4327 # Didn't find any BSD compatible name lister, look for dumpbin. 4328 if test -n "$DUMPBIN"; then : 4329 # Let the user override the test. 4330 else 4331 if test -n "$ac_tool_prefix"; then 4332 for ac_prog in dumpbin "link -dump" 4333 do 4334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4335set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4337$as_echo_n "checking for $ac_word... " >&6; } 4338if ${ac_cv_prog_DUMPBIN+:} false; then : 4339 $as_echo_n "(cached) " >&6 4340else 4341 if test -n "$DUMPBIN"; then 4342 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4343else 4344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4345for as_dir in $PATH 4346do 4347 IFS=$as_save_IFS 4348 test -z "$as_dir" && as_dir=. 4349 for ac_exec_ext in '' $ac_executable_extensions; do 4350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4351 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4353 break 2 4354 fi 4355done 4356 done 4357IFS=$as_save_IFS 4358 4359fi 4360fi 4361DUMPBIN=$ac_cv_prog_DUMPBIN 4362if test -n "$DUMPBIN"; then 4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4364$as_echo "$DUMPBIN" >&6; } 4365else 4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4367$as_echo "no" >&6; } 4368fi 4369 4370 4371 test -n "$DUMPBIN" && break 4372 done 4373fi 4374if test -z "$DUMPBIN"; then 4375 ac_ct_DUMPBIN=$DUMPBIN 4376 for ac_prog in dumpbin "link -dump" 4377do 4378 # Extract the first word of "$ac_prog", so it can be a program name with args. 4379set dummy $ac_prog; ac_word=$2 4380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4381$as_echo_n "checking for $ac_word... " >&6; } 4382if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4383 $as_echo_n "(cached) " >&6 4384else 4385 if test -n "$ac_ct_DUMPBIN"; then 4386 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4387else 4388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4389for as_dir in $PATH 4390do 4391 IFS=$as_save_IFS 4392 test -z "$as_dir" && as_dir=. 4393 for ac_exec_ext in '' $ac_executable_extensions; do 4394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4395 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4397 break 2 4398 fi 4399done 4400 done 4401IFS=$as_save_IFS 4402 4403fi 4404fi 4405ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4406if test -n "$ac_ct_DUMPBIN"; then 4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4408$as_echo "$ac_ct_DUMPBIN" >&6; } 4409else 4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4411$as_echo "no" >&6; } 4412fi 4413 4414 4415 test -n "$ac_ct_DUMPBIN" && break 4416done 4417 4418 if test "x$ac_ct_DUMPBIN" = x; then 4419 DUMPBIN=":" 4420 else 4421 case $cross_compiling:$ac_tool_warned in 4422yes:) 4423{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4425ac_tool_warned=yes ;; 4426esac 4427 DUMPBIN=$ac_ct_DUMPBIN 4428 fi 4429fi 4430 4431 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4432 *COFF*) 4433 DUMPBIN="$DUMPBIN -symbols" 4434 ;; 4435 *) 4436 DUMPBIN=: 4437 ;; 4438 esac 4439 fi 4440 4441 if test "$DUMPBIN" != ":"; then 4442 NM="$DUMPBIN" 4443 fi 4444fi 4445test -z "$NM" && NM=nm 4446 4447 4448 4449 4450 4451 4452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4453$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4454if ${lt_cv_nm_interface+:} false; then : 4455 $as_echo_n "(cached) " >&6 4456else 4457 lt_cv_nm_interface="BSD nm" 4458 echo "int some_variable = 0;" > conftest.$ac_ext 4459 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4460 (eval "$ac_compile" 2>conftest.err) 4461 cat conftest.err >&5 4462 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4463 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4464 cat conftest.err >&5 4465 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4466 cat conftest.out >&5 4467 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4468 lt_cv_nm_interface="MS dumpbin" 4469 fi 4470 rm -f conftest* 4471fi 4472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4473$as_echo "$lt_cv_nm_interface" >&6; } 4474 4475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4476$as_echo_n "checking whether ln -s works... " >&6; } 4477LN_S=$as_ln_s 4478if test "$LN_S" = "ln -s"; then 4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4480$as_echo "yes" >&6; } 4481else 4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4483$as_echo "no, using $LN_S" >&6; } 4484fi 4485 4486# find the maximum length of command line arguments 4487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4488$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4489if ${lt_cv_sys_max_cmd_len+:} false; then : 4490 $as_echo_n "(cached) " >&6 4491else 4492 i=0 4493 teststring="ABCD" 4494 4495 case $build_os in 4496 msdosdjgpp*) 4497 # On DJGPP, this test can blow up pretty badly due to problems in libc 4498 # (any single argument exceeding 2000 bytes causes a buffer overrun 4499 # during glob expansion). Even if it were fixed, the result of this 4500 # check would be larger than it should be. 4501 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4502 ;; 4503 4504 gnu*) 4505 # Under GNU Hurd, this test is not required because there is 4506 # no limit to the length of command line arguments. 4507 # Libtool will interpret -1 as no limit whatsoever 4508 lt_cv_sys_max_cmd_len=-1; 4509 ;; 4510 4511 cygwin* | mingw* | cegcc*) 4512 # On Win9x/ME, this test blows up -- it succeeds, but takes 4513 # about 5 minutes as the teststring grows exponentially. 4514 # Worse, since 9x/ME are not pre-emptively multitasking, 4515 # you end up with a "frozen" computer, even though with patience 4516 # the test eventually succeeds (with a max line length of 256k). 4517 # Instead, let's just punt: use the minimum linelength reported by 4518 # all of the supported platforms: 8192 (on NT/2K/XP). 4519 lt_cv_sys_max_cmd_len=8192; 4520 ;; 4521 4522 mint*) 4523 # On MiNT this can take a long time and run out of memory. 4524 lt_cv_sys_max_cmd_len=8192; 4525 ;; 4526 4527 amigaos*) 4528 # On AmigaOS with pdksh, this test takes hours, literally. 4529 # So we just punt and use a minimum line length of 8192. 4530 lt_cv_sys_max_cmd_len=8192; 4531 ;; 4532 4533 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4534 # This has been around since 386BSD, at least. Likely further. 4535 if test -x /sbin/sysctl; then 4536 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4537 elif test -x /usr/sbin/sysctl; then 4538 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4539 else 4540 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4541 fi 4542 # And add a safety zone 4543 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4544 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4545 ;; 4546 4547 interix*) 4548 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4549 lt_cv_sys_max_cmd_len=196608 4550 ;; 4551 4552 osf*) 4553 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4554 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4555 # nice to cause kernel panics so lets avoid the loop below. 4556 # First set a reasonable default. 4557 lt_cv_sys_max_cmd_len=16384 4558 # 4559 if test -x /sbin/sysconfig; then 4560 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4561 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4562 esac 4563 fi 4564 ;; 4565 sco3.2v5*) 4566 lt_cv_sys_max_cmd_len=102400 4567 ;; 4568 sysv5* | sco5v6* | sysv4.2uw2*) 4569 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4570 if test -n "$kargmax"; then 4571 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4572 else 4573 lt_cv_sys_max_cmd_len=32768 4574 fi 4575 ;; 4576 *) 4577 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4578 if test -n "$lt_cv_sys_max_cmd_len"; then 4579 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4580 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4581 else 4582 # Make teststring a little bigger before we do anything with it. 4583 # a 1K string should be a reasonable start. 4584 for i in 1 2 3 4 5 6 7 8 ; do 4585 teststring=$teststring$teststring 4586 done 4587 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4588 # If test is not a shell built-in, we'll probably end up computing a 4589 # maximum length that is only half of the actual maximum length, but 4590 # we can't tell. 4591 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 4592 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4593 test $i != 17 # 1/2 MB should be enough 4594 do 4595 i=`expr $i + 1` 4596 teststring=$teststring$teststring 4597 done 4598 # Only check the string length outside the loop. 4599 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4600 teststring= 4601 # Add a significant safety factor because C++ compilers can tack on 4602 # massive amounts of additional arguments before passing them to the 4603 # linker. It appears as though 1/2 is a usable value. 4604 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4605 fi 4606 ;; 4607 esac 4608 4609fi 4610 4611if test -n $lt_cv_sys_max_cmd_len ; then 4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4613$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4614else 4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4616$as_echo "none" >&6; } 4617fi 4618max_cmd_len=$lt_cv_sys_max_cmd_len 4619 4620 4621 4622 4623 4624 4625: ${CP="cp -f"} 4626: ${MV="mv -f"} 4627: ${RM="rm -f"} 4628 4629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4630$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4631# Try some XSI features 4632xsi_shell=no 4633( _lt_dummy="a/b/c" 4634 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4635 = c,a/b,b/c, \ 4636 && eval 'test $(( 1 + 1 )) -eq 2 \ 4637 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4638 && xsi_shell=yes 4639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4640$as_echo "$xsi_shell" >&6; } 4641 4642 4643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4644$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4645lt_shell_append=no 4646( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4647 >/dev/null 2>&1 \ 4648 && lt_shell_append=yes 4649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4650$as_echo "$lt_shell_append" >&6; } 4651 4652 4653if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4654 lt_unset=unset 4655else 4656 lt_unset=false 4657fi 4658 4659 4660 4661 4662 4663# test EBCDIC or ASCII 4664case `echo X|tr X '\101'` in 4665 A) # ASCII based system 4666 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4667 lt_SP2NL='tr \040 \012' 4668 lt_NL2SP='tr \015\012 \040\040' 4669 ;; 4670 *) # EBCDIC based system 4671 lt_SP2NL='tr \100 \n' 4672 lt_NL2SP='tr \r\n \100\100' 4673 ;; 4674esac 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4685$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4686if ${lt_cv_to_host_file_cmd+:} false; then : 4687 $as_echo_n "(cached) " >&6 4688else 4689 case $host in 4690 *-*-mingw* ) 4691 case $build in 4692 *-*-mingw* ) # actually msys 4693 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4694 ;; 4695 *-*-cygwin* ) 4696 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4697 ;; 4698 * ) # otherwise, assume *nix 4699 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4700 ;; 4701 esac 4702 ;; 4703 *-*-cygwin* ) 4704 case $build in 4705 *-*-mingw* ) # actually msys 4706 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4707 ;; 4708 *-*-cygwin* ) 4709 lt_cv_to_host_file_cmd=func_convert_file_noop 4710 ;; 4711 * ) # otherwise, assume *nix 4712 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4713 ;; 4714 esac 4715 ;; 4716 * ) # unhandled hosts (and "normal" native builds) 4717 lt_cv_to_host_file_cmd=func_convert_file_noop 4718 ;; 4719esac 4720 4721fi 4722 4723to_host_file_cmd=$lt_cv_to_host_file_cmd 4724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4725$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4726 4727 4728 4729 4730 4731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4732$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4733if ${lt_cv_to_tool_file_cmd+:} false; then : 4734 $as_echo_n "(cached) " >&6 4735else 4736 #assume ordinary cross tools, or native build. 4737lt_cv_to_tool_file_cmd=func_convert_file_noop 4738case $host in 4739 *-*-mingw* ) 4740 case $build in 4741 *-*-mingw* ) # actually msys 4742 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4743 ;; 4744 esac 4745 ;; 4746esac 4747 4748fi 4749 4750to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4752$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4753 4754 4755 4756 4757 4758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4759$as_echo_n "checking for $LD option to reload object files... " >&6; } 4760if ${lt_cv_ld_reload_flag+:} false; then : 4761 $as_echo_n "(cached) " >&6 4762else 4763 lt_cv_ld_reload_flag='-r' 4764fi 4765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4766$as_echo "$lt_cv_ld_reload_flag" >&6; } 4767reload_flag=$lt_cv_ld_reload_flag 4768case $reload_flag in 4769"" | " "*) ;; 4770*) reload_flag=" $reload_flag" ;; 4771esac 4772reload_cmds='$LD$reload_flag -o $output$reload_objs' 4773case $host_os in 4774 cygwin* | mingw* | pw32* | cegcc*) 4775 if test "$GCC" != yes; then 4776 reload_cmds=false 4777 fi 4778 ;; 4779 darwin*) 4780 if test "$GCC" = yes; then 4781 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4782 else 4783 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4784 fi 4785 ;; 4786esac 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796if test -n "$ac_tool_prefix"; then 4797 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4798set dummy ${ac_tool_prefix}objdump; ac_word=$2 4799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4800$as_echo_n "checking for $ac_word... " >&6; } 4801if ${ac_cv_prog_OBJDUMP+:} false; then : 4802 $as_echo_n "(cached) " >&6 4803else 4804 if test -n "$OBJDUMP"; then 4805 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4806else 4807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4808for as_dir in $PATH 4809do 4810 IFS=$as_save_IFS 4811 test -z "$as_dir" && as_dir=. 4812 for ac_exec_ext in '' $ac_executable_extensions; do 4813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4814 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4816 break 2 4817 fi 4818done 4819 done 4820IFS=$as_save_IFS 4821 4822fi 4823fi 4824OBJDUMP=$ac_cv_prog_OBJDUMP 4825if test -n "$OBJDUMP"; then 4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4827$as_echo "$OBJDUMP" >&6; } 4828else 4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4830$as_echo "no" >&6; } 4831fi 4832 4833 4834fi 4835if test -z "$ac_cv_prog_OBJDUMP"; then 4836 ac_ct_OBJDUMP=$OBJDUMP 4837 # Extract the first word of "objdump", so it can be a program name with args. 4838set dummy objdump; ac_word=$2 4839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4840$as_echo_n "checking for $ac_word... " >&6; } 4841if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4842 $as_echo_n "(cached) " >&6 4843else 4844 if test -n "$ac_ct_OBJDUMP"; then 4845 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4846else 4847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4848for as_dir in $PATH 4849do 4850 IFS=$as_save_IFS 4851 test -z "$as_dir" && as_dir=. 4852 for ac_exec_ext in '' $ac_executable_extensions; do 4853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4854 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4856 break 2 4857 fi 4858done 4859 done 4860IFS=$as_save_IFS 4861 4862fi 4863fi 4864ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4865if test -n "$ac_ct_OBJDUMP"; then 4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4867$as_echo "$ac_ct_OBJDUMP" >&6; } 4868else 4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4870$as_echo "no" >&6; } 4871fi 4872 4873 if test "x$ac_ct_OBJDUMP" = x; then 4874 OBJDUMP="false" 4875 else 4876 case $cross_compiling:$ac_tool_warned in 4877yes:) 4878{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4879$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4880ac_tool_warned=yes ;; 4881esac 4882 OBJDUMP=$ac_ct_OBJDUMP 4883 fi 4884else 4885 OBJDUMP="$ac_cv_prog_OBJDUMP" 4886fi 4887 4888test -z "$OBJDUMP" && OBJDUMP=objdump 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 4899$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4900if ${lt_cv_deplibs_check_method+:} false; then : 4901 $as_echo_n "(cached) " >&6 4902else 4903 lt_cv_file_magic_cmd='$MAGIC_CMD' 4904lt_cv_file_magic_test_file= 4905lt_cv_deplibs_check_method='unknown' 4906# Need to set the preceding variable on all platforms that support 4907# interlibrary dependencies. 4908# 'none' -- dependencies not supported. 4909# `unknown' -- same as none, but documents that we really don't know. 4910# 'pass_all' -- all dependencies passed with no checks. 4911# 'test_compile' -- check by making test program. 4912# 'file_magic [[regex]]' -- check by looking for files in library path 4913# which responds to the $file_magic_cmd with a given extended regex. 4914# If you have `file' or equivalent on your system and you're not sure 4915# whether `pass_all' will *always* work, you probably want this one. 4916 4917case $host_os in 4918aix[4-9]*) 4919 lt_cv_deplibs_check_method=pass_all 4920 ;; 4921 4922beos*) 4923 lt_cv_deplibs_check_method=pass_all 4924 ;; 4925 4926bsdi[45]*) 4927 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4928 lt_cv_file_magic_cmd='/usr/bin/file -L' 4929 lt_cv_file_magic_test_file=/shlib/libc.so 4930 ;; 4931 4932cygwin*) 4933 # func_win32_libid is a shell function defined in ltmain.sh 4934 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4935 lt_cv_file_magic_cmd='func_win32_libid' 4936 ;; 4937 4938mingw* | pw32*) 4939 # Base MSYS/MinGW do not provide the 'file' command needed by 4940 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4941 # unless we find 'file', for example because we are cross-compiling. 4942 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 4943 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 4944 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4945 lt_cv_file_magic_cmd='func_win32_libid' 4946 else 4947 # Keep this pattern in sync with the one in func_win32_libid. 4948 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 4949 lt_cv_file_magic_cmd='$OBJDUMP -f' 4950 fi 4951 ;; 4952 4953cegcc*) 4954 # use the weaker test based on 'objdump'. See mingw*. 4955 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4956 lt_cv_file_magic_cmd='$OBJDUMP -f' 4957 ;; 4958 4959darwin* | rhapsody*) 4960 lt_cv_deplibs_check_method=pass_all 4961 ;; 4962 4963freebsd* | dragonfly*) 4964 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4965 case $host_cpu in 4966 i*86 ) 4967 # Not sure whether the presence of OpenBSD here was a mistake. 4968 # Let's accept both of them until this is cleared up. 4969 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4970 lt_cv_file_magic_cmd=/usr/bin/file 4971 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4972 ;; 4973 esac 4974 else 4975 lt_cv_deplibs_check_method=pass_all 4976 fi 4977 ;; 4978 4979gnu*) 4980 lt_cv_deplibs_check_method=pass_all 4981 ;; 4982 4983haiku*) 4984 lt_cv_deplibs_check_method=pass_all 4985 ;; 4986 4987hpux10.20* | hpux11*) 4988 lt_cv_file_magic_cmd=/usr/bin/file 4989 case $host_cpu in 4990 ia64*) 4991 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4992 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4993 ;; 4994 hppa*64*) 4995 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]' 4996 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4997 ;; 4998 *) 4999 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5000 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5001 ;; 5002 esac 5003 ;; 5004 5005interix[3-9]*) 5006 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5007 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5008 ;; 5009 5010irix5* | irix6* | nonstopux*) 5011 case $LD in 5012 *-32|*"-32 ") libmagic=32-bit;; 5013 *-n32|*"-n32 ") libmagic=N32;; 5014 *-64|*"-64 ") libmagic=64-bit;; 5015 *) libmagic=never-match;; 5016 esac 5017 lt_cv_deplibs_check_method=pass_all 5018 ;; 5019 5020# This must be Linux ELF. 5021linux* | k*bsd*-gnu | kopensolaris*-gnu) 5022 lt_cv_deplibs_check_method=pass_all 5023 ;; 5024 5025netbsd*) 5026 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5027 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5028 else 5029 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5030 fi 5031 ;; 5032 5033newos6*) 5034 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5035 lt_cv_file_magic_cmd=/usr/bin/file 5036 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5037 ;; 5038 5039*nto* | *qnx*) 5040 lt_cv_deplibs_check_method=pass_all 5041 ;; 5042 5043openbsd*) 5044 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5045 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5046 else 5047 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5048 fi 5049 ;; 5050 5051osf3* | osf4* | osf5*) 5052 lt_cv_deplibs_check_method=pass_all 5053 ;; 5054 5055rdos*) 5056 lt_cv_deplibs_check_method=pass_all 5057 ;; 5058 5059solaris*) 5060 lt_cv_deplibs_check_method=pass_all 5061 ;; 5062 5063sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5064 lt_cv_deplibs_check_method=pass_all 5065 ;; 5066 5067sysv4 | sysv4.3*) 5068 case $host_vendor in 5069 motorola) 5070 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]' 5071 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5072 ;; 5073 ncr) 5074 lt_cv_deplibs_check_method=pass_all 5075 ;; 5076 sequent) 5077 lt_cv_file_magic_cmd='/bin/file' 5078 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5079 ;; 5080 sni) 5081 lt_cv_file_magic_cmd='/bin/file' 5082 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5083 lt_cv_file_magic_test_file=/lib/libc.so 5084 ;; 5085 siemens) 5086 lt_cv_deplibs_check_method=pass_all 5087 ;; 5088 pc) 5089 lt_cv_deplibs_check_method=pass_all 5090 ;; 5091 esac 5092 ;; 5093 5094tpf*) 5095 lt_cv_deplibs_check_method=pass_all 5096 ;; 5097esac 5098 5099fi 5100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5101$as_echo "$lt_cv_deplibs_check_method" >&6; } 5102 5103file_magic_glob= 5104want_nocaseglob=no 5105if test "$build" = "$host"; then 5106 case $host_os in 5107 mingw* | pw32*) 5108 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5109 want_nocaseglob=yes 5110 else 5111 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5112 fi 5113 ;; 5114 esac 5115fi 5116 5117file_magic_cmd=$lt_cv_file_magic_cmd 5118deplibs_check_method=$lt_cv_deplibs_check_method 5119test -z "$deplibs_check_method" && deplibs_check_method=unknown 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142if test -n "$ac_tool_prefix"; then 5143 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5144set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5146$as_echo_n "checking for $ac_word... " >&6; } 5147if ${ac_cv_prog_DLLTOOL+:} false; then : 5148 $as_echo_n "(cached) " >&6 5149else 5150 if test -n "$DLLTOOL"; then 5151 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5152else 5153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5154for as_dir in $PATH 5155do 5156 IFS=$as_save_IFS 5157 test -z "$as_dir" && as_dir=. 5158 for ac_exec_ext in '' $ac_executable_extensions; do 5159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5160 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5162 break 2 5163 fi 5164done 5165 done 5166IFS=$as_save_IFS 5167 5168fi 5169fi 5170DLLTOOL=$ac_cv_prog_DLLTOOL 5171if test -n "$DLLTOOL"; then 5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5173$as_echo "$DLLTOOL" >&6; } 5174else 5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5176$as_echo "no" >&6; } 5177fi 5178 5179 5180fi 5181if test -z "$ac_cv_prog_DLLTOOL"; then 5182 ac_ct_DLLTOOL=$DLLTOOL 5183 # Extract the first word of "dlltool", so it can be a program name with args. 5184set dummy dlltool; ac_word=$2 5185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5186$as_echo_n "checking for $ac_word... " >&6; } 5187if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5188 $as_echo_n "(cached) " >&6 5189else 5190 if test -n "$ac_ct_DLLTOOL"; then 5191 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5192else 5193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5194for as_dir in $PATH 5195do 5196 IFS=$as_save_IFS 5197 test -z "$as_dir" && as_dir=. 5198 for ac_exec_ext in '' $ac_executable_extensions; do 5199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5200 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5202 break 2 5203 fi 5204done 5205 done 5206IFS=$as_save_IFS 5207 5208fi 5209fi 5210ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5211if test -n "$ac_ct_DLLTOOL"; then 5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5213$as_echo "$ac_ct_DLLTOOL" >&6; } 5214else 5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5216$as_echo "no" >&6; } 5217fi 5218 5219 if test "x$ac_ct_DLLTOOL" = x; then 5220 DLLTOOL="false" 5221 else 5222 case $cross_compiling:$ac_tool_warned in 5223yes:) 5224{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5225$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5226ac_tool_warned=yes ;; 5227esac 5228 DLLTOOL=$ac_ct_DLLTOOL 5229 fi 5230else 5231 DLLTOOL="$ac_cv_prog_DLLTOOL" 5232fi 5233 5234test -z "$DLLTOOL" && DLLTOOL=dlltool 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5246$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5247if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5248 $as_echo_n "(cached) " >&6 5249else 5250 lt_cv_sharedlib_from_linklib_cmd='unknown' 5251 5252case $host_os in 5253cygwin* | mingw* | pw32* | cegcc*) 5254 # two different shell functions defined in ltmain.sh 5255 # decide which to use based on capabilities of $DLLTOOL 5256 case `$DLLTOOL --help 2>&1` in 5257 *--identify-strict*) 5258 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5259 ;; 5260 *) 5261 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5262 ;; 5263 esac 5264 ;; 5265*) 5266 # fallback: assume linklib IS sharedlib 5267 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5268 ;; 5269esac 5270 5271fi 5272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5273$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5274sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5275test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5276 5277 5278 5279 5280 5281 5282 5283 5284if test -n "$ac_tool_prefix"; then 5285 for ac_prog in ar 5286 do 5287 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5288set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5290$as_echo_n "checking for $ac_word... " >&6; } 5291if ${ac_cv_prog_AR+:} false; then : 5292 $as_echo_n "(cached) " >&6 5293else 5294 if test -n "$AR"; then 5295 ac_cv_prog_AR="$AR" # Let the user override the test. 5296else 5297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5298for as_dir in $PATH 5299do 5300 IFS=$as_save_IFS 5301 test -z "$as_dir" && as_dir=. 5302 for ac_exec_ext in '' $ac_executable_extensions; do 5303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5304 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5306 break 2 5307 fi 5308done 5309 done 5310IFS=$as_save_IFS 5311 5312fi 5313fi 5314AR=$ac_cv_prog_AR 5315if test -n "$AR"; then 5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5317$as_echo "$AR" >&6; } 5318else 5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5320$as_echo "no" >&6; } 5321fi 5322 5323 5324 test -n "$AR" && break 5325 done 5326fi 5327if test -z "$AR"; then 5328 ac_ct_AR=$AR 5329 for ac_prog in ar 5330do 5331 # Extract the first word of "$ac_prog", so it can be a program name with args. 5332set dummy $ac_prog; ac_word=$2 5333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5334$as_echo_n "checking for $ac_word... " >&6; } 5335if ${ac_cv_prog_ac_ct_AR+:} false; then : 5336 $as_echo_n "(cached) " >&6 5337else 5338 if test -n "$ac_ct_AR"; then 5339 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5340else 5341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5342for as_dir in $PATH 5343do 5344 IFS=$as_save_IFS 5345 test -z "$as_dir" && as_dir=. 5346 for ac_exec_ext in '' $ac_executable_extensions; do 5347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5348 ac_cv_prog_ac_ct_AR="$ac_prog" 5349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5350 break 2 5351 fi 5352done 5353 done 5354IFS=$as_save_IFS 5355 5356fi 5357fi 5358ac_ct_AR=$ac_cv_prog_ac_ct_AR 5359if test -n "$ac_ct_AR"; then 5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5361$as_echo "$ac_ct_AR" >&6; } 5362else 5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5364$as_echo "no" >&6; } 5365fi 5366 5367 5368 test -n "$ac_ct_AR" && break 5369done 5370 5371 if test "x$ac_ct_AR" = x; then 5372 AR="false" 5373 else 5374 case $cross_compiling:$ac_tool_warned in 5375yes:) 5376{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5377$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5378ac_tool_warned=yes ;; 5379esac 5380 AR=$ac_ct_AR 5381 fi 5382fi 5383 5384: ${AR=ar} 5385: ${AR_FLAGS=cru} 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5398$as_echo_n "checking for archiver @FILE support... " >&6; } 5399if ${lt_cv_ar_at_file+:} false; then : 5400 $as_echo_n "(cached) " >&6 5401else 5402 lt_cv_ar_at_file=no 5403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5404/* end confdefs.h. */ 5405 5406int 5407main () 5408{ 5409 5410 ; 5411 return 0; 5412} 5413_ACEOF 5414if ac_fn_c_try_compile "$LINENO"; then : 5415 echo conftest.$ac_objext > conftest.lst 5416 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5418 (eval $lt_ar_try) 2>&5 5419 ac_status=$? 5420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5421 test $ac_status = 0; } 5422 if test "$ac_status" -eq 0; then 5423 # Ensure the archiver fails upon bogus file names. 5424 rm -f conftest.$ac_objext libconftest.a 5425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5426 (eval $lt_ar_try) 2>&5 5427 ac_status=$? 5428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5429 test $ac_status = 0; } 5430 if test "$ac_status" -ne 0; then 5431 lt_cv_ar_at_file=@ 5432 fi 5433 fi 5434 rm -f conftest.* libconftest.a 5435 5436fi 5437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5438 5439fi 5440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5441$as_echo "$lt_cv_ar_at_file" >&6; } 5442 5443if test "x$lt_cv_ar_at_file" = xno; then 5444 archiver_list_spec= 5445else 5446 archiver_list_spec=$lt_cv_ar_at_file 5447fi 5448 5449 5450 5451 5452 5453 5454 5455if test -n "$ac_tool_prefix"; then 5456 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5457set dummy ${ac_tool_prefix}strip; ac_word=$2 5458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5459$as_echo_n "checking for $ac_word... " >&6; } 5460if ${ac_cv_prog_STRIP+:} false; then : 5461 $as_echo_n "(cached) " >&6 5462else 5463 if test -n "$STRIP"; then 5464 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5465else 5466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5467for as_dir in $PATH 5468do 5469 IFS=$as_save_IFS 5470 test -z "$as_dir" && as_dir=. 5471 for ac_exec_ext in '' $ac_executable_extensions; do 5472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5473 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5475 break 2 5476 fi 5477done 5478 done 5479IFS=$as_save_IFS 5480 5481fi 5482fi 5483STRIP=$ac_cv_prog_STRIP 5484if test -n "$STRIP"; then 5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5486$as_echo "$STRIP" >&6; } 5487else 5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5489$as_echo "no" >&6; } 5490fi 5491 5492 5493fi 5494if test -z "$ac_cv_prog_STRIP"; then 5495 ac_ct_STRIP=$STRIP 5496 # Extract the first word of "strip", so it can be a program name with args. 5497set dummy strip; ac_word=$2 5498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5499$as_echo_n "checking for $ac_word... " >&6; } 5500if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5501 $as_echo_n "(cached) " >&6 5502else 5503 if test -n "$ac_ct_STRIP"; then 5504 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5505else 5506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5507for as_dir in $PATH 5508do 5509 IFS=$as_save_IFS 5510 test -z "$as_dir" && as_dir=. 5511 for ac_exec_ext in '' $ac_executable_extensions; do 5512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5513 ac_cv_prog_ac_ct_STRIP="strip" 5514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5515 break 2 5516 fi 5517done 5518 done 5519IFS=$as_save_IFS 5520 5521fi 5522fi 5523ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5524if test -n "$ac_ct_STRIP"; then 5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5526$as_echo "$ac_ct_STRIP" >&6; } 5527else 5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5529$as_echo "no" >&6; } 5530fi 5531 5532 if test "x$ac_ct_STRIP" = x; then 5533 STRIP=":" 5534 else 5535 case $cross_compiling:$ac_tool_warned in 5536yes:) 5537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5539ac_tool_warned=yes ;; 5540esac 5541 STRIP=$ac_ct_STRIP 5542 fi 5543else 5544 STRIP="$ac_cv_prog_STRIP" 5545fi 5546 5547test -z "$STRIP" && STRIP=: 5548 5549 5550 5551 5552 5553 5554if test -n "$ac_tool_prefix"; then 5555 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5556set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5558$as_echo_n "checking for $ac_word... " >&6; } 5559if ${ac_cv_prog_RANLIB+:} false; then : 5560 $as_echo_n "(cached) " >&6 5561else 5562 if test -n "$RANLIB"; then 5563 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5564else 5565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5566for as_dir in $PATH 5567do 5568 IFS=$as_save_IFS 5569 test -z "$as_dir" && as_dir=. 5570 for ac_exec_ext in '' $ac_executable_extensions; do 5571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5572 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5574 break 2 5575 fi 5576done 5577 done 5578IFS=$as_save_IFS 5579 5580fi 5581fi 5582RANLIB=$ac_cv_prog_RANLIB 5583if test -n "$RANLIB"; then 5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5585$as_echo "$RANLIB" >&6; } 5586else 5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5588$as_echo "no" >&6; } 5589fi 5590 5591 5592fi 5593if test -z "$ac_cv_prog_RANLIB"; then 5594 ac_ct_RANLIB=$RANLIB 5595 # Extract the first word of "ranlib", so it can be a program name with args. 5596set dummy ranlib; 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_RANLIB+:} false; then : 5600 $as_echo_n "(cached) " >&6 5601else 5602 if test -n "$ac_ct_RANLIB"; then 5603 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5612 ac_cv_prog_ac_ct_RANLIB="ranlib" 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_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5623if test -n "$ac_ct_RANLIB"; then 5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5625$as_echo "$ac_ct_RANLIB" >&6; } 5626else 5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5628$as_echo "no" >&6; } 5629fi 5630 5631 if test "x$ac_ct_RANLIB" = x; then 5632 RANLIB=":" 5633 else 5634 case $cross_compiling:$ac_tool_warned in 5635yes:) 5636{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5637$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5638ac_tool_warned=yes ;; 5639esac 5640 RANLIB=$ac_ct_RANLIB 5641 fi 5642else 5643 RANLIB="$ac_cv_prog_RANLIB" 5644fi 5645 5646test -z "$RANLIB" && RANLIB=: 5647 5648 5649 5650 5651 5652 5653# Determine commands to create old-style static archives. 5654old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5655old_postinstall_cmds='chmod 644 $oldlib' 5656old_postuninstall_cmds= 5657 5658if test -n "$RANLIB"; then 5659 case $host_os in 5660 openbsd*) 5661 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5662 ;; 5663 *) 5664 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5665 ;; 5666 esac 5667 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5668fi 5669 5670case $host_os in 5671 darwin*) 5672 lock_old_archive_extraction=yes ;; 5673 *) 5674 lock_old_archive_extraction=no ;; 5675esac 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715# If no C compiler was specified, use CC. 5716LTCC=${LTCC-"$CC"} 5717 5718# If no C compiler flags were specified, use CFLAGS. 5719LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5720 5721# Allow CC to be a program name with arguments. 5722compiler=$CC 5723 5724 5725# Check for command to grab the raw symbol name followed by C symbol from nm. 5726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5727$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5728if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5729 $as_echo_n "(cached) " >&6 5730else 5731 5732# These are sane defaults that work on at least a few old systems. 5733# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5734 5735# Character class describing NM global symbol codes. 5736symcode='[BCDEGRST]' 5737 5738# Regexp to match symbols that can be accessed directly from C. 5739sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5740 5741# Define system-specific variables. 5742case $host_os in 5743aix*) 5744 symcode='[BCDT]' 5745 ;; 5746cygwin* | mingw* | pw32* | cegcc*) 5747 symcode='[ABCDGISTW]' 5748 ;; 5749hpux*) 5750 if test "$host_cpu" = ia64; then 5751 symcode='[ABCDEGRST]' 5752 fi 5753 ;; 5754irix* | nonstopux*) 5755 symcode='[BCDEGRST]' 5756 ;; 5757osf*) 5758 symcode='[BCDEGQRST]' 5759 ;; 5760solaris*) 5761 symcode='[BDRT]' 5762 ;; 5763sco3.2v5*) 5764 symcode='[DT]' 5765 ;; 5766sysv4.2uw2*) 5767 symcode='[DT]' 5768 ;; 5769sysv5* | sco5v6* | unixware* | OpenUNIX*) 5770 symcode='[ABDT]' 5771 ;; 5772sysv4) 5773 symcode='[DFNSTU]' 5774 ;; 5775esac 5776 5777# If we're using GNU nm, then use its standard symbol codes. 5778case `$NM -V 2>&1` in 5779*GNU* | *'with BFD'*) 5780 symcode='[ABCDGIRSTW]' ;; 5781esac 5782 5783# Transform an extracted symbol line into a proper C declaration. 5784# Some systems (esp. on ia64) link data and code symbols differently, 5785# so use this general approach. 5786lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5787 5788# Transform an extracted symbol line into symbol name and symbol address 5789lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5790lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 5791 5792# Handle CRLF in mingw tool chain 5793opt_cr= 5794case $build_os in 5795mingw*) 5796 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5797 ;; 5798esac 5799 5800# Try without a prefix underscore, then with it. 5801for ac_symprfx in "" "_"; do 5802 5803 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5804 symxfrm="\\1 $ac_symprfx\\2 \\2" 5805 5806 # Write the raw and C identifiers. 5807 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5808 # Fake it for dumpbin and say T for any non-static function 5809 # and D for any global variable. 5810 # Also find C++ and __fastcall symbols from MSVC++, 5811 # which start with @ or ?. 5812 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5813" {last_section=section; section=\$ 3};"\ 5814" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5815" \$ 0!~/External *\|/{next};"\ 5816" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5817" {if(hide[section]) next};"\ 5818" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5819" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5820" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5821" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5822" ' prfx=^$ac_symprfx" 5823 else 5824 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5825 fi 5826 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 5827 5828 # Check to see that the pipe works correctly. 5829 pipe_works=no 5830 5831 rm -f conftest* 5832 cat > conftest.$ac_ext <<_LT_EOF 5833#ifdef __cplusplus 5834extern "C" { 5835#endif 5836char nm_test_var; 5837void nm_test_func(void); 5838void nm_test_func(void){} 5839#ifdef __cplusplus 5840} 5841#endif 5842int main(){nm_test_var='a';nm_test_func();return(0);} 5843_LT_EOF 5844 5845 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5846 (eval $ac_compile) 2>&5 5847 ac_status=$? 5848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5849 test $ac_status = 0; }; then 5850 # Now try to grab the symbols. 5851 nlist=conftest.nm 5852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 5853 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 5854 ac_status=$? 5855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5856 test $ac_status = 0; } && test -s "$nlist"; then 5857 # Try sorting and uniquifying the output. 5858 if sort "$nlist" | uniq > "$nlist"T; then 5859 mv -f "$nlist"T "$nlist" 5860 else 5861 rm -f "$nlist"T 5862 fi 5863 5864 # Make sure that we snagged all the symbols we need. 5865 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5866 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5867 cat <<_LT_EOF > conftest.$ac_ext 5868/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 5869#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 5870/* DATA imports from DLLs on WIN32 con't be const, because runtime 5871 relocations are performed -- see ld's documentation on pseudo-relocs. */ 5872# define LT_DLSYM_CONST 5873#elif defined(__osf__) 5874/* This system does not cope well with relocations in const data. */ 5875# define LT_DLSYM_CONST 5876#else 5877# define LT_DLSYM_CONST const 5878#endif 5879 5880#ifdef __cplusplus 5881extern "C" { 5882#endif 5883 5884_LT_EOF 5885 # Now generate the symbol file. 5886 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5887 5888 cat <<_LT_EOF >> conftest.$ac_ext 5889 5890/* The mapping between symbol names and symbols. */ 5891LT_DLSYM_CONST struct { 5892 const char *name; 5893 void *address; 5894} 5895lt__PROGRAM__LTX_preloaded_symbols[] = 5896{ 5897 { "@PROGRAM@", (void *) 0 }, 5898_LT_EOF 5899 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5900 cat <<\_LT_EOF >> conftest.$ac_ext 5901 {0, (void *) 0} 5902}; 5903 5904/* This works around a problem in FreeBSD linker */ 5905#ifdef FREEBSD_WORKAROUND 5906static const void *lt_preloaded_setup() { 5907 return lt__PROGRAM__LTX_preloaded_symbols; 5908} 5909#endif 5910 5911#ifdef __cplusplus 5912} 5913#endif 5914_LT_EOF 5915 # Now try linking the two files. 5916 mv conftest.$ac_objext conftstm.$ac_objext 5917 lt_globsym_save_LIBS=$LIBS 5918 lt_globsym_save_CFLAGS=$CFLAGS 5919 LIBS="conftstm.$ac_objext" 5920 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5921 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 5922 (eval $ac_link) 2>&5 5923 ac_status=$? 5924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5925 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 5926 pipe_works=yes 5927 fi 5928 LIBS=$lt_globsym_save_LIBS 5929 CFLAGS=$lt_globsym_save_CFLAGS 5930 else 5931 echo "cannot find nm_test_func in $nlist" >&5 5932 fi 5933 else 5934 echo "cannot find nm_test_var in $nlist" >&5 5935 fi 5936 else 5937 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5938 fi 5939 else 5940 echo "$progname: failed program was:" >&5 5941 cat conftest.$ac_ext >&5 5942 fi 5943 rm -rf conftest* conftst* 5944 5945 # Do not use the global_symbol_pipe unless it works. 5946 if test "$pipe_works" = yes; then 5947 break 5948 else 5949 lt_cv_sys_global_symbol_pipe= 5950 fi 5951done 5952 5953fi 5954 5955if test -z "$lt_cv_sys_global_symbol_pipe"; then 5956 lt_cv_sys_global_symbol_to_cdecl= 5957fi 5958if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5960$as_echo "failed" >&6; } 5961else 5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 5963$as_echo "ok" >&6; } 5964fi 5965 5966# Response file support. 5967if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5968 nm_file_list_spec='@' 5969elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 5970 nm_file_list_spec='@' 5971fi 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6000$as_echo_n "checking for sysroot... " >&6; } 6001 6002# Check whether --with-sysroot was given. 6003if test "${with_sysroot+set}" = set; then : 6004 withval=$with_sysroot; 6005else 6006 with_sysroot=no 6007fi 6008 6009 6010lt_sysroot= 6011case ${with_sysroot} in #( 6012 yes) 6013 if test "$GCC" = yes; then 6014 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6015 fi 6016 ;; #( 6017 /*) 6018 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6019 ;; #( 6020 no|'') 6021 ;; #( 6022 *) 6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6024$as_echo "${with_sysroot}" >&6; } 6025 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6026 ;; 6027esac 6028 6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6030$as_echo "${lt_sysroot:-no}" >&6; } 6031 6032 6033 6034 6035 6036# Check whether --enable-libtool-lock was given. 6037if test "${enable_libtool_lock+set}" = set; then : 6038 enableval=$enable_libtool_lock; 6039fi 6040 6041test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6042 6043# Some flags need to be propagated to the compiler or linker for good 6044# libtool support. 6045case $host in 6046ia64-*-hpux*) 6047 # Find out which ABI we are using. 6048 echo 'int i;' > conftest.$ac_ext 6049 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6050 (eval $ac_compile) 2>&5 6051 ac_status=$? 6052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6053 test $ac_status = 0; }; then 6054 case `/usr/bin/file conftest.$ac_objext` in 6055 *ELF-32*) 6056 HPUX_IA64_MODE="32" 6057 ;; 6058 *ELF-64*) 6059 HPUX_IA64_MODE="64" 6060 ;; 6061 esac 6062 fi 6063 rm -rf conftest* 6064 ;; 6065*-*-irix6*) 6066 # Find out which ABI we are using. 6067 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6069 (eval $ac_compile) 2>&5 6070 ac_status=$? 6071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6072 test $ac_status = 0; }; then 6073 if test "$lt_cv_prog_gnu_ld" = yes; then 6074 case `/usr/bin/file conftest.$ac_objext` in 6075 *32-bit*) 6076 LD="${LD-ld} -melf32bsmip" 6077 ;; 6078 *N32*) 6079 LD="${LD-ld} -melf32bmipn32" 6080 ;; 6081 *64-bit*) 6082 LD="${LD-ld} -melf64bmip" 6083 ;; 6084 esac 6085 else 6086 case `/usr/bin/file conftest.$ac_objext` in 6087 *32-bit*) 6088 LD="${LD-ld} -32" 6089 ;; 6090 *N32*) 6091 LD="${LD-ld} -n32" 6092 ;; 6093 *64-bit*) 6094 LD="${LD-ld} -64" 6095 ;; 6096 esac 6097 fi 6098 fi 6099 rm -rf conftest* 6100 ;; 6101 6102x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6103s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6104 # Find out which ABI we are using. 6105 echo 'int i;' > conftest.$ac_ext 6106 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6107 (eval $ac_compile) 2>&5 6108 ac_status=$? 6109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6110 test $ac_status = 0; }; then 6111 case `/usr/bin/file conftest.o` in 6112 *32-bit*) 6113 case $host in 6114 x86_64-*kfreebsd*-gnu) 6115 LD="${LD-ld} -m elf_i386_fbsd" 6116 ;; 6117 x86_64-*linux*) 6118 LD="${LD-ld} -m elf_i386" 6119 ;; 6120 ppc64-*linux*|powerpc64-*linux*) 6121 LD="${LD-ld} -m elf32ppclinux" 6122 ;; 6123 s390x-*linux*) 6124 LD="${LD-ld} -m elf_s390" 6125 ;; 6126 sparc64-*linux*) 6127 LD="${LD-ld} -m elf32_sparc" 6128 ;; 6129 esac 6130 ;; 6131 *64-bit*) 6132 case $host in 6133 x86_64-*kfreebsd*-gnu) 6134 LD="${LD-ld} -m elf_x86_64_fbsd" 6135 ;; 6136 x86_64-*linux*) 6137 LD="${LD-ld} -m elf_x86_64" 6138 ;; 6139 ppc*-*linux*|powerpc*-*linux*) 6140 LD="${LD-ld} -m elf64ppc" 6141 ;; 6142 s390*-*linux*|s390*-*tpf*) 6143 LD="${LD-ld} -m elf64_s390" 6144 ;; 6145 sparc*-*linux*) 6146 LD="${LD-ld} -m elf64_sparc" 6147 ;; 6148 esac 6149 ;; 6150 esac 6151 fi 6152 rm -rf conftest* 6153 ;; 6154 6155*-*-sco3.2v5*) 6156 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6157 SAVE_CFLAGS="$CFLAGS" 6158 CFLAGS="$CFLAGS -belf" 6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6160$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6161if ${lt_cv_cc_needs_belf+:} false; then : 6162 $as_echo_n "(cached) " >&6 6163else 6164 ac_ext=c 6165ac_cpp='$CPP $CPPFLAGS' 6166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6168ac_compiler_gnu=$ac_cv_c_compiler_gnu 6169 6170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6171/* end confdefs.h. */ 6172 6173int 6174main () 6175{ 6176 6177 ; 6178 return 0; 6179} 6180_ACEOF 6181if ac_fn_c_try_link "$LINENO"; then : 6182 lt_cv_cc_needs_belf=yes 6183else 6184 lt_cv_cc_needs_belf=no 6185fi 6186rm -f core conftest.err conftest.$ac_objext \ 6187 conftest$ac_exeext conftest.$ac_ext 6188 ac_ext=c 6189ac_cpp='$CPP $CPPFLAGS' 6190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6192ac_compiler_gnu=$ac_cv_c_compiler_gnu 6193 6194fi 6195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6196$as_echo "$lt_cv_cc_needs_belf" >&6; } 6197 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6198 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6199 CFLAGS="$SAVE_CFLAGS" 6200 fi 6201 ;; 6202sparc*-*solaris*) 6203 # Find out which ABI we are using. 6204 echo 'int i;' > conftest.$ac_ext 6205 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6206 (eval $ac_compile) 2>&5 6207 ac_status=$? 6208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6209 test $ac_status = 0; }; then 6210 case `/usr/bin/file conftest.o` in 6211 *64-bit*) 6212 case $lt_cv_prog_gnu_ld in 6213 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6214 *) 6215 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6216 LD="${LD-ld} -64" 6217 fi 6218 ;; 6219 esac 6220 ;; 6221 esac 6222 fi 6223 rm -rf conftest* 6224 ;; 6225esac 6226 6227need_locks="$enable_libtool_lock" 6228 6229if test -n "$ac_tool_prefix"; then 6230 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6231set dummy ${ac_tool_prefix}mt; ac_word=$2 6232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6233$as_echo_n "checking for $ac_word... " >&6; } 6234if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6235 $as_echo_n "(cached) " >&6 6236else 6237 if test -n "$MANIFEST_TOOL"; then 6238 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6239else 6240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6241for as_dir in $PATH 6242do 6243 IFS=$as_save_IFS 6244 test -z "$as_dir" && as_dir=. 6245 for ac_exec_ext in '' $ac_executable_extensions; do 6246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6247 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6249 break 2 6250 fi 6251done 6252 done 6253IFS=$as_save_IFS 6254 6255fi 6256fi 6257MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6258if test -n "$MANIFEST_TOOL"; then 6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6260$as_echo "$MANIFEST_TOOL" >&6; } 6261else 6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6263$as_echo "no" >&6; } 6264fi 6265 6266 6267fi 6268if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6269 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6270 # Extract the first word of "mt", so it can be a program name with args. 6271set dummy mt; ac_word=$2 6272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6273$as_echo_n "checking for $ac_word... " >&6; } 6274if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6275 $as_echo_n "(cached) " >&6 6276else 6277 if test -n "$ac_ct_MANIFEST_TOOL"; then 6278 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6279else 6280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6281for as_dir in $PATH 6282do 6283 IFS=$as_save_IFS 6284 test -z "$as_dir" && as_dir=. 6285 for ac_exec_ext in '' $ac_executable_extensions; do 6286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6287 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6289 break 2 6290 fi 6291done 6292 done 6293IFS=$as_save_IFS 6294 6295fi 6296fi 6297ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6298if test -n "$ac_ct_MANIFEST_TOOL"; then 6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6300$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6301else 6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6303$as_echo "no" >&6; } 6304fi 6305 6306 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6307 MANIFEST_TOOL=":" 6308 else 6309 case $cross_compiling:$ac_tool_warned in 6310yes:) 6311{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6312$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6313ac_tool_warned=yes ;; 6314esac 6315 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6316 fi 6317else 6318 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6319fi 6320 6321test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6323$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6324if ${lt_cv_path_mainfest_tool+:} false; then : 6325 $as_echo_n "(cached) " >&6 6326else 6327 lt_cv_path_mainfest_tool=no 6328 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6329 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6330 cat conftest.err >&5 6331 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6332 lt_cv_path_mainfest_tool=yes 6333 fi 6334 rm -f conftest* 6335fi 6336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6337$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6338if test "x$lt_cv_path_mainfest_tool" != xyes; then 6339 MANIFEST_TOOL=: 6340fi 6341 6342 6343 6344 6345 6346 6347 case $host_os in 6348 rhapsody* | darwin*) 6349 if test -n "$ac_tool_prefix"; then 6350 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6351set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6353$as_echo_n "checking for $ac_word... " >&6; } 6354if ${ac_cv_prog_DSYMUTIL+:} false; then : 6355 $as_echo_n "(cached) " >&6 6356else 6357 if test -n "$DSYMUTIL"; then 6358 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6359else 6360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6361for as_dir in $PATH 6362do 6363 IFS=$as_save_IFS 6364 test -z "$as_dir" && as_dir=. 6365 for ac_exec_ext in '' $ac_executable_extensions; do 6366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6367 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6369 break 2 6370 fi 6371done 6372 done 6373IFS=$as_save_IFS 6374 6375fi 6376fi 6377DSYMUTIL=$ac_cv_prog_DSYMUTIL 6378if test -n "$DSYMUTIL"; then 6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6380$as_echo "$DSYMUTIL" >&6; } 6381else 6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6383$as_echo "no" >&6; } 6384fi 6385 6386 6387fi 6388if test -z "$ac_cv_prog_DSYMUTIL"; then 6389 ac_ct_DSYMUTIL=$DSYMUTIL 6390 # Extract the first word of "dsymutil", so it can be a program name with args. 6391set dummy dsymutil; ac_word=$2 6392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6393$as_echo_n "checking for $ac_word... " >&6; } 6394if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6395 $as_echo_n "(cached) " >&6 6396else 6397 if test -n "$ac_ct_DSYMUTIL"; then 6398 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6399else 6400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6401for as_dir in $PATH 6402do 6403 IFS=$as_save_IFS 6404 test -z "$as_dir" && as_dir=. 6405 for ac_exec_ext in '' $ac_executable_extensions; do 6406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6407 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6409 break 2 6410 fi 6411done 6412 done 6413IFS=$as_save_IFS 6414 6415fi 6416fi 6417ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6418if test -n "$ac_ct_DSYMUTIL"; then 6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6420$as_echo "$ac_ct_DSYMUTIL" >&6; } 6421else 6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6423$as_echo "no" >&6; } 6424fi 6425 6426 if test "x$ac_ct_DSYMUTIL" = x; then 6427 DSYMUTIL=":" 6428 else 6429 case $cross_compiling:$ac_tool_warned in 6430yes:) 6431{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6432$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6433ac_tool_warned=yes ;; 6434esac 6435 DSYMUTIL=$ac_ct_DSYMUTIL 6436 fi 6437else 6438 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6439fi 6440 6441 if test -n "$ac_tool_prefix"; then 6442 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6443set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6445$as_echo_n "checking for $ac_word... " >&6; } 6446if ${ac_cv_prog_NMEDIT+:} false; then : 6447 $as_echo_n "(cached) " >&6 6448else 6449 if test -n "$NMEDIT"; then 6450 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6451else 6452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6453for as_dir in $PATH 6454do 6455 IFS=$as_save_IFS 6456 test -z "$as_dir" && as_dir=. 6457 for ac_exec_ext in '' $ac_executable_extensions; do 6458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6459 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6461 break 2 6462 fi 6463done 6464 done 6465IFS=$as_save_IFS 6466 6467fi 6468fi 6469NMEDIT=$ac_cv_prog_NMEDIT 6470if test -n "$NMEDIT"; then 6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6472$as_echo "$NMEDIT" >&6; } 6473else 6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6475$as_echo "no" >&6; } 6476fi 6477 6478 6479fi 6480if test -z "$ac_cv_prog_NMEDIT"; then 6481 ac_ct_NMEDIT=$NMEDIT 6482 # Extract the first word of "nmedit", so it can be a program name with args. 6483set dummy nmedit; ac_word=$2 6484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6485$as_echo_n "checking for $ac_word... " >&6; } 6486if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6487 $as_echo_n "(cached) " >&6 6488else 6489 if test -n "$ac_ct_NMEDIT"; then 6490 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6491else 6492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6493for as_dir in $PATH 6494do 6495 IFS=$as_save_IFS 6496 test -z "$as_dir" && as_dir=. 6497 for ac_exec_ext in '' $ac_executable_extensions; do 6498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6499 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6501 break 2 6502 fi 6503done 6504 done 6505IFS=$as_save_IFS 6506 6507fi 6508fi 6509ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6510if test -n "$ac_ct_NMEDIT"; then 6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6512$as_echo "$ac_ct_NMEDIT" >&6; } 6513else 6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6515$as_echo "no" >&6; } 6516fi 6517 6518 if test "x$ac_ct_NMEDIT" = x; then 6519 NMEDIT=":" 6520 else 6521 case $cross_compiling:$ac_tool_warned in 6522yes:) 6523{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6524$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6525ac_tool_warned=yes ;; 6526esac 6527 NMEDIT=$ac_ct_NMEDIT 6528 fi 6529else 6530 NMEDIT="$ac_cv_prog_NMEDIT" 6531fi 6532 6533 if test -n "$ac_tool_prefix"; then 6534 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6535set dummy ${ac_tool_prefix}lipo; ac_word=$2 6536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6537$as_echo_n "checking for $ac_word... " >&6; } 6538if ${ac_cv_prog_LIPO+:} false; then : 6539 $as_echo_n "(cached) " >&6 6540else 6541 if test -n "$LIPO"; then 6542 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6543else 6544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6545for as_dir in $PATH 6546do 6547 IFS=$as_save_IFS 6548 test -z "$as_dir" && as_dir=. 6549 for ac_exec_ext in '' $ac_executable_extensions; do 6550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6551 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6553 break 2 6554 fi 6555done 6556 done 6557IFS=$as_save_IFS 6558 6559fi 6560fi 6561LIPO=$ac_cv_prog_LIPO 6562if test -n "$LIPO"; then 6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6564$as_echo "$LIPO" >&6; } 6565else 6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6567$as_echo "no" >&6; } 6568fi 6569 6570 6571fi 6572if test -z "$ac_cv_prog_LIPO"; then 6573 ac_ct_LIPO=$LIPO 6574 # Extract the first word of "lipo", so it can be a program name with args. 6575set dummy lipo; ac_word=$2 6576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6577$as_echo_n "checking for $ac_word... " >&6; } 6578if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6579 $as_echo_n "(cached) " >&6 6580else 6581 if test -n "$ac_ct_LIPO"; then 6582 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6583else 6584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6585for as_dir in $PATH 6586do 6587 IFS=$as_save_IFS 6588 test -z "$as_dir" && as_dir=. 6589 for ac_exec_ext in '' $ac_executable_extensions; do 6590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6591 ac_cv_prog_ac_ct_LIPO="lipo" 6592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6593 break 2 6594 fi 6595done 6596 done 6597IFS=$as_save_IFS 6598 6599fi 6600fi 6601ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6602if test -n "$ac_ct_LIPO"; then 6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6604$as_echo "$ac_ct_LIPO" >&6; } 6605else 6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6607$as_echo "no" >&6; } 6608fi 6609 6610 if test "x$ac_ct_LIPO" = x; then 6611 LIPO=":" 6612 else 6613 case $cross_compiling:$ac_tool_warned in 6614yes:) 6615{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6616$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6617ac_tool_warned=yes ;; 6618esac 6619 LIPO=$ac_ct_LIPO 6620 fi 6621else 6622 LIPO="$ac_cv_prog_LIPO" 6623fi 6624 6625 if test -n "$ac_tool_prefix"; then 6626 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6627set dummy ${ac_tool_prefix}otool; ac_word=$2 6628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6629$as_echo_n "checking for $ac_word... " >&6; } 6630if ${ac_cv_prog_OTOOL+:} false; then : 6631 $as_echo_n "(cached) " >&6 6632else 6633 if test -n "$OTOOL"; then 6634 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6635else 6636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6637for as_dir in $PATH 6638do 6639 IFS=$as_save_IFS 6640 test -z "$as_dir" && as_dir=. 6641 for ac_exec_ext in '' $ac_executable_extensions; do 6642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6643 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6645 break 2 6646 fi 6647done 6648 done 6649IFS=$as_save_IFS 6650 6651fi 6652fi 6653OTOOL=$ac_cv_prog_OTOOL 6654if test -n "$OTOOL"; then 6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6656$as_echo "$OTOOL" >&6; } 6657else 6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6659$as_echo "no" >&6; } 6660fi 6661 6662 6663fi 6664if test -z "$ac_cv_prog_OTOOL"; then 6665 ac_ct_OTOOL=$OTOOL 6666 # Extract the first word of "otool", so it can be a program name with args. 6667set dummy otool; ac_word=$2 6668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6669$as_echo_n "checking for $ac_word... " >&6; } 6670if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6671 $as_echo_n "(cached) " >&6 6672else 6673 if test -n "$ac_ct_OTOOL"; then 6674 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6675else 6676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6677for as_dir in $PATH 6678do 6679 IFS=$as_save_IFS 6680 test -z "$as_dir" && as_dir=. 6681 for ac_exec_ext in '' $ac_executable_extensions; do 6682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6683 ac_cv_prog_ac_ct_OTOOL="otool" 6684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6685 break 2 6686 fi 6687done 6688 done 6689IFS=$as_save_IFS 6690 6691fi 6692fi 6693ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6694if test -n "$ac_ct_OTOOL"; then 6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6696$as_echo "$ac_ct_OTOOL" >&6; } 6697else 6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6699$as_echo "no" >&6; } 6700fi 6701 6702 if test "x$ac_ct_OTOOL" = x; then 6703 OTOOL=":" 6704 else 6705 case $cross_compiling:$ac_tool_warned in 6706yes:) 6707{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6708$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6709ac_tool_warned=yes ;; 6710esac 6711 OTOOL=$ac_ct_OTOOL 6712 fi 6713else 6714 OTOOL="$ac_cv_prog_OTOOL" 6715fi 6716 6717 if test -n "$ac_tool_prefix"; then 6718 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6719set dummy ${ac_tool_prefix}otool64; ac_word=$2 6720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6721$as_echo_n "checking for $ac_word... " >&6; } 6722if ${ac_cv_prog_OTOOL64+:} false; then : 6723 $as_echo_n "(cached) " >&6 6724else 6725 if test -n "$OTOOL64"; then 6726 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6727else 6728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6729for as_dir in $PATH 6730do 6731 IFS=$as_save_IFS 6732 test -z "$as_dir" && as_dir=. 6733 for ac_exec_ext in '' $ac_executable_extensions; do 6734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6735 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6737 break 2 6738 fi 6739done 6740 done 6741IFS=$as_save_IFS 6742 6743fi 6744fi 6745OTOOL64=$ac_cv_prog_OTOOL64 6746if test -n "$OTOOL64"; then 6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6748$as_echo "$OTOOL64" >&6; } 6749else 6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6751$as_echo "no" >&6; } 6752fi 6753 6754 6755fi 6756if test -z "$ac_cv_prog_OTOOL64"; then 6757 ac_ct_OTOOL64=$OTOOL64 6758 # Extract the first word of "otool64", so it can be a program name with args. 6759set dummy otool64; ac_word=$2 6760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6761$as_echo_n "checking for $ac_word... " >&6; } 6762if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6763 $as_echo_n "(cached) " >&6 6764else 6765 if test -n "$ac_ct_OTOOL64"; then 6766 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6767else 6768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6769for as_dir in $PATH 6770do 6771 IFS=$as_save_IFS 6772 test -z "$as_dir" && as_dir=. 6773 for ac_exec_ext in '' $ac_executable_extensions; do 6774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6775 ac_cv_prog_ac_ct_OTOOL64="otool64" 6776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6777 break 2 6778 fi 6779done 6780 done 6781IFS=$as_save_IFS 6782 6783fi 6784fi 6785ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6786if test -n "$ac_ct_OTOOL64"; then 6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6788$as_echo "$ac_ct_OTOOL64" >&6; } 6789else 6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6791$as_echo "no" >&6; } 6792fi 6793 6794 if test "x$ac_ct_OTOOL64" = x; then 6795 OTOOL64=":" 6796 else 6797 case $cross_compiling:$ac_tool_warned in 6798yes:) 6799{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6800$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6801ac_tool_warned=yes ;; 6802esac 6803 OTOOL64=$ac_ct_OTOOL64 6804 fi 6805else 6806 OTOOL64="$ac_cv_prog_OTOOL64" 6807fi 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6836$as_echo_n "checking for -single_module linker flag... " >&6; } 6837if ${lt_cv_apple_cc_single_mod+:} false; then : 6838 $as_echo_n "(cached) " >&6 6839else 6840 lt_cv_apple_cc_single_mod=no 6841 if test -z "${LT_MULTI_MODULE}"; then 6842 # By default we will add the -single_module flag. You can override 6843 # by either setting the environment variable LT_MULTI_MODULE 6844 # non-empty at configure time, or by adding -multi_module to the 6845 # link flags. 6846 rm -rf libconftest.dylib* 6847 echo "int foo(void){return 1;}" > conftest.c 6848 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6849-dynamiclib -Wl,-single_module conftest.c" >&5 6850 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6851 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6852 _lt_result=$? 6853 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6854 lt_cv_apple_cc_single_mod=yes 6855 else 6856 cat conftest.err >&5 6857 fi 6858 rm -rf libconftest.dylib* 6859 rm -f conftest.* 6860 fi 6861fi 6862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6863$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6865$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6866if ${lt_cv_ld_exported_symbols_list+:} false; then : 6867 $as_echo_n "(cached) " >&6 6868else 6869 lt_cv_ld_exported_symbols_list=no 6870 save_LDFLAGS=$LDFLAGS 6871 echo "_main" > conftest.sym 6872 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6874/* end confdefs.h. */ 6875 6876int 6877main () 6878{ 6879 6880 ; 6881 return 0; 6882} 6883_ACEOF 6884if ac_fn_c_try_link "$LINENO"; then : 6885 lt_cv_ld_exported_symbols_list=yes 6886else 6887 lt_cv_ld_exported_symbols_list=no 6888fi 6889rm -f core conftest.err conftest.$ac_objext \ 6890 conftest$ac_exeext conftest.$ac_ext 6891 LDFLAGS="$save_LDFLAGS" 6892 6893fi 6894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6895$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 6897$as_echo_n "checking for -force_load linker flag... " >&6; } 6898if ${lt_cv_ld_force_load+:} false; then : 6899 $as_echo_n "(cached) " >&6 6900else 6901 lt_cv_ld_force_load=no 6902 cat > conftest.c << _LT_EOF 6903int forced_loaded() { return 2;} 6904_LT_EOF 6905 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 6906 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 6907 echo "$AR cru libconftest.a conftest.o" >&5 6908 $AR cru libconftest.a conftest.o 2>&5 6909 echo "$RANLIB libconftest.a" >&5 6910 $RANLIB libconftest.a 2>&5 6911 cat > conftest.c << _LT_EOF 6912int main() { return 0;} 6913_LT_EOF 6914 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 6915 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 6916 _lt_result=$? 6917 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 6918 lt_cv_ld_force_load=yes 6919 else 6920 cat conftest.err >&5 6921 fi 6922 rm -f conftest.err libconftest.a conftest conftest.c 6923 rm -rf conftest.dSYM 6924 6925fi 6926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 6927$as_echo "$lt_cv_ld_force_load" >&6; } 6928 case $host_os in 6929 rhapsody* | darwin1.[012]) 6930 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6931 darwin1.*) 6932 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6933 darwin*) # darwin 5.x on 6934 # if running on 10.5 or later, the deployment target defaults 6935 # to the OS version, if on x86, and 10.4, the deployment 6936 # target defaults to 10.4. Don't you love it? 6937 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6938 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6939 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6940 10.[012]*) 6941 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6942 10.*) 6943 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6944 esac 6945 ;; 6946 esac 6947 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6948 _lt_dar_single_mod='$single_module' 6949 fi 6950 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6951 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6952 else 6953 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6954 fi 6955 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 6956 _lt_dsymutil='~$DSYMUTIL $lib || :' 6957 else 6958 _lt_dsymutil= 6959 fi 6960 ;; 6961 esac 6962 6963ac_ext=c 6964ac_cpp='$CPP $CPPFLAGS' 6965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6967ac_compiler_gnu=$ac_cv_c_compiler_gnu 6968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6969$as_echo_n "checking how to run the C preprocessor... " >&6; } 6970# On Suns, sometimes $CPP names a directory. 6971if test -n "$CPP" && test -d "$CPP"; then 6972 CPP= 6973fi 6974if test -z "$CPP"; then 6975 if ${ac_cv_prog_CPP+:} false; then : 6976 $as_echo_n "(cached) " >&6 6977else 6978 # Double quotes because CPP needs to be expanded 6979 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6980 do 6981 ac_preproc_ok=false 6982for ac_c_preproc_warn_flag in '' yes 6983do 6984 # Use a header file that comes with gcc, so configuring glibc 6985 # with a fresh cross-compiler works. 6986 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6987 # <limits.h> exists even on freestanding compilers. 6988 # On the NeXT, cc -E runs the code through the compiler's parser, 6989 # not just through cpp. "Syntax error" is here to catch this case. 6990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6991/* end confdefs.h. */ 6992#ifdef __STDC__ 6993# include <limits.h> 6994#else 6995# include <assert.h> 6996#endif 6997 Syntax error 6998_ACEOF 6999if ac_fn_c_try_cpp "$LINENO"; then : 7000 7001else 7002 # Broken: fails on valid input. 7003continue 7004fi 7005rm -f conftest.err conftest.i conftest.$ac_ext 7006 7007 # OK, works on sane cases. Now check whether nonexistent headers 7008 # can be detected and how. 7009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7010/* end confdefs.h. */ 7011#include <ac_nonexistent.h> 7012_ACEOF 7013if ac_fn_c_try_cpp "$LINENO"; then : 7014 # Broken: success on invalid input. 7015continue 7016else 7017 # Passes both tests. 7018ac_preproc_ok=: 7019break 7020fi 7021rm -f conftest.err conftest.i conftest.$ac_ext 7022 7023done 7024# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7025rm -f conftest.i conftest.err conftest.$ac_ext 7026if $ac_preproc_ok; then : 7027 break 7028fi 7029 7030 done 7031 ac_cv_prog_CPP=$CPP 7032 7033fi 7034 CPP=$ac_cv_prog_CPP 7035else 7036 ac_cv_prog_CPP=$CPP 7037fi 7038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7039$as_echo "$CPP" >&6; } 7040ac_preproc_ok=false 7041for ac_c_preproc_warn_flag in '' yes 7042do 7043 # Use a header file that comes with gcc, so configuring glibc 7044 # with a fresh cross-compiler works. 7045 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7046 # <limits.h> exists even on freestanding compilers. 7047 # On the NeXT, cc -E runs the code through the compiler's parser, 7048 # not just through cpp. "Syntax error" is here to catch this case. 7049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7050/* end confdefs.h. */ 7051#ifdef __STDC__ 7052# include <limits.h> 7053#else 7054# include <assert.h> 7055#endif 7056 Syntax error 7057_ACEOF 7058if ac_fn_c_try_cpp "$LINENO"; then : 7059 7060else 7061 # Broken: fails on valid input. 7062continue 7063fi 7064rm -f conftest.err conftest.i conftest.$ac_ext 7065 7066 # OK, works on sane cases. Now check whether nonexistent headers 7067 # can be detected and how. 7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7069/* end confdefs.h. */ 7070#include <ac_nonexistent.h> 7071_ACEOF 7072if ac_fn_c_try_cpp "$LINENO"; then : 7073 # Broken: success on invalid input. 7074continue 7075else 7076 # Passes both tests. 7077ac_preproc_ok=: 7078break 7079fi 7080rm -f conftest.err conftest.i conftest.$ac_ext 7081 7082done 7083# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7084rm -f conftest.i conftest.err conftest.$ac_ext 7085if $ac_preproc_ok; then : 7086 7087else 7088 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7089$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7090as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7091See \`config.log' for more details" "$LINENO" 5; } 7092fi 7093 7094ac_ext=c 7095ac_cpp='$CPP $CPPFLAGS' 7096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7098ac_compiler_gnu=$ac_cv_c_compiler_gnu 7099 7100 7101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7102$as_echo_n "checking for ANSI C header files... " >&6; } 7103if ${ac_cv_header_stdc+:} false; then : 7104 $as_echo_n "(cached) " >&6 7105else 7106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7107/* end confdefs.h. */ 7108#include <stdlib.h> 7109#include <stdarg.h> 7110#include <string.h> 7111#include <float.h> 7112 7113int 7114main () 7115{ 7116 7117 ; 7118 return 0; 7119} 7120_ACEOF 7121if ac_fn_c_try_compile "$LINENO"; then : 7122 ac_cv_header_stdc=yes 7123else 7124 ac_cv_header_stdc=no 7125fi 7126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7127 7128if test $ac_cv_header_stdc = yes; then 7129 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7131/* end confdefs.h. */ 7132#include <string.h> 7133 7134_ACEOF 7135if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7136 $EGREP "memchr" >/dev/null 2>&1; then : 7137 7138else 7139 ac_cv_header_stdc=no 7140fi 7141rm -f conftest* 7142 7143fi 7144 7145if test $ac_cv_header_stdc = yes; then 7146 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7148/* end confdefs.h. */ 7149#include <stdlib.h> 7150 7151_ACEOF 7152if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7153 $EGREP "free" >/dev/null 2>&1; then : 7154 7155else 7156 ac_cv_header_stdc=no 7157fi 7158rm -f conftest* 7159 7160fi 7161 7162if test $ac_cv_header_stdc = yes; then 7163 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7164 if test "$cross_compiling" = yes; then : 7165 : 7166else 7167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7168/* end confdefs.h. */ 7169#include <ctype.h> 7170#include <stdlib.h> 7171#if ((' ' & 0x0FF) == 0x020) 7172# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7173# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7174#else 7175# define ISLOWER(c) \ 7176 (('a' <= (c) && (c) <= 'i') \ 7177 || ('j' <= (c) && (c) <= 'r') \ 7178 || ('s' <= (c) && (c) <= 'z')) 7179# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7180#endif 7181 7182#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7183int 7184main () 7185{ 7186 int i; 7187 for (i = 0; i < 256; i++) 7188 if (XOR (islower (i), ISLOWER (i)) 7189 || toupper (i) != TOUPPER (i)) 7190 return 2; 7191 return 0; 7192} 7193_ACEOF 7194if ac_fn_c_try_run "$LINENO"; then : 7195 7196else 7197 ac_cv_header_stdc=no 7198fi 7199rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7200 conftest.$ac_objext conftest.beam conftest.$ac_ext 7201fi 7202 7203fi 7204fi 7205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7206$as_echo "$ac_cv_header_stdc" >&6; } 7207if test $ac_cv_header_stdc = yes; then 7208 7209$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7210 7211fi 7212 7213# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7214for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7215 inttypes.h stdint.h unistd.h 7216do : 7217 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7218ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7219" 7220if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7221 cat >>confdefs.h <<_ACEOF 7222#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7223_ACEOF 7224 7225fi 7226 7227done 7228 7229 7230for ac_header in dlfcn.h 7231do : 7232 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7233" 7234if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7235 cat >>confdefs.h <<_ACEOF 7236#define HAVE_DLFCN_H 1 7237_ACEOF 7238 7239fi 7240 7241done 7242 7243 7244 7245 7246 7247# Set options 7248 7249 7250 7251 enable_dlopen=no 7252 7253 7254 enable_win32_dll=no 7255 7256 7257 # Check whether --enable-shared was given. 7258if test "${enable_shared+set}" = set; then : 7259 enableval=$enable_shared; p=${PACKAGE-default} 7260 case $enableval in 7261 yes) enable_shared=yes ;; 7262 no) enable_shared=no ;; 7263 *) 7264 enable_shared=no 7265 # Look at the argument we got. We use all the common list separators. 7266 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7267 for pkg in $enableval; do 7268 IFS="$lt_save_ifs" 7269 if test "X$pkg" = "X$p"; then 7270 enable_shared=yes 7271 fi 7272 done 7273 IFS="$lt_save_ifs" 7274 ;; 7275 esac 7276else 7277 enable_shared=yes 7278fi 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 # Check whether --enable-static was given. 7289if test "${enable_static+set}" = set; then : 7290 enableval=$enable_static; p=${PACKAGE-default} 7291 case $enableval in 7292 yes) enable_static=yes ;; 7293 no) enable_static=no ;; 7294 *) 7295 enable_static=no 7296 # Look at the argument we got. We use all the common list separators. 7297 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7298 for pkg in $enableval; do 7299 IFS="$lt_save_ifs" 7300 if test "X$pkg" = "X$p"; then 7301 enable_static=yes 7302 fi 7303 done 7304 IFS="$lt_save_ifs" 7305 ;; 7306 esac 7307else 7308 enable_static=yes 7309fi 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320# Check whether --with-pic was given. 7321if test "${with_pic+set}" = set; then : 7322 withval=$with_pic; pic_mode="$withval" 7323else 7324 pic_mode=default 7325fi 7326 7327 7328test -z "$pic_mode" && pic_mode=default 7329 7330 7331 7332 7333 7334 7335 7336 # Check whether --enable-fast-install was given. 7337if test "${enable_fast_install+set}" = set; then : 7338 enableval=$enable_fast_install; p=${PACKAGE-default} 7339 case $enableval in 7340 yes) enable_fast_install=yes ;; 7341 no) enable_fast_install=no ;; 7342 *) 7343 enable_fast_install=no 7344 # Look at the argument we got. We use all the common list separators. 7345 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7346 for pkg in $enableval; do 7347 IFS="$lt_save_ifs" 7348 if test "X$pkg" = "X$p"; then 7349 enable_fast_install=yes 7350 fi 7351 done 7352 IFS="$lt_save_ifs" 7353 ;; 7354 esac 7355else 7356 enable_fast_install=yes 7357fi 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369# This can be used to rebuild libtool when needed 7370LIBTOOL_DEPS="$ltmain" 7371 7372# Always use our own libtool. 7373LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400test -z "$LN_S" && LN_S="ln -s" 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415if test -n "${ZSH_VERSION+set}" ; then 7416 setopt NO_GLOB_SUBST 7417fi 7418 7419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7420$as_echo_n "checking for objdir... " >&6; } 7421if ${lt_cv_objdir+:} false; then : 7422 $as_echo_n "(cached) " >&6 7423else 7424 rm -f .libs 2>/dev/null 7425mkdir .libs 2>/dev/null 7426if test -d .libs; then 7427 lt_cv_objdir=.libs 7428else 7429 # MS-DOS does not allow filenames that begin with a dot. 7430 lt_cv_objdir=_libs 7431fi 7432rmdir .libs 2>/dev/null 7433fi 7434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7435$as_echo "$lt_cv_objdir" >&6; } 7436objdir=$lt_cv_objdir 7437 7438 7439 7440 7441 7442cat >>confdefs.h <<_ACEOF 7443#define LT_OBJDIR "$lt_cv_objdir/" 7444_ACEOF 7445 7446 7447 7448 7449case $host_os in 7450aix3*) 7451 # AIX sometimes has problems with the GCC collect2 program. For some 7452 # reason, if we set the COLLECT_NAMES environment variable, the problems 7453 # vanish in a puff of smoke. 7454 if test "X${COLLECT_NAMES+set}" != Xset; then 7455 COLLECT_NAMES= 7456 export COLLECT_NAMES 7457 fi 7458 ;; 7459esac 7460 7461# Global variables: 7462ofile=libtool 7463can_build_shared=yes 7464 7465# All known linkers require a `.a' archive for static linking (except MSVC, 7466# which needs '.lib'). 7467libext=a 7468 7469with_gnu_ld="$lt_cv_prog_gnu_ld" 7470 7471old_CC="$CC" 7472old_CFLAGS="$CFLAGS" 7473 7474# Set sane defaults for various variables 7475test -z "$CC" && CC=cc 7476test -z "$LTCC" && LTCC=$CC 7477test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7478test -z "$LD" && LD=ld 7479test -z "$ac_objext" && ac_objext=o 7480 7481for cc_temp in $compiler""; do 7482 case $cc_temp in 7483 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7484 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7485 \-*) ;; 7486 *) break;; 7487 esac 7488done 7489cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7490 7491 7492# Only perform the check for file, if the check method requires it 7493test -z "$MAGIC_CMD" && MAGIC_CMD=file 7494case $deplibs_check_method in 7495file_magic*) 7496 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7498$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7499if ${lt_cv_path_MAGIC_CMD+:} false; then : 7500 $as_echo_n "(cached) " >&6 7501else 7502 case $MAGIC_CMD in 7503[\\/*] | ?:[\\/]*) 7504 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7505 ;; 7506*) 7507 lt_save_MAGIC_CMD="$MAGIC_CMD" 7508 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7509 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7510 for ac_dir in $ac_dummy; do 7511 IFS="$lt_save_ifs" 7512 test -z "$ac_dir" && ac_dir=. 7513 if test -f $ac_dir/${ac_tool_prefix}file; then 7514 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7515 if test -n "$file_magic_test_file"; then 7516 case $deplibs_check_method in 7517 "file_magic "*) 7518 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7519 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7520 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7521 $EGREP "$file_magic_regex" > /dev/null; then 7522 : 7523 else 7524 cat <<_LT_EOF 1>&2 7525 7526*** Warning: the command libtool uses to detect shared libraries, 7527*** $file_magic_cmd, produces output that libtool cannot recognize. 7528*** The result is that libtool may fail to recognize shared libraries 7529*** as such. This will affect the creation of libtool libraries that 7530*** depend on shared libraries, but programs linked with such libtool 7531*** libraries will work regardless of this problem. Nevertheless, you 7532*** may want to report the problem to your system manager and/or to 7533*** bug-libtool@gnu.org 7534 7535_LT_EOF 7536 fi ;; 7537 esac 7538 fi 7539 break 7540 fi 7541 done 7542 IFS="$lt_save_ifs" 7543 MAGIC_CMD="$lt_save_MAGIC_CMD" 7544 ;; 7545esac 7546fi 7547 7548MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7549if test -n "$MAGIC_CMD"; then 7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7551$as_echo "$MAGIC_CMD" >&6; } 7552else 7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7554$as_echo "no" >&6; } 7555fi 7556 7557 7558 7559 7560 7561if test -z "$lt_cv_path_MAGIC_CMD"; then 7562 if test -n "$ac_tool_prefix"; then 7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7564$as_echo_n "checking for file... " >&6; } 7565if ${lt_cv_path_MAGIC_CMD+:} false; then : 7566 $as_echo_n "(cached) " >&6 7567else 7568 case $MAGIC_CMD in 7569[\\/*] | ?:[\\/]*) 7570 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7571 ;; 7572*) 7573 lt_save_MAGIC_CMD="$MAGIC_CMD" 7574 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7575 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7576 for ac_dir in $ac_dummy; do 7577 IFS="$lt_save_ifs" 7578 test -z "$ac_dir" && ac_dir=. 7579 if test -f $ac_dir/file; then 7580 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7581 if test -n "$file_magic_test_file"; then 7582 case $deplibs_check_method in 7583 "file_magic "*) 7584 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7585 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7586 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7587 $EGREP "$file_magic_regex" > /dev/null; then 7588 : 7589 else 7590 cat <<_LT_EOF 1>&2 7591 7592*** Warning: the command libtool uses to detect shared libraries, 7593*** $file_magic_cmd, produces output that libtool cannot recognize. 7594*** The result is that libtool may fail to recognize shared libraries 7595*** as such. This will affect the creation of libtool libraries that 7596*** depend on shared libraries, but programs linked with such libtool 7597*** libraries will work regardless of this problem. Nevertheless, you 7598*** may want to report the problem to your system manager and/or to 7599*** bug-libtool@gnu.org 7600 7601_LT_EOF 7602 fi ;; 7603 esac 7604 fi 7605 break 7606 fi 7607 done 7608 IFS="$lt_save_ifs" 7609 MAGIC_CMD="$lt_save_MAGIC_CMD" 7610 ;; 7611esac 7612fi 7613 7614MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7615if test -n "$MAGIC_CMD"; then 7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7617$as_echo "$MAGIC_CMD" >&6; } 7618else 7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7620$as_echo "no" >&6; } 7621fi 7622 7623 7624 else 7625 MAGIC_CMD=: 7626 fi 7627fi 7628 7629 fi 7630 ;; 7631esac 7632 7633# Use C for the default configuration in the libtool script 7634 7635lt_save_CC="$CC" 7636ac_ext=c 7637ac_cpp='$CPP $CPPFLAGS' 7638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7640ac_compiler_gnu=$ac_cv_c_compiler_gnu 7641 7642 7643# Source file extension for C test sources. 7644ac_ext=c 7645 7646# Object file extension for compiled C test sources. 7647objext=o 7648objext=$objext 7649 7650# Code to be used in simple compile tests 7651lt_simple_compile_test_code="int some_variable = 0;" 7652 7653# Code to be used in simple link tests 7654lt_simple_link_test_code='int main(){return(0);}' 7655 7656 7657 7658 7659 7660 7661 7662# If no C compiler was specified, use CC. 7663LTCC=${LTCC-"$CC"} 7664 7665# If no C compiler flags were specified, use CFLAGS. 7666LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7667 7668# Allow CC to be a program name with arguments. 7669compiler=$CC 7670 7671# Save the default compiler, since it gets overwritten when the other 7672# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7673compiler_DEFAULT=$CC 7674 7675# save warnings/boilerplate of simple test code 7676ac_outfile=conftest.$ac_objext 7677echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7678eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7679_lt_compiler_boilerplate=`cat conftest.err` 7680$RM conftest* 7681 7682ac_outfile=conftest.$ac_objext 7683echo "$lt_simple_link_test_code" >conftest.$ac_ext 7684eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7685_lt_linker_boilerplate=`cat conftest.err` 7686$RM -r conftest* 7687 7688 7689if test -n "$compiler"; then 7690 7691lt_prog_compiler_no_builtin_flag= 7692 7693if test "$GCC" = yes; then 7694 case $cc_basename in 7695 nvcc*) 7696 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7697 *) 7698 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7699 esac 7700 7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7702$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7703if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7704 $as_echo_n "(cached) " >&6 7705else 7706 lt_cv_prog_compiler_rtti_exceptions=no 7707 ac_outfile=conftest.$ac_objext 7708 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7709 lt_compiler_flag="-fno-rtti -fno-exceptions" 7710 # Insert the option either (1) after the last *FLAGS variable, or 7711 # (2) before a word containing "conftest.", or (3) at the end. 7712 # Note that $ac_compile itself does not contain backslashes and begins 7713 # with a dollar sign (not a hyphen), so the echo should work correctly. 7714 # The option is referenced via a variable to avoid confusing sed. 7715 lt_compile=`echo "$ac_compile" | $SED \ 7716 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7717 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7718 -e 's:$: $lt_compiler_flag:'` 7719 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7720 (eval "$lt_compile" 2>conftest.err) 7721 ac_status=$? 7722 cat conftest.err >&5 7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7724 if (exit $ac_status) && test -s "$ac_outfile"; then 7725 # The compiler can only warn and ignore the option if not recognized 7726 # So say no if there are warnings other than the usual output. 7727 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7728 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7729 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7730 lt_cv_prog_compiler_rtti_exceptions=yes 7731 fi 7732 fi 7733 $RM conftest* 7734 7735fi 7736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7737$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7738 7739if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7740 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7741else 7742 : 7743fi 7744 7745fi 7746 7747 7748 7749 7750 7751 7752 lt_prog_compiler_wl= 7753lt_prog_compiler_pic= 7754lt_prog_compiler_static= 7755 7756 7757 if test "$GCC" = yes; then 7758 lt_prog_compiler_wl='-Wl,' 7759 lt_prog_compiler_static='-static' 7760 7761 case $host_os in 7762 aix*) 7763 # All AIX code is PIC. 7764 if test "$host_cpu" = ia64; then 7765 # AIX 5 now supports IA64 processor 7766 lt_prog_compiler_static='-Bstatic' 7767 fi 7768 ;; 7769 7770 amigaos*) 7771 case $host_cpu in 7772 powerpc) 7773 # see comment about AmigaOS4 .so support 7774 lt_prog_compiler_pic='-fPIC' 7775 ;; 7776 m68k) 7777 # FIXME: we need at least 68020 code to build shared libraries, but 7778 # adding the `-m68020' flag to GCC prevents building anything better, 7779 # like `-m68040'. 7780 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7781 ;; 7782 esac 7783 ;; 7784 7785 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7786 # PIC is the default for these OSes. 7787 ;; 7788 7789 mingw* | cygwin* | pw32* | os2* | cegcc*) 7790 # This hack is so that the source file can tell whether it is being 7791 # built for inclusion in a dll (and should export symbols for example). 7792 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7793 # (--disable-auto-import) libraries 7794 lt_prog_compiler_pic='-DDLL_EXPORT' 7795 ;; 7796 7797 darwin* | rhapsody*) 7798 # PIC is the default on this platform 7799 # Common symbols not allowed in MH_DYLIB files 7800 lt_prog_compiler_pic='-fno-common' 7801 ;; 7802 7803 haiku*) 7804 # PIC is the default for Haiku. 7805 # The "-static" flag exists, but is broken. 7806 lt_prog_compiler_static= 7807 ;; 7808 7809 hpux*) 7810 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7811 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7812 # sets the default TLS model and affects inlining. 7813 case $host_cpu in 7814 hppa*64*) 7815 # +Z the default 7816 ;; 7817 *) 7818 lt_prog_compiler_pic='-fPIC' 7819 ;; 7820 esac 7821 ;; 7822 7823 interix[3-9]*) 7824 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7825 # Instead, we relocate shared libraries at runtime. 7826 ;; 7827 7828 msdosdjgpp*) 7829 # Just because we use GCC doesn't mean we suddenly get shared libraries 7830 # on systems that don't support them. 7831 lt_prog_compiler_can_build_shared=no 7832 enable_shared=no 7833 ;; 7834 7835 *nto* | *qnx*) 7836 # QNX uses GNU C++, but need to define -shared option too, otherwise 7837 # it will coredump. 7838 lt_prog_compiler_pic='-fPIC -shared' 7839 ;; 7840 7841 sysv4*MP*) 7842 if test -d /usr/nec; then 7843 lt_prog_compiler_pic=-Kconform_pic 7844 fi 7845 ;; 7846 7847 *) 7848 lt_prog_compiler_pic='-fPIC' 7849 ;; 7850 esac 7851 7852 case $cc_basename in 7853 nvcc*) # Cuda Compiler Driver 2.2 7854 lt_prog_compiler_wl='-Xlinker ' 7855 lt_prog_compiler_pic='-Xcompiler -fPIC' 7856 ;; 7857 esac 7858 else 7859 # PORTME Check for flag to pass linker flags through the system compiler. 7860 case $host_os in 7861 aix*) 7862 lt_prog_compiler_wl='-Wl,' 7863 if test "$host_cpu" = ia64; then 7864 # AIX 5 now supports IA64 processor 7865 lt_prog_compiler_static='-Bstatic' 7866 else 7867 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7868 fi 7869 ;; 7870 7871 mingw* | cygwin* | pw32* | os2* | cegcc*) 7872 # This hack is so that the source file can tell whether it is being 7873 # built for inclusion in a dll (and should export symbols for example). 7874 lt_prog_compiler_pic='-DDLL_EXPORT' 7875 ;; 7876 7877 hpux9* | hpux10* | hpux11*) 7878 lt_prog_compiler_wl='-Wl,' 7879 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7880 # not for PA HP-UX. 7881 case $host_cpu in 7882 hppa*64*|ia64*) 7883 # +Z the default 7884 ;; 7885 *) 7886 lt_prog_compiler_pic='+Z' 7887 ;; 7888 esac 7889 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7890 lt_prog_compiler_static='${wl}-a ${wl}archive' 7891 ;; 7892 7893 irix5* | irix6* | nonstopux*) 7894 lt_prog_compiler_wl='-Wl,' 7895 # PIC (with -KPIC) is the default. 7896 lt_prog_compiler_static='-non_shared' 7897 ;; 7898 7899 linux* | k*bsd*-gnu | kopensolaris*-gnu) 7900 case $cc_basename in 7901 # old Intel for x86_64 which still supported -KPIC. 7902 ecc*) 7903 lt_prog_compiler_wl='-Wl,' 7904 lt_prog_compiler_pic='-KPIC' 7905 lt_prog_compiler_static='-static' 7906 ;; 7907 # icc used to be incompatible with GCC. 7908 # ICC 10 doesn't accept -KPIC any more. 7909 icc* | ifort*) 7910 lt_prog_compiler_wl='-Wl,' 7911 lt_prog_compiler_pic='-fPIC' 7912 lt_prog_compiler_static='-static' 7913 ;; 7914 # Lahey Fortran 8.1. 7915 lf95*) 7916 lt_prog_compiler_wl='-Wl,' 7917 lt_prog_compiler_pic='--shared' 7918 lt_prog_compiler_static='--static' 7919 ;; 7920 nagfor*) 7921 # NAG Fortran compiler 7922 lt_prog_compiler_wl='-Wl,-Wl,,' 7923 lt_prog_compiler_pic='-PIC' 7924 lt_prog_compiler_static='-Bstatic' 7925 ;; 7926 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 7927 # Portland Group compilers (*not* the Pentium gcc compiler, 7928 # which looks to be a dead project) 7929 lt_prog_compiler_wl='-Wl,' 7930 lt_prog_compiler_pic='-fpic' 7931 lt_prog_compiler_static='-Bstatic' 7932 ;; 7933 ccc*) 7934 lt_prog_compiler_wl='-Wl,' 7935 # All Alpha code is PIC. 7936 lt_prog_compiler_static='-non_shared' 7937 ;; 7938 xl* | bgxl* | bgf* | mpixl*) 7939 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 7940 lt_prog_compiler_wl='-Wl,' 7941 lt_prog_compiler_pic='-qpic' 7942 lt_prog_compiler_static='-qstaticlink' 7943 ;; 7944 *) 7945 case `$CC -V 2>&1 | sed 5q` in 7946 *Sun\ F* | *Sun*Fortran*) 7947 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7948 lt_prog_compiler_pic='-KPIC' 7949 lt_prog_compiler_static='-Bstatic' 7950 lt_prog_compiler_wl='' 7951 ;; 7952 *Sun\ C*) 7953 # Sun C 5.9 7954 lt_prog_compiler_pic='-KPIC' 7955 lt_prog_compiler_static='-Bstatic' 7956 lt_prog_compiler_wl='-Wl,' 7957 ;; 7958 esac 7959 ;; 7960 esac 7961 ;; 7962 7963 newsos6) 7964 lt_prog_compiler_pic='-KPIC' 7965 lt_prog_compiler_static='-Bstatic' 7966 ;; 7967 7968 *nto* | *qnx*) 7969 # QNX uses GNU C++, but need to define -shared option too, otherwise 7970 # it will coredump. 7971 lt_prog_compiler_pic='-fPIC -shared' 7972 ;; 7973 7974 osf3* | osf4* | osf5*) 7975 lt_prog_compiler_wl='-Wl,' 7976 # All OSF/1 code is PIC. 7977 lt_prog_compiler_static='-non_shared' 7978 ;; 7979 7980 rdos*) 7981 lt_prog_compiler_static='-non_shared' 7982 ;; 7983 7984 solaris*) 7985 lt_prog_compiler_pic='-KPIC' 7986 lt_prog_compiler_static='-Bstatic' 7987 case $cc_basename in 7988 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 7989 lt_prog_compiler_wl='-Qoption ld ';; 7990 *) 7991 lt_prog_compiler_wl='-Wl,';; 7992 esac 7993 ;; 7994 7995 sunos4*) 7996 lt_prog_compiler_wl='-Qoption ld ' 7997 lt_prog_compiler_pic='-PIC' 7998 lt_prog_compiler_static='-Bstatic' 7999 ;; 8000 8001 sysv4 | sysv4.2uw2* | sysv4.3*) 8002 lt_prog_compiler_wl='-Wl,' 8003 lt_prog_compiler_pic='-KPIC' 8004 lt_prog_compiler_static='-Bstatic' 8005 ;; 8006 8007 sysv4*MP*) 8008 if test -d /usr/nec ;then 8009 lt_prog_compiler_pic='-Kconform_pic' 8010 lt_prog_compiler_static='-Bstatic' 8011 fi 8012 ;; 8013 8014 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8015 lt_prog_compiler_wl='-Wl,' 8016 lt_prog_compiler_pic='-KPIC' 8017 lt_prog_compiler_static='-Bstatic' 8018 ;; 8019 8020 unicos*) 8021 lt_prog_compiler_wl='-Wl,' 8022 lt_prog_compiler_can_build_shared=no 8023 ;; 8024 8025 uts4*) 8026 lt_prog_compiler_pic='-pic' 8027 lt_prog_compiler_static='-Bstatic' 8028 ;; 8029 8030 *) 8031 lt_prog_compiler_can_build_shared=no 8032 ;; 8033 esac 8034 fi 8035 8036case $host_os in 8037 # For platforms which do not support PIC, -DPIC is meaningless: 8038 *djgpp*) 8039 lt_prog_compiler_pic= 8040 ;; 8041 *) 8042 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8043 ;; 8044esac 8045 8046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8047$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8048if ${lt_cv_prog_compiler_pic+:} false; then : 8049 $as_echo_n "(cached) " >&6 8050else 8051 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8052fi 8053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8054$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8055lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8056 8057# 8058# Check to make sure the PIC flag actually works. 8059# 8060if test -n "$lt_prog_compiler_pic"; then 8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8062$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8063if ${lt_cv_prog_compiler_pic_works+:} false; then : 8064 $as_echo_n "(cached) " >&6 8065else 8066 lt_cv_prog_compiler_pic_works=no 8067 ac_outfile=conftest.$ac_objext 8068 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8069 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8070 # Insert the option either (1) after the last *FLAGS variable, or 8071 # (2) before a word containing "conftest.", or (3) at the end. 8072 # Note that $ac_compile itself does not contain backslashes and begins 8073 # with a dollar sign (not a hyphen), so the echo should work correctly. 8074 # The option is referenced via a variable to avoid confusing sed. 8075 lt_compile=`echo "$ac_compile" | $SED \ 8076 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8077 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8078 -e 's:$: $lt_compiler_flag:'` 8079 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8080 (eval "$lt_compile" 2>conftest.err) 8081 ac_status=$? 8082 cat conftest.err >&5 8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8084 if (exit $ac_status) && test -s "$ac_outfile"; then 8085 # The compiler can only warn and ignore the option if not recognized 8086 # So say no if there are warnings other than the usual output. 8087 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8088 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8089 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8090 lt_cv_prog_compiler_pic_works=yes 8091 fi 8092 fi 8093 $RM conftest* 8094 8095fi 8096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8097$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8098 8099if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8100 case $lt_prog_compiler_pic in 8101 "" | " "*) ;; 8102 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8103 esac 8104else 8105 lt_prog_compiler_pic= 8106 lt_prog_compiler_can_build_shared=no 8107fi 8108 8109fi 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121# 8122# Check to make sure the static flag actually works. 8123# 8124wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8126$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8127if ${lt_cv_prog_compiler_static_works+:} false; then : 8128 $as_echo_n "(cached) " >&6 8129else 8130 lt_cv_prog_compiler_static_works=no 8131 save_LDFLAGS="$LDFLAGS" 8132 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8133 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8134 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8135 # The linker can only warn and ignore the option if not recognized 8136 # So say no if there are warnings 8137 if test -s conftest.err; then 8138 # Append any errors to the config.log. 8139 cat conftest.err 1>&5 8140 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8141 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8142 if diff conftest.exp conftest.er2 >/dev/null; then 8143 lt_cv_prog_compiler_static_works=yes 8144 fi 8145 else 8146 lt_cv_prog_compiler_static_works=yes 8147 fi 8148 fi 8149 $RM -r conftest* 8150 LDFLAGS="$save_LDFLAGS" 8151 8152fi 8153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8154$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8155 8156if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8157 : 8158else 8159 lt_prog_compiler_static= 8160fi 8161 8162 8163 8164 8165 8166 8167 8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8169$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8170if ${lt_cv_prog_compiler_c_o+:} false; then : 8171 $as_echo_n "(cached) " >&6 8172else 8173 lt_cv_prog_compiler_c_o=no 8174 $RM -r conftest 2>/dev/null 8175 mkdir conftest 8176 cd conftest 8177 mkdir out 8178 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8179 8180 lt_compiler_flag="-o out/conftest2.$ac_objext" 8181 # Insert the option either (1) after the last *FLAGS variable, or 8182 # (2) before a word containing "conftest.", or (3) at the end. 8183 # Note that $ac_compile itself does not contain backslashes and begins 8184 # with a dollar sign (not a hyphen), so the echo should work correctly. 8185 lt_compile=`echo "$ac_compile" | $SED \ 8186 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8188 -e 's:$: $lt_compiler_flag:'` 8189 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8190 (eval "$lt_compile" 2>out/conftest.err) 8191 ac_status=$? 8192 cat out/conftest.err >&5 8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8194 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8195 then 8196 # The compiler can only warn and ignore the option if not recognized 8197 # So say no if there are warnings 8198 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8199 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8200 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8201 lt_cv_prog_compiler_c_o=yes 8202 fi 8203 fi 8204 chmod u+w . 2>&5 8205 $RM conftest* 8206 # SGI C++ compiler will create directory out/ii_files/ for 8207 # template instantiation 8208 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8209 $RM out/* && rmdir out 8210 cd .. 8211 $RM -r conftest 8212 $RM conftest* 8213 8214fi 8215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8216$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8217 8218 8219 8220 8221 8222 8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8224$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8225if ${lt_cv_prog_compiler_c_o+:} false; then : 8226 $as_echo_n "(cached) " >&6 8227else 8228 lt_cv_prog_compiler_c_o=no 8229 $RM -r conftest 2>/dev/null 8230 mkdir conftest 8231 cd conftest 8232 mkdir out 8233 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8234 8235 lt_compiler_flag="-o out/conftest2.$ac_objext" 8236 # Insert the option either (1) after the last *FLAGS variable, or 8237 # (2) before a word containing "conftest.", or (3) at the end. 8238 # Note that $ac_compile itself does not contain backslashes and begins 8239 # with a dollar sign (not a hyphen), so the echo should work correctly. 8240 lt_compile=`echo "$ac_compile" | $SED \ 8241 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8242 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8243 -e 's:$: $lt_compiler_flag:'` 8244 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8245 (eval "$lt_compile" 2>out/conftest.err) 8246 ac_status=$? 8247 cat out/conftest.err >&5 8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8249 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8250 then 8251 # The compiler can only warn and ignore the option if not recognized 8252 # So say no if there are warnings 8253 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8254 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8255 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8256 lt_cv_prog_compiler_c_o=yes 8257 fi 8258 fi 8259 chmod u+w . 2>&5 8260 $RM conftest* 8261 # SGI C++ compiler will create directory out/ii_files/ for 8262 # template instantiation 8263 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8264 $RM out/* && rmdir out 8265 cd .. 8266 $RM -r conftest 8267 $RM conftest* 8268 8269fi 8270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8271$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8272 8273 8274 8275 8276hard_links="nottested" 8277if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8278 # do not overwrite the value of need_locks provided by the user 8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8280$as_echo_n "checking if we can lock with hard links... " >&6; } 8281 hard_links=yes 8282 $RM conftest* 8283 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8284 touch conftest.a 8285 ln conftest.a conftest.b 2>&5 || hard_links=no 8286 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8288$as_echo "$hard_links" >&6; } 8289 if test "$hard_links" = no; then 8290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8291$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8292 need_locks=warn 8293 fi 8294else 8295 need_locks=no 8296fi 8297 8298 8299 8300 8301 8302 8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8304$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8305 8306 runpath_var= 8307 allow_undefined_flag= 8308 always_export_symbols=no 8309 archive_cmds= 8310 archive_expsym_cmds= 8311 compiler_needs_object=no 8312 enable_shared_with_static_runtimes=no 8313 export_dynamic_flag_spec= 8314 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8315 hardcode_automatic=no 8316 hardcode_direct=no 8317 hardcode_direct_absolute=no 8318 hardcode_libdir_flag_spec= 8319 hardcode_libdir_flag_spec_ld= 8320 hardcode_libdir_separator= 8321 hardcode_minus_L=no 8322 hardcode_shlibpath_var=unsupported 8323 inherit_rpath=no 8324 link_all_deplibs=unknown 8325 module_cmds= 8326 module_expsym_cmds= 8327 old_archive_from_new_cmds= 8328 old_archive_from_expsyms_cmds= 8329 thread_safe_flag_spec= 8330 whole_archive_flag_spec= 8331 # include_expsyms should be a list of space-separated symbols to be *always* 8332 # included in the symbol list 8333 include_expsyms= 8334 # exclude_expsyms can be an extended regexp of symbols to exclude 8335 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8336 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8337 # as well as any symbol that contains `d'. 8338 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8339 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8340 # platforms (ab)use it in PIC code, but their linkers get confused if 8341 # the symbol is explicitly referenced. Since portable code cannot 8342 # rely on this symbol name, it's probably fine to never include it in 8343 # preloaded symbol tables. 8344 # Exclude shared library initialization/finalization symbols. 8345 extract_expsyms_cmds= 8346 8347 case $host_os in 8348 cygwin* | mingw* | pw32* | cegcc*) 8349 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8350 # When not using gcc, we currently assume that we are using 8351 # Microsoft Visual C++. 8352 if test "$GCC" != yes; then 8353 with_gnu_ld=no 8354 fi 8355 ;; 8356 interix*) 8357 # we just hope/assume this is gcc and not c89 (= MSVC++) 8358 with_gnu_ld=yes 8359 ;; 8360 openbsd*) 8361 with_gnu_ld=no 8362 ;; 8363 esac 8364 8365 ld_shlibs=yes 8366 8367 # On some targets, GNU ld is compatible enough with the native linker 8368 # that we're better off using the native interface for both. 8369 lt_use_gnu_ld_interface=no 8370 if test "$with_gnu_ld" = yes; then 8371 case $host_os in 8372 aix*) 8373 # The AIX port of GNU ld has always aspired to compatibility 8374 # with the native linker. However, as the warning in the GNU ld 8375 # block says, versions before 2.19.5* couldn't really create working 8376 # shared libraries, regardless of the interface used. 8377 case `$LD -v 2>&1` in 8378 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8379 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8380 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8381 *) 8382 lt_use_gnu_ld_interface=yes 8383 ;; 8384 esac 8385 ;; 8386 *) 8387 lt_use_gnu_ld_interface=yes 8388 ;; 8389 esac 8390 fi 8391 8392 if test "$lt_use_gnu_ld_interface" = yes; then 8393 # If archive_cmds runs LD, not CC, wlarc should be empty 8394 wlarc='${wl}' 8395 8396 # Set some defaults for GNU ld with shared library support. These 8397 # are reset later if shared libraries are not supported. Putting them 8398 # here allows them to be overridden if necessary. 8399 runpath_var=LD_RUN_PATH 8400 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8401 export_dynamic_flag_spec='${wl}--export-dynamic' 8402 # ancient GNU ld didn't support --whole-archive et. al. 8403 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8404 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8405 else 8406 whole_archive_flag_spec= 8407 fi 8408 supports_anon_versioning=no 8409 case `$LD -v 2>&1` in 8410 *GNU\ gold*) supports_anon_versioning=yes ;; 8411 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8412 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8413 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8414 *\ 2.11.*) ;; # other 2.11 versions 8415 *) supports_anon_versioning=yes ;; 8416 esac 8417 8418 # See if GNU ld supports shared libraries. 8419 case $host_os in 8420 aix[3-9]*) 8421 # On AIX/PPC, the GNU linker is very broken 8422 if test "$host_cpu" != ia64; then 8423 ld_shlibs=no 8424 cat <<_LT_EOF 1>&2 8425 8426*** Warning: the GNU linker, at least up to release 2.19, is reported 8427*** to be unable to reliably create shared libraries on AIX. 8428*** Therefore, libtool is disabling shared libraries support. If you 8429*** really care for shared libraries, you may want to install binutils 8430*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8431*** You will then need to restart the configuration process. 8432 8433_LT_EOF 8434 fi 8435 ;; 8436 8437 amigaos*) 8438 case $host_cpu in 8439 powerpc) 8440 # see comment about AmigaOS4 .so support 8441 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8442 archive_expsym_cmds='' 8443 ;; 8444 m68k) 8445 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)' 8446 hardcode_libdir_flag_spec='-L$libdir' 8447 hardcode_minus_L=yes 8448 ;; 8449 esac 8450 ;; 8451 8452 beos*) 8453 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8454 allow_undefined_flag=unsupported 8455 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8456 # support --undefined. This deserves some investigation. FIXME 8457 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8458 else 8459 ld_shlibs=no 8460 fi 8461 ;; 8462 8463 cygwin* | mingw* | pw32* | cegcc*) 8464 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8465 # as there is no search path for DLLs. 8466 hardcode_libdir_flag_spec='-L$libdir' 8467 export_dynamic_flag_spec='${wl}--export-all-symbols' 8468 allow_undefined_flag=unsupported 8469 always_export_symbols=no 8470 enable_shared_with_static_runtimes=yes 8471 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' 8472 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8473 8474 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8475 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8476 # If the export-symbols file already is a .def file (1st line 8477 # is EXPORTS), use it as is; otherwise, prepend... 8478 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8479 cp $export_symbols $output_objdir/$soname.def; 8480 else 8481 echo EXPORTS > $output_objdir/$soname.def; 8482 cat $export_symbols >> $output_objdir/$soname.def; 8483 fi~ 8484 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8485 else 8486 ld_shlibs=no 8487 fi 8488 ;; 8489 8490 haiku*) 8491 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8492 link_all_deplibs=yes 8493 ;; 8494 8495 interix[3-9]*) 8496 hardcode_direct=no 8497 hardcode_shlibpath_var=no 8498 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8499 export_dynamic_flag_spec='${wl}-E' 8500 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8501 # Instead, shared libraries are loaded at an image base (0x10000000 by 8502 # default) and relocated if they conflict, which is a slow very memory 8503 # consuming and fragmenting process. To avoid this, we pick a random, 8504 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8505 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8506 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8507 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' 8508 ;; 8509 8510 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8511 tmp_diet=no 8512 if test "$host_os" = linux-dietlibc; then 8513 case $cc_basename in 8514 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8515 esac 8516 fi 8517 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8518 && test "$tmp_diet" = no 8519 then 8520 tmp_addflag=' $pic_flag' 8521 tmp_sharedflag='-shared' 8522 case $cc_basename,$host_cpu in 8523 pgcc*) # Portland Group C compiler 8524 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' 8525 tmp_addflag=' $pic_flag' 8526 ;; 8527 pgf77* | pgf90* | pgf95* | pgfortran*) 8528 # Portland Group f77 and f90 compilers 8529 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' 8530 tmp_addflag=' $pic_flag -Mnomain' ;; 8531 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8532 tmp_addflag=' -i_dynamic' ;; 8533 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8534 tmp_addflag=' -i_dynamic -nofor_main' ;; 8535 ifc* | ifort*) # Intel Fortran compiler 8536 tmp_addflag=' -nofor_main' ;; 8537 lf95*) # Lahey Fortran 8.1 8538 whole_archive_flag_spec= 8539 tmp_sharedflag='--shared' ;; 8540 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8541 tmp_sharedflag='-qmkshrobj' 8542 tmp_addflag= ;; 8543 nvcc*) # Cuda Compiler Driver 2.2 8544 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' 8545 compiler_needs_object=yes 8546 ;; 8547 esac 8548 case `$CC -V 2>&1 | sed 5q` in 8549 *Sun\ C*) # Sun C 5.9 8550 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' 8551 compiler_needs_object=yes 8552 tmp_sharedflag='-G' ;; 8553 *Sun\ F*) # Sun Fortran 8.3 8554 tmp_sharedflag='-G' ;; 8555 esac 8556 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8557 8558 if test "x$supports_anon_versioning" = xyes; then 8559 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8560 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8561 echo "local: *; };" >> $output_objdir/$libname.ver~ 8562 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8563 fi 8564 8565 case $cc_basename in 8566 xlf* | bgf* | bgxlf* | mpixlf*) 8567 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8568 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8569 hardcode_libdir_flag_spec= 8570 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8571 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8572 if test "x$supports_anon_versioning" = xyes; then 8573 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8574 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8575 echo "local: *; };" >> $output_objdir/$libname.ver~ 8576 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8577 fi 8578 ;; 8579 esac 8580 else 8581 ld_shlibs=no 8582 fi 8583 ;; 8584 8585 netbsd*) 8586 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8587 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8588 wlarc= 8589 else 8590 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8591 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8592 fi 8593 ;; 8594 8595 solaris*) 8596 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8597 ld_shlibs=no 8598 cat <<_LT_EOF 1>&2 8599 8600*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8601*** create shared libraries on Solaris systems. Therefore, libtool 8602*** is disabling shared libraries support. We urge you to upgrade GNU 8603*** binutils to release 2.9.1 or newer. Another option is to modify 8604*** your PATH or compiler configuration so that the native linker is 8605*** used, and then restart. 8606 8607_LT_EOF 8608 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8609 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8610 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8611 else 8612 ld_shlibs=no 8613 fi 8614 ;; 8615 8616 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8617 case `$LD -v 2>&1` in 8618 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8619 ld_shlibs=no 8620 cat <<_LT_EOF 1>&2 8621 8622*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8623*** reliably create shared libraries on SCO systems. Therefore, libtool 8624*** is disabling shared libraries support. We urge you to upgrade GNU 8625*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8626*** your PATH or compiler configuration so that the native linker is 8627*** used, and then restart. 8628 8629_LT_EOF 8630 ;; 8631 *) 8632 # For security reasons, it is highly recommended that you always 8633 # use absolute paths for naming shared libraries, and exclude the 8634 # DT_RUNPATH tag from executables and libraries. But doing so 8635 # requires that you compile everything twice, which is a pain. 8636 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8637 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8638 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8639 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8640 else 8641 ld_shlibs=no 8642 fi 8643 ;; 8644 esac 8645 ;; 8646 8647 sunos4*) 8648 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8649 wlarc= 8650 hardcode_direct=yes 8651 hardcode_shlibpath_var=no 8652 ;; 8653 8654 *) 8655 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8656 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8657 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8658 else 8659 ld_shlibs=no 8660 fi 8661 ;; 8662 esac 8663 8664 if test "$ld_shlibs" = no; then 8665 runpath_var= 8666 hardcode_libdir_flag_spec= 8667 export_dynamic_flag_spec= 8668 whole_archive_flag_spec= 8669 fi 8670 else 8671 # PORTME fill in a description of your system's linker (not GNU ld) 8672 case $host_os in 8673 aix3*) 8674 allow_undefined_flag=unsupported 8675 always_export_symbols=yes 8676 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' 8677 # Note: this linker hardcodes the directories in LIBPATH if there 8678 # are no directories specified by -L. 8679 hardcode_minus_L=yes 8680 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8681 # Neither direct hardcoding nor static linking is supported with a 8682 # broken collect2. 8683 hardcode_direct=unsupported 8684 fi 8685 ;; 8686 8687 aix[4-9]*) 8688 if test "$host_cpu" = ia64; then 8689 # On IA64, the linker does run time linking by default, so we don't 8690 # have to do anything special. 8691 aix_use_runtimelinking=no 8692 exp_sym_flag='-Bexport' 8693 no_entry_flag="" 8694 else 8695 # If we're using GNU nm, then we don't want the "-C" option. 8696 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8697 # Also, AIX nm treats weak defined symbols like other global 8698 # defined symbols, whereas GNU nm marks them as "W". 8699 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8700 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8701 else 8702 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8703 fi 8704 aix_use_runtimelinking=no 8705 8706 # Test if we are trying to use run time linking or normal 8707 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8708 # need to do runtime linking. 8709 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8710 for ld_flag in $LDFLAGS; do 8711 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8712 aix_use_runtimelinking=yes 8713 break 8714 fi 8715 done 8716 ;; 8717 esac 8718 8719 exp_sym_flag='-bexport' 8720 no_entry_flag='-bnoentry' 8721 fi 8722 8723 # When large executables or shared objects are built, AIX ld can 8724 # have problems creating the table of contents. If linking a library 8725 # or program results in "error TOC overflow" add -mminimal-toc to 8726 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8727 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8728 8729 archive_cmds='' 8730 hardcode_direct=yes 8731 hardcode_direct_absolute=yes 8732 hardcode_libdir_separator=':' 8733 link_all_deplibs=yes 8734 file_list_spec='${wl}-f,' 8735 8736 if test "$GCC" = yes; then 8737 case $host_os in aix4.[012]|aix4.[012].*) 8738 # We only want to do this on AIX 4.2 and lower, the check 8739 # below for broken collect2 doesn't work under 4.3+ 8740 collect2name=`${CC} -print-prog-name=collect2` 8741 if test -f "$collect2name" && 8742 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8743 then 8744 # We have reworked collect2 8745 : 8746 else 8747 # We have old collect2 8748 hardcode_direct=unsupported 8749 # It fails to find uninstalled libraries when the uninstalled 8750 # path is not listed in the libpath. Setting hardcode_minus_L 8751 # to unsupported forces relinking 8752 hardcode_minus_L=yes 8753 hardcode_libdir_flag_spec='-L$libdir' 8754 hardcode_libdir_separator= 8755 fi 8756 ;; 8757 esac 8758 shared_flag='-shared' 8759 if test "$aix_use_runtimelinking" = yes; then 8760 shared_flag="$shared_flag "'${wl}-G' 8761 fi 8762 else 8763 # not using gcc 8764 if test "$host_cpu" = ia64; then 8765 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8766 # chokes on -Wl,-G. The following line is correct: 8767 shared_flag='-G' 8768 else 8769 if test "$aix_use_runtimelinking" = yes; then 8770 shared_flag='${wl}-G' 8771 else 8772 shared_flag='${wl}-bM:SRE' 8773 fi 8774 fi 8775 fi 8776 8777 export_dynamic_flag_spec='${wl}-bexpall' 8778 # It seems that -bexpall does not export symbols beginning with 8779 # underscore (_), so it is better to generate a list of symbols to export. 8780 always_export_symbols=yes 8781 if test "$aix_use_runtimelinking" = yes; then 8782 # Warning - without using the other runtime loading flags (-brtl), 8783 # -berok will link without error, but may produce a broken library. 8784 allow_undefined_flag='-berok' 8785 # Determine the default libpath from the value encoded in an 8786 # empty executable. 8787 if test "${lt_cv_aix_libpath+set}" = set; then 8788 aix_libpath=$lt_cv_aix_libpath 8789else 8790 if ${lt_cv_aix_libpath_+:} false; then : 8791 $as_echo_n "(cached) " >&6 8792else 8793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8794/* end confdefs.h. */ 8795 8796int 8797main () 8798{ 8799 8800 ; 8801 return 0; 8802} 8803_ACEOF 8804if ac_fn_c_try_link "$LINENO"; then : 8805 8806 lt_aix_libpath_sed=' 8807 /Import File Strings/,/^$/ { 8808 /^0/ { 8809 s/^0 *\([^ ]*\) *$/\1/ 8810 p 8811 } 8812 }' 8813 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8814 # Check for a 64-bit object if we didn't find anything. 8815 if test -z "$lt_cv_aix_libpath_"; then 8816 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8817 fi 8818fi 8819rm -f core conftest.err conftest.$ac_objext \ 8820 conftest$ac_exeext conftest.$ac_ext 8821 if test -z "$lt_cv_aix_libpath_"; then 8822 lt_cv_aix_libpath_="/usr/lib:/lib" 8823 fi 8824 8825fi 8826 8827 aix_libpath=$lt_cv_aix_libpath_ 8828fi 8829 8830 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8831 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 8832 else 8833 if test "$host_cpu" = ia64; then 8834 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8835 allow_undefined_flag="-z nodefs" 8836 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" 8837 else 8838 # Determine the default libpath from the value encoded in an 8839 # empty executable. 8840 if test "${lt_cv_aix_libpath+set}" = set; then 8841 aix_libpath=$lt_cv_aix_libpath 8842else 8843 if ${lt_cv_aix_libpath_+:} false; then : 8844 $as_echo_n "(cached) " >&6 8845else 8846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8847/* end confdefs.h. */ 8848 8849int 8850main () 8851{ 8852 8853 ; 8854 return 0; 8855} 8856_ACEOF 8857if ac_fn_c_try_link "$LINENO"; then : 8858 8859 lt_aix_libpath_sed=' 8860 /Import File Strings/,/^$/ { 8861 /^0/ { 8862 s/^0 *\([^ ]*\) *$/\1/ 8863 p 8864 } 8865 }' 8866 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8867 # Check for a 64-bit object if we didn't find anything. 8868 if test -z "$lt_cv_aix_libpath_"; then 8869 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8870 fi 8871fi 8872rm -f core conftest.err conftest.$ac_objext \ 8873 conftest$ac_exeext conftest.$ac_ext 8874 if test -z "$lt_cv_aix_libpath_"; then 8875 lt_cv_aix_libpath_="/usr/lib:/lib" 8876 fi 8877 8878fi 8879 8880 aix_libpath=$lt_cv_aix_libpath_ 8881fi 8882 8883 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8884 # Warning - without using the other run time loading flags, 8885 # -berok will link without error, but may produce a broken library. 8886 no_undefined_flag=' ${wl}-bernotok' 8887 allow_undefined_flag=' ${wl}-berok' 8888 if test "$with_gnu_ld" = yes; then 8889 # We only use this code for GNU lds that support --whole-archive. 8890 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 8891 else 8892 # Exported symbols can be pulled into shared objects from archives 8893 whole_archive_flag_spec='$convenience' 8894 fi 8895 archive_cmds_need_lc=yes 8896 # This is similar to how AIX traditionally builds its shared libraries. 8897 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 8898 fi 8899 fi 8900 ;; 8901 8902 amigaos*) 8903 case $host_cpu in 8904 powerpc) 8905 # see comment about AmigaOS4 .so support 8906 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8907 archive_expsym_cmds='' 8908 ;; 8909 m68k) 8910 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)' 8911 hardcode_libdir_flag_spec='-L$libdir' 8912 hardcode_minus_L=yes 8913 ;; 8914 esac 8915 ;; 8916 8917 bsdi[45]*) 8918 export_dynamic_flag_spec=-rdynamic 8919 ;; 8920 8921 cygwin* | mingw* | pw32* | cegcc*) 8922 # When not using gcc, we currently assume that we are using 8923 # Microsoft Visual C++. 8924 # hardcode_libdir_flag_spec is actually meaningless, as there is 8925 # no search path for DLLs. 8926 case $cc_basename in 8927 cl*) 8928 # Native MSVC 8929 hardcode_libdir_flag_spec=' ' 8930 allow_undefined_flag=unsupported 8931 always_export_symbols=yes 8932 file_list_spec='@' 8933 # Tell ltmain to make .lib files, not .a files. 8934 libext=lib 8935 # Tell ltmain to make .dll files, not .so files. 8936 shrext_cmds=".dll" 8937 # FIXME: Setting linknames here is a bad hack. 8938 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 8939 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8940 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 8941 else 8942 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 8943 fi~ 8944 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 8945 linknames=' 8946 # The linker will not automatically build a static lib if we build a DLL. 8947 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 8948 enable_shared_with_static_runtimes=yes 8949 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8950 # Don't use ranlib 8951 old_postinstall_cmds='chmod 644 $oldlib' 8952 postlink_cmds='lt_outputfile="@OUTPUT@"~ 8953 lt_tool_outputfile="@TOOL_OUTPUT@"~ 8954 case $lt_outputfile in 8955 *.exe|*.EXE) ;; 8956 *) 8957 lt_outputfile="$lt_outputfile.exe" 8958 lt_tool_outputfile="$lt_tool_outputfile.exe" 8959 ;; 8960 esac~ 8961 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 8962 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 8963 $RM "$lt_outputfile.manifest"; 8964 fi' 8965 ;; 8966 *) 8967 # Assume MSVC wrapper 8968 hardcode_libdir_flag_spec=' ' 8969 allow_undefined_flag=unsupported 8970 # Tell ltmain to make .lib files, not .a files. 8971 libext=lib 8972 # Tell ltmain to make .dll files, not .so files. 8973 shrext_cmds=".dll" 8974 # FIXME: Setting linknames here is a bad hack. 8975 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 8976 # The linker will automatically build a .lib file if we build a DLL. 8977 old_archive_from_new_cmds='true' 8978 # FIXME: Should let the user specify the lib program. 8979 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8980 enable_shared_with_static_runtimes=yes 8981 ;; 8982 esac 8983 ;; 8984 8985 darwin* | rhapsody*) 8986 8987 8988 archive_cmds_need_lc=no 8989 hardcode_direct=no 8990 hardcode_automatic=yes 8991 hardcode_shlibpath_var=unsupported 8992 if test "$lt_cv_ld_force_load" = "yes"; then 8993 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\"`' 8994 else 8995 whole_archive_flag_spec='' 8996 fi 8997 link_all_deplibs=yes 8998 allow_undefined_flag="$_lt_dar_allow_undefined" 8999 case $cc_basename in 9000 ifort*) _lt_dar_can_shared=yes ;; 9001 *) _lt_dar_can_shared=$GCC ;; 9002 esac 9003 if test "$_lt_dar_can_shared" = "yes"; then 9004 output_verbose_link_cmd=func_echo_all 9005 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9006 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9007 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}" 9008 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}" 9009 9010 else 9011 ld_shlibs=no 9012 fi 9013 9014 ;; 9015 9016 dgux*) 9017 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9018 hardcode_libdir_flag_spec='-L$libdir' 9019 hardcode_shlibpath_var=no 9020 ;; 9021 9022 freebsd1*) 9023 ld_shlibs=no 9024 ;; 9025 9026 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9027 # support. Future versions do this automatically, but an explicit c++rt0.o 9028 # does not break anything, and helps significantly (at the cost of a little 9029 # extra space). 9030 freebsd2.2*) 9031 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9032 hardcode_libdir_flag_spec='-R$libdir' 9033 hardcode_direct=yes 9034 hardcode_shlibpath_var=no 9035 ;; 9036 9037 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9038 freebsd2*) 9039 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9040 hardcode_direct=yes 9041 hardcode_minus_L=yes 9042 hardcode_shlibpath_var=no 9043 ;; 9044 9045 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9046 freebsd* | dragonfly*) 9047 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9048 hardcode_libdir_flag_spec='-R$libdir' 9049 hardcode_direct=yes 9050 hardcode_shlibpath_var=no 9051 ;; 9052 9053 hpux9*) 9054 if test "$GCC" = yes; then 9055 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9056 else 9057 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9058 fi 9059 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9060 hardcode_libdir_separator=: 9061 hardcode_direct=yes 9062 9063 # hardcode_minus_L: Not really in the search PATH, 9064 # but as the default location of the library. 9065 hardcode_minus_L=yes 9066 export_dynamic_flag_spec='${wl}-E' 9067 ;; 9068 9069 hpux10*) 9070 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9071 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9072 else 9073 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9074 fi 9075 if test "$with_gnu_ld" = no; then 9076 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9077 hardcode_libdir_flag_spec_ld='+b $libdir' 9078 hardcode_libdir_separator=: 9079 hardcode_direct=yes 9080 hardcode_direct_absolute=yes 9081 export_dynamic_flag_spec='${wl}-E' 9082 # hardcode_minus_L: Not really in the search PATH, 9083 # but as the default location of the library. 9084 hardcode_minus_L=yes 9085 fi 9086 ;; 9087 9088 hpux11*) 9089 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9090 case $host_cpu in 9091 hppa*64*) 9092 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9093 ;; 9094 ia64*) 9095 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9096 ;; 9097 *) 9098 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9099 ;; 9100 esac 9101 else 9102 case $host_cpu in 9103 hppa*64*) 9104 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9105 ;; 9106 ia64*) 9107 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9108 ;; 9109 *) 9110 9111 # Older versions of the 11.00 compiler do not understand -b yet 9112 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9114$as_echo_n "checking if $CC understands -b... " >&6; } 9115if ${lt_cv_prog_compiler__b+:} false; then : 9116 $as_echo_n "(cached) " >&6 9117else 9118 lt_cv_prog_compiler__b=no 9119 save_LDFLAGS="$LDFLAGS" 9120 LDFLAGS="$LDFLAGS -b" 9121 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9122 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9123 # The linker can only warn and ignore the option if not recognized 9124 # So say no if there are warnings 9125 if test -s conftest.err; then 9126 # Append any errors to the config.log. 9127 cat conftest.err 1>&5 9128 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9129 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9130 if diff conftest.exp conftest.er2 >/dev/null; then 9131 lt_cv_prog_compiler__b=yes 9132 fi 9133 else 9134 lt_cv_prog_compiler__b=yes 9135 fi 9136 fi 9137 $RM -r conftest* 9138 LDFLAGS="$save_LDFLAGS" 9139 9140fi 9141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9142$as_echo "$lt_cv_prog_compiler__b" >&6; } 9143 9144if test x"$lt_cv_prog_compiler__b" = xyes; then 9145 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9146else 9147 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9148fi 9149 9150 ;; 9151 esac 9152 fi 9153 if test "$with_gnu_ld" = no; then 9154 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9155 hardcode_libdir_separator=: 9156 9157 case $host_cpu in 9158 hppa*64*|ia64*) 9159 hardcode_direct=no 9160 hardcode_shlibpath_var=no 9161 ;; 9162 *) 9163 hardcode_direct=yes 9164 hardcode_direct_absolute=yes 9165 export_dynamic_flag_spec='${wl}-E' 9166 9167 # hardcode_minus_L: Not really in the search PATH, 9168 # but as the default location of the library. 9169 hardcode_minus_L=yes 9170 ;; 9171 esac 9172 fi 9173 ;; 9174 9175 irix5* | irix6* | nonstopux*) 9176 if test "$GCC" = yes; then 9177 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' 9178 # Try to use the -exported_symbol ld option, if it does not 9179 # work, assume that -exports_file does not work either and 9180 # implicitly export all symbols. 9181 # This should be the same for all languages, so no per-tag cache variable. 9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9183$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9184if ${lt_cv_irix_exported_symbol+:} false; then : 9185 $as_echo_n "(cached) " >&6 9186else 9187 save_LDFLAGS="$LDFLAGS" 9188 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9190/* end confdefs.h. */ 9191int foo (void) { return 0; } 9192_ACEOF 9193if ac_fn_c_try_link "$LINENO"; then : 9194 lt_cv_irix_exported_symbol=yes 9195else 9196 lt_cv_irix_exported_symbol=no 9197fi 9198rm -f core conftest.err conftest.$ac_objext \ 9199 conftest$ac_exeext conftest.$ac_ext 9200 LDFLAGS="$save_LDFLAGS" 9201fi 9202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9203$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9204 if test "$lt_cv_irix_exported_symbol" = yes; then 9205 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' 9206 fi 9207 else 9208 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' 9209 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' 9210 fi 9211 archive_cmds_need_lc='no' 9212 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9213 hardcode_libdir_separator=: 9214 inherit_rpath=yes 9215 link_all_deplibs=yes 9216 ;; 9217 9218 netbsd*) 9219 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9220 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9221 else 9222 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9223 fi 9224 hardcode_libdir_flag_spec='-R$libdir' 9225 hardcode_direct=yes 9226 hardcode_shlibpath_var=no 9227 ;; 9228 9229 newsos6) 9230 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9231 hardcode_direct=yes 9232 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9233 hardcode_libdir_separator=: 9234 hardcode_shlibpath_var=no 9235 ;; 9236 9237 *nto* | *qnx*) 9238 ;; 9239 9240 openbsd*) 9241 if test -f /usr/libexec/ld.so; then 9242 hardcode_direct=yes 9243 hardcode_shlibpath_var=no 9244 hardcode_direct_absolute=yes 9245 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9246 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9247 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9248 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9249 export_dynamic_flag_spec='${wl}-E' 9250 else 9251 case $host_os in 9252 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9253 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9254 hardcode_libdir_flag_spec='-R$libdir' 9255 ;; 9256 *) 9257 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9258 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9259 ;; 9260 esac 9261 fi 9262 else 9263 ld_shlibs=no 9264 fi 9265 ;; 9266 9267 os2*) 9268 hardcode_libdir_flag_spec='-L$libdir' 9269 hardcode_minus_L=yes 9270 allow_undefined_flag=unsupported 9271 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 9272 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9273 ;; 9274 9275 osf3*) 9276 if test "$GCC" = yes; then 9277 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9278 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' 9279 else 9280 allow_undefined_flag=' -expect_unresolved \*' 9281 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' 9282 fi 9283 archive_cmds_need_lc='no' 9284 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9285 hardcode_libdir_separator=: 9286 ;; 9287 9288 osf4* | osf5*) # as osf3* with the addition of -msym flag 9289 if test "$GCC" = yes; then 9290 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9291 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' 9292 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9293 else 9294 allow_undefined_flag=' -expect_unresolved \*' 9295 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' 9296 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~ 9297 $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' 9298 9299 # Both c and cxx compiler support -rpath directly 9300 hardcode_libdir_flag_spec='-rpath $libdir' 9301 fi 9302 archive_cmds_need_lc='no' 9303 hardcode_libdir_separator=: 9304 ;; 9305 9306 solaris*) 9307 no_undefined_flag=' -z defs' 9308 if test "$GCC" = yes; then 9309 wlarc='${wl}' 9310 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9311 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9312 $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' 9313 else 9314 case `$CC -V 2>&1` in 9315 *"Compilers 5.0"*) 9316 wlarc='' 9317 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9318 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9319 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9320 ;; 9321 *) 9322 wlarc='${wl}' 9323 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9324 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9325 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9326 ;; 9327 esac 9328 fi 9329 hardcode_libdir_flag_spec='-R$libdir' 9330 hardcode_shlibpath_var=no 9331 case $host_os in 9332 solaris2.[0-5] | solaris2.[0-5].*) ;; 9333 *) 9334 # The compiler driver will combine and reorder linker options, 9335 # but understands `-z linker_flag'. GCC discards it without `$wl', 9336 # but is careful enough not to reorder. 9337 # Supported since Solaris 2.6 (maybe 2.5.1?) 9338 if test "$GCC" = yes; then 9339 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9340 else 9341 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9342 fi 9343 ;; 9344 esac 9345 link_all_deplibs=yes 9346 ;; 9347 9348 sunos4*) 9349 if test "x$host_vendor" = xsequent; then 9350 # Use $CC to link under sequent, because it throws in some extra .o 9351 # files that make .init and .fini sections work. 9352 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9353 else 9354 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9355 fi 9356 hardcode_libdir_flag_spec='-L$libdir' 9357 hardcode_direct=yes 9358 hardcode_minus_L=yes 9359 hardcode_shlibpath_var=no 9360 ;; 9361 9362 sysv4) 9363 case $host_vendor in 9364 sni) 9365 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9366 hardcode_direct=yes # is this really true??? 9367 ;; 9368 siemens) 9369 ## LD is ld it makes a PLAMLIB 9370 ## CC just makes a GrossModule. 9371 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9372 reload_cmds='$CC -r -o $output$reload_objs' 9373 hardcode_direct=no 9374 ;; 9375 motorola) 9376 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9377 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9378 ;; 9379 esac 9380 runpath_var='LD_RUN_PATH' 9381 hardcode_shlibpath_var=no 9382 ;; 9383 9384 sysv4.3*) 9385 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9386 hardcode_shlibpath_var=no 9387 export_dynamic_flag_spec='-Bexport' 9388 ;; 9389 9390 sysv4*MP*) 9391 if test -d /usr/nec; then 9392 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9393 hardcode_shlibpath_var=no 9394 runpath_var=LD_RUN_PATH 9395 hardcode_runpath_var=yes 9396 ld_shlibs=yes 9397 fi 9398 ;; 9399 9400 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9401 no_undefined_flag='${wl}-z,text' 9402 archive_cmds_need_lc=no 9403 hardcode_shlibpath_var=no 9404 runpath_var='LD_RUN_PATH' 9405 9406 if test "$GCC" = yes; then 9407 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9408 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9409 else 9410 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9411 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9412 fi 9413 ;; 9414 9415 sysv5* | sco3.2v5* | sco5v6*) 9416 # Note: We can NOT use -z defs as we might desire, because we do not 9417 # link with -lc, and that would cause any symbols used from libc to 9418 # always be unresolved, which means just about no library would 9419 # ever link correctly. If we're not using GNU ld we use -z text 9420 # though, which does catch some bad symbols but isn't as heavy-handed 9421 # as -z defs. 9422 no_undefined_flag='${wl}-z,text' 9423 allow_undefined_flag='${wl}-z,nodefs' 9424 archive_cmds_need_lc=no 9425 hardcode_shlibpath_var=no 9426 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9427 hardcode_libdir_separator=':' 9428 link_all_deplibs=yes 9429 export_dynamic_flag_spec='${wl}-Bexport' 9430 runpath_var='LD_RUN_PATH' 9431 9432 if test "$GCC" = yes; then 9433 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9434 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9435 else 9436 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9437 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9438 fi 9439 ;; 9440 9441 uts4*) 9442 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9443 hardcode_libdir_flag_spec='-L$libdir' 9444 hardcode_shlibpath_var=no 9445 ;; 9446 9447 *) 9448 ld_shlibs=no 9449 ;; 9450 esac 9451 9452 if test x$host_vendor = xsni; then 9453 case $host in 9454 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9455 export_dynamic_flag_spec='${wl}-Blargedynsym' 9456 ;; 9457 esac 9458 fi 9459 fi 9460 9461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9462$as_echo "$ld_shlibs" >&6; } 9463test "$ld_shlibs" = no && can_build_shared=no 9464 9465with_gnu_ld=$with_gnu_ld 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481# 9482# Do we need to explicitly link libc? 9483# 9484case "x$archive_cmds_need_lc" in 9485x|xyes) 9486 # Assume -lc should be added 9487 archive_cmds_need_lc=yes 9488 9489 if test "$enable_shared" = yes && test "$GCC" = yes; then 9490 case $archive_cmds in 9491 *'~'*) 9492 # FIXME: we may have to deal with multi-command sequences. 9493 ;; 9494 '$CC '*) 9495 # Test whether the compiler implicitly links with -lc since on some 9496 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9497 # to ld, don't add -lc before -lgcc. 9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9499$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9500if ${lt_cv_archive_cmds_need_lc+:} false; then : 9501 $as_echo_n "(cached) " >&6 9502else 9503 $RM conftest* 9504 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9505 9506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9507 (eval $ac_compile) 2>&5 9508 ac_status=$? 9509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9510 test $ac_status = 0; } 2>conftest.err; then 9511 soname=conftest 9512 lib=conftest 9513 libobjs=conftest.$ac_objext 9514 deplibs= 9515 wl=$lt_prog_compiler_wl 9516 pic_flag=$lt_prog_compiler_pic 9517 compiler_flags=-v 9518 linker_flags=-v 9519 verstring= 9520 output_objdir=. 9521 libname=conftest 9522 lt_save_allow_undefined_flag=$allow_undefined_flag 9523 allow_undefined_flag= 9524 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9525 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9526 ac_status=$? 9527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9528 test $ac_status = 0; } 9529 then 9530 lt_cv_archive_cmds_need_lc=no 9531 else 9532 lt_cv_archive_cmds_need_lc=yes 9533 fi 9534 allow_undefined_flag=$lt_save_allow_undefined_flag 9535 else 9536 cat conftest.err 1>&5 9537 fi 9538 $RM conftest* 9539 9540fi 9541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9542$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9543 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9544 ;; 9545 esac 9546 fi 9547 ;; 9548esac 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9707$as_echo_n "checking dynamic linker characteristics... " >&6; } 9708 9709if test "$GCC" = yes; then 9710 case $host_os in 9711 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9712 *) lt_awk_arg="/^libraries:/" ;; 9713 esac 9714 case $host_os in 9715 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9716 *) lt_sed_strip_eq="s,=/,/,g" ;; 9717 esac 9718 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9719 case $lt_search_path_spec in 9720 *\;*) 9721 # if the path contains ";" then we assume it to be the separator 9722 # otherwise default to the standard path separator (i.e. ":") - it is 9723 # assumed that no part of a normal pathname contains ";" but that should 9724 # okay in the real world where ";" in dirpaths is itself problematic. 9725 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9726 ;; 9727 *) 9728 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9729 ;; 9730 esac 9731 # Ok, now we have the path, separated by spaces, we can step through it 9732 # and add multilib dir if necessary. 9733 lt_tmp_lt_search_path_spec= 9734 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9735 for lt_sys_path in $lt_search_path_spec; do 9736 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9737 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9738 else 9739 test -d "$lt_sys_path" && \ 9740 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9741 fi 9742 done 9743 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9744BEGIN {RS=" "; FS="/|\n";} { 9745 lt_foo=""; 9746 lt_count=0; 9747 for (lt_i = NF; lt_i > 0; lt_i--) { 9748 if ($lt_i != "" && $lt_i != ".") { 9749 if ($lt_i == "..") { 9750 lt_count++; 9751 } else { 9752 if (lt_count == 0) { 9753 lt_foo="/" $lt_i lt_foo; 9754 } else { 9755 lt_count--; 9756 } 9757 } 9758 } 9759 } 9760 if (lt_foo != "") { lt_freq[lt_foo]++; } 9761 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9762}'` 9763 # AWK program above erroneously prepends '/' to C:/dos/paths 9764 # for these hosts. 9765 case $host_os in 9766 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9767 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9768 esac 9769 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9770else 9771 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9772fi 9773library_names_spec= 9774libname_spec='lib$name' 9775soname_spec= 9776shrext_cmds=".so" 9777postinstall_cmds= 9778postuninstall_cmds= 9779finish_cmds= 9780finish_eval= 9781shlibpath_var= 9782shlibpath_overrides_runpath=unknown 9783version_type=none 9784dynamic_linker="$host_os ld.so" 9785sys_lib_dlsearch_path_spec="/lib /usr/lib" 9786need_lib_prefix=unknown 9787hardcode_into_libs=no 9788 9789# when you set need_version to no, make sure it does not cause -set_version 9790# flags to be left without arguments 9791need_version=unknown 9792 9793case $host_os in 9794aix3*) 9795 version_type=linux 9796 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9797 shlibpath_var=LIBPATH 9798 9799 # AIX 3 has no versioning support, so we append a major version to the name. 9800 soname_spec='${libname}${release}${shared_ext}$major' 9801 ;; 9802 9803aix[4-9]*) 9804 version_type=linux 9805 need_lib_prefix=no 9806 need_version=no 9807 hardcode_into_libs=yes 9808 if test "$host_cpu" = ia64; then 9809 # AIX 5 supports IA64 9810 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9811 shlibpath_var=LD_LIBRARY_PATH 9812 else 9813 # With GCC up to 2.95.x, collect2 would create an import file 9814 # for dependence libraries. The import file would start with 9815 # the line `#! .'. This would cause the generated library to 9816 # depend on `.', always an invalid library. This was fixed in 9817 # development snapshots of GCC prior to 3.0. 9818 case $host_os in 9819 aix4 | aix4.[01] | aix4.[01].*) 9820 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9821 echo ' yes ' 9822 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9823 : 9824 else 9825 can_build_shared=no 9826 fi 9827 ;; 9828 esac 9829 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9830 # soname into executable. Probably we can add versioning support to 9831 # collect2, so additional links can be useful in future. 9832 if test "$aix_use_runtimelinking" = yes; then 9833 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9834 # instead of lib<name>.a to let people know that these are not 9835 # typical AIX shared libraries. 9836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9837 else 9838 # We preserve .a as extension for shared libraries through AIX4.2 9839 # and later when we are not doing run time linking. 9840 library_names_spec='${libname}${release}.a $libname.a' 9841 soname_spec='${libname}${release}${shared_ext}$major' 9842 fi 9843 shlibpath_var=LIBPATH 9844 fi 9845 ;; 9846 9847amigaos*) 9848 case $host_cpu in 9849 powerpc) 9850 # Since July 2007 AmigaOS4 officially supports .so libraries. 9851 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9853 ;; 9854 m68k) 9855 library_names_spec='$libname.ixlibrary $libname.a' 9856 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9857 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 9858 ;; 9859 esac 9860 ;; 9861 9862beos*) 9863 library_names_spec='${libname}${shared_ext}' 9864 dynamic_linker="$host_os ld.so" 9865 shlibpath_var=LIBRARY_PATH 9866 ;; 9867 9868bsdi[45]*) 9869 version_type=linux 9870 need_version=no 9871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9872 soname_spec='${libname}${release}${shared_ext}$major' 9873 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9874 shlibpath_var=LD_LIBRARY_PATH 9875 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9876 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9877 # the default ld.so.conf also contains /usr/contrib/lib and 9878 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9879 # libtool to hard-code these into programs 9880 ;; 9881 9882cygwin* | mingw* | pw32* | cegcc*) 9883 version_type=windows 9884 shrext_cmds=".dll" 9885 need_version=no 9886 need_lib_prefix=no 9887 9888 case $GCC,$cc_basename in 9889 yes,*) 9890 # gcc 9891 library_names_spec='$libname.dll.a' 9892 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9893 postinstall_cmds='base_file=`basename \${file}`~ 9894 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9895 dldir=$destdir/`dirname \$dlpath`~ 9896 test -d \$dldir || mkdir -p \$dldir~ 9897 $install_prog $dir/$dlname \$dldir/$dlname~ 9898 chmod a+x \$dldir/$dlname~ 9899 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9900 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9901 fi' 9902 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9903 dlpath=$dir/\$dldll~ 9904 $RM \$dlpath' 9905 shlibpath_overrides_runpath=yes 9906 9907 case $host_os in 9908 cygwin*) 9909 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9910 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9911 9912 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 9913 ;; 9914 mingw* | cegcc*) 9915 # MinGW DLLs use traditional 'lib' prefix 9916 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9917 ;; 9918 pw32*) 9919 # pw32 DLLs use 'pw' prefix rather than 'lib' 9920 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9921 ;; 9922 esac 9923 dynamic_linker='Win32 ld.exe' 9924 ;; 9925 9926 *,cl*) 9927 # Native MSVC 9928 libname_spec='$name' 9929 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9930 library_names_spec='${libname}.dll.lib' 9931 9932 case $build_os in 9933 mingw*) 9934 sys_lib_search_path_spec= 9935 lt_save_ifs=$IFS 9936 IFS=';' 9937 for lt_path in $LIB 9938 do 9939 IFS=$lt_save_ifs 9940 # Let DOS variable expansion print the short 8.3 style file name. 9941 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 9942 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 9943 done 9944 IFS=$lt_save_ifs 9945 # Convert to MSYS style. 9946 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 9947 ;; 9948 cygwin*) 9949 # Convert to unix form, then to dos form, then back to unix form 9950 # but this time dos style (no spaces!) so that the unix form looks 9951 # like /cygdrive/c/PROGRA~1:/cygdr... 9952 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 9953 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 9954 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9955 ;; 9956 *) 9957 sys_lib_search_path_spec="$LIB" 9958 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9959 # It is most probably a Windows format PATH. 9960 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9961 else 9962 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9963 fi 9964 # FIXME: find the short name or the path components, as spaces are 9965 # common. (e.g. "Program Files" -> "PROGRA~1") 9966 ;; 9967 esac 9968 9969 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9970 postinstall_cmds='base_file=`basename \${file}`~ 9971 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9972 dldir=$destdir/`dirname \$dlpath`~ 9973 test -d \$dldir || mkdir -p \$dldir~ 9974 $install_prog $dir/$dlname \$dldir/$dlname' 9975 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9976 dlpath=$dir/\$dldll~ 9977 $RM \$dlpath' 9978 shlibpath_overrides_runpath=yes 9979 dynamic_linker='Win32 link.exe' 9980 ;; 9981 9982 *) 9983 # Assume MSVC wrapper 9984 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9985 dynamic_linker='Win32 ld.exe' 9986 ;; 9987 esac 9988 # FIXME: first we should search . and the directory the executable is in 9989 shlibpath_var=PATH 9990 ;; 9991 9992darwin* | rhapsody*) 9993 dynamic_linker="$host_os dyld" 9994 version_type=darwin 9995 need_lib_prefix=no 9996 need_version=no 9997 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9998 soname_spec='${libname}${release}${major}$shared_ext' 9999 shlibpath_overrides_runpath=yes 10000 shlibpath_var=DYLD_LIBRARY_PATH 10001 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10002 10003 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10004 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10005 ;; 10006 10007dgux*) 10008 version_type=linux 10009 need_lib_prefix=no 10010 need_version=no 10011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10012 soname_spec='${libname}${release}${shared_ext}$major' 10013 shlibpath_var=LD_LIBRARY_PATH 10014 ;; 10015 10016freebsd1*) 10017 dynamic_linker=no 10018 ;; 10019 10020freebsd* | dragonfly*) 10021 # DragonFly does not have aout. When/if they implement a new 10022 # versioning mechanism, adjust this. 10023 if test -x /usr/bin/objformat; then 10024 objformat=`/usr/bin/objformat` 10025 else 10026 case $host_os in 10027 freebsd[123]*) objformat=aout ;; 10028 *) objformat=elf ;; 10029 esac 10030 fi 10031 version_type=freebsd-$objformat 10032 case $version_type in 10033 freebsd-elf*) 10034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10035 need_version=no 10036 need_lib_prefix=no 10037 ;; 10038 freebsd-*) 10039 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10040 need_version=yes 10041 ;; 10042 esac 10043 shlibpath_var=LD_LIBRARY_PATH 10044 case $host_os in 10045 freebsd2*) 10046 shlibpath_overrides_runpath=yes 10047 ;; 10048 freebsd3.[01]* | freebsdelf3.[01]*) 10049 shlibpath_overrides_runpath=yes 10050 hardcode_into_libs=yes 10051 ;; 10052 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10053 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10054 shlibpath_overrides_runpath=no 10055 hardcode_into_libs=yes 10056 ;; 10057 *) # from 4.6 on, and DragonFly 10058 shlibpath_overrides_runpath=yes 10059 hardcode_into_libs=yes 10060 ;; 10061 esac 10062 ;; 10063 10064gnu*) 10065 version_type=linux 10066 need_lib_prefix=no 10067 need_version=no 10068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10069 soname_spec='${libname}${release}${shared_ext}$major' 10070 shlibpath_var=LD_LIBRARY_PATH 10071 hardcode_into_libs=yes 10072 ;; 10073 10074haiku*) 10075 version_type=linux 10076 need_lib_prefix=no 10077 need_version=no 10078 dynamic_linker="$host_os runtime_loader" 10079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10080 soname_spec='${libname}${release}${shared_ext}$major' 10081 shlibpath_var=LIBRARY_PATH 10082 shlibpath_overrides_runpath=yes 10083 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10084 hardcode_into_libs=yes 10085 ;; 10086 10087hpux9* | hpux10* | hpux11*) 10088 # Give a soname corresponding to the major version so that dld.sl refuses to 10089 # link against other versions. 10090 version_type=sunos 10091 need_lib_prefix=no 10092 need_version=no 10093 case $host_cpu in 10094 ia64*) 10095 shrext_cmds='.so' 10096 hardcode_into_libs=yes 10097 dynamic_linker="$host_os dld.so" 10098 shlibpath_var=LD_LIBRARY_PATH 10099 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10101 soname_spec='${libname}${release}${shared_ext}$major' 10102 if test "X$HPUX_IA64_MODE" = X32; then 10103 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10104 else 10105 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10106 fi 10107 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10108 ;; 10109 hppa*64*) 10110 shrext_cmds='.sl' 10111 hardcode_into_libs=yes 10112 dynamic_linker="$host_os dld.sl" 10113 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10114 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10116 soname_spec='${libname}${release}${shared_ext}$major' 10117 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10118 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10119 ;; 10120 *) 10121 shrext_cmds='.sl' 10122 dynamic_linker="$host_os dld.sl" 10123 shlibpath_var=SHLIB_PATH 10124 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10126 soname_spec='${libname}${release}${shared_ext}$major' 10127 ;; 10128 esac 10129 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10130 postinstall_cmds='chmod 555 $lib' 10131 # or fails outright, so override atomically: 10132 install_override_mode=555 10133 ;; 10134 10135interix[3-9]*) 10136 version_type=linux 10137 need_lib_prefix=no 10138 need_version=no 10139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10140 soname_spec='${libname}${release}${shared_ext}$major' 10141 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10142 shlibpath_var=LD_LIBRARY_PATH 10143 shlibpath_overrides_runpath=no 10144 hardcode_into_libs=yes 10145 ;; 10146 10147irix5* | irix6* | nonstopux*) 10148 case $host_os in 10149 nonstopux*) version_type=nonstopux ;; 10150 *) 10151 if test "$lt_cv_prog_gnu_ld" = yes; then 10152 version_type=linux 10153 else 10154 version_type=irix 10155 fi ;; 10156 esac 10157 need_lib_prefix=no 10158 need_version=no 10159 soname_spec='${libname}${release}${shared_ext}$major' 10160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10161 case $host_os in 10162 irix5* | nonstopux*) 10163 libsuff= shlibsuff= 10164 ;; 10165 *) 10166 case $LD in # libtool.m4 will add one of these switches to LD 10167 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10168 libsuff= shlibsuff= libmagic=32-bit;; 10169 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10170 libsuff=32 shlibsuff=N32 libmagic=N32;; 10171 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10172 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10173 *) libsuff= shlibsuff= libmagic=never-match;; 10174 esac 10175 ;; 10176 esac 10177 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10178 shlibpath_overrides_runpath=no 10179 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10180 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10181 hardcode_into_libs=yes 10182 ;; 10183 10184# No shared lib support for Linux oldld, aout, or coff. 10185linux*oldld* | linux*aout* | linux*coff*) 10186 dynamic_linker=no 10187 ;; 10188 10189# This must be Linux ELF. 10190linux* | k*bsd*-gnu | kopensolaris*-gnu) 10191 version_type=linux 10192 need_lib_prefix=no 10193 need_version=no 10194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10195 soname_spec='${libname}${release}${shared_ext}$major' 10196 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10197 shlibpath_var=LD_LIBRARY_PATH 10198 shlibpath_overrides_runpath=no 10199 10200 # Some binutils ld are patched to set DT_RUNPATH 10201 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10202 $as_echo_n "(cached) " >&6 10203else 10204 lt_cv_shlibpath_overrides_runpath=no 10205 save_LDFLAGS=$LDFLAGS 10206 save_libdir=$libdir 10207 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10208 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10210/* end confdefs.h. */ 10211 10212int 10213main () 10214{ 10215 10216 ; 10217 return 0; 10218} 10219_ACEOF 10220if ac_fn_c_try_link "$LINENO"; then : 10221 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10222 lt_cv_shlibpath_overrides_runpath=yes 10223fi 10224fi 10225rm -f core conftest.err conftest.$ac_objext \ 10226 conftest$ac_exeext conftest.$ac_ext 10227 LDFLAGS=$save_LDFLAGS 10228 libdir=$save_libdir 10229 10230fi 10231 10232 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10233 10234 # This implies no fast_install, which is unacceptable. 10235 # Some rework will be needed to allow for fast_install 10236 # before this can be enabled. 10237 hardcode_into_libs=yes 10238 10239 # Append ld.so.conf contents to the search path 10240 if test -f /etc/ld.so.conf; then 10241 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' ' '` 10242 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10243 fi 10244 10245 # We used to test for /lib/ld.so.1 and disable shared libraries on 10246 # powerpc, because MkLinux only supported shared libraries with the 10247 # GNU dynamic linker. Since this was broken with cross compilers, 10248 # most powerpc-linux boxes support dynamic linking these days and 10249 # people can always --disable-shared, the test was removed, and we 10250 # assume the GNU/Linux dynamic linker is in use. 10251 dynamic_linker='GNU/Linux ld.so' 10252 ;; 10253 10254netbsd*) 10255 version_type=sunos 10256 need_lib_prefix=no 10257 need_version=no 10258 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10260 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10261 dynamic_linker='NetBSD (a.out) ld.so' 10262 else 10263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10264 soname_spec='${libname}${release}${shared_ext}$major' 10265 dynamic_linker='NetBSD ld.elf_so' 10266 fi 10267 shlibpath_var=LD_LIBRARY_PATH 10268 shlibpath_overrides_runpath=yes 10269 hardcode_into_libs=yes 10270 ;; 10271 10272newsos6) 10273 version_type=linux 10274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10275 shlibpath_var=LD_LIBRARY_PATH 10276 shlibpath_overrides_runpath=yes 10277 ;; 10278 10279*nto* | *qnx*) 10280 version_type=qnx 10281 need_lib_prefix=no 10282 need_version=no 10283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10284 soname_spec='${libname}${release}${shared_ext}$major' 10285 shlibpath_var=LD_LIBRARY_PATH 10286 shlibpath_overrides_runpath=no 10287 hardcode_into_libs=yes 10288 dynamic_linker='ldqnx.so' 10289 ;; 10290 10291openbsd*) 10292 version_type=sunos 10293 sys_lib_dlsearch_path_spec="/usr/lib" 10294 need_lib_prefix=no 10295 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10296 case $host_os in 10297 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10298 *) need_version=no ;; 10299 esac 10300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10301 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10302 shlibpath_var=LD_LIBRARY_PATH 10303 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10304 case $host_os in 10305 openbsd2.[89] | openbsd2.[89].*) 10306 shlibpath_overrides_runpath=no 10307 ;; 10308 *) 10309 shlibpath_overrides_runpath=yes 10310 ;; 10311 esac 10312 else 10313 shlibpath_overrides_runpath=yes 10314 fi 10315 ;; 10316 10317os2*) 10318 libname_spec='$name' 10319 shrext_cmds=".dll" 10320 need_lib_prefix=no 10321 library_names_spec='$libname${shared_ext} $libname.a' 10322 dynamic_linker='OS/2 ld.exe' 10323 shlibpath_var=LIBPATH 10324 ;; 10325 10326osf3* | osf4* | osf5*) 10327 version_type=osf 10328 need_lib_prefix=no 10329 need_version=no 10330 soname_spec='${libname}${release}${shared_ext}$major' 10331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10332 shlibpath_var=LD_LIBRARY_PATH 10333 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10334 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10335 ;; 10336 10337rdos*) 10338 dynamic_linker=no 10339 ;; 10340 10341solaris*) 10342 version_type=linux 10343 need_lib_prefix=no 10344 need_version=no 10345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10346 soname_spec='${libname}${release}${shared_ext}$major' 10347 shlibpath_var=LD_LIBRARY_PATH 10348 shlibpath_overrides_runpath=yes 10349 hardcode_into_libs=yes 10350 # ldd complains unless libraries are executable 10351 postinstall_cmds='chmod +x $lib' 10352 ;; 10353 10354sunos4*) 10355 version_type=sunos 10356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10357 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10358 shlibpath_var=LD_LIBRARY_PATH 10359 shlibpath_overrides_runpath=yes 10360 if test "$with_gnu_ld" = yes; then 10361 need_lib_prefix=no 10362 fi 10363 need_version=yes 10364 ;; 10365 10366sysv4 | sysv4.3*) 10367 version_type=linux 10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10369 soname_spec='${libname}${release}${shared_ext}$major' 10370 shlibpath_var=LD_LIBRARY_PATH 10371 case $host_vendor in 10372 sni) 10373 shlibpath_overrides_runpath=no 10374 need_lib_prefix=no 10375 runpath_var=LD_RUN_PATH 10376 ;; 10377 siemens) 10378 need_lib_prefix=no 10379 ;; 10380 motorola) 10381 need_lib_prefix=no 10382 need_version=no 10383 shlibpath_overrides_runpath=no 10384 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10385 ;; 10386 esac 10387 ;; 10388 10389sysv4*MP*) 10390 if test -d /usr/nec ;then 10391 version_type=linux 10392 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10393 soname_spec='$libname${shared_ext}.$major' 10394 shlibpath_var=LD_LIBRARY_PATH 10395 fi 10396 ;; 10397 10398sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10399 version_type=freebsd-elf 10400 need_lib_prefix=no 10401 need_version=no 10402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10403 soname_spec='${libname}${release}${shared_ext}$major' 10404 shlibpath_var=LD_LIBRARY_PATH 10405 shlibpath_overrides_runpath=yes 10406 hardcode_into_libs=yes 10407 if test "$with_gnu_ld" = yes; then 10408 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10409 else 10410 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10411 case $host_os in 10412 sco3.2v5*) 10413 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10414 ;; 10415 esac 10416 fi 10417 sys_lib_dlsearch_path_spec='/usr/lib' 10418 ;; 10419 10420tpf*) 10421 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10422 version_type=linux 10423 need_lib_prefix=no 10424 need_version=no 10425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10426 shlibpath_var=LD_LIBRARY_PATH 10427 shlibpath_overrides_runpath=no 10428 hardcode_into_libs=yes 10429 ;; 10430 10431uts4*) 10432 version_type=linux 10433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10434 soname_spec='${libname}${release}${shared_ext}$major' 10435 shlibpath_var=LD_LIBRARY_PATH 10436 ;; 10437 10438*) 10439 dynamic_linker=no 10440 ;; 10441esac 10442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10443$as_echo "$dynamic_linker" >&6; } 10444test "$dynamic_linker" = no && can_build_shared=no 10445 10446variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10447if test "$GCC" = yes; then 10448 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10449fi 10450 10451if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10452 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10453fi 10454if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10455 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10456fi 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10550$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10551hardcode_action= 10552if test -n "$hardcode_libdir_flag_spec" || 10553 test -n "$runpath_var" || 10554 test "X$hardcode_automatic" = "Xyes" ; then 10555 10556 # We can hardcode non-existent directories. 10557 if test "$hardcode_direct" != no && 10558 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10559 # have to relink, otherwise we might link with an installed library 10560 # when we should be linking with a yet-to-be-installed one 10561 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10562 test "$hardcode_minus_L" != no; then 10563 # Linking always hardcodes the temporary library directory. 10564 hardcode_action=relink 10565 else 10566 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10567 hardcode_action=immediate 10568 fi 10569else 10570 # We cannot hardcode anything, or else we can only hardcode existing 10571 # directories. 10572 hardcode_action=unsupported 10573fi 10574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10575$as_echo "$hardcode_action" >&6; } 10576 10577if test "$hardcode_action" = relink || 10578 test "$inherit_rpath" = yes; then 10579 # Fast installation is not supported 10580 enable_fast_install=no 10581elif test "$shlibpath_overrides_runpath" = yes || 10582 test "$enable_shared" = no; then 10583 # Fast installation is not necessary 10584 enable_fast_install=needless 10585fi 10586 10587 10588 10589 10590 10591 10592 if test "x$enable_dlopen" != xyes; then 10593 enable_dlopen=unknown 10594 enable_dlopen_self=unknown 10595 enable_dlopen_self_static=unknown 10596else 10597 lt_cv_dlopen=no 10598 lt_cv_dlopen_libs= 10599 10600 case $host_os in 10601 beos*) 10602 lt_cv_dlopen="load_add_on" 10603 lt_cv_dlopen_libs= 10604 lt_cv_dlopen_self=yes 10605 ;; 10606 10607 mingw* | pw32* | cegcc*) 10608 lt_cv_dlopen="LoadLibrary" 10609 lt_cv_dlopen_libs= 10610 ;; 10611 10612 cygwin*) 10613 lt_cv_dlopen="dlopen" 10614 lt_cv_dlopen_libs= 10615 ;; 10616 10617 darwin*) 10618 # if libdl is installed we need to link against it 10619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10620$as_echo_n "checking for dlopen in -ldl... " >&6; } 10621if ${ac_cv_lib_dl_dlopen+:} false; then : 10622 $as_echo_n "(cached) " >&6 10623else 10624 ac_check_lib_save_LIBS=$LIBS 10625LIBS="-ldl $LIBS" 10626cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10627/* end confdefs.h. */ 10628 10629/* Override any GCC internal prototype to avoid an error. 10630 Use char because int might match the return type of a GCC 10631 builtin and then its argument prototype would still apply. */ 10632#ifdef __cplusplus 10633extern "C" 10634#endif 10635char dlopen (); 10636int 10637main () 10638{ 10639return dlopen (); 10640 ; 10641 return 0; 10642} 10643_ACEOF 10644if ac_fn_c_try_link "$LINENO"; then : 10645 ac_cv_lib_dl_dlopen=yes 10646else 10647 ac_cv_lib_dl_dlopen=no 10648fi 10649rm -f core conftest.err conftest.$ac_objext \ 10650 conftest$ac_exeext conftest.$ac_ext 10651LIBS=$ac_check_lib_save_LIBS 10652fi 10653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10654$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10655if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10656 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10657else 10658 10659 lt_cv_dlopen="dyld" 10660 lt_cv_dlopen_libs= 10661 lt_cv_dlopen_self=yes 10662 10663fi 10664 10665 ;; 10666 10667 *) 10668 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10669if test "x$ac_cv_func_shl_load" = xyes; then : 10670 lt_cv_dlopen="shl_load" 10671else 10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10673$as_echo_n "checking for shl_load in -ldld... " >&6; } 10674if ${ac_cv_lib_dld_shl_load+:} false; then : 10675 $as_echo_n "(cached) " >&6 10676else 10677 ac_check_lib_save_LIBS=$LIBS 10678LIBS="-ldld $LIBS" 10679cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10680/* end confdefs.h. */ 10681 10682/* Override any GCC internal prototype to avoid an error. 10683 Use char because int might match the return type of a GCC 10684 builtin and then its argument prototype would still apply. */ 10685#ifdef __cplusplus 10686extern "C" 10687#endif 10688char shl_load (); 10689int 10690main () 10691{ 10692return shl_load (); 10693 ; 10694 return 0; 10695} 10696_ACEOF 10697if ac_fn_c_try_link "$LINENO"; then : 10698 ac_cv_lib_dld_shl_load=yes 10699else 10700 ac_cv_lib_dld_shl_load=no 10701fi 10702rm -f core conftest.err conftest.$ac_objext \ 10703 conftest$ac_exeext conftest.$ac_ext 10704LIBS=$ac_check_lib_save_LIBS 10705fi 10706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10707$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10708if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10709 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10710else 10711 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10712if test "x$ac_cv_func_dlopen" = xyes; then : 10713 lt_cv_dlopen="dlopen" 10714else 10715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10716$as_echo_n "checking for dlopen in -ldl... " >&6; } 10717if ${ac_cv_lib_dl_dlopen+:} false; then : 10718 $as_echo_n "(cached) " >&6 10719else 10720 ac_check_lib_save_LIBS=$LIBS 10721LIBS="-ldl $LIBS" 10722cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10723/* end confdefs.h. */ 10724 10725/* Override any GCC internal prototype to avoid an error. 10726 Use char because int might match the return type of a GCC 10727 builtin and then its argument prototype would still apply. */ 10728#ifdef __cplusplus 10729extern "C" 10730#endif 10731char dlopen (); 10732int 10733main () 10734{ 10735return dlopen (); 10736 ; 10737 return 0; 10738} 10739_ACEOF 10740if ac_fn_c_try_link "$LINENO"; then : 10741 ac_cv_lib_dl_dlopen=yes 10742else 10743 ac_cv_lib_dl_dlopen=no 10744fi 10745rm -f core conftest.err conftest.$ac_objext \ 10746 conftest$ac_exeext conftest.$ac_ext 10747LIBS=$ac_check_lib_save_LIBS 10748fi 10749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10750$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10751if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10752 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10753else 10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10755$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10756if ${ac_cv_lib_svld_dlopen+:} false; then : 10757 $as_echo_n "(cached) " >&6 10758else 10759 ac_check_lib_save_LIBS=$LIBS 10760LIBS="-lsvld $LIBS" 10761cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10762/* end confdefs.h. */ 10763 10764/* Override any GCC internal prototype to avoid an error. 10765 Use char because int might match the return type of a GCC 10766 builtin and then its argument prototype would still apply. */ 10767#ifdef __cplusplus 10768extern "C" 10769#endif 10770char dlopen (); 10771int 10772main () 10773{ 10774return dlopen (); 10775 ; 10776 return 0; 10777} 10778_ACEOF 10779if ac_fn_c_try_link "$LINENO"; then : 10780 ac_cv_lib_svld_dlopen=yes 10781else 10782 ac_cv_lib_svld_dlopen=no 10783fi 10784rm -f core conftest.err conftest.$ac_objext \ 10785 conftest$ac_exeext conftest.$ac_ext 10786LIBS=$ac_check_lib_save_LIBS 10787fi 10788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10789$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10790if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 10791 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10792else 10793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10794$as_echo_n "checking for dld_link in -ldld... " >&6; } 10795if ${ac_cv_lib_dld_dld_link+:} false; then : 10796 $as_echo_n "(cached) " >&6 10797else 10798 ac_check_lib_save_LIBS=$LIBS 10799LIBS="-ldld $LIBS" 10800cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10801/* end confdefs.h. */ 10802 10803/* Override any GCC internal prototype to avoid an error. 10804 Use char because int might match the return type of a GCC 10805 builtin and then its argument prototype would still apply. */ 10806#ifdef __cplusplus 10807extern "C" 10808#endif 10809char dld_link (); 10810int 10811main () 10812{ 10813return dld_link (); 10814 ; 10815 return 0; 10816} 10817_ACEOF 10818if ac_fn_c_try_link "$LINENO"; then : 10819 ac_cv_lib_dld_dld_link=yes 10820else 10821 ac_cv_lib_dld_dld_link=no 10822fi 10823rm -f core conftest.err conftest.$ac_objext \ 10824 conftest$ac_exeext conftest.$ac_ext 10825LIBS=$ac_check_lib_save_LIBS 10826fi 10827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10828$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10829if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 10830 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10831fi 10832 10833 10834fi 10835 10836 10837fi 10838 10839 10840fi 10841 10842 10843fi 10844 10845 10846fi 10847 10848 ;; 10849 esac 10850 10851 if test "x$lt_cv_dlopen" != xno; then 10852 enable_dlopen=yes 10853 else 10854 enable_dlopen=no 10855 fi 10856 10857 case $lt_cv_dlopen in 10858 dlopen) 10859 save_CPPFLAGS="$CPPFLAGS" 10860 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10861 10862 save_LDFLAGS="$LDFLAGS" 10863 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10864 10865 save_LIBS="$LIBS" 10866 LIBS="$lt_cv_dlopen_libs $LIBS" 10867 10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10869$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10870if ${lt_cv_dlopen_self+:} false; then : 10871 $as_echo_n "(cached) " >&6 10872else 10873 if test "$cross_compiling" = yes; then : 10874 lt_cv_dlopen_self=cross 10875else 10876 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10877 lt_status=$lt_dlunknown 10878 cat > conftest.$ac_ext <<_LT_EOF 10879#line $LINENO "configure" 10880#include "confdefs.h" 10881 10882#if HAVE_DLFCN_H 10883#include <dlfcn.h> 10884#endif 10885 10886#include <stdio.h> 10887 10888#ifdef RTLD_GLOBAL 10889# define LT_DLGLOBAL RTLD_GLOBAL 10890#else 10891# ifdef DL_GLOBAL 10892# define LT_DLGLOBAL DL_GLOBAL 10893# else 10894# define LT_DLGLOBAL 0 10895# endif 10896#endif 10897 10898/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10899 find out it does not work in some platform. */ 10900#ifndef LT_DLLAZY_OR_NOW 10901# ifdef RTLD_LAZY 10902# define LT_DLLAZY_OR_NOW RTLD_LAZY 10903# else 10904# ifdef DL_LAZY 10905# define LT_DLLAZY_OR_NOW DL_LAZY 10906# else 10907# ifdef RTLD_NOW 10908# define LT_DLLAZY_OR_NOW RTLD_NOW 10909# else 10910# ifdef DL_NOW 10911# define LT_DLLAZY_OR_NOW DL_NOW 10912# else 10913# define LT_DLLAZY_OR_NOW 0 10914# endif 10915# endif 10916# endif 10917# endif 10918#endif 10919 10920/* When -fvisbility=hidden is used, assume the code has been annotated 10921 correspondingly for the symbols needed. */ 10922#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 10923int fnord () __attribute__((visibility("default"))); 10924#endif 10925 10926int fnord () { return 42; } 10927int main () 10928{ 10929 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10930 int status = $lt_dlunknown; 10931 10932 if (self) 10933 { 10934 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10935 else 10936 { 10937 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10938 else puts (dlerror ()); 10939 } 10940 /* dlclose (self); */ 10941 } 10942 else 10943 puts (dlerror ()); 10944 10945 return status; 10946} 10947_LT_EOF 10948 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10949 (eval $ac_link) 2>&5 10950 ac_status=$? 10951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10952 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10953 (./conftest; exit; ) >&5 2>/dev/null 10954 lt_status=$? 10955 case x$lt_status in 10956 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10957 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10958 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10959 esac 10960 else : 10961 # compilation failed 10962 lt_cv_dlopen_self=no 10963 fi 10964fi 10965rm -fr conftest* 10966 10967 10968fi 10969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10970$as_echo "$lt_cv_dlopen_self" >&6; } 10971 10972 if test "x$lt_cv_dlopen_self" = xyes; then 10973 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 10975$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10976if ${lt_cv_dlopen_self_static+:} false; then : 10977 $as_echo_n "(cached) " >&6 10978else 10979 if test "$cross_compiling" = yes; then : 10980 lt_cv_dlopen_self_static=cross 10981else 10982 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10983 lt_status=$lt_dlunknown 10984 cat > conftest.$ac_ext <<_LT_EOF 10985#line $LINENO "configure" 10986#include "confdefs.h" 10987 10988#if HAVE_DLFCN_H 10989#include <dlfcn.h> 10990#endif 10991 10992#include <stdio.h> 10993 10994#ifdef RTLD_GLOBAL 10995# define LT_DLGLOBAL RTLD_GLOBAL 10996#else 10997# ifdef DL_GLOBAL 10998# define LT_DLGLOBAL DL_GLOBAL 10999# else 11000# define LT_DLGLOBAL 0 11001# endif 11002#endif 11003 11004/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11005 find out it does not work in some platform. */ 11006#ifndef LT_DLLAZY_OR_NOW 11007# ifdef RTLD_LAZY 11008# define LT_DLLAZY_OR_NOW RTLD_LAZY 11009# else 11010# ifdef DL_LAZY 11011# define LT_DLLAZY_OR_NOW DL_LAZY 11012# else 11013# ifdef RTLD_NOW 11014# define LT_DLLAZY_OR_NOW RTLD_NOW 11015# else 11016# ifdef DL_NOW 11017# define LT_DLLAZY_OR_NOW DL_NOW 11018# else 11019# define LT_DLLAZY_OR_NOW 0 11020# endif 11021# endif 11022# endif 11023# endif 11024#endif 11025 11026/* When -fvisbility=hidden is used, assume the code has been annotated 11027 correspondingly for the symbols needed. */ 11028#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11029int fnord () __attribute__((visibility("default"))); 11030#endif 11031 11032int fnord () { return 42; } 11033int main () 11034{ 11035 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11036 int status = $lt_dlunknown; 11037 11038 if (self) 11039 { 11040 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11041 else 11042 { 11043 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11044 else puts (dlerror ()); 11045 } 11046 /* dlclose (self); */ 11047 } 11048 else 11049 puts (dlerror ()); 11050 11051 return status; 11052} 11053_LT_EOF 11054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11055 (eval $ac_link) 2>&5 11056 ac_status=$? 11057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11058 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11059 (./conftest; exit; ) >&5 2>/dev/null 11060 lt_status=$? 11061 case x$lt_status in 11062 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11063 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11064 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11065 esac 11066 else : 11067 # compilation failed 11068 lt_cv_dlopen_self_static=no 11069 fi 11070fi 11071rm -fr conftest* 11072 11073 11074fi 11075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11076$as_echo "$lt_cv_dlopen_self_static" >&6; } 11077 fi 11078 11079 CPPFLAGS="$save_CPPFLAGS" 11080 LDFLAGS="$save_LDFLAGS" 11081 LIBS="$save_LIBS" 11082 ;; 11083 esac 11084 11085 case $lt_cv_dlopen_self in 11086 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11087 *) enable_dlopen_self=unknown ;; 11088 esac 11089 11090 case $lt_cv_dlopen_self_static in 11091 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11092 *) enable_dlopen_self_static=unknown ;; 11093 esac 11094fi 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112striplib= 11113old_striplib= 11114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11115$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11116if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11117 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11118 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11120$as_echo "yes" >&6; } 11121else 11122# FIXME - insert some real tests, host_os isn't really good enough 11123 case $host_os in 11124 darwin*) 11125 if test -n "$STRIP" ; then 11126 striplib="$STRIP -x" 11127 old_striplib="$STRIP -S" 11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11129$as_echo "yes" >&6; } 11130 else 11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11132$as_echo "no" >&6; } 11133 fi 11134 ;; 11135 *) 11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11137$as_echo "no" >&6; } 11138 ;; 11139 esac 11140fi 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 # Report which library types will actually be built 11154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11155$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11157$as_echo "$can_build_shared" >&6; } 11158 11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11160$as_echo_n "checking whether to build shared libraries... " >&6; } 11161 test "$can_build_shared" = "no" && enable_shared=no 11162 11163 # On AIX, shared libraries and static libraries use the same namespace, and 11164 # are all built from PIC. 11165 case $host_os in 11166 aix3*) 11167 test "$enable_shared" = yes && enable_static=no 11168 if test -n "$RANLIB"; then 11169 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11170 postinstall_cmds='$RANLIB $lib' 11171 fi 11172 ;; 11173 11174 aix[4-9]*) 11175 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11176 test "$enable_shared" = yes && enable_static=no 11177 fi 11178 ;; 11179 esac 11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11181$as_echo "$enable_shared" >&6; } 11182 11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11184$as_echo_n "checking whether to build static libraries... " >&6; } 11185 # Make sure either enable_shared or enable_static is yes. 11186 test "$enable_shared" = yes || enable_static=yes 11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11188$as_echo "$enable_static" >&6; } 11189 11190 11191 11192 11193fi 11194ac_ext=c 11195ac_cpp='$CPP $CPPFLAGS' 11196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11198ac_compiler_gnu=$ac_cv_c_compiler_gnu 11199 11200CC="$lt_save_CC" 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 ac_config_commands="$ac_config_commands libtool" 11215 11216 11217 11218 11219# Only expand once: 11220 11221 11222 11223# Require X.Org macros 1.8 or later for AC_PROG_INSTALL 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11236$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11237if ${ac_cv_prog_cc_c99+:} false; then : 11238 $as_echo_n "(cached) " >&6 11239else 11240 ac_cv_prog_cc_c99=no 11241ac_save_CC=$CC 11242cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11243/* end confdefs.h. */ 11244#include <stdarg.h> 11245#include <stdbool.h> 11246#include <stdlib.h> 11247#include <wchar.h> 11248#include <stdio.h> 11249 11250// Check varargs macros. These examples are taken from C99 6.10.3.5. 11251#define debug(...) fprintf (stderr, __VA_ARGS__) 11252#define showlist(...) puts (#__VA_ARGS__) 11253#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11254static void 11255test_varargs_macros (void) 11256{ 11257 int x = 1234; 11258 int y = 5678; 11259 debug ("Flag"); 11260 debug ("X = %d\n", x); 11261 showlist (The first, second, and third items.); 11262 report (x>y, "x is %d but y is %d", x, y); 11263} 11264 11265// Check long long types. 11266#define BIG64 18446744073709551615ull 11267#define BIG32 4294967295ul 11268#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11269#if !BIG_OK 11270 your preprocessor is broken; 11271#endif 11272#if BIG_OK 11273#else 11274 your preprocessor is broken; 11275#endif 11276static long long int bignum = -9223372036854775807LL; 11277static unsigned long long int ubignum = BIG64; 11278 11279struct incomplete_array 11280{ 11281 int datasize; 11282 double data[]; 11283}; 11284 11285struct named_init { 11286 int number; 11287 const wchar_t *name; 11288 double average; 11289}; 11290 11291typedef const char *ccp; 11292 11293static inline int 11294test_restrict (ccp restrict text) 11295{ 11296 // See if C++-style comments work. 11297 // Iterate through items via the restricted pointer. 11298 // Also check for declarations in for loops. 11299 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11300 continue; 11301 return 0; 11302} 11303 11304// Check varargs and va_copy. 11305static void 11306test_varargs (const char *format, ...) 11307{ 11308 va_list args; 11309 va_start (args, format); 11310 va_list args_copy; 11311 va_copy (args_copy, args); 11312 11313 const char *str; 11314 int number; 11315 float fnumber; 11316 11317 while (*format) 11318 { 11319 switch (*format++) 11320 { 11321 case 's': // string 11322 str = va_arg (args_copy, const char *); 11323 break; 11324 case 'd': // int 11325 number = va_arg (args_copy, int); 11326 break; 11327 case 'f': // float 11328 fnumber = va_arg (args_copy, double); 11329 break; 11330 default: 11331 break; 11332 } 11333 } 11334 va_end (args_copy); 11335 va_end (args); 11336} 11337 11338int 11339main () 11340{ 11341 11342 // Check bool. 11343 _Bool success = false; 11344 11345 // Check restrict. 11346 if (test_restrict ("String literal") == 0) 11347 success = true; 11348 char *restrict newvar = "Another string"; 11349 11350 // Check varargs. 11351 test_varargs ("s, d' f .", "string", 65, 34.234); 11352 test_varargs_macros (); 11353 11354 // Check flexible array members. 11355 struct incomplete_array *ia = 11356 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11357 ia->datasize = 10; 11358 for (int i = 0; i < ia->datasize; ++i) 11359 ia->data[i] = i * 1.234; 11360 11361 // Check named initializers. 11362 struct named_init ni = { 11363 .number = 34, 11364 .name = L"Test wide string", 11365 .average = 543.34343, 11366 }; 11367 11368 ni.number = 58; 11369 11370 int dynamic_array[ni.number]; 11371 dynamic_array[ni.number - 1] = 543; 11372 11373 // work around unused variable warnings 11374 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11375 || dynamic_array[ni.number - 1] != 543); 11376 11377 ; 11378 return 0; 11379} 11380_ACEOF 11381for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 11382do 11383 CC="$ac_save_CC $ac_arg" 11384 if ac_fn_c_try_compile "$LINENO"; then : 11385 ac_cv_prog_cc_c99=$ac_arg 11386fi 11387rm -f core conftest.err conftest.$ac_objext 11388 test "x$ac_cv_prog_cc_c99" != "xno" && break 11389done 11390rm -f conftest.$ac_ext 11391CC=$ac_save_CC 11392 11393fi 11394# AC_CACHE_VAL 11395case "x$ac_cv_prog_cc_c99" in 11396 x) 11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11398$as_echo "none needed" >&6; } ;; 11399 xno) 11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11401$as_echo "unsupported" >&6; } ;; 11402 *) 11403 CC="$CC $ac_cv_prog_cc_c99" 11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 11405$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11406esac 11407if test "x$ac_cv_prog_cc_c99" != xno; then : 11408 11409fi 11410 11411 11412 11413 11414 11415 11416ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 11417if test "x$ac_cv_have_decl___clang__" = xyes; then : 11418 CLANGCC="yes" 11419else 11420 CLANGCC="no" 11421fi 11422 11423ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 11424if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 11425 INTELCC="yes" 11426else 11427 INTELCC="no" 11428fi 11429 11430ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 11431if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 11432 SUNCC="yes" 11433else 11434 SUNCC="no" 11435fi 11436 11437 11438 11439 11440if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11441 if test -n "$ac_tool_prefix"; then 11442 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11443set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11445$as_echo_n "checking for $ac_word... " >&6; } 11446if ${ac_cv_path_PKG_CONFIG+:} false; then : 11447 $as_echo_n "(cached) " >&6 11448else 11449 case $PKG_CONFIG in 11450 [\\/]* | ?:[\\/]*) 11451 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11452 ;; 11453 *) 11454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11455for as_dir in $PATH 11456do 11457 IFS=$as_save_IFS 11458 test -z "$as_dir" && as_dir=. 11459 for ac_exec_ext in '' $ac_executable_extensions; do 11460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11461 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11463 break 2 11464 fi 11465done 11466 done 11467IFS=$as_save_IFS 11468 11469 ;; 11470esac 11471fi 11472PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11473if test -n "$PKG_CONFIG"; then 11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11475$as_echo "$PKG_CONFIG" >&6; } 11476else 11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11478$as_echo "no" >&6; } 11479fi 11480 11481 11482fi 11483if test -z "$ac_cv_path_PKG_CONFIG"; then 11484 ac_pt_PKG_CONFIG=$PKG_CONFIG 11485 # Extract the first word of "pkg-config", so it can be a program name with args. 11486set dummy pkg-config; ac_word=$2 11487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11488$as_echo_n "checking for $ac_word... " >&6; } 11489if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 11490 $as_echo_n "(cached) " >&6 11491else 11492 case $ac_pt_PKG_CONFIG in 11493 [\\/]* | ?:[\\/]*) 11494 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11495 ;; 11496 *) 11497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11498for as_dir in $PATH 11499do 11500 IFS=$as_save_IFS 11501 test -z "$as_dir" && as_dir=. 11502 for ac_exec_ext in '' $ac_executable_extensions; do 11503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11504 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11506 break 2 11507 fi 11508done 11509 done 11510IFS=$as_save_IFS 11511 11512 ;; 11513esac 11514fi 11515ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11516if test -n "$ac_pt_PKG_CONFIG"; then 11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 11518$as_echo "$ac_pt_PKG_CONFIG" >&6; } 11519else 11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11521$as_echo "no" >&6; } 11522fi 11523 11524 if test "x$ac_pt_PKG_CONFIG" = x; then 11525 PKG_CONFIG="" 11526 else 11527 case $cross_compiling:$ac_tool_warned in 11528yes:) 11529{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11530$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11531ac_tool_warned=yes ;; 11532esac 11533 PKG_CONFIG=$ac_pt_PKG_CONFIG 11534 fi 11535else 11536 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11537fi 11538 11539fi 11540if test -n "$PKG_CONFIG"; then 11541 _pkg_min_version=0.9.0 11542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 11543$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11544 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11546$as_echo "yes" >&6; } 11547 else 11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11549$as_echo "no" >&6; } 11550 PKG_CONFIG="" 11551 fi 11552 11553fi 11554 11555 11556 11557 11558 11559# Check whether --enable-selective-werror was given. 11560if test "${enable_selective_werror+set}" = set; then : 11561 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 11562else 11563 SELECTIVE_WERROR=yes 11564fi 11565 11566 11567 11568 11569 11570# -v is too short to test reliably with XORG_TESTSET_CFLAG 11571if test "x$SUNCC" = "xyes"; then 11572 BASE_CFLAGS="-v" 11573else 11574 BASE_CFLAGS="" 11575fi 11576 11577# This chunk of warnings were those that existed in the legacy CWARNFLAGS 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589xorg_testset_save_CFLAGS="$CFLAGS" 11590 11591if test "x$xorg_testset_unknown_warning_option" = "x" ; then 11592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 11594$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 11595if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 11596 $as_echo_n "(cached) " >&6 11597else 11598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11599/* end confdefs.h. */ 11600int i; 11601_ACEOF 11602if ac_fn_c_try_compile "$LINENO"; then : 11603 xorg_cv_compiler_flag_unknown_warning_option=yes 11604else 11605 xorg_cv_compiler_flag_unknown_warning_option=no 11606fi 11607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11608fi 11609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 11610$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 11611 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 11612 CFLAGS="$xorg_testset_save_CFLAGS" 11613fi 11614 11615if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 11616 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11618 fi 11619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 11621$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 11622if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 11623 $as_echo_n "(cached) " >&6 11624else 11625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11626/* end confdefs.h. */ 11627int i; 11628_ACEOF 11629if ac_fn_c_try_compile "$LINENO"; then : 11630 xorg_cv_compiler_flag_unused_command_line_argument=yes 11631else 11632 xorg_cv_compiler_flag_unused_command_line_argument=no 11633fi 11634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11635fi 11636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 11637$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 11638 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 11639 CFLAGS="$xorg_testset_save_CFLAGS" 11640fi 11641 11642found="no" 11643 11644 if test $found = "no" ; then 11645 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11647 fi 11648 11649 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 11650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11651 fi 11652 11653 CFLAGS="$CFLAGS -Wall" 11654 11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 11656$as_echo_n "checking if $CC supports -Wall... " >&6; } 11657 cacheid=`$as_echo xorg_cv_cc_flag_-Wall` 11658 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 11659 $as_echo_n "(cached) " >&6 11660else 11661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11662/* end confdefs.h. */ 11663int i; 11664int 11665main () 11666{ 11667 11668 ; 11669 return 0; 11670} 11671_ACEOF 11672if ac_fn_c_try_link "$LINENO"; then : 11673 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 11674else 11675 eval `$as_echo "$cacheid" | $as_tr_sh`=no 11676fi 11677rm -f core conftest.err conftest.$ac_objext \ 11678 conftest$ac_exeext conftest.$ac_ext 11679fi 11680 11681 11682 CFLAGS="$xorg_testset_save_CFLAGS" 11683 11684 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11686$as_echo "$supported" >&6; } 11687 if test "$supported" = "yes" ; then 11688 BASE_CFLAGS="$BASE_CFLAGS -Wall" 11689 found="yes" 11690 fi 11691 fi 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705xorg_testset_save_CFLAGS="$CFLAGS" 11706 11707if test "x$xorg_testset_unknown_warning_option" = "x" ; then 11708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 11710$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 11711if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 11712 $as_echo_n "(cached) " >&6 11713else 11714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11715/* end confdefs.h. */ 11716int i; 11717_ACEOF 11718if ac_fn_c_try_compile "$LINENO"; then : 11719 xorg_cv_compiler_flag_unknown_warning_option=yes 11720else 11721 xorg_cv_compiler_flag_unknown_warning_option=no 11722fi 11723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11724fi 11725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 11726$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 11727 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 11728 CFLAGS="$xorg_testset_save_CFLAGS" 11729fi 11730 11731if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 11732 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11734 fi 11735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 11737$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 11738if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 11739 $as_echo_n "(cached) " >&6 11740else 11741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11742/* end confdefs.h. */ 11743int i; 11744_ACEOF 11745if ac_fn_c_try_compile "$LINENO"; then : 11746 xorg_cv_compiler_flag_unused_command_line_argument=yes 11747else 11748 xorg_cv_compiler_flag_unused_command_line_argument=no 11749fi 11750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11751fi 11752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 11753$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 11754 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 11755 CFLAGS="$xorg_testset_save_CFLAGS" 11756fi 11757 11758found="no" 11759 11760 if test $found = "no" ; then 11761 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11763 fi 11764 11765 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 11766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11767 fi 11768 11769 CFLAGS="$CFLAGS -Wpointer-arith" 11770 11771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 11772$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 11773 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-arith` 11774 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 11775 $as_echo_n "(cached) " >&6 11776else 11777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11778/* end confdefs.h. */ 11779int i; 11780int 11781main () 11782{ 11783 11784 ; 11785 return 0; 11786} 11787_ACEOF 11788if ac_fn_c_try_link "$LINENO"; then : 11789 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 11790else 11791 eval `$as_echo "$cacheid" | $as_tr_sh`=no 11792fi 11793rm -f core conftest.err conftest.$ac_objext \ 11794 conftest$ac_exeext conftest.$ac_ext 11795fi 11796 11797 11798 CFLAGS="$xorg_testset_save_CFLAGS" 11799 11800 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11802$as_echo "$supported" >&6; } 11803 if test "$supported" = "yes" ; then 11804 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 11805 found="yes" 11806 fi 11807 fi 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821xorg_testset_save_CFLAGS="$CFLAGS" 11822 11823if test "x$xorg_testset_unknown_warning_option" = "x" ; then 11824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 11826$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 11827if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 11828 $as_echo_n "(cached) " >&6 11829else 11830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11831/* end confdefs.h. */ 11832int i; 11833_ACEOF 11834if ac_fn_c_try_compile "$LINENO"; then : 11835 xorg_cv_compiler_flag_unknown_warning_option=yes 11836else 11837 xorg_cv_compiler_flag_unknown_warning_option=no 11838fi 11839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11840fi 11841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 11842$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 11843 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 11844 CFLAGS="$xorg_testset_save_CFLAGS" 11845fi 11846 11847if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 11848 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11850 fi 11851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 11853$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 11854if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 11855 $as_echo_n "(cached) " >&6 11856else 11857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11858/* end confdefs.h. */ 11859int i; 11860_ACEOF 11861if ac_fn_c_try_compile "$LINENO"; then : 11862 xorg_cv_compiler_flag_unused_command_line_argument=yes 11863else 11864 xorg_cv_compiler_flag_unused_command_line_argument=no 11865fi 11866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11867fi 11868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 11869$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 11870 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 11871 CFLAGS="$xorg_testset_save_CFLAGS" 11872fi 11873 11874found="no" 11875 11876 if test $found = "no" ; then 11877 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11878 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11879 fi 11880 11881 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 11882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11883 fi 11884 11885 CFLAGS="$CFLAGS -Wmissing-declarations" 11886 11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 11888$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 11889 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-declarations` 11890 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 11891 $as_echo_n "(cached) " >&6 11892else 11893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11894/* end confdefs.h. */ 11895int i; 11896int 11897main () 11898{ 11899 11900 ; 11901 return 0; 11902} 11903_ACEOF 11904if ac_fn_c_try_link "$LINENO"; then : 11905 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 11906else 11907 eval `$as_echo "$cacheid" | $as_tr_sh`=no 11908fi 11909rm -f core conftest.err conftest.$ac_objext \ 11910 conftest$ac_exeext conftest.$ac_ext 11911fi 11912 11913 11914 CFLAGS="$xorg_testset_save_CFLAGS" 11915 11916 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11918$as_echo "$supported" >&6; } 11919 if test "$supported" = "yes" ; then 11920 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 11921 found="yes" 11922 fi 11923 fi 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937xorg_testset_save_CFLAGS="$CFLAGS" 11938 11939if test "x$xorg_testset_unknown_warning_option" = "x" ; then 11940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 11942$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 11943if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 11944 $as_echo_n "(cached) " >&6 11945else 11946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11947/* end confdefs.h. */ 11948int i; 11949_ACEOF 11950if ac_fn_c_try_compile "$LINENO"; then : 11951 xorg_cv_compiler_flag_unknown_warning_option=yes 11952else 11953 xorg_cv_compiler_flag_unknown_warning_option=no 11954fi 11955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11956fi 11957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 11958$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 11959 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 11960 CFLAGS="$xorg_testset_save_CFLAGS" 11961fi 11962 11963if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 11964 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11966 fi 11967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 11969$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 11970if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 11971 $as_echo_n "(cached) " >&6 11972else 11973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11974/* end confdefs.h. */ 11975int i; 11976_ACEOF 11977if ac_fn_c_try_compile "$LINENO"; then : 11978 xorg_cv_compiler_flag_unused_command_line_argument=yes 11979else 11980 xorg_cv_compiler_flag_unused_command_line_argument=no 11981fi 11982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11983fi 11984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 11985$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 11986 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 11987 CFLAGS="$xorg_testset_save_CFLAGS" 11988fi 11989 11990found="no" 11991 11992 if test $found = "no" ; then 11993 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11994 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11995 fi 11996 11997 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 11998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11999 fi 12000 12001 CFLAGS="$CFLAGS -Wformat=2" 12002 12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12004$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12005 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat=2` 12006 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12007 $as_echo_n "(cached) " >&6 12008else 12009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12010/* end confdefs.h. */ 12011int i; 12012int 12013main () 12014{ 12015 12016 ; 12017 return 0; 12018} 12019_ACEOF 12020if ac_fn_c_try_link "$LINENO"; then : 12021 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12022else 12023 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12024fi 12025rm -f core conftest.err conftest.$ac_objext \ 12026 conftest$ac_exeext conftest.$ac_ext 12027fi 12028 12029 12030 CFLAGS="$xorg_testset_save_CFLAGS" 12031 12032 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12034$as_echo "$supported" >&6; } 12035 if test "$supported" = "yes" ; then 12036 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12037 found="yes" 12038 fi 12039 fi 12040 12041 if test $found = "no" ; then 12042 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12044 fi 12045 12046 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12048 fi 12049 12050 CFLAGS="$CFLAGS -Wformat" 12051 12052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12053$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12054 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat` 12055 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12056 $as_echo_n "(cached) " >&6 12057else 12058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12059/* end confdefs.h. */ 12060int i; 12061int 12062main () 12063{ 12064 12065 ; 12066 return 0; 12067} 12068_ACEOF 12069if ac_fn_c_try_link "$LINENO"; then : 12070 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12071else 12072 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12073fi 12074rm -f core conftest.err conftest.$ac_objext \ 12075 conftest$ac_exeext conftest.$ac_ext 12076fi 12077 12078 12079 CFLAGS="$xorg_testset_save_CFLAGS" 12080 12081 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12083$as_echo "$supported" >&6; } 12084 if test "$supported" = "yes" ; then 12085 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12086 found="yes" 12087 fi 12088 fi 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104xorg_testset_save_CFLAGS="$CFLAGS" 12105 12106if test "x$xorg_testset_unknown_warning_option" = "x" ; then 12107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 12109$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 12110if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 12111 $as_echo_n "(cached) " >&6 12112else 12113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12114/* end confdefs.h. */ 12115int i; 12116_ACEOF 12117if ac_fn_c_try_compile "$LINENO"; then : 12118 xorg_cv_compiler_flag_unknown_warning_option=yes 12119else 12120 xorg_cv_compiler_flag_unknown_warning_option=no 12121fi 12122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12123fi 12124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 12125$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 12126 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 12127 CFLAGS="$xorg_testset_save_CFLAGS" 12128fi 12129 12130if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 12131 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12133 fi 12134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 12136$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 12137if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 12138 $as_echo_n "(cached) " >&6 12139else 12140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12141/* end confdefs.h. */ 12142int i; 12143_ACEOF 12144if ac_fn_c_try_compile "$LINENO"; then : 12145 xorg_cv_compiler_flag_unused_command_line_argument=yes 12146else 12147 xorg_cv_compiler_flag_unused_command_line_argument=no 12148fi 12149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12150fi 12151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 12152$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 12153 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 12154 CFLAGS="$xorg_testset_save_CFLAGS" 12155fi 12156 12157found="no" 12158 12159 if test $found = "no" ; then 12160 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12161 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12162 fi 12163 12164 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12166 fi 12167 12168 CFLAGS="$CFLAGS -Wstrict-prototypes" 12169 12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12171$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12172 cacheid=`$as_echo xorg_cv_cc_flag_-Wstrict-prototypes` 12173 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12174 $as_echo_n "(cached) " >&6 12175else 12176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12177/* end confdefs.h. */ 12178int i; 12179int 12180main () 12181{ 12182 12183 ; 12184 return 0; 12185} 12186_ACEOF 12187if ac_fn_c_try_link "$LINENO"; then : 12188 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12189else 12190 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12191fi 12192rm -f core conftest.err conftest.$ac_objext \ 12193 conftest$ac_exeext conftest.$ac_ext 12194fi 12195 12196 12197 CFLAGS="$xorg_testset_save_CFLAGS" 12198 12199 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12201$as_echo "$supported" >&6; } 12202 if test "$supported" = "yes" ; then 12203 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12204 found="yes" 12205 fi 12206 fi 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220xorg_testset_save_CFLAGS="$CFLAGS" 12221 12222if test "x$xorg_testset_unknown_warning_option" = "x" ; then 12223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 12225$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 12226if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 12227 $as_echo_n "(cached) " >&6 12228else 12229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12230/* end confdefs.h. */ 12231int i; 12232_ACEOF 12233if ac_fn_c_try_compile "$LINENO"; then : 12234 xorg_cv_compiler_flag_unknown_warning_option=yes 12235else 12236 xorg_cv_compiler_flag_unknown_warning_option=no 12237fi 12238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12239fi 12240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 12241$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 12242 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 12243 CFLAGS="$xorg_testset_save_CFLAGS" 12244fi 12245 12246if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 12247 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12249 fi 12250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 12252$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 12253if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 12254 $as_echo_n "(cached) " >&6 12255else 12256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12257/* end confdefs.h. */ 12258int i; 12259_ACEOF 12260if ac_fn_c_try_compile "$LINENO"; then : 12261 xorg_cv_compiler_flag_unused_command_line_argument=yes 12262else 12263 xorg_cv_compiler_flag_unused_command_line_argument=no 12264fi 12265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12266fi 12267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 12268$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 12269 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 12270 CFLAGS="$xorg_testset_save_CFLAGS" 12271fi 12272 12273found="no" 12274 12275 if test $found = "no" ; then 12276 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12278 fi 12279 12280 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12282 fi 12283 12284 CFLAGS="$CFLAGS -Wmissing-prototypes" 12285 12286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 12287$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 12288 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-prototypes` 12289 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12290 $as_echo_n "(cached) " >&6 12291else 12292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12293/* end confdefs.h. */ 12294int i; 12295int 12296main () 12297{ 12298 12299 ; 12300 return 0; 12301} 12302_ACEOF 12303if ac_fn_c_try_link "$LINENO"; then : 12304 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12305else 12306 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12307fi 12308rm -f core conftest.err conftest.$ac_objext \ 12309 conftest$ac_exeext conftest.$ac_ext 12310fi 12311 12312 12313 CFLAGS="$xorg_testset_save_CFLAGS" 12314 12315 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12317$as_echo "$supported" >&6; } 12318 if test "$supported" = "yes" ; then 12319 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 12320 found="yes" 12321 fi 12322 fi 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336xorg_testset_save_CFLAGS="$CFLAGS" 12337 12338if test "x$xorg_testset_unknown_warning_option" = "x" ; then 12339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 12341$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 12342if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 12343 $as_echo_n "(cached) " >&6 12344else 12345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12346/* end confdefs.h. */ 12347int i; 12348_ACEOF 12349if ac_fn_c_try_compile "$LINENO"; then : 12350 xorg_cv_compiler_flag_unknown_warning_option=yes 12351else 12352 xorg_cv_compiler_flag_unknown_warning_option=no 12353fi 12354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12355fi 12356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 12357$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 12358 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 12359 CFLAGS="$xorg_testset_save_CFLAGS" 12360fi 12361 12362if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 12363 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12365 fi 12366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 12368$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 12369if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 12370 $as_echo_n "(cached) " >&6 12371else 12372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12373/* end confdefs.h. */ 12374int i; 12375_ACEOF 12376if ac_fn_c_try_compile "$LINENO"; then : 12377 xorg_cv_compiler_flag_unused_command_line_argument=yes 12378else 12379 xorg_cv_compiler_flag_unused_command_line_argument=no 12380fi 12381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12382fi 12383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 12384$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 12385 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 12386 CFLAGS="$xorg_testset_save_CFLAGS" 12387fi 12388 12389found="no" 12390 12391 if test $found = "no" ; then 12392 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12394 fi 12395 12396 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12398 fi 12399 12400 CFLAGS="$CFLAGS -Wnested-externs" 12401 12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 12403$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 12404 cacheid=`$as_echo xorg_cv_cc_flag_-Wnested-externs` 12405 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12406 $as_echo_n "(cached) " >&6 12407else 12408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12409/* end confdefs.h. */ 12410int i; 12411int 12412main () 12413{ 12414 12415 ; 12416 return 0; 12417} 12418_ACEOF 12419if ac_fn_c_try_link "$LINENO"; then : 12420 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12421else 12422 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12423fi 12424rm -f core conftest.err conftest.$ac_objext \ 12425 conftest$ac_exeext conftest.$ac_ext 12426fi 12427 12428 12429 CFLAGS="$xorg_testset_save_CFLAGS" 12430 12431 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12433$as_echo "$supported" >&6; } 12434 if test "$supported" = "yes" ; then 12435 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 12436 found="yes" 12437 fi 12438 fi 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452xorg_testset_save_CFLAGS="$CFLAGS" 12453 12454if test "x$xorg_testset_unknown_warning_option" = "x" ; then 12455 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 12457$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 12458if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 12459 $as_echo_n "(cached) " >&6 12460else 12461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12462/* end confdefs.h. */ 12463int i; 12464_ACEOF 12465if ac_fn_c_try_compile "$LINENO"; then : 12466 xorg_cv_compiler_flag_unknown_warning_option=yes 12467else 12468 xorg_cv_compiler_flag_unknown_warning_option=no 12469fi 12470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12471fi 12472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 12473$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 12474 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 12475 CFLAGS="$xorg_testset_save_CFLAGS" 12476fi 12477 12478if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 12479 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12481 fi 12482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 12484$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 12485if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 12486 $as_echo_n "(cached) " >&6 12487else 12488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12489/* end confdefs.h. */ 12490int i; 12491_ACEOF 12492if ac_fn_c_try_compile "$LINENO"; then : 12493 xorg_cv_compiler_flag_unused_command_line_argument=yes 12494else 12495 xorg_cv_compiler_flag_unused_command_line_argument=no 12496fi 12497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12498fi 12499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 12500$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 12501 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 12502 CFLAGS="$xorg_testset_save_CFLAGS" 12503fi 12504 12505found="no" 12506 12507 if test $found = "no" ; then 12508 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12509 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12510 fi 12511 12512 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12514 fi 12515 12516 CFLAGS="$CFLAGS -Wbad-function-cast" 12517 12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 12519$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 12520 cacheid=`$as_echo xorg_cv_cc_flag_-Wbad-function-cast` 12521 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12522 $as_echo_n "(cached) " >&6 12523else 12524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12525/* end confdefs.h. */ 12526int i; 12527int 12528main () 12529{ 12530 12531 ; 12532 return 0; 12533} 12534_ACEOF 12535if ac_fn_c_try_link "$LINENO"; then : 12536 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12537else 12538 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12539fi 12540rm -f core conftest.err conftest.$ac_objext \ 12541 conftest$ac_exeext conftest.$ac_ext 12542fi 12543 12544 12545 CFLAGS="$xorg_testset_save_CFLAGS" 12546 12547 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12549$as_echo "$supported" >&6; } 12550 if test "$supported" = "yes" ; then 12551 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 12552 found="yes" 12553 fi 12554 fi 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568xorg_testset_save_CFLAGS="$CFLAGS" 12569 12570if test "x$xorg_testset_unknown_warning_option" = "x" ; then 12571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 12573$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 12574if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 12575 $as_echo_n "(cached) " >&6 12576else 12577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12578/* end confdefs.h. */ 12579int i; 12580_ACEOF 12581if ac_fn_c_try_compile "$LINENO"; then : 12582 xorg_cv_compiler_flag_unknown_warning_option=yes 12583else 12584 xorg_cv_compiler_flag_unknown_warning_option=no 12585fi 12586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12587fi 12588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 12589$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 12590 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 12591 CFLAGS="$xorg_testset_save_CFLAGS" 12592fi 12593 12594if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 12595 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12596 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12597 fi 12598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 12600$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 12601if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 12602 $as_echo_n "(cached) " >&6 12603else 12604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12605/* end confdefs.h. */ 12606int i; 12607_ACEOF 12608if ac_fn_c_try_compile "$LINENO"; then : 12609 xorg_cv_compiler_flag_unused_command_line_argument=yes 12610else 12611 xorg_cv_compiler_flag_unused_command_line_argument=no 12612fi 12613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12614fi 12615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 12616$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 12617 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 12618 CFLAGS="$xorg_testset_save_CFLAGS" 12619fi 12620 12621found="no" 12622 12623 if test $found = "no" ; then 12624 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12626 fi 12627 12628 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12630 fi 12631 12632 CFLAGS="$CFLAGS -Wold-style-definition" 12633 12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 12635$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 12636 cacheid=`$as_echo xorg_cv_cc_flag_-Wold-style-definition` 12637 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12638 $as_echo_n "(cached) " >&6 12639else 12640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12641/* end confdefs.h. */ 12642int i; 12643int 12644main () 12645{ 12646 12647 ; 12648 return 0; 12649} 12650_ACEOF 12651if ac_fn_c_try_link "$LINENO"; then : 12652 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12653else 12654 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12655fi 12656rm -f core conftest.err conftest.$ac_objext \ 12657 conftest$ac_exeext conftest.$ac_ext 12658fi 12659 12660 12661 CFLAGS="$xorg_testset_save_CFLAGS" 12662 12663 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12665$as_echo "$supported" >&6; } 12666 if test "$supported" = "yes" ; then 12667 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 12668 found="yes" 12669 fi 12670 fi 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684xorg_testset_save_CFLAGS="$CFLAGS" 12685 12686if test "x$xorg_testset_unknown_warning_option" = "x" ; then 12687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 12689$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 12690if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 12691 $as_echo_n "(cached) " >&6 12692else 12693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12694/* end confdefs.h. */ 12695int i; 12696_ACEOF 12697if ac_fn_c_try_compile "$LINENO"; then : 12698 xorg_cv_compiler_flag_unknown_warning_option=yes 12699else 12700 xorg_cv_compiler_flag_unknown_warning_option=no 12701fi 12702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12703fi 12704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 12705$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 12706 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 12707 CFLAGS="$xorg_testset_save_CFLAGS" 12708fi 12709 12710if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 12711 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12713 fi 12714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 12716$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 12717if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 12718 $as_echo_n "(cached) " >&6 12719else 12720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12721/* end confdefs.h. */ 12722int i; 12723_ACEOF 12724if ac_fn_c_try_compile "$LINENO"; then : 12725 xorg_cv_compiler_flag_unused_command_line_argument=yes 12726else 12727 xorg_cv_compiler_flag_unused_command_line_argument=no 12728fi 12729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12730fi 12731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 12732$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 12733 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 12734 CFLAGS="$xorg_testset_save_CFLAGS" 12735fi 12736 12737found="no" 12738 12739 if test $found = "no" ; then 12740 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12742 fi 12743 12744 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12746 fi 12747 12748 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 12749 12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 12751$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 12752 cacheid=`$as_echo xorg_cv_cc_flag_-Wdeclaration-after-statement` 12753 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12754 $as_echo_n "(cached) " >&6 12755else 12756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12757/* end confdefs.h. */ 12758int i; 12759int 12760main () 12761{ 12762 12763 ; 12764 return 0; 12765} 12766_ACEOF 12767if ac_fn_c_try_link "$LINENO"; then : 12768 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12769else 12770 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12771fi 12772rm -f core conftest.err conftest.$ac_objext \ 12773 conftest$ac_exeext conftest.$ac_ext 12774fi 12775 12776 12777 CFLAGS="$xorg_testset_save_CFLAGS" 12778 12779 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12781$as_echo "$supported" >&6; } 12782 if test "$supported" = "yes" ; then 12783 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 12784 found="yes" 12785 fi 12786 fi 12787 12788 12789 12790 12791 12792# This chunk adds additional warnings that could catch undesired effects. 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804xorg_testset_save_CFLAGS="$CFLAGS" 12805 12806if test "x$xorg_testset_unknown_warning_option" = "x" ; then 12807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 12809$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 12810if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 12811 $as_echo_n "(cached) " >&6 12812else 12813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12814/* end confdefs.h. */ 12815int i; 12816_ACEOF 12817if ac_fn_c_try_compile "$LINENO"; then : 12818 xorg_cv_compiler_flag_unknown_warning_option=yes 12819else 12820 xorg_cv_compiler_flag_unknown_warning_option=no 12821fi 12822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12823fi 12824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 12825$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 12826 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 12827 CFLAGS="$xorg_testset_save_CFLAGS" 12828fi 12829 12830if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 12831 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12833 fi 12834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 12836$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 12837if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 12838 $as_echo_n "(cached) " >&6 12839else 12840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12841/* end confdefs.h. */ 12842int i; 12843_ACEOF 12844if ac_fn_c_try_compile "$LINENO"; then : 12845 xorg_cv_compiler_flag_unused_command_line_argument=yes 12846else 12847 xorg_cv_compiler_flag_unused_command_line_argument=no 12848fi 12849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12850fi 12851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 12852$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 12853 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 12854 CFLAGS="$xorg_testset_save_CFLAGS" 12855fi 12856 12857found="no" 12858 12859 if test $found = "no" ; then 12860 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12862 fi 12863 12864 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12866 fi 12867 12868 CFLAGS="$CFLAGS -Wunused" 12869 12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 12871$as_echo_n "checking if $CC supports -Wunused... " >&6; } 12872 cacheid=`$as_echo xorg_cv_cc_flag_-Wunused` 12873 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12874 $as_echo_n "(cached) " >&6 12875else 12876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12877/* end confdefs.h. */ 12878int i; 12879int 12880main () 12881{ 12882 12883 ; 12884 return 0; 12885} 12886_ACEOF 12887if ac_fn_c_try_link "$LINENO"; then : 12888 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 12889else 12890 eval `$as_echo "$cacheid" | $as_tr_sh`=no 12891fi 12892rm -f core conftest.err conftest.$ac_objext \ 12893 conftest$ac_exeext conftest.$ac_ext 12894fi 12895 12896 12897 CFLAGS="$xorg_testset_save_CFLAGS" 12898 12899 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12901$as_echo "$supported" >&6; } 12902 if test "$supported" = "yes" ; then 12903 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 12904 found="yes" 12905 fi 12906 fi 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920xorg_testset_save_CFLAGS="$CFLAGS" 12921 12922if test "x$xorg_testset_unknown_warning_option" = "x" ; then 12923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 12925$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 12926if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 12927 $as_echo_n "(cached) " >&6 12928else 12929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12930/* end confdefs.h. */ 12931int i; 12932_ACEOF 12933if ac_fn_c_try_compile "$LINENO"; then : 12934 xorg_cv_compiler_flag_unknown_warning_option=yes 12935else 12936 xorg_cv_compiler_flag_unknown_warning_option=no 12937fi 12938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12939fi 12940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 12941$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 12942 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 12943 CFLAGS="$xorg_testset_save_CFLAGS" 12944fi 12945 12946if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 12947 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12949 fi 12950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 12952$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 12953if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 12954 $as_echo_n "(cached) " >&6 12955else 12956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12957/* end confdefs.h. */ 12958int i; 12959_ACEOF 12960if ac_fn_c_try_compile "$LINENO"; then : 12961 xorg_cv_compiler_flag_unused_command_line_argument=yes 12962else 12963 xorg_cv_compiler_flag_unused_command_line_argument=no 12964fi 12965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12966fi 12967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 12968$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 12969 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 12970 CFLAGS="$xorg_testset_save_CFLAGS" 12971fi 12972 12973found="no" 12974 12975 if test $found = "no" ; then 12976 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12978 fi 12979 12980 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12982 fi 12983 12984 CFLAGS="$CFLAGS -Wuninitialized" 12985 12986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 12987$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 12988 cacheid=`$as_echo xorg_cv_cc_flag_-Wuninitialized` 12989 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 12990 $as_echo_n "(cached) " >&6 12991else 12992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12993/* end confdefs.h. */ 12994int i; 12995int 12996main () 12997{ 12998 12999 ; 13000 return 0; 13001} 13002_ACEOF 13003if ac_fn_c_try_link "$LINENO"; then : 13004 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13005else 13006 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13007fi 13008rm -f core conftest.err conftest.$ac_objext \ 13009 conftest$ac_exeext conftest.$ac_ext 13010fi 13011 13012 13013 CFLAGS="$xorg_testset_save_CFLAGS" 13014 13015 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13017$as_echo "$supported" >&6; } 13018 if test "$supported" = "yes" ; then 13019 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13020 found="yes" 13021 fi 13022 fi 13023 13024 13025 13026 13027 13028 13029 13030 13031 13032 13033 13034 13035 13036xorg_testset_save_CFLAGS="$CFLAGS" 13037 13038if test "x$xorg_testset_unknown_warning_option" = "x" ; then 13039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 13041$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 13042if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 13043 $as_echo_n "(cached) " >&6 13044else 13045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13046/* end confdefs.h. */ 13047int i; 13048_ACEOF 13049if ac_fn_c_try_compile "$LINENO"; then : 13050 xorg_cv_compiler_flag_unknown_warning_option=yes 13051else 13052 xorg_cv_compiler_flag_unknown_warning_option=no 13053fi 13054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13055fi 13056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 13057$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 13058 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 13059 CFLAGS="$xorg_testset_save_CFLAGS" 13060fi 13061 13062if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 13063 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13065 fi 13066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 13068$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 13069if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 13070 $as_echo_n "(cached) " >&6 13071else 13072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13073/* end confdefs.h. */ 13074int i; 13075_ACEOF 13076if ac_fn_c_try_compile "$LINENO"; then : 13077 xorg_cv_compiler_flag_unused_command_line_argument=yes 13078else 13079 xorg_cv_compiler_flag_unused_command_line_argument=no 13080fi 13081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13082fi 13083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 13084$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 13085 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 13086 CFLAGS="$xorg_testset_save_CFLAGS" 13087fi 13088 13089found="no" 13090 13091 if test $found = "no" ; then 13092 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13094 fi 13095 13096 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13098 fi 13099 13100 CFLAGS="$CFLAGS -Wshadow" 13101 13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13103$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13104 cacheid=`$as_echo xorg_cv_cc_flag_-Wshadow` 13105 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13106 $as_echo_n "(cached) " >&6 13107else 13108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13109/* end confdefs.h. */ 13110int i; 13111int 13112main () 13113{ 13114 13115 ; 13116 return 0; 13117} 13118_ACEOF 13119if ac_fn_c_try_link "$LINENO"; then : 13120 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13121else 13122 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13123fi 13124rm -f core conftest.err conftest.$ac_objext \ 13125 conftest$ac_exeext conftest.$ac_ext 13126fi 13127 13128 13129 CFLAGS="$xorg_testset_save_CFLAGS" 13130 13131 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13133$as_echo "$supported" >&6; } 13134 if test "$supported" = "yes" ; then 13135 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13136 found="yes" 13137 fi 13138 fi 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152xorg_testset_save_CFLAGS="$CFLAGS" 13153 13154if test "x$xorg_testset_unknown_warning_option" = "x" ; then 13155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 13157$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 13158if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 13159 $as_echo_n "(cached) " >&6 13160else 13161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13162/* end confdefs.h. */ 13163int i; 13164_ACEOF 13165if ac_fn_c_try_compile "$LINENO"; then : 13166 xorg_cv_compiler_flag_unknown_warning_option=yes 13167else 13168 xorg_cv_compiler_flag_unknown_warning_option=no 13169fi 13170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13171fi 13172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 13173$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 13174 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 13175 CFLAGS="$xorg_testset_save_CFLAGS" 13176fi 13177 13178if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 13179 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13180 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13181 fi 13182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 13184$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 13185if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 13186 $as_echo_n "(cached) " >&6 13187else 13188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13189/* end confdefs.h. */ 13190int i; 13191_ACEOF 13192if ac_fn_c_try_compile "$LINENO"; then : 13193 xorg_cv_compiler_flag_unused_command_line_argument=yes 13194else 13195 xorg_cv_compiler_flag_unused_command_line_argument=no 13196fi 13197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13198fi 13199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 13200$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 13201 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 13202 CFLAGS="$xorg_testset_save_CFLAGS" 13203fi 13204 13205found="no" 13206 13207 if test $found = "no" ; then 13208 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13210 fi 13211 13212 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13214 fi 13215 13216 CFLAGS="$CFLAGS -Wcast-qual" 13217 13218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 13219$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 13220 cacheid=`$as_echo xorg_cv_cc_flag_-Wcast-qual` 13221 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13222 $as_echo_n "(cached) " >&6 13223else 13224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13225/* end confdefs.h. */ 13226int i; 13227int 13228main () 13229{ 13230 13231 ; 13232 return 0; 13233} 13234_ACEOF 13235if ac_fn_c_try_link "$LINENO"; then : 13236 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13237else 13238 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13239fi 13240rm -f core conftest.err conftest.$ac_objext \ 13241 conftest$ac_exeext conftest.$ac_ext 13242fi 13243 13244 13245 CFLAGS="$xorg_testset_save_CFLAGS" 13246 13247 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13249$as_echo "$supported" >&6; } 13250 if test "$supported" = "yes" ; then 13251 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 13252 found="yes" 13253 fi 13254 fi 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268xorg_testset_save_CFLAGS="$CFLAGS" 13269 13270if test "x$xorg_testset_unknown_warning_option" = "x" ; then 13271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 13273$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 13274if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 13275 $as_echo_n "(cached) " >&6 13276else 13277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13278/* end confdefs.h. */ 13279int i; 13280_ACEOF 13281if ac_fn_c_try_compile "$LINENO"; then : 13282 xorg_cv_compiler_flag_unknown_warning_option=yes 13283else 13284 xorg_cv_compiler_flag_unknown_warning_option=no 13285fi 13286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13287fi 13288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 13289$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 13290 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 13291 CFLAGS="$xorg_testset_save_CFLAGS" 13292fi 13293 13294if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 13295 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13297 fi 13298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 13300$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 13301if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 13302 $as_echo_n "(cached) " >&6 13303else 13304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13305/* end confdefs.h. */ 13306int i; 13307_ACEOF 13308if ac_fn_c_try_compile "$LINENO"; then : 13309 xorg_cv_compiler_flag_unused_command_line_argument=yes 13310else 13311 xorg_cv_compiler_flag_unused_command_line_argument=no 13312fi 13313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13314fi 13315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 13316$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 13317 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 13318 CFLAGS="$xorg_testset_save_CFLAGS" 13319fi 13320 13321found="no" 13322 13323 if test $found = "no" ; then 13324 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13326 fi 13327 13328 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13330 fi 13331 13332 CFLAGS="$CFLAGS -Wmissing-noreturn" 13333 13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 13335$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 13336 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-noreturn` 13337 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13338 $as_echo_n "(cached) " >&6 13339else 13340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13341/* end confdefs.h. */ 13342int i; 13343int 13344main () 13345{ 13346 13347 ; 13348 return 0; 13349} 13350_ACEOF 13351if ac_fn_c_try_link "$LINENO"; then : 13352 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13353else 13354 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13355fi 13356rm -f core conftest.err conftest.$ac_objext \ 13357 conftest$ac_exeext conftest.$ac_ext 13358fi 13359 13360 13361 CFLAGS="$xorg_testset_save_CFLAGS" 13362 13363 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13365$as_echo "$supported" >&6; } 13366 if test "$supported" = "yes" ; then 13367 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 13368 found="yes" 13369 fi 13370 fi 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384xorg_testset_save_CFLAGS="$CFLAGS" 13385 13386if test "x$xorg_testset_unknown_warning_option" = "x" ; then 13387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 13389$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 13390if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 13391 $as_echo_n "(cached) " >&6 13392else 13393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13394/* end confdefs.h. */ 13395int i; 13396_ACEOF 13397if ac_fn_c_try_compile "$LINENO"; then : 13398 xorg_cv_compiler_flag_unknown_warning_option=yes 13399else 13400 xorg_cv_compiler_flag_unknown_warning_option=no 13401fi 13402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13403fi 13404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 13405$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 13406 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 13407 CFLAGS="$xorg_testset_save_CFLAGS" 13408fi 13409 13410if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 13411 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13413 fi 13414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 13416$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 13417if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 13418 $as_echo_n "(cached) " >&6 13419else 13420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13421/* end confdefs.h. */ 13422int i; 13423_ACEOF 13424if ac_fn_c_try_compile "$LINENO"; then : 13425 xorg_cv_compiler_flag_unused_command_line_argument=yes 13426else 13427 xorg_cv_compiler_flag_unused_command_line_argument=no 13428fi 13429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13430fi 13431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 13432$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 13433 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 13434 CFLAGS="$xorg_testset_save_CFLAGS" 13435fi 13436 13437found="no" 13438 13439 if test $found = "no" ; then 13440 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13441 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13442 fi 13443 13444 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13445 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13446 fi 13447 13448 CFLAGS="$CFLAGS -Wmissing-format-attribute" 13449 13450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 13451$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 13452 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-format-attribute` 13453 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13454 $as_echo_n "(cached) " >&6 13455else 13456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13457/* end confdefs.h. */ 13458int i; 13459int 13460main () 13461{ 13462 13463 ; 13464 return 0; 13465} 13466_ACEOF 13467if ac_fn_c_try_link "$LINENO"; then : 13468 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13469else 13470 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13471fi 13472rm -f core conftest.err conftest.$ac_objext \ 13473 conftest$ac_exeext conftest.$ac_ext 13474fi 13475 13476 13477 CFLAGS="$xorg_testset_save_CFLAGS" 13478 13479 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13481$as_echo "$supported" >&6; } 13482 if test "$supported" = "yes" ; then 13483 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 13484 found="yes" 13485 fi 13486 fi 13487 13488 13489 13490 13491 13492 13493 13494 13495 13496 13497 13498 13499 13500xorg_testset_save_CFLAGS="$CFLAGS" 13501 13502if test "x$xorg_testset_unknown_warning_option" = "x" ; then 13503 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 13505$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 13506if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 13507 $as_echo_n "(cached) " >&6 13508else 13509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13510/* end confdefs.h. */ 13511int i; 13512_ACEOF 13513if ac_fn_c_try_compile "$LINENO"; then : 13514 xorg_cv_compiler_flag_unknown_warning_option=yes 13515else 13516 xorg_cv_compiler_flag_unknown_warning_option=no 13517fi 13518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13519fi 13520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 13521$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 13522 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 13523 CFLAGS="$xorg_testset_save_CFLAGS" 13524fi 13525 13526if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 13527 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13529 fi 13530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 13532$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 13533if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 13534 $as_echo_n "(cached) " >&6 13535else 13536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13537/* end confdefs.h. */ 13538int i; 13539_ACEOF 13540if ac_fn_c_try_compile "$LINENO"; then : 13541 xorg_cv_compiler_flag_unused_command_line_argument=yes 13542else 13543 xorg_cv_compiler_flag_unused_command_line_argument=no 13544fi 13545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13546fi 13547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 13548$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 13549 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 13550 CFLAGS="$xorg_testset_save_CFLAGS" 13551fi 13552 13553found="no" 13554 13555 if test $found = "no" ; then 13556 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13558 fi 13559 13560 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13562 fi 13563 13564 CFLAGS="$CFLAGS -Wredundant-decls" 13565 13566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 13567$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 13568 cacheid=`$as_echo xorg_cv_cc_flag_-Wredundant-decls` 13569 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13570 $as_echo_n "(cached) " >&6 13571else 13572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13573/* end confdefs.h. */ 13574int i; 13575int 13576main () 13577{ 13578 13579 ; 13580 return 0; 13581} 13582_ACEOF 13583if ac_fn_c_try_link "$LINENO"; then : 13584 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13585else 13586 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13587fi 13588rm -f core conftest.err conftest.$ac_objext \ 13589 conftest$ac_exeext conftest.$ac_ext 13590fi 13591 13592 13593 CFLAGS="$xorg_testset_save_CFLAGS" 13594 13595 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13597$as_echo "$supported" >&6; } 13598 if test "$supported" = "yes" ; then 13599 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 13600 found="yes" 13601 fi 13602 fi 13603 13604 13605 13606# These are currently disabled because they are noisy. They will be enabled 13607# in the future once the codebase is sufficiently modernized to silence 13608# them. For now, I don't want them to drown out the other warnings. 13609# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 13610# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 13611# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 13612 13613# Turn some warnings into errors, so we don't accidently get successful builds 13614# when there are problems that should be fixed. 13615 13616if test "x$SELECTIVE_WERROR" = "xyes" ; then 13617 13618 13619 13620 13621 13622 13623 13624 13625 13626 13627 13628xorg_testset_save_CFLAGS="$CFLAGS" 13629 13630if test "x$xorg_testset_unknown_warning_option" = "x" ; then 13631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 13633$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 13634if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 13635 $as_echo_n "(cached) " >&6 13636else 13637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13638/* end confdefs.h. */ 13639int i; 13640_ACEOF 13641if ac_fn_c_try_compile "$LINENO"; then : 13642 xorg_cv_compiler_flag_unknown_warning_option=yes 13643else 13644 xorg_cv_compiler_flag_unknown_warning_option=no 13645fi 13646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13647fi 13648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 13649$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 13650 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 13651 CFLAGS="$xorg_testset_save_CFLAGS" 13652fi 13653 13654if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 13655 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13657 fi 13658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 13660$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 13661if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 13662 $as_echo_n "(cached) " >&6 13663else 13664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13665/* end confdefs.h. */ 13666int i; 13667_ACEOF 13668if ac_fn_c_try_compile "$LINENO"; then : 13669 xorg_cv_compiler_flag_unused_command_line_argument=yes 13670else 13671 xorg_cv_compiler_flag_unused_command_line_argument=no 13672fi 13673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13674fi 13675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 13676$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 13677 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 13678 CFLAGS="$xorg_testset_save_CFLAGS" 13679fi 13680 13681found="no" 13682 13683 if test $found = "no" ; then 13684 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13685 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13686 fi 13687 13688 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13690 fi 13691 13692 CFLAGS="$CFLAGS -Werror=implicit" 13693 13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 13695$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 13696 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=implicit` 13697 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13698 $as_echo_n "(cached) " >&6 13699else 13700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13701/* end confdefs.h. */ 13702int i; 13703int 13704main () 13705{ 13706 13707 ; 13708 return 0; 13709} 13710_ACEOF 13711if ac_fn_c_try_link "$LINENO"; then : 13712 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13713else 13714 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13715fi 13716rm -f core conftest.err conftest.$ac_objext \ 13717 conftest$ac_exeext conftest.$ac_ext 13718fi 13719 13720 13721 CFLAGS="$xorg_testset_save_CFLAGS" 13722 13723 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13725$as_echo "$supported" >&6; } 13726 if test "$supported" = "yes" ; then 13727 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 13728 found="yes" 13729 fi 13730 fi 13731 13732 if test $found = "no" ; then 13733 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13734 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13735 fi 13736 13737 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13739 fi 13740 13741 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 13742 13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 13744$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 13745 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED` 13746 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13747 $as_echo_n "(cached) " >&6 13748else 13749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13750/* end confdefs.h. */ 13751int i; 13752int 13753main () 13754{ 13755 13756 ; 13757 return 0; 13758} 13759_ACEOF 13760if ac_fn_c_try_link "$LINENO"; then : 13761 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13762else 13763 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13764fi 13765rm -f core conftest.err conftest.$ac_objext \ 13766 conftest$ac_exeext conftest.$ac_ext 13767fi 13768 13769 13770 CFLAGS="$xorg_testset_save_CFLAGS" 13771 13772 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13774$as_echo "$supported" >&6; } 13775 if test "$supported" = "yes" ; then 13776 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 13777 found="yes" 13778 fi 13779 fi 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793xorg_testset_save_CFLAGS="$CFLAGS" 13794 13795if test "x$xorg_testset_unknown_warning_option" = "x" ; then 13796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 13798$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 13799if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 13800 $as_echo_n "(cached) " >&6 13801else 13802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13803/* end confdefs.h. */ 13804int i; 13805_ACEOF 13806if ac_fn_c_try_compile "$LINENO"; then : 13807 xorg_cv_compiler_flag_unknown_warning_option=yes 13808else 13809 xorg_cv_compiler_flag_unknown_warning_option=no 13810fi 13811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13812fi 13813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 13814$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 13815 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 13816 CFLAGS="$xorg_testset_save_CFLAGS" 13817fi 13818 13819if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 13820 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13822 fi 13823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 13825$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 13826if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 13827 $as_echo_n "(cached) " >&6 13828else 13829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13830/* end confdefs.h. */ 13831int i; 13832_ACEOF 13833if ac_fn_c_try_compile "$LINENO"; then : 13834 xorg_cv_compiler_flag_unused_command_line_argument=yes 13835else 13836 xorg_cv_compiler_flag_unused_command_line_argument=no 13837fi 13838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13839fi 13840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 13841$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 13842 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 13843 CFLAGS="$xorg_testset_save_CFLAGS" 13844fi 13845 13846found="no" 13847 13848 if test $found = "no" ; then 13849 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13851 fi 13852 13853 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13855 fi 13856 13857 CFLAGS="$CFLAGS -Werror=nonnull" 13858 13859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 13860$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 13861 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=nonnull` 13862 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13863 $as_echo_n "(cached) " >&6 13864else 13865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13866/* end confdefs.h. */ 13867int i; 13868int 13869main () 13870{ 13871 13872 ; 13873 return 0; 13874} 13875_ACEOF 13876if ac_fn_c_try_link "$LINENO"; then : 13877 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13878else 13879 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13880fi 13881rm -f core conftest.err conftest.$ac_objext \ 13882 conftest$ac_exeext conftest.$ac_ext 13883fi 13884 13885 13886 CFLAGS="$xorg_testset_save_CFLAGS" 13887 13888 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13890$as_echo "$supported" >&6; } 13891 if test "$supported" = "yes" ; then 13892 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 13893 found="yes" 13894 fi 13895 fi 13896 13897 13898 13899 13900 13901 13902 13903 13904 13905 13906 13907 13908 13909xorg_testset_save_CFLAGS="$CFLAGS" 13910 13911if test "x$xorg_testset_unknown_warning_option" = "x" ; then 13912 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 13914$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 13915if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 13916 $as_echo_n "(cached) " >&6 13917else 13918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13919/* end confdefs.h. */ 13920int i; 13921_ACEOF 13922if ac_fn_c_try_compile "$LINENO"; then : 13923 xorg_cv_compiler_flag_unknown_warning_option=yes 13924else 13925 xorg_cv_compiler_flag_unknown_warning_option=no 13926fi 13927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13928fi 13929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 13930$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 13931 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 13932 CFLAGS="$xorg_testset_save_CFLAGS" 13933fi 13934 13935if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 13936 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13937 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13938 fi 13939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 13941$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 13942if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 13943 $as_echo_n "(cached) " >&6 13944else 13945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13946/* end confdefs.h. */ 13947int i; 13948_ACEOF 13949if ac_fn_c_try_compile "$LINENO"; then : 13950 xorg_cv_compiler_flag_unused_command_line_argument=yes 13951else 13952 xorg_cv_compiler_flag_unused_command_line_argument=no 13953fi 13954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13955fi 13956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 13957$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 13958 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 13959 CFLAGS="$xorg_testset_save_CFLAGS" 13960fi 13961 13962found="no" 13963 13964 if test $found = "no" ; then 13965 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13967 fi 13968 13969 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13971 fi 13972 13973 CFLAGS="$CFLAGS -Werror=init-self" 13974 13975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 13976$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 13977 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=init-self` 13978 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13979 $as_echo_n "(cached) " >&6 13980else 13981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13982/* end confdefs.h. */ 13983int i; 13984int 13985main () 13986{ 13987 13988 ; 13989 return 0; 13990} 13991_ACEOF 13992if ac_fn_c_try_link "$LINENO"; then : 13993 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 13994else 13995 eval `$as_echo "$cacheid" | $as_tr_sh`=no 13996fi 13997rm -f core conftest.err conftest.$ac_objext \ 13998 conftest$ac_exeext conftest.$ac_ext 13999fi 14000 14001 14002 CFLAGS="$xorg_testset_save_CFLAGS" 14003 14004 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14006$as_echo "$supported" >&6; } 14007 if test "$supported" = "yes" ; then 14008 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14009 found="yes" 14010 fi 14011 fi 14012 14013 14014 14015 14016 14017 14018 14019 14020 14021 14022 14023 14024 14025xorg_testset_save_CFLAGS="$CFLAGS" 14026 14027if test "x$xorg_testset_unknown_warning_option" = "x" ; then 14028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 14030$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 14031if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 14032 $as_echo_n "(cached) " >&6 14033else 14034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14035/* end confdefs.h. */ 14036int i; 14037_ACEOF 14038if ac_fn_c_try_compile "$LINENO"; then : 14039 xorg_cv_compiler_flag_unknown_warning_option=yes 14040else 14041 xorg_cv_compiler_flag_unknown_warning_option=no 14042fi 14043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14044fi 14045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 14046$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 14047 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 14048 CFLAGS="$xorg_testset_save_CFLAGS" 14049fi 14050 14051if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 14052 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14054 fi 14055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 14057$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 14058if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 14059 $as_echo_n "(cached) " >&6 14060else 14061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14062/* end confdefs.h. */ 14063int i; 14064_ACEOF 14065if ac_fn_c_try_compile "$LINENO"; then : 14066 xorg_cv_compiler_flag_unused_command_line_argument=yes 14067else 14068 xorg_cv_compiler_flag_unused_command_line_argument=no 14069fi 14070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14071fi 14072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 14073$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 14074 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 14075 CFLAGS="$xorg_testset_save_CFLAGS" 14076fi 14077 14078found="no" 14079 14080 if test $found = "no" ; then 14081 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14083 fi 14084 14085 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14087 fi 14088 14089 CFLAGS="$CFLAGS -Werror=main" 14090 14091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14092$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14093 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=main` 14094 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14095 $as_echo_n "(cached) " >&6 14096else 14097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14098/* end confdefs.h. */ 14099int i; 14100int 14101main () 14102{ 14103 14104 ; 14105 return 0; 14106} 14107_ACEOF 14108if ac_fn_c_try_link "$LINENO"; then : 14109 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14110else 14111 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14112fi 14113rm -f core conftest.err conftest.$ac_objext \ 14114 conftest$ac_exeext conftest.$ac_ext 14115fi 14116 14117 14118 CFLAGS="$xorg_testset_save_CFLAGS" 14119 14120 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14122$as_echo "$supported" >&6; } 14123 if test "$supported" = "yes" ; then 14124 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14125 found="yes" 14126 fi 14127 fi 14128 14129 14130 14131 14132 14133 14134 14135 14136 14137 14138 14139 14140 14141xorg_testset_save_CFLAGS="$CFLAGS" 14142 14143if test "x$xorg_testset_unknown_warning_option" = "x" ; then 14144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 14146$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 14147if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 14148 $as_echo_n "(cached) " >&6 14149else 14150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14151/* end confdefs.h. */ 14152int i; 14153_ACEOF 14154if ac_fn_c_try_compile "$LINENO"; then : 14155 xorg_cv_compiler_flag_unknown_warning_option=yes 14156else 14157 xorg_cv_compiler_flag_unknown_warning_option=no 14158fi 14159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14160fi 14161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 14162$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 14163 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 14164 CFLAGS="$xorg_testset_save_CFLAGS" 14165fi 14166 14167if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 14168 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14170 fi 14171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 14173$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 14174if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 14175 $as_echo_n "(cached) " >&6 14176else 14177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14178/* end confdefs.h. */ 14179int i; 14180_ACEOF 14181if ac_fn_c_try_compile "$LINENO"; then : 14182 xorg_cv_compiler_flag_unused_command_line_argument=yes 14183else 14184 xorg_cv_compiler_flag_unused_command_line_argument=no 14185fi 14186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14187fi 14188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 14189$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 14190 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 14191 CFLAGS="$xorg_testset_save_CFLAGS" 14192fi 14193 14194found="no" 14195 14196 if test $found = "no" ; then 14197 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14199 fi 14200 14201 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14203 fi 14204 14205 CFLAGS="$CFLAGS -Werror=missing-braces" 14206 14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 14208$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 14209 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=missing-braces` 14210 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14211 $as_echo_n "(cached) " >&6 14212else 14213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14214/* end confdefs.h. */ 14215int i; 14216int 14217main () 14218{ 14219 14220 ; 14221 return 0; 14222} 14223_ACEOF 14224if ac_fn_c_try_link "$LINENO"; then : 14225 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14226else 14227 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14228fi 14229rm -f core conftest.err conftest.$ac_objext \ 14230 conftest$ac_exeext conftest.$ac_ext 14231fi 14232 14233 14234 CFLAGS="$xorg_testset_save_CFLAGS" 14235 14236 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14238$as_echo "$supported" >&6; } 14239 if test "$supported" = "yes" ; then 14240 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 14241 found="yes" 14242 fi 14243 fi 14244 14245 14246 14247 14248 14249 14250 14251 14252 14253 14254 14255 14256 14257xorg_testset_save_CFLAGS="$CFLAGS" 14258 14259if test "x$xorg_testset_unknown_warning_option" = "x" ; then 14260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 14262$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 14263if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 14264 $as_echo_n "(cached) " >&6 14265else 14266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14267/* end confdefs.h. */ 14268int i; 14269_ACEOF 14270if ac_fn_c_try_compile "$LINENO"; then : 14271 xorg_cv_compiler_flag_unknown_warning_option=yes 14272else 14273 xorg_cv_compiler_flag_unknown_warning_option=no 14274fi 14275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14276fi 14277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 14278$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 14279 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 14280 CFLAGS="$xorg_testset_save_CFLAGS" 14281fi 14282 14283if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 14284 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14286 fi 14287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 14289$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 14290if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 14291 $as_echo_n "(cached) " >&6 14292else 14293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14294/* end confdefs.h. */ 14295int i; 14296_ACEOF 14297if ac_fn_c_try_compile "$LINENO"; then : 14298 xorg_cv_compiler_flag_unused_command_line_argument=yes 14299else 14300 xorg_cv_compiler_flag_unused_command_line_argument=no 14301fi 14302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14303fi 14304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 14305$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 14306 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 14307 CFLAGS="$xorg_testset_save_CFLAGS" 14308fi 14309 14310found="no" 14311 14312 if test $found = "no" ; then 14313 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14315 fi 14316 14317 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14319 fi 14320 14321 CFLAGS="$CFLAGS -Werror=sequence-point" 14322 14323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 14324$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 14325 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=sequence-point` 14326 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14327 $as_echo_n "(cached) " >&6 14328else 14329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14330/* end confdefs.h. */ 14331int i; 14332int 14333main () 14334{ 14335 14336 ; 14337 return 0; 14338} 14339_ACEOF 14340if ac_fn_c_try_link "$LINENO"; then : 14341 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14342else 14343 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14344fi 14345rm -f core conftest.err conftest.$ac_objext \ 14346 conftest$ac_exeext conftest.$ac_ext 14347fi 14348 14349 14350 CFLAGS="$xorg_testset_save_CFLAGS" 14351 14352 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14354$as_echo "$supported" >&6; } 14355 if test "$supported" = "yes" ; then 14356 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 14357 found="yes" 14358 fi 14359 fi 14360 14361 14362 14363 14364 14365 14366 14367 14368 14369 14370 14371 14372 14373xorg_testset_save_CFLAGS="$CFLAGS" 14374 14375if test "x$xorg_testset_unknown_warning_option" = "x" ; then 14376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 14378$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 14379if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 14380 $as_echo_n "(cached) " >&6 14381else 14382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14383/* end confdefs.h. */ 14384int i; 14385_ACEOF 14386if ac_fn_c_try_compile "$LINENO"; then : 14387 xorg_cv_compiler_flag_unknown_warning_option=yes 14388else 14389 xorg_cv_compiler_flag_unknown_warning_option=no 14390fi 14391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14392fi 14393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 14394$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 14395 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 14396 CFLAGS="$xorg_testset_save_CFLAGS" 14397fi 14398 14399if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 14400 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14401 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14402 fi 14403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 14405$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 14406if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 14407 $as_echo_n "(cached) " >&6 14408else 14409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14410/* end confdefs.h. */ 14411int i; 14412_ACEOF 14413if ac_fn_c_try_compile "$LINENO"; then : 14414 xorg_cv_compiler_flag_unused_command_line_argument=yes 14415else 14416 xorg_cv_compiler_flag_unused_command_line_argument=no 14417fi 14418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14419fi 14420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 14421$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 14422 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 14423 CFLAGS="$xorg_testset_save_CFLAGS" 14424fi 14425 14426found="no" 14427 14428 if test $found = "no" ; then 14429 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14431 fi 14432 14433 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14435 fi 14436 14437 CFLAGS="$CFLAGS -Werror=return-type" 14438 14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 14440$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 14441 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=return-type` 14442 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14443 $as_echo_n "(cached) " >&6 14444else 14445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14446/* end confdefs.h. */ 14447int i; 14448int 14449main () 14450{ 14451 14452 ; 14453 return 0; 14454} 14455_ACEOF 14456if ac_fn_c_try_link "$LINENO"; then : 14457 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14458else 14459 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14460fi 14461rm -f core conftest.err conftest.$ac_objext \ 14462 conftest$ac_exeext conftest.$ac_ext 14463fi 14464 14465 14466 CFLAGS="$xorg_testset_save_CFLAGS" 14467 14468 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14470$as_echo "$supported" >&6; } 14471 if test "$supported" = "yes" ; then 14472 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 14473 found="yes" 14474 fi 14475 fi 14476 14477 if test $found = "no" ; then 14478 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14479 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14480 fi 14481 14482 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14484 fi 14485 14486 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14487 14488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 14489$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 14490 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT` 14491 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14492 $as_echo_n "(cached) " >&6 14493else 14494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14495/* end confdefs.h. */ 14496int i; 14497int 14498main () 14499{ 14500 14501 ; 14502 return 0; 14503} 14504_ACEOF 14505if ac_fn_c_try_link "$LINENO"; then : 14506 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14507else 14508 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14509fi 14510rm -f core conftest.err conftest.$ac_objext \ 14511 conftest$ac_exeext conftest.$ac_ext 14512fi 14513 14514 14515 CFLAGS="$xorg_testset_save_CFLAGS" 14516 14517 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14519$as_echo "$supported" >&6; } 14520 if test "$supported" = "yes" ; then 14521 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14522 found="yes" 14523 fi 14524 fi 14525 14526 14527 14528 14529 14530 14531 14532 14533 14534 14535 14536 14537 14538xorg_testset_save_CFLAGS="$CFLAGS" 14539 14540if test "x$xorg_testset_unknown_warning_option" = "x" ; then 14541 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 14543$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 14544if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 14545 $as_echo_n "(cached) " >&6 14546else 14547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14548/* end confdefs.h. */ 14549int i; 14550_ACEOF 14551if ac_fn_c_try_compile "$LINENO"; then : 14552 xorg_cv_compiler_flag_unknown_warning_option=yes 14553else 14554 xorg_cv_compiler_flag_unknown_warning_option=no 14555fi 14556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14557fi 14558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 14559$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 14560 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 14561 CFLAGS="$xorg_testset_save_CFLAGS" 14562fi 14563 14564if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 14565 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14566 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14567 fi 14568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 14570$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 14571if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 14572 $as_echo_n "(cached) " >&6 14573else 14574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14575/* end confdefs.h. */ 14576int i; 14577_ACEOF 14578if ac_fn_c_try_compile "$LINENO"; then : 14579 xorg_cv_compiler_flag_unused_command_line_argument=yes 14580else 14581 xorg_cv_compiler_flag_unused_command_line_argument=no 14582fi 14583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14584fi 14585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 14586$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 14587 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 14588 CFLAGS="$xorg_testset_save_CFLAGS" 14589fi 14590 14591found="no" 14592 14593 if test $found = "no" ; then 14594 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14595 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14596 fi 14597 14598 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14600 fi 14601 14602 CFLAGS="$CFLAGS -Werror=trigraphs" 14603 14604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 14605$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 14606 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=trigraphs` 14607 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14608 $as_echo_n "(cached) " >&6 14609else 14610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14611/* end confdefs.h. */ 14612int i; 14613int 14614main () 14615{ 14616 14617 ; 14618 return 0; 14619} 14620_ACEOF 14621if ac_fn_c_try_link "$LINENO"; then : 14622 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14623else 14624 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14625fi 14626rm -f core conftest.err conftest.$ac_objext \ 14627 conftest$ac_exeext conftest.$ac_ext 14628fi 14629 14630 14631 CFLAGS="$xorg_testset_save_CFLAGS" 14632 14633 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14635$as_echo "$supported" >&6; } 14636 if test "$supported" = "yes" ; then 14637 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 14638 found="yes" 14639 fi 14640 fi 14641 14642 14643 14644 14645 14646 14647 14648 14649 14650 14651 14652 14653 14654xorg_testset_save_CFLAGS="$CFLAGS" 14655 14656if test "x$xorg_testset_unknown_warning_option" = "x" ; then 14657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 14659$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 14660if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 14661 $as_echo_n "(cached) " >&6 14662else 14663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14664/* end confdefs.h. */ 14665int i; 14666_ACEOF 14667if ac_fn_c_try_compile "$LINENO"; then : 14668 xorg_cv_compiler_flag_unknown_warning_option=yes 14669else 14670 xorg_cv_compiler_flag_unknown_warning_option=no 14671fi 14672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14673fi 14674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 14675$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 14676 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 14677 CFLAGS="$xorg_testset_save_CFLAGS" 14678fi 14679 14680if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 14681 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14682 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14683 fi 14684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 14686$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 14687if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 14688 $as_echo_n "(cached) " >&6 14689else 14690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14691/* end confdefs.h. */ 14692int i; 14693_ACEOF 14694if ac_fn_c_try_compile "$LINENO"; then : 14695 xorg_cv_compiler_flag_unused_command_line_argument=yes 14696else 14697 xorg_cv_compiler_flag_unused_command_line_argument=no 14698fi 14699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14700fi 14701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 14702$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 14703 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 14704 CFLAGS="$xorg_testset_save_CFLAGS" 14705fi 14706 14707found="no" 14708 14709 if test $found = "no" ; then 14710 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14712 fi 14713 14714 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14716 fi 14717 14718 CFLAGS="$CFLAGS -Werror=array-bounds" 14719 14720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 14721$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 14722 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=array-bounds` 14723 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14724 $as_echo_n "(cached) " >&6 14725else 14726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14727/* end confdefs.h. */ 14728int i; 14729int 14730main () 14731{ 14732 14733 ; 14734 return 0; 14735} 14736_ACEOF 14737if ac_fn_c_try_link "$LINENO"; then : 14738 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14739else 14740 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14741fi 14742rm -f core conftest.err conftest.$ac_objext \ 14743 conftest$ac_exeext conftest.$ac_ext 14744fi 14745 14746 14747 CFLAGS="$xorg_testset_save_CFLAGS" 14748 14749 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14751$as_echo "$supported" >&6; } 14752 if test "$supported" = "yes" ; then 14753 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 14754 found="yes" 14755 fi 14756 fi 14757 14758 14759 14760 14761 14762 14763 14764 14765 14766 14767 14768 14769 14770xorg_testset_save_CFLAGS="$CFLAGS" 14771 14772if test "x$xorg_testset_unknown_warning_option" = "x" ; then 14773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 14775$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 14776if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 14777 $as_echo_n "(cached) " >&6 14778else 14779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14780/* end confdefs.h. */ 14781int i; 14782_ACEOF 14783if ac_fn_c_try_compile "$LINENO"; then : 14784 xorg_cv_compiler_flag_unknown_warning_option=yes 14785else 14786 xorg_cv_compiler_flag_unknown_warning_option=no 14787fi 14788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14789fi 14790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 14791$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 14792 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 14793 CFLAGS="$xorg_testset_save_CFLAGS" 14794fi 14795 14796if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 14797 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14799 fi 14800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 14802$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 14803if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 14804 $as_echo_n "(cached) " >&6 14805else 14806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14807/* end confdefs.h. */ 14808int i; 14809_ACEOF 14810if ac_fn_c_try_compile "$LINENO"; then : 14811 xorg_cv_compiler_flag_unused_command_line_argument=yes 14812else 14813 xorg_cv_compiler_flag_unused_command_line_argument=no 14814fi 14815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14816fi 14817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 14818$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 14819 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 14820 CFLAGS="$xorg_testset_save_CFLAGS" 14821fi 14822 14823found="no" 14824 14825 if test $found = "no" ; then 14826 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14828 fi 14829 14830 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14832 fi 14833 14834 CFLAGS="$CFLAGS -Werror=write-strings" 14835 14836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 14837$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 14838 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=write-strings` 14839 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14840 $as_echo_n "(cached) " >&6 14841else 14842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14843/* end confdefs.h. */ 14844int i; 14845int 14846main () 14847{ 14848 14849 ; 14850 return 0; 14851} 14852_ACEOF 14853if ac_fn_c_try_link "$LINENO"; then : 14854 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14855else 14856 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14857fi 14858rm -f core conftest.err conftest.$ac_objext \ 14859 conftest$ac_exeext conftest.$ac_ext 14860fi 14861 14862 14863 CFLAGS="$xorg_testset_save_CFLAGS" 14864 14865 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14867$as_echo "$supported" >&6; } 14868 if test "$supported" = "yes" ; then 14869 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 14870 found="yes" 14871 fi 14872 fi 14873 14874 14875 14876 14877 14878 14879 14880 14881 14882 14883 14884 14885 14886xorg_testset_save_CFLAGS="$CFLAGS" 14887 14888if test "x$xorg_testset_unknown_warning_option" = "x" ; then 14889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 14891$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 14892if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 14893 $as_echo_n "(cached) " >&6 14894else 14895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14896/* end confdefs.h. */ 14897int i; 14898_ACEOF 14899if ac_fn_c_try_compile "$LINENO"; then : 14900 xorg_cv_compiler_flag_unknown_warning_option=yes 14901else 14902 xorg_cv_compiler_flag_unknown_warning_option=no 14903fi 14904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14905fi 14906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 14907$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 14908 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 14909 CFLAGS="$xorg_testset_save_CFLAGS" 14910fi 14911 14912if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 14913 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14915 fi 14916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 14918$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 14919if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 14920 $as_echo_n "(cached) " >&6 14921else 14922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14923/* end confdefs.h. */ 14924int i; 14925_ACEOF 14926if ac_fn_c_try_compile "$LINENO"; then : 14927 xorg_cv_compiler_flag_unused_command_line_argument=yes 14928else 14929 xorg_cv_compiler_flag_unused_command_line_argument=no 14930fi 14931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14932fi 14933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 14934$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 14935 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 14936 CFLAGS="$xorg_testset_save_CFLAGS" 14937fi 14938 14939found="no" 14940 14941 if test $found = "no" ; then 14942 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14944 fi 14945 14946 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14948 fi 14949 14950 CFLAGS="$CFLAGS -Werror=address" 14951 14952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 14953$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 14954 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=address` 14955 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14956 $as_echo_n "(cached) " >&6 14957else 14958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14959/* end confdefs.h. */ 14960int i; 14961int 14962main () 14963{ 14964 14965 ; 14966 return 0; 14967} 14968_ACEOF 14969if ac_fn_c_try_link "$LINENO"; then : 14970 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 14971else 14972 eval `$as_echo "$cacheid" | $as_tr_sh`=no 14973fi 14974rm -f core conftest.err conftest.$ac_objext \ 14975 conftest$ac_exeext conftest.$ac_ext 14976fi 14977 14978 14979 CFLAGS="$xorg_testset_save_CFLAGS" 14980 14981 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14983$as_echo "$supported" >&6; } 14984 if test "$supported" = "yes" ; then 14985 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 14986 found="yes" 14987 fi 14988 fi 14989 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 15002xorg_testset_save_CFLAGS="$CFLAGS" 15003 15004if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 15007$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 15008if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 15009 $as_echo_n "(cached) " >&6 15010else 15011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15012/* end confdefs.h. */ 15013int i; 15014_ACEOF 15015if ac_fn_c_try_compile "$LINENO"; then : 15016 xorg_cv_compiler_flag_unknown_warning_option=yes 15017else 15018 xorg_cv_compiler_flag_unknown_warning_option=no 15019fi 15020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15021fi 15022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 15023$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 15024 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 15025 CFLAGS="$xorg_testset_save_CFLAGS" 15026fi 15027 15028if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 15029 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15030 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15031 fi 15032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 15034$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 15035if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 15036 $as_echo_n "(cached) " >&6 15037else 15038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15039/* end confdefs.h. */ 15040int i; 15041_ACEOF 15042if ac_fn_c_try_compile "$LINENO"; then : 15043 xorg_cv_compiler_flag_unused_command_line_argument=yes 15044else 15045 xorg_cv_compiler_flag_unused_command_line_argument=no 15046fi 15047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15048fi 15049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 15050$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 15051 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 15052 CFLAGS="$xorg_testset_save_CFLAGS" 15053fi 15054 15055found="no" 15056 15057 if test $found = "no" ; then 15058 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15060 fi 15061 15062 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15064 fi 15065 15066 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15067 15068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15069$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15070 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=int-to-pointer-cast` 15071 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15072 $as_echo_n "(cached) " >&6 15073else 15074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15075/* end confdefs.h. */ 15076int i; 15077int 15078main () 15079{ 15080 15081 ; 15082 return 0; 15083} 15084_ACEOF 15085if ac_fn_c_try_link "$LINENO"; then : 15086 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15087else 15088 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15089fi 15090rm -f core conftest.err conftest.$ac_objext \ 15091 conftest$ac_exeext conftest.$ac_ext 15092fi 15093 15094 15095 CFLAGS="$xorg_testset_save_CFLAGS" 15096 15097 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15099$as_echo "$supported" >&6; } 15100 if test "$supported" = "yes" ; then 15101 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15102 found="yes" 15103 fi 15104 fi 15105 15106 if test $found = "no" ; then 15107 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15109 fi 15110 15111 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15113 fi 15114 15115 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15116 15117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15118$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15119 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION` 15120 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15121 $as_echo_n "(cached) " >&6 15122else 15123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15124/* end confdefs.h. */ 15125int i; 15126int 15127main () 15128{ 15129 15130 ; 15131 return 0; 15132} 15133_ACEOF 15134if ac_fn_c_try_link "$LINENO"; then : 15135 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15136else 15137 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15138fi 15139rm -f core conftest.err conftest.$ac_objext \ 15140 conftest$ac_exeext conftest.$ac_ext 15141fi 15142 15143 15144 CFLAGS="$xorg_testset_save_CFLAGS" 15145 15146 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15148$as_echo "$supported" >&6; } 15149 if test "$supported" = "yes" ; then 15150 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15151 found="yes" 15152 fi 15153 fi 15154 15155 15156 15157 15158 15159 15160 15161 15162 15163 15164 15165 15166 15167xorg_testset_save_CFLAGS="$CFLAGS" 15168 15169if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 15172$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 15173if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 15174 $as_echo_n "(cached) " >&6 15175else 15176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15177/* end confdefs.h. */ 15178int i; 15179_ACEOF 15180if ac_fn_c_try_compile "$LINENO"; then : 15181 xorg_cv_compiler_flag_unknown_warning_option=yes 15182else 15183 xorg_cv_compiler_flag_unknown_warning_option=no 15184fi 15185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15186fi 15187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 15188$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 15189 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 15190 CFLAGS="$xorg_testset_save_CFLAGS" 15191fi 15192 15193if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 15194 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15196 fi 15197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 15199$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 15200if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 15201 $as_echo_n "(cached) " >&6 15202else 15203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15204/* end confdefs.h. */ 15205int i; 15206_ACEOF 15207if ac_fn_c_try_compile "$LINENO"; then : 15208 xorg_cv_compiler_flag_unused_command_line_argument=yes 15209else 15210 xorg_cv_compiler_flag_unused_command_line_argument=no 15211fi 15212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15213fi 15214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 15215$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 15216 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 15217 CFLAGS="$xorg_testset_save_CFLAGS" 15218fi 15219 15220found="no" 15221 15222 if test $found = "no" ; then 15223 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15224 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15225 fi 15226 15227 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15229 fi 15230 15231 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 15232 15233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 15234$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 15235 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=pointer-to-int-cast` 15236 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15237 $as_echo_n "(cached) " >&6 15238else 15239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15240/* end confdefs.h. */ 15241int i; 15242int 15243main () 15244{ 15245 15246 ; 15247 return 0; 15248} 15249_ACEOF 15250if ac_fn_c_try_link "$LINENO"; then : 15251 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15252else 15253 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15254fi 15255rm -f core conftest.err conftest.$ac_objext \ 15256 conftest$ac_exeext conftest.$ac_ext 15257fi 15258 15259 15260 CFLAGS="$xorg_testset_save_CFLAGS" 15261 15262 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15264$as_echo "$supported" >&6; } 15265 if test "$supported" = "yes" ; then 15266 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 15267 found="yes" 15268 fi 15269 fi 15270 15271 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 15272else 15273{ $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 15274$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;} 15275 15276 15277 15278 15279 15280 15281 15282 15283 15284 15285 15286xorg_testset_save_CFLAGS="$CFLAGS" 15287 15288if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 15291$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 15292if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 15293 $as_echo_n "(cached) " >&6 15294else 15295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15296/* end confdefs.h. */ 15297int i; 15298_ACEOF 15299if ac_fn_c_try_compile "$LINENO"; then : 15300 xorg_cv_compiler_flag_unknown_warning_option=yes 15301else 15302 xorg_cv_compiler_flag_unknown_warning_option=no 15303fi 15304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15305fi 15306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 15307$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 15308 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 15309 CFLAGS="$xorg_testset_save_CFLAGS" 15310fi 15311 15312if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 15313 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15315 fi 15316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 15318$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 15319if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 15320 $as_echo_n "(cached) " >&6 15321else 15322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15323/* end confdefs.h. */ 15324int i; 15325_ACEOF 15326if ac_fn_c_try_compile "$LINENO"; then : 15327 xorg_cv_compiler_flag_unused_command_line_argument=yes 15328else 15329 xorg_cv_compiler_flag_unused_command_line_argument=no 15330fi 15331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15332fi 15333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 15334$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 15335 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 15336 CFLAGS="$xorg_testset_save_CFLAGS" 15337fi 15338 15339found="no" 15340 15341 if test $found = "no" ; then 15342 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15344 fi 15345 15346 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15348 fi 15349 15350 CFLAGS="$CFLAGS -Wimplicit" 15351 15352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 15353$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 15354 cacheid=`$as_echo xorg_cv_cc_flag_-Wimplicit` 15355 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15356 $as_echo_n "(cached) " >&6 15357else 15358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15359/* end confdefs.h. */ 15360int i; 15361int 15362main () 15363{ 15364 15365 ; 15366 return 0; 15367} 15368_ACEOF 15369if ac_fn_c_try_link "$LINENO"; then : 15370 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15371else 15372 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15373fi 15374rm -f core conftest.err conftest.$ac_objext \ 15375 conftest$ac_exeext conftest.$ac_ext 15376fi 15377 15378 15379 CFLAGS="$xorg_testset_save_CFLAGS" 15380 15381 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15383$as_echo "$supported" >&6; } 15384 if test "$supported" = "yes" ; then 15385 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 15386 found="yes" 15387 fi 15388 fi 15389 15390 15391 15392 15393 15394 15395 15396 15397 15398 15399 15400 15401 15402xorg_testset_save_CFLAGS="$CFLAGS" 15403 15404if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 15407$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 15408if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 15409 $as_echo_n "(cached) " >&6 15410else 15411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15412/* end confdefs.h. */ 15413int i; 15414_ACEOF 15415if ac_fn_c_try_compile "$LINENO"; then : 15416 xorg_cv_compiler_flag_unknown_warning_option=yes 15417else 15418 xorg_cv_compiler_flag_unknown_warning_option=no 15419fi 15420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15421fi 15422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 15423$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 15424 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 15425 CFLAGS="$xorg_testset_save_CFLAGS" 15426fi 15427 15428if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 15429 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15431 fi 15432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 15434$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 15435if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 15436 $as_echo_n "(cached) " >&6 15437else 15438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15439/* end confdefs.h. */ 15440int i; 15441_ACEOF 15442if ac_fn_c_try_compile "$LINENO"; then : 15443 xorg_cv_compiler_flag_unused_command_line_argument=yes 15444else 15445 xorg_cv_compiler_flag_unused_command_line_argument=no 15446fi 15447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15448fi 15449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 15450$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 15451 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 15452 CFLAGS="$xorg_testset_save_CFLAGS" 15453fi 15454 15455found="no" 15456 15457 if test $found = "no" ; then 15458 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15460 fi 15461 15462 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15464 fi 15465 15466 CFLAGS="$CFLAGS -Wnonnull" 15467 15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 15469$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 15470 cacheid=`$as_echo xorg_cv_cc_flag_-Wnonnull` 15471 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15472 $as_echo_n "(cached) " >&6 15473else 15474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15475/* end confdefs.h. */ 15476int i; 15477int 15478main () 15479{ 15480 15481 ; 15482 return 0; 15483} 15484_ACEOF 15485if ac_fn_c_try_link "$LINENO"; then : 15486 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15487else 15488 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15489fi 15490rm -f core conftest.err conftest.$ac_objext \ 15491 conftest$ac_exeext conftest.$ac_ext 15492fi 15493 15494 15495 CFLAGS="$xorg_testset_save_CFLAGS" 15496 15497 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15499$as_echo "$supported" >&6; } 15500 if test "$supported" = "yes" ; then 15501 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 15502 found="yes" 15503 fi 15504 fi 15505 15506 15507 15508 15509 15510 15511 15512 15513 15514 15515 15516 15517 15518xorg_testset_save_CFLAGS="$CFLAGS" 15519 15520if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 15523$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 15524if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 15525 $as_echo_n "(cached) " >&6 15526else 15527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15528/* end confdefs.h. */ 15529int i; 15530_ACEOF 15531if ac_fn_c_try_compile "$LINENO"; then : 15532 xorg_cv_compiler_flag_unknown_warning_option=yes 15533else 15534 xorg_cv_compiler_flag_unknown_warning_option=no 15535fi 15536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15537fi 15538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 15539$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 15540 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 15541 CFLAGS="$xorg_testset_save_CFLAGS" 15542fi 15543 15544if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 15545 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15547 fi 15548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 15550$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 15551if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 15552 $as_echo_n "(cached) " >&6 15553else 15554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15555/* end confdefs.h. */ 15556int i; 15557_ACEOF 15558if ac_fn_c_try_compile "$LINENO"; then : 15559 xorg_cv_compiler_flag_unused_command_line_argument=yes 15560else 15561 xorg_cv_compiler_flag_unused_command_line_argument=no 15562fi 15563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15564fi 15565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 15566$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 15567 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 15568 CFLAGS="$xorg_testset_save_CFLAGS" 15569fi 15570 15571found="no" 15572 15573 if test $found = "no" ; then 15574 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15575 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15576 fi 15577 15578 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15580 fi 15581 15582 CFLAGS="$CFLAGS -Winit-self" 15583 15584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 15585$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 15586 cacheid=`$as_echo xorg_cv_cc_flag_-Winit-self` 15587 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15588 $as_echo_n "(cached) " >&6 15589else 15590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15591/* end confdefs.h. */ 15592int i; 15593int 15594main () 15595{ 15596 15597 ; 15598 return 0; 15599} 15600_ACEOF 15601if ac_fn_c_try_link "$LINENO"; then : 15602 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15603else 15604 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15605fi 15606rm -f core conftest.err conftest.$ac_objext \ 15607 conftest$ac_exeext conftest.$ac_ext 15608fi 15609 15610 15611 CFLAGS="$xorg_testset_save_CFLAGS" 15612 15613 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15615$as_echo "$supported" >&6; } 15616 if test "$supported" = "yes" ; then 15617 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 15618 found="yes" 15619 fi 15620 fi 15621 15622 15623 15624 15625 15626 15627 15628 15629 15630 15631 15632 15633 15634xorg_testset_save_CFLAGS="$CFLAGS" 15635 15636if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15637 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 15639$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 15640if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 15641 $as_echo_n "(cached) " >&6 15642else 15643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15644/* end confdefs.h. */ 15645int i; 15646_ACEOF 15647if ac_fn_c_try_compile "$LINENO"; then : 15648 xorg_cv_compiler_flag_unknown_warning_option=yes 15649else 15650 xorg_cv_compiler_flag_unknown_warning_option=no 15651fi 15652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15653fi 15654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 15655$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 15656 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 15657 CFLAGS="$xorg_testset_save_CFLAGS" 15658fi 15659 15660if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 15661 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15663 fi 15664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 15666$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 15667if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 15668 $as_echo_n "(cached) " >&6 15669else 15670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15671/* end confdefs.h. */ 15672int i; 15673_ACEOF 15674if ac_fn_c_try_compile "$LINENO"; then : 15675 xorg_cv_compiler_flag_unused_command_line_argument=yes 15676else 15677 xorg_cv_compiler_flag_unused_command_line_argument=no 15678fi 15679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15680fi 15681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 15682$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 15683 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 15684 CFLAGS="$xorg_testset_save_CFLAGS" 15685fi 15686 15687found="no" 15688 15689 if test $found = "no" ; then 15690 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15692 fi 15693 15694 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15696 fi 15697 15698 CFLAGS="$CFLAGS -Wmain" 15699 15700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 15701$as_echo_n "checking if $CC supports -Wmain... " >&6; } 15702 cacheid=`$as_echo xorg_cv_cc_flag_-Wmain` 15703 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15704 $as_echo_n "(cached) " >&6 15705else 15706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15707/* end confdefs.h. */ 15708int i; 15709int 15710main () 15711{ 15712 15713 ; 15714 return 0; 15715} 15716_ACEOF 15717if ac_fn_c_try_link "$LINENO"; then : 15718 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15719else 15720 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15721fi 15722rm -f core conftest.err conftest.$ac_objext \ 15723 conftest$ac_exeext conftest.$ac_ext 15724fi 15725 15726 15727 CFLAGS="$xorg_testset_save_CFLAGS" 15728 15729 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15731$as_echo "$supported" >&6; } 15732 if test "$supported" = "yes" ; then 15733 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 15734 found="yes" 15735 fi 15736 fi 15737 15738 15739 15740 15741 15742 15743 15744 15745 15746 15747 15748 15749 15750xorg_testset_save_CFLAGS="$CFLAGS" 15751 15752if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 15755$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 15756if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 15757 $as_echo_n "(cached) " >&6 15758else 15759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15760/* end confdefs.h. */ 15761int i; 15762_ACEOF 15763if ac_fn_c_try_compile "$LINENO"; then : 15764 xorg_cv_compiler_flag_unknown_warning_option=yes 15765else 15766 xorg_cv_compiler_flag_unknown_warning_option=no 15767fi 15768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15769fi 15770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 15771$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 15772 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 15773 CFLAGS="$xorg_testset_save_CFLAGS" 15774fi 15775 15776if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 15777 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15779 fi 15780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 15782$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 15783if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 15784 $as_echo_n "(cached) " >&6 15785else 15786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15787/* end confdefs.h. */ 15788int i; 15789_ACEOF 15790if ac_fn_c_try_compile "$LINENO"; then : 15791 xorg_cv_compiler_flag_unused_command_line_argument=yes 15792else 15793 xorg_cv_compiler_flag_unused_command_line_argument=no 15794fi 15795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15796fi 15797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 15798$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 15799 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 15800 CFLAGS="$xorg_testset_save_CFLAGS" 15801fi 15802 15803found="no" 15804 15805 if test $found = "no" ; then 15806 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15808 fi 15809 15810 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15812 fi 15813 15814 CFLAGS="$CFLAGS -Wmissing-braces" 15815 15816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 15817$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 15818 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-braces` 15819 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15820 $as_echo_n "(cached) " >&6 15821else 15822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15823/* end confdefs.h. */ 15824int i; 15825int 15826main () 15827{ 15828 15829 ; 15830 return 0; 15831} 15832_ACEOF 15833if ac_fn_c_try_link "$LINENO"; then : 15834 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15835else 15836 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15837fi 15838rm -f core conftest.err conftest.$ac_objext \ 15839 conftest$ac_exeext conftest.$ac_ext 15840fi 15841 15842 15843 CFLAGS="$xorg_testset_save_CFLAGS" 15844 15845 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15847$as_echo "$supported" >&6; } 15848 if test "$supported" = "yes" ; then 15849 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 15850 found="yes" 15851 fi 15852 fi 15853 15854 15855 15856 15857 15858 15859 15860 15861 15862 15863 15864 15865 15866xorg_testset_save_CFLAGS="$CFLAGS" 15867 15868if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 15871$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 15872if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 15873 $as_echo_n "(cached) " >&6 15874else 15875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15876/* end confdefs.h. */ 15877int i; 15878_ACEOF 15879if ac_fn_c_try_compile "$LINENO"; then : 15880 xorg_cv_compiler_flag_unknown_warning_option=yes 15881else 15882 xorg_cv_compiler_flag_unknown_warning_option=no 15883fi 15884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15885fi 15886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 15887$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 15888 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 15889 CFLAGS="$xorg_testset_save_CFLAGS" 15890fi 15891 15892if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 15893 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15894 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15895 fi 15896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 15898$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 15899if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 15900 $as_echo_n "(cached) " >&6 15901else 15902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15903/* end confdefs.h. */ 15904int i; 15905_ACEOF 15906if ac_fn_c_try_compile "$LINENO"; then : 15907 xorg_cv_compiler_flag_unused_command_line_argument=yes 15908else 15909 xorg_cv_compiler_flag_unused_command_line_argument=no 15910fi 15911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15912fi 15913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 15914$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 15915 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 15916 CFLAGS="$xorg_testset_save_CFLAGS" 15917fi 15918 15919found="no" 15920 15921 if test $found = "no" ; then 15922 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15924 fi 15925 15926 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15928 fi 15929 15930 CFLAGS="$CFLAGS -Wsequence-point" 15931 15932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 15933$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 15934 cacheid=`$as_echo xorg_cv_cc_flag_-Wsequence-point` 15935 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 15936 $as_echo_n "(cached) " >&6 15937else 15938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15939/* end confdefs.h. */ 15940int i; 15941int 15942main () 15943{ 15944 15945 ; 15946 return 0; 15947} 15948_ACEOF 15949if ac_fn_c_try_link "$LINENO"; then : 15950 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 15951else 15952 eval `$as_echo "$cacheid" | $as_tr_sh`=no 15953fi 15954rm -f core conftest.err conftest.$ac_objext \ 15955 conftest$ac_exeext conftest.$ac_ext 15956fi 15957 15958 15959 CFLAGS="$xorg_testset_save_CFLAGS" 15960 15961 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 15962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15963$as_echo "$supported" >&6; } 15964 if test "$supported" = "yes" ; then 15965 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 15966 found="yes" 15967 fi 15968 fi 15969 15970 15971 15972 15973 15974 15975 15976 15977 15978 15979 15980 15981 15982xorg_testset_save_CFLAGS="$CFLAGS" 15983 15984if test "x$xorg_testset_unknown_warning_option" = "x" ; then 15985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 15987$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 15988if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 15989 $as_echo_n "(cached) " >&6 15990else 15991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15992/* end confdefs.h. */ 15993int i; 15994_ACEOF 15995if ac_fn_c_try_compile "$LINENO"; then : 15996 xorg_cv_compiler_flag_unknown_warning_option=yes 15997else 15998 xorg_cv_compiler_flag_unknown_warning_option=no 15999fi 16000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16001fi 16002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 16003$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 16004 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 16005 CFLAGS="$xorg_testset_save_CFLAGS" 16006fi 16007 16008if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16009 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16011 fi 16012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 16014$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 16015if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 16016 $as_echo_n "(cached) " >&6 16017else 16018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16019/* end confdefs.h. */ 16020int i; 16021_ACEOF 16022if ac_fn_c_try_compile "$LINENO"; then : 16023 xorg_cv_compiler_flag_unused_command_line_argument=yes 16024else 16025 xorg_cv_compiler_flag_unused_command_line_argument=no 16026fi 16027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16028fi 16029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 16030$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 16031 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 16032 CFLAGS="$xorg_testset_save_CFLAGS" 16033fi 16034 16035found="no" 16036 16037 if test $found = "no" ; then 16038 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16040 fi 16041 16042 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16044 fi 16045 16046 CFLAGS="$CFLAGS -Wreturn-type" 16047 16048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16049$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16050 cacheid=`$as_echo xorg_cv_cc_flag_-Wreturn-type` 16051 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} 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 `$as_echo "$cacheid" | $as_tr_sh`=yes 16067else 16068 eval `$as_echo "$cacheid" | $as_tr_sh`=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=$`$as_echo "$cacheid" | $as_tr_sh` 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 -Wreturn-type" 16082 found="yes" 16083 fi 16084 fi 16085 16086 16087 16088 16089 16090 16091 16092 16093 16094 16095 16096 16097 16098xorg_testset_save_CFLAGS="$CFLAGS" 16099 16100if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 16103$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 16104if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 16105 $as_echo_n "(cached) " >&6 16106else 16107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16108/* end confdefs.h. */ 16109int i; 16110_ACEOF 16111if ac_fn_c_try_compile "$LINENO"; then : 16112 xorg_cv_compiler_flag_unknown_warning_option=yes 16113else 16114 xorg_cv_compiler_flag_unknown_warning_option=no 16115fi 16116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16117fi 16118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 16119$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 16120 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 16121 CFLAGS="$xorg_testset_save_CFLAGS" 16122fi 16123 16124if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16125 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16126 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16127 fi 16128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 16130$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 16131if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 16132 $as_echo_n "(cached) " >&6 16133else 16134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16135/* end confdefs.h. */ 16136int i; 16137_ACEOF 16138if ac_fn_c_try_compile "$LINENO"; then : 16139 xorg_cv_compiler_flag_unused_command_line_argument=yes 16140else 16141 xorg_cv_compiler_flag_unused_command_line_argument=no 16142fi 16143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16144fi 16145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 16146$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 16147 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 16148 CFLAGS="$xorg_testset_save_CFLAGS" 16149fi 16150 16151found="no" 16152 16153 if test $found = "no" ; then 16154 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16156 fi 16157 16158 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16160 fi 16161 16162 CFLAGS="$CFLAGS -Wtrigraphs" 16163 16164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 16165$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 16166 cacheid=`$as_echo xorg_cv_cc_flag_-Wtrigraphs` 16167 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 16168 $as_echo_n "(cached) " >&6 16169else 16170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16171/* end confdefs.h. */ 16172int i; 16173int 16174main () 16175{ 16176 16177 ; 16178 return 0; 16179} 16180_ACEOF 16181if ac_fn_c_try_link "$LINENO"; then : 16182 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16183else 16184 eval `$as_echo "$cacheid" | $as_tr_sh`=no 16185fi 16186rm -f core conftest.err conftest.$ac_objext \ 16187 conftest$ac_exeext conftest.$ac_ext 16188fi 16189 16190 16191 CFLAGS="$xorg_testset_save_CFLAGS" 16192 16193 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 16194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16195$as_echo "$supported" >&6; } 16196 if test "$supported" = "yes" ; then 16197 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 16198 found="yes" 16199 fi 16200 fi 16201 16202 16203 16204 16205 16206 16207 16208 16209 16210 16211 16212 16213 16214xorg_testset_save_CFLAGS="$CFLAGS" 16215 16216if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 16219$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 16220if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 16221 $as_echo_n "(cached) " >&6 16222else 16223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16224/* end confdefs.h. */ 16225int i; 16226_ACEOF 16227if ac_fn_c_try_compile "$LINENO"; then : 16228 xorg_cv_compiler_flag_unknown_warning_option=yes 16229else 16230 xorg_cv_compiler_flag_unknown_warning_option=no 16231fi 16232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16233fi 16234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 16235$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 16236 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 16237 CFLAGS="$xorg_testset_save_CFLAGS" 16238fi 16239 16240if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16241 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16243 fi 16244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 16246$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 16247if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 16248 $as_echo_n "(cached) " >&6 16249else 16250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16251/* end confdefs.h. */ 16252int i; 16253_ACEOF 16254if ac_fn_c_try_compile "$LINENO"; then : 16255 xorg_cv_compiler_flag_unused_command_line_argument=yes 16256else 16257 xorg_cv_compiler_flag_unused_command_line_argument=no 16258fi 16259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16260fi 16261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 16262$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 16263 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 16264 CFLAGS="$xorg_testset_save_CFLAGS" 16265fi 16266 16267found="no" 16268 16269 if test $found = "no" ; then 16270 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16272 fi 16273 16274 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16276 fi 16277 16278 CFLAGS="$CFLAGS -Warray-bounds" 16279 16280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 16281$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 16282 cacheid=`$as_echo xorg_cv_cc_flag_-Warray-bounds` 16283 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 16284 $as_echo_n "(cached) " >&6 16285else 16286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16287/* end confdefs.h. */ 16288int i; 16289int 16290main () 16291{ 16292 16293 ; 16294 return 0; 16295} 16296_ACEOF 16297if ac_fn_c_try_link "$LINENO"; then : 16298 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16299else 16300 eval `$as_echo "$cacheid" | $as_tr_sh`=no 16301fi 16302rm -f core conftest.err conftest.$ac_objext \ 16303 conftest$ac_exeext conftest.$ac_ext 16304fi 16305 16306 16307 CFLAGS="$xorg_testset_save_CFLAGS" 16308 16309 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 16310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16311$as_echo "$supported" >&6; } 16312 if test "$supported" = "yes" ; then 16313 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 16314 found="yes" 16315 fi 16316 fi 16317 16318 16319 16320 16321 16322 16323 16324 16325 16326 16327 16328 16329 16330xorg_testset_save_CFLAGS="$CFLAGS" 16331 16332if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16333 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 16335$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 16336if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 16337 $as_echo_n "(cached) " >&6 16338else 16339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16340/* end confdefs.h. */ 16341int i; 16342_ACEOF 16343if ac_fn_c_try_compile "$LINENO"; then : 16344 xorg_cv_compiler_flag_unknown_warning_option=yes 16345else 16346 xorg_cv_compiler_flag_unknown_warning_option=no 16347fi 16348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16349fi 16350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 16351$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 16352 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 16353 CFLAGS="$xorg_testset_save_CFLAGS" 16354fi 16355 16356if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16357 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16359 fi 16360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 16362$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 16363if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 16364 $as_echo_n "(cached) " >&6 16365else 16366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16367/* end confdefs.h. */ 16368int i; 16369_ACEOF 16370if ac_fn_c_try_compile "$LINENO"; then : 16371 xorg_cv_compiler_flag_unused_command_line_argument=yes 16372else 16373 xorg_cv_compiler_flag_unused_command_line_argument=no 16374fi 16375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16376fi 16377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 16378$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 16379 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 16380 CFLAGS="$xorg_testset_save_CFLAGS" 16381fi 16382 16383found="no" 16384 16385 if test $found = "no" ; then 16386 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16388 fi 16389 16390 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16392 fi 16393 16394 CFLAGS="$CFLAGS -Wwrite-strings" 16395 16396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 16397$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 16398 cacheid=`$as_echo xorg_cv_cc_flag_-Wwrite-strings` 16399 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 16400 $as_echo_n "(cached) " >&6 16401else 16402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16403/* end confdefs.h. */ 16404int i; 16405int 16406main () 16407{ 16408 16409 ; 16410 return 0; 16411} 16412_ACEOF 16413if ac_fn_c_try_link "$LINENO"; then : 16414 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16415else 16416 eval `$as_echo "$cacheid" | $as_tr_sh`=no 16417fi 16418rm -f core conftest.err conftest.$ac_objext \ 16419 conftest$ac_exeext conftest.$ac_ext 16420fi 16421 16422 16423 CFLAGS="$xorg_testset_save_CFLAGS" 16424 16425 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16427$as_echo "$supported" >&6; } 16428 if test "$supported" = "yes" ; then 16429 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 16430 found="yes" 16431 fi 16432 fi 16433 16434 16435 16436 16437 16438 16439 16440 16441 16442 16443 16444 16445 16446xorg_testset_save_CFLAGS="$CFLAGS" 16447 16448if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 16451$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 16452if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 16453 $as_echo_n "(cached) " >&6 16454else 16455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16456/* end confdefs.h. */ 16457int i; 16458_ACEOF 16459if ac_fn_c_try_compile "$LINENO"; then : 16460 xorg_cv_compiler_flag_unknown_warning_option=yes 16461else 16462 xorg_cv_compiler_flag_unknown_warning_option=no 16463fi 16464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16465fi 16466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 16467$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 16468 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 16469 CFLAGS="$xorg_testset_save_CFLAGS" 16470fi 16471 16472if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16473 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16475 fi 16476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 16478$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 16479if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 16480 $as_echo_n "(cached) " >&6 16481else 16482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16483/* end confdefs.h. */ 16484int i; 16485_ACEOF 16486if ac_fn_c_try_compile "$LINENO"; then : 16487 xorg_cv_compiler_flag_unused_command_line_argument=yes 16488else 16489 xorg_cv_compiler_flag_unused_command_line_argument=no 16490fi 16491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16492fi 16493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 16494$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 16495 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 16496 CFLAGS="$xorg_testset_save_CFLAGS" 16497fi 16498 16499found="no" 16500 16501 if test $found = "no" ; then 16502 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16503 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16504 fi 16505 16506 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16508 fi 16509 16510 CFLAGS="$CFLAGS -Waddress" 16511 16512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 16513$as_echo_n "checking if $CC supports -Waddress... " >&6; } 16514 cacheid=`$as_echo xorg_cv_cc_flag_-Waddress` 16515 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 16516 $as_echo_n "(cached) " >&6 16517else 16518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16519/* end confdefs.h. */ 16520int i; 16521int 16522main () 16523{ 16524 16525 ; 16526 return 0; 16527} 16528_ACEOF 16529if ac_fn_c_try_link "$LINENO"; then : 16530 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16531else 16532 eval `$as_echo "$cacheid" | $as_tr_sh`=no 16533fi 16534rm -f core conftest.err conftest.$ac_objext \ 16535 conftest$ac_exeext conftest.$ac_ext 16536fi 16537 16538 16539 CFLAGS="$xorg_testset_save_CFLAGS" 16540 16541 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 16542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16543$as_echo "$supported" >&6; } 16544 if test "$supported" = "yes" ; then 16545 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 16546 found="yes" 16547 fi 16548 fi 16549 16550 16551 16552 16553 16554 16555 16556 16557 16558 16559 16560 16561 16562xorg_testset_save_CFLAGS="$CFLAGS" 16563 16564if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 16567$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 16568if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 16569 $as_echo_n "(cached) " >&6 16570else 16571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16572/* end confdefs.h. */ 16573int i; 16574_ACEOF 16575if ac_fn_c_try_compile "$LINENO"; then : 16576 xorg_cv_compiler_flag_unknown_warning_option=yes 16577else 16578 xorg_cv_compiler_flag_unknown_warning_option=no 16579fi 16580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16581fi 16582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 16583$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 16584 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 16585 CFLAGS="$xorg_testset_save_CFLAGS" 16586fi 16587 16588if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16589 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16591 fi 16592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 16594$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 16595if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 16596 $as_echo_n "(cached) " >&6 16597else 16598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16599/* end confdefs.h. */ 16600int i; 16601_ACEOF 16602if ac_fn_c_try_compile "$LINENO"; then : 16603 xorg_cv_compiler_flag_unused_command_line_argument=yes 16604else 16605 xorg_cv_compiler_flag_unused_command_line_argument=no 16606fi 16607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16608fi 16609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 16610$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 16611 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 16612 CFLAGS="$xorg_testset_save_CFLAGS" 16613fi 16614 16615found="no" 16616 16617 if test $found = "no" ; then 16618 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16619 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16620 fi 16621 16622 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16624 fi 16625 16626 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 16627 16628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 16629$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 16630 cacheid=`$as_echo xorg_cv_cc_flag_-Wint-to-pointer-cast` 16631 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 16632 $as_echo_n "(cached) " >&6 16633else 16634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16635/* end confdefs.h. */ 16636int i; 16637int 16638main () 16639{ 16640 16641 ; 16642 return 0; 16643} 16644_ACEOF 16645if ac_fn_c_try_link "$LINENO"; then : 16646 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16647else 16648 eval `$as_echo "$cacheid" | $as_tr_sh`=no 16649fi 16650rm -f core conftest.err conftest.$ac_objext \ 16651 conftest$ac_exeext conftest.$ac_ext 16652fi 16653 16654 16655 CFLAGS="$xorg_testset_save_CFLAGS" 16656 16657 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 16658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16659$as_echo "$supported" >&6; } 16660 if test "$supported" = "yes" ; then 16661 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 16662 found="yes" 16663 fi 16664 fi 16665 16666 16667 16668 16669 16670 16671 16672 16673 16674 16675 16676 16677 16678xorg_testset_save_CFLAGS="$CFLAGS" 16679 16680if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16681 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 16683$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 16684if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 16685 $as_echo_n "(cached) " >&6 16686else 16687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16688/* end confdefs.h. */ 16689int i; 16690_ACEOF 16691if ac_fn_c_try_compile "$LINENO"; then : 16692 xorg_cv_compiler_flag_unknown_warning_option=yes 16693else 16694 xorg_cv_compiler_flag_unknown_warning_option=no 16695fi 16696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16697fi 16698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 16699$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 16700 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 16701 CFLAGS="$xorg_testset_save_CFLAGS" 16702fi 16703 16704if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16705 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16707 fi 16708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 16710$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 16711if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 16712 $as_echo_n "(cached) " >&6 16713else 16714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16715/* end confdefs.h. */ 16716int i; 16717_ACEOF 16718if ac_fn_c_try_compile "$LINENO"; then : 16719 xorg_cv_compiler_flag_unused_command_line_argument=yes 16720else 16721 xorg_cv_compiler_flag_unused_command_line_argument=no 16722fi 16723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16724fi 16725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 16726$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 16727 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 16728 CFLAGS="$xorg_testset_save_CFLAGS" 16729fi 16730 16731found="no" 16732 16733 if test $found = "no" ; then 16734 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16735 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16736 fi 16737 16738 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16740 fi 16741 16742 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 16743 16744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 16745$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 16746 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-to-int-cast` 16747 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 16748 $as_echo_n "(cached) " >&6 16749else 16750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16751/* end confdefs.h. */ 16752int i; 16753int 16754main () 16755{ 16756 16757 ; 16758 return 0; 16759} 16760_ACEOF 16761if ac_fn_c_try_link "$LINENO"; then : 16762 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16763else 16764 eval `$as_echo "$cacheid" | $as_tr_sh`=no 16765fi 16766rm -f core conftest.err conftest.$ac_objext \ 16767 conftest$ac_exeext conftest.$ac_ext 16768fi 16769 16770 16771 CFLAGS="$xorg_testset_save_CFLAGS" 16772 16773 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 16774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16775$as_echo "$supported" >&6; } 16776 if test "$supported" = "yes" ; then 16777 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 16778 found="yes" 16779 fi 16780 fi 16781 16782 16783fi 16784 16785 16786 16787 16788 16789 16790 16791 CWARNFLAGS="$BASE_CFLAGS" 16792 if test "x$GCC" = xyes ; then 16793 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 16794 fi 16795 16796 16797 16798 16799 16800 16801 16802 16803# Check whether --enable-strict-compilation was given. 16804if test "${enable_strict_compilation+set}" = set; then : 16805 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 16806else 16807 STRICT_COMPILE=no 16808fi 16809 16810 16811 16812 16813 16814 16815STRICT_CFLAGS="" 16816 16817 16818 16819 16820 16821 16822 16823 16824 16825 16826 16827xorg_testset_save_CFLAGS="$CFLAGS" 16828 16829if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 16832$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 16833if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 16834 $as_echo_n "(cached) " >&6 16835else 16836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16837/* end confdefs.h. */ 16838int i; 16839_ACEOF 16840if ac_fn_c_try_compile "$LINENO"; then : 16841 xorg_cv_compiler_flag_unknown_warning_option=yes 16842else 16843 xorg_cv_compiler_flag_unknown_warning_option=no 16844fi 16845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16846fi 16847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 16848$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 16849 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 16850 CFLAGS="$xorg_testset_save_CFLAGS" 16851fi 16852 16853if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16854 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16856 fi 16857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 16859$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 16860if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 16861 $as_echo_n "(cached) " >&6 16862else 16863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16864/* end confdefs.h. */ 16865int i; 16866_ACEOF 16867if ac_fn_c_try_compile "$LINENO"; then : 16868 xorg_cv_compiler_flag_unused_command_line_argument=yes 16869else 16870 xorg_cv_compiler_flag_unused_command_line_argument=no 16871fi 16872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16873fi 16874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 16875$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 16876 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 16877 CFLAGS="$xorg_testset_save_CFLAGS" 16878fi 16879 16880found="no" 16881 16882 if test $found = "no" ; then 16883 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16885 fi 16886 16887 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16889 fi 16890 16891 CFLAGS="$CFLAGS -pedantic" 16892 16893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 16894$as_echo_n "checking if $CC supports -pedantic... " >&6; } 16895 cacheid=`$as_echo xorg_cv_cc_flag_-pedantic` 16896 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 16897 $as_echo_n "(cached) " >&6 16898else 16899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16900/* end confdefs.h. */ 16901int i; 16902int 16903main () 16904{ 16905 16906 ; 16907 return 0; 16908} 16909_ACEOF 16910if ac_fn_c_try_link "$LINENO"; then : 16911 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 16912else 16913 eval `$as_echo "$cacheid" | $as_tr_sh`=no 16914fi 16915rm -f core conftest.err conftest.$ac_objext \ 16916 conftest$ac_exeext conftest.$ac_ext 16917fi 16918 16919 16920 CFLAGS="$xorg_testset_save_CFLAGS" 16921 16922 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 16923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16924$as_echo "$supported" >&6; } 16925 if test "$supported" = "yes" ; then 16926 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 16927 found="yes" 16928 fi 16929 fi 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943xorg_testset_save_CFLAGS="$CFLAGS" 16944 16945if test "x$xorg_testset_unknown_warning_option" = "x" ; then 16946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 16948$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 16949if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 16950 $as_echo_n "(cached) " >&6 16951else 16952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16953/* end confdefs.h. */ 16954int i; 16955_ACEOF 16956if ac_fn_c_try_compile "$LINENO"; then : 16957 xorg_cv_compiler_flag_unknown_warning_option=yes 16958else 16959 xorg_cv_compiler_flag_unknown_warning_option=no 16960fi 16961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16962fi 16963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 16964$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 16965 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 16966 CFLAGS="$xorg_testset_save_CFLAGS" 16967fi 16968 16969if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 16970 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16972 fi 16973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 16975$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 16976if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 16977 $as_echo_n "(cached) " >&6 16978else 16979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16980/* end confdefs.h. */ 16981int i; 16982_ACEOF 16983if ac_fn_c_try_compile "$LINENO"; then : 16984 xorg_cv_compiler_flag_unused_command_line_argument=yes 16985else 16986 xorg_cv_compiler_flag_unused_command_line_argument=no 16987fi 16988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16989fi 16990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 16991$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 16992 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 16993 CFLAGS="$xorg_testset_save_CFLAGS" 16994fi 16995 16996found="no" 16997 16998 if test $found = "no" ; then 16999 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17001 fi 17002 17003 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17005 fi 17006 17007 CFLAGS="$CFLAGS -Werror" 17008 17009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17010$as_echo_n "checking if $CC supports -Werror... " >&6; } 17011 cacheid=`$as_echo xorg_cv_cc_flag_-Werror` 17012 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 17013 $as_echo_n "(cached) " >&6 17014else 17015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17016/* end confdefs.h. */ 17017int i; 17018int 17019main () 17020{ 17021 17022 ; 17023 return 0; 17024} 17025_ACEOF 17026if ac_fn_c_try_link "$LINENO"; then : 17027 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 17028else 17029 eval `$as_echo "$cacheid" | $as_tr_sh`=no 17030fi 17031rm -f core conftest.err conftest.$ac_objext \ 17032 conftest$ac_exeext conftest.$ac_ext 17033fi 17034 17035 17036 CFLAGS="$xorg_testset_save_CFLAGS" 17037 17038 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 17039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17040$as_echo "$supported" >&6; } 17041 if test "$supported" = "yes" ; then 17042 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17043 found="yes" 17044 fi 17045 fi 17046 17047 if test $found = "no" ; then 17048 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17050 fi 17051 17052 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17054 fi 17055 17056 CFLAGS="$CFLAGS -errwarn" 17057 17058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17059$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17060 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn` 17061 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 17062 $as_echo_n "(cached) " >&6 17063else 17064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17065/* end confdefs.h. */ 17066int i; 17067int 17068main () 17069{ 17070 17071 ; 17072 return 0; 17073} 17074_ACEOF 17075if ac_fn_c_try_link "$LINENO"; then : 17076 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 17077else 17078 eval `$as_echo "$cacheid" | $as_tr_sh`=no 17079fi 17080rm -f core conftest.err conftest.$ac_objext \ 17081 conftest$ac_exeext conftest.$ac_ext 17082fi 17083 17084 17085 CFLAGS="$xorg_testset_save_CFLAGS" 17086 17087 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 17088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17089$as_echo "$supported" >&6; } 17090 if test "$supported" = "yes" ; then 17091 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17092 found="yes" 17093 fi 17094 fi 17095 17096 17097 17098# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17099# activate it with -Werror, so we add it here explicitly. 17100 17101 17102 17103 17104 17105 17106 17107 17108 17109 17110 17111xorg_testset_save_CFLAGS="$CFLAGS" 17112 17113if test "x$xorg_testset_unknown_warning_option" = "x" ; then 17114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 17116$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 17117if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 17118 $as_echo_n "(cached) " >&6 17119else 17120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17121/* end confdefs.h. */ 17122int i; 17123_ACEOF 17124if ac_fn_c_try_compile "$LINENO"; then : 17125 xorg_cv_compiler_flag_unknown_warning_option=yes 17126else 17127 xorg_cv_compiler_flag_unknown_warning_option=no 17128fi 17129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17130fi 17131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 17132$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 17133 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 17134 CFLAGS="$xorg_testset_save_CFLAGS" 17135fi 17136 17137if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 17138 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17140 fi 17141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 17143$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 17144if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 17145 $as_echo_n "(cached) " >&6 17146else 17147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17148/* end confdefs.h. */ 17149int i; 17150_ACEOF 17151if ac_fn_c_try_compile "$LINENO"; then : 17152 xorg_cv_compiler_flag_unused_command_line_argument=yes 17153else 17154 xorg_cv_compiler_flag_unused_command_line_argument=no 17155fi 17156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17157fi 17158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 17159$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 17160 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 17161 CFLAGS="$xorg_testset_save_CFLAGS" 17162fi 17163 17164found="no" 17165 17166 if test $found = "no" ; then 17167 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17169 fi 17170 17171 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17173 fi 17174 17175 CFLAGS="$CFLAGS -Werror=attributes" 17176 17177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 17178$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 17179 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=attributes` 17180 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 17181 $as_echo_n "(cached) " >&6 17182else 17183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17184/* end confdefs.h. */ 17185int i; 17186int 17187main () 17188{ 17189 17190 ; 17191 return 0; 17192} 17193_ACEOF 17194if ac_fn_c_try_link "$LINENO"; then : 17195 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 17196else 17197 eval `$as_echo "$cacheid" | $as_tr_sh`=no 17198fi 17199rm -f core conftest.err conftest.$ac_objext \ 17200 conftest$ac_exeext conftest.$ac_ext 17201fi 17202 17203 17204 CFLAGS="$xorg_testset_save_CFLAGS" 17205 17206 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 17207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17208$as_echo "$supported" >&6; } 17209 if test "$supported" = "yes" ; then 17210 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 17211 found="yes" 17212 fi 17213 fi 17214 17215 17216 17217if test "x$STRICT_COMPILE" = "xyes"; then 17218 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 17219 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 17220fi 17221 17222 17223 17224 17225 17226 17227cat >>confdefs.h <<_ACEOF 17228#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 17229_ACEOF 17230 17231 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 17232 if test "x$PVM" = "x"; then 17233 PVM="0" 17234 fi 17235 17236cat >>confdefs.h <<_ACEOF 17237#define PACKAGE_VERSION_MINOR $PVM 17238_ACEOF 17239 17240 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 17241 if test "x$PVP" = "x"; then 17242 PVP="0" 17243 fi 17244 17245cat >>confdefs.h <<_ACEOF 17246#define PACKAGE_VERSION_PATCHLEVEL $PVP 17247_ACEOF 17248 17249 17250 17251CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 17252mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 17253|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 17254echo 'git directory not found: installing possibly empty changelog.' >&2)" 17255 17256 17257 17258 17259macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 17260INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 17261mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 17262|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 17263echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 17264 17265 17266 17267 17268 17269 17270if test x$APP_MAN_SUFFIX = x ; then 17271 APP_MAN_SUFFIX=1 17272fi 17273if test x$APP_MAN_DIR = x ; then 17274 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 17275fi 17276 17277if test x$LIB_MAN_SUFFIX = x ; then 17278 LIB_MAN_SUFFIX=3 17279fi 17280if test x$LIB_MAN_DIR = x ; then 17281 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 17282fi 17283 17284if test x$FILE_MAN_SUFFIX = x ; then 17285 case $host_os in 17286 solaris*) FILE_MAN_SUFFIX=4 ;; 17287 *) FILE_MAN_SUFFIX=5 ;; 17288 esac 17289fi 17290if test x$FILE_MAN_DIR = x ; then 17291 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 17292fi 17293 17294if test x$MISC_MAN_SUFFIX = x ; then 17295 case $host_os in 17296 solaris*) MISC_MAN_SUFFIX=5 ;; 17297 *) MISC_MAN_SUFFIX=7 ;; 17298 esac 17299fi 17300if test x$MISC_MAN_DIR = x ; then 17301 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 17302fi 17303 17304if test x$DRIVER_MAN_SUFFIX = x ; then 17305 case $host_os in 17306 solaris*) DRIVER_MAN_SUFFIX=7 ;; 17307 *) DRIVER_MAN_SUFFIX=4 ;; 17308 esac 17309fi 17310if test x$DRIVER_MAN_DIR = x ; then 17311 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 17312fi 17313 17314if test x$ADMIN_MAN_SUFFIX = x ; then 17315 case $host_os in 17316 solaris*) ADMIN_MAN_SUFFIX=1m ;; 17317 *) ADMIN_MAN_SUFFIX=8 ;; 17318 esac 17319fi 17320if test x$ADMIN_MAN_DIR = x ; then 17321 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 17322fi 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338XORG_MAN_PAGE="X Version 11" 17339 17340MAN_SUBSTS="\ 17341 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17342 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17343 -e 's|__xservername__|Xorg|g' \ 17344 -e 's|__xconfigfile__|xorg.conf|g' \ 17345 -e 's|__projectroot__|\$(prefix)|g' \ 17346 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 17347 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 17348 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 17349 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 17350 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 17351 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 17352 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 17353 17354 17355 17356# Check whether --enable-silent-rules was given. 17357if test "${enable_silent_rules+set}" = set; then : 17358 enableval=$enable_silent_rules; 17359fi 17360 17361case $enable_silent_rules in 17362yes) AM_DEFAULT_VERBOSITY=0;; 17363no) AM_DEFAULT_VERBOSITY=1;; 17364*) AM_DEFAULT_VERBOSITY=0;; 17365esac 17366AM_BACKSLASH='\' 17367 17368 17369 17370# Checks for library functions. 17371ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 17372if test "x$ac_cv_func_strcasecmp" = xyes; then : 17373 17374else 17375 17376$as_echo "#define NEED_STRCASECMP 1" >>confdefs.h 17377 17378fi 17379 17380ac_fn_c_check_func "$LINENO" "getc_unlocked" "ac_cv_func_getc_unlocked" 17381if test "x$ac_cv_func_getc_unlocked" = xyes; then : 17382 17383$as_echo "#define HAVE_UNLOCKED_STDIO 1" >>confdefs.h 17384 17385fi 17386 17387 17388# Obtain compiler/linker options for depedencies 17389 17390pkg_failed=no 17391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XKBFILE" >&5 17392$as_echo_n "checking for XKBFILE... " >&6; } 17393 17394if test -n "$XKBFILE_CFLAGS"; then 17395 pkg_cv_XKBFILE_CFLAGS="$XKBFILE_CFLAGS" 17396 elif test -n "$PKG_CONFIG"; then 17397 if test -n "$PKG_CONFIG" && \ 17398 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 kbproto\""; } >&5 17399 ($PKG_CONFIG --exists --print-errors "x11 kbproto") 2>&5 17400 ac_status=$? 17401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17402 test $ac_status = 0; }; then 17403 pkg_cv_XKBFILE_CFLAGS=`$PKG_CONFIG --cflags "x11 kbproto" 2>/dev/null` 17404else 17405 pkg_failed=yes 17406fi 17407 else 17408 pkg_failed=untried 17409fi 17410if test -n "$XKBFILE_LIBS"; then 17411 pkg_cv_XKBFILE_LIBS="$XKBFILE_LIBS" 17412 elif test -n "$PKG_CONFIG"; then 17413 if test -n "$PKG_CONFIG" && \ 17414 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 kbproto\""; } >&5 17415 ($PKG_CONFIG --exists --print-errors "x11 kbproto") 2>&5 17416 ac_status=$? 17417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17418 test $ac_status = 0; }; then 17419 pkg_cv_XKBFILE_LIBS=`$PKG_CONFIG --libs "x11 kbproto" 2>/dev/null` 17420else 17421 pkg_failed=yes 17422fi 17423 else 17424 pkg_failed=untried 17425fi 17426 17427 17428 17429if test $pkg_failed = yes; then 17430 17431if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17432 _pkg_short_errors_supported=yes 17433else 17434 _pkg_short_errors_supported=no 17435fi 17436 if test $_pkg_short_errors_supported = yes; then 17437 XKBFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 kbproto" 2>&1` 17438 else 17439 XKBFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 kbproto" 2>&1` 17440 fi 17441 # Put the nasty error message in config.log where it belongs 17442 echo "$XKBFILE_PKG_ERRORS" >&5 17443 17444 as_fn_error $? "Package requirements (x11 kbproto) were not met: 17445 17446$XKBFILE_PKG_ERRORS 17447 17448Consider adjusting the PKG_CONFIG_PATH environment variable if you 17449installed software in a non-standard prefix. 17450 17451Alternatively, you may set the environment variables XKBFILE_CFLAGS 17452and XKBFILE_LIBS to avoid the need to call pkg-config. 17453See the pkg-config man page for more details. 17454" "$LINENO" 5 17455elif test $pkg_failed = untried; then 17456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17457$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17458as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17459is in your PATH or set the PKG_CONFIG environment variable to the full 17460path to pkg-config. 17461 17462Alternatively, you may set the environment variables XKBFILE_CFLAGS 17463and XKBFILE_LIBS to avoid the need to call pkg-config. 17464See the pkg-config man page for more details. 17465 17466To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17467See \`config.log' for more details" "$LINENO" 5; } 17468else 17469 XKBFILE_CFLAGS=$pkg_cv_XKBFILE_CFLAGS 17470 XKBFILE_LIBS=$pkg_cv_XKBFILE_LIBS 17471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17472$as_echo "yes" >&6; } 17473 : 17474fi 17475 17476ac_config_files="$ac_config_files Makefile src/Makefile xkbfile.pc" 17477 17478cat >confcache <<\_ACEOF 17479# This file is a shell script that caches the results of configure 17480# tests run on this system so they can be shared between configure 17481# scripts and configure runs, see configure's option --config-cache. 17482# It is not useful on other systems. If it contains results you don't 17483# want to keep, you may remove or edit it. 17484# 17485# config.status only pays attention to the cache file if you give it 17486# the --recheck option to rerun configure. 17487# 17488# `ac_cv_env_foo' variables (set or unset) will be overridden when 17489# loading this file, other *unset* `ac_cv_foo' will be assigned the 17490# following values. 17491 17492_ACEOF 17493 17494# The following way of writing the cache mishandles newlines in values, 17495# but we know of no workaround that is simple, portable, and efficient. 17496# So, we kill variables containing newlines. 17497# Ultrix sh set writes to stderr and can't be redirected directly, 17498# and sets the high bit in the cache file unless we assign to the vars. 17499( 17500 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17501 eval ac_val=\$$ac_var 17502 case $ac_val in #( 17503 *${as_nl}*) 17504 case $ac_var in #( 17505 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17506$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17507 esac 17508 case $ac_var in #( 17509 _ | IFS | as_nl) ;; #( 17510 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17511 *) { eval $ac_var=; unset $ac_var;} ;; 17512 esac ;; 17513 esac 17514 done 17515 17516 (set) 2>&1 | 17517 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17518 *${as_nl}ac_space=\ *) 17519 # `set' does not quote correctly, so add quotes: double-quote 17520 # substitution turns \\\\ into \\, and sed turns \\ into \. 17521 sed -n \ 17522 "s/'/'\\\\''/g; 17523 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17524 ;; #( 17525 *) 17526 # `set' quotes correctly as required by POSIX, so do not add quotes. 17527 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17528 ;; 17529 esac | 17530 sort 17531) | 17532 sed ' 17533 /^ac_cv_env_/b end 17534 t clear 17535 :clear 17536 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17537 t end 17538 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17539 :end' >>confcache 17540if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17541 if test -w "$cache_file"; then 17542 if test "x$cache_file" != "x/dev/null"; then 17543 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17544$as_echo "$as_me: updating cache $cache_file" >&6;} 17545 if test ! -f "$cache_file" || test -h "$cache_file"; then 17546 cat confcache >"$cache_file" 17547 else 17548 case $cache_file in #( 17549 */* | ?:*) 17550 mv -f confcache "$cache_file"$$ && 17551 mv -f "$cache_file"$$ "$cache_file" ;; #( 17552 *) 17553 mv -f confcache "$cache_file" ;; 17554 esac 17555 fi 17556 fi 17557 else 17558 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17559$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17560 fi 17561fi 17562rm -f confcache 17563 17564test "x$prefix" = xNONE && prefix=$ac_default_prefix 17565# Let make expand exec_prefix. 17566test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17567 17568DEFS=-DHAVE_CONFIG_H 17569 17570ac_libobjs= 17571ac_ltlibobjs= 17572U= 17573for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17574 # 1. Remove the extension, and $U if already installed. 17575 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17576 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17577 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17578 # will be set to the directory where LIBOBJS objects are built. 17579 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17580 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17581done 17582LIBOBJS=$ac_libobjs 17583 17584LTLIBOBJS=$ac_ltlibobjs 17585 17586 17587 if test -n "$EXEEXT"; then 17588 am__EXEEXT_TRUE= 17589 am__EXEEXT_FALSE='#' 17590else 17591 am__EXEEXT_TRUE='#' 17592 am__EXEEXT_FALSE= 17593fi 17594 17595if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 17596 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 17597Usually this means the macro was only invoked conditionally." "$LINENO" 5 17598fi 17599if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17600 as_fn_error $? "conditional \"AMDEP\" was never defined. 17601Usually this means the macro was only invoked conditionally." "$LINENO" 5 17602fi 17603if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17604 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17605Usually this means the macro was only invoked conditionally." "$LINENO" 5 17606fi 17607 17608: "${CONFIG_STATUS=./config.status}" 17609ac_write_fail=0 17610ac_clean_files_save=$ac_clean_files 17611ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17612{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17613$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17614as_write_fail=0 17615cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17616#! $SHELL 17617# Generated by $as_me. 17618# Run this file to recreate the current configuration. 17619# Compiler output produced by configure, useful for debugging 17620# configure, is in config.log if it exists. 17621 17622debug=false 17623ac_cs_recheck=false 17624ac_cs_silent=false 17625 17626SHELL=\${CONFIG_SHELL-$SHELL} 17627export SHELL 17628_ASEOF 17629cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17630## -------------------- ## 17631## M4sh Initialization. ## 17632## -------------------- ## 17633 17634# Be more Bourne compatible 17635DUALCASE=1; export DUALCASE # for MKS sh 17636if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17637 emulate sh 17638 NULLCMD=: 17639 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17640 # is contrary to our usage. Disable this feature. 17641 alias -g '${1+"$@"}'='"$@"' 17642 setopt NO_GLOB_SUBST 17643else 17644 case `(set -o) 2>/dev/null` in #( 17645 *posix*) : 17646 set -o posix ;; #( 17647 *) : 17648 ;; 17649esac 17650fi 17651 17652 17653as_nl=' 17654' 17655export as_nl 17656# Printing a long string crashes Solaris 7 /usr/bin/printf. 17657as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17658as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17659as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17660# Prefer a ksh shell builtin over an external printf program on Solaris, 17661# but without wasting forks for bash or zsh. 17662if test -z "$BASH_VERSION$ZSH_VERSION" \ 17663 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17664 as_echo='print -r --' 17665 as_echo_n='print -rn --' 17666elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17667 as_echo='printf %s\n' 17668 as_echo_n='printf %s' 17669else 17670 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17671 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17672 as_echo_n='/usr/ucb/echo -n' 17673 else 17674 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17675 as_echo_n_body='eval 17676 arg=$1; 17677 case $arg in #( 17678 *"$as_nl"*) 17679 expr "X$arg" : "X\\(.*\\)$as_nl"; 17680 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17681 esac; 17682 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17683 ' 17684 export as_echo_n_body 17685 as_echo_n='sh -c $as_echo_n_body as_echo' 17686 fi 17687 export as_echo_body 17688 as_echo='sh -c $as_echo_body as_echo' 17689fi 17690 17691# The user is always right. 17692if test "${PATH_SEPARATOR+set}" != set; then 17693 PATH_SEPARATOR=: 17694 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17695 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17696 PATH_SEPARATOR=';' 17697 } 17698fi 17699 17700 17701# IFS 17702# We need space, tab and new line, in precisely that order. Quoting is 17703# there to prevent editors from complaining about space-tab. 17704# (If _AS_PATH_WALK were called with IFS unset, it would disable word 17705# splitting by setting IFS to empty value.) 17706IFS=" "" $as_nl" 17707 17708# Find who we are. Look in the path if we contain no directory separator. 17709as_myself= 17710case $0 in #(( 17711 *[\\/]* ) as_myself=$0 ;; 17712 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17713for as_dir in $PATH 17714do 17715 IFS=$as_save_IFS 17716 test -z "$as_dir" && as_dir=. 17717 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17718 done 17719IFS=$as_save_IFS 17720 17721 ;; 17722esac 17723# We did not find ourselves, most probably we were run as `sh COMMAND' 17724# in which case we are not to be found in the path. 17725if test "x$as_myself" = x; then 17726 as_myself=$0 17727fi 17728if test ! -f "$as_myself"; then 17729 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17730 exit 1 17731fi 17732 17733# Unset variables that we do not need and which cause bugs (e.g. in 17734# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17735# suppresses any "Segmentation fault" message there. '((' could 17736# trigger a bug in pdksh 5.2.14. 17737for as_var in BASH_ENV ENV MAIL MAILPATH 17738do eval test x\${$as_var+set} = xset \ 17739 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17740done 17741PS1='$ ' 17742PS2='> ' 17743PS4='+ ' 17744 17745# NLS nuisances. 17746LC_ALL=C 17747export LC_ALL 17748LANGUAGE=C 17749export LANGUAGE 17750 17751# CDPATH. 17752(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17753 17754 17755# as_fn_error STATUS ERROR [LINENO LOG_FD] 17756# ---------------------------------------- 17757# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17758# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17759# script with STATUS, using 1 if that was 0. 17760as_fn_error () 17761{ 17762 as_status=$1; test $as_status -eq 0 && as_status=1 17763 if test "$4"; then 17764 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17765 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17766 fi 17767 $as_echo "$as_me: error: $2" >&2 17768 as_fn_exit $as_status 17769} # as_fn_error 17770 17771 17772# as_fn_set_status STATUS 17773# ----------------------- 17774# Set $? to STATUS, without forking. 17775as_fn_set_status () 17776{ 17777 return $1 17778} # as_fn_set_status 17779 17780# as_fn_exit STATUS 17781# ----------------- 17782# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17783as_fn_exit () 17784{ 17785 set +e 17786 as_fn_set_status $1 17787 exit $1 17788} # as_fn_exit 17789 17790# as_fn_unset VAR 17791# --------------- 17792# Portably unset VAR. 17793as_fn_unset () 17794{ 17795 { eval $1=; unset $1;} 17796} 17797as_unset=as_fn_unset 17798# as_fn_append VAR VALUE 17799# ---------------------- 17800# Append the text in VALUE to the end of the definition contained in VAR. Take 17801# advantage of any shell optimizations that allow amortized linear growth over 17802# repeated appends, instead of the typical quadratic growth present in naive 17803# implementations. 17804if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17805 eval 'as_fn_append () 17806 { 17807 eval $1+=\$2 17808 }' 17809else 17810 as_fn_append () 17811 { 17812 eval $1=\$$1\$2 17813 } 17814fi # as_fn_append 17815 17816# as_fn_arith ARG... 17817# ------------------ 17818# Perform arithmetic evaluation on the ARGs, and store the result in the 17819# global $as_val. Take advantage of shells that can avoid forks. The arguments 17820# must be portable across $(()) and expr. 17821if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17822 eval 'as_fn_arith () 17823 { 17824 as_val=$(( $* )) 17825 }' 17826else 17827 as_fn_arith () 17828 { 17829 as_val=`expr "$@" || test $? -eq 1` 17830 } 17831fi # as_fn_arith 17832 17833 17834if expr a : '\(a\)' >/dev/null 2>&1 && 17835 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17836 as_expr=expr 17837else 17838 as_expr=false 17839fi 17840 17841if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17842 as_basename=basename 17843else 17844 as_basename=false 17845fi 17846 17847if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17848 as_dirname=dirname 17849else 17850 as_dirname=false 17851fi 17852 17853as_me=`$as_basename -- "$0" || 17854$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17855 X"$0" : 'X\(//\)$' \| \ 17856 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17857$as_echo X/"$0" | 17858 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17859 s//\1/ 17860 q 17861 } 17862 /^X\/\(\/\/\)$/{ 17863 s//\1/ 17864 q 17865 } 17866 /^X\/\(\/\).*/{ 17867 s//\1/ 17868 q 17869 } 17870 s/.*/./; q'` 17871 17872# Avoid depending upon Character Ranges. 17873as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17874as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17875as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17876as_cr_digits='0123456789' 17877as_cr_alnum=$as_cr_Letters$as_cr_digits 17878 17879ECHO_C= ECHO_N= ECHO_T= 17880case `echo -n x` in #((((( 17881-n*) 17882 case `echo 'xy\c'` in 17883 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17884 xy) ECHO_C='\c';; 17885 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17886 ECHO_T=' ';; 17887 esac;; 17888*) 17889 ECHO_N='-n';; 17890esac 17891 17892rm -f conf$$ conf$$.exe conf$$.file 17893if test -d conf$$.dir; then 17894 rm -f conf$$.dir/conf$$.file 17895else 17896 rm -f conf$$.dir 17897 mkdir conf$$.dir 2>/dev/null 17898fi 17899if (echo >conf$$.file) 2>/dev/null; then 17900 if ln -s conf$$.file conf$$ 2>/dev/null; then 17901 as_ln_s='ln -s' 17902 # ... but there are two gotchas: 17903 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17904 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17905 # In both cases, we have to default to `cp -p'. 17906 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17907 as_ln_s='cp -p' 17908 elif ln conf$$.file conf$$ 2>/dev/null; then 17909 as_ln_s=ln 17910 else 17911 as_ln_s='cp -p' 17912 fi 17913else 17914 as_ln_s='cp -p' 17915fi 17916rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17917rmdir conf$$.dir 2>/dev/null 17918 17919 17920# as_fn_mkdir_p 17921# ------------- 17922# Create "$as_dir" as a directory, including parents if necessary. 17923as_fn_mkdir_p () 17924{ 17925 17926 case $as_dir in #( 17927 -*) as_dir=./$as_dir;; 17928 esac 17929 test -d "$as_dir" || eval $as_mkdir_p || { 17930 as_dirs= 17931 while :; do 17932 case $as_dir in #( 17933 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17934 *) as_qdir=$as_dir;; 17935 esac 17936 as_dirs="'$as_qdir' $as_dirs" 17937 as_dir=`$as_dirname -- "$as_dir" || 17938$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17939 X"$as_dir" : 'X\(//\)[^/]' \| \ 17940 X"$as_dir" : 'X\(//\)$' \| \ 17941 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17942$as_echo X"$as_dir" | 17943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17944 s//\1/ 17945 q 17946 } 17947 /^X\(\/\/\)[^/].*/{ 17948 s//\1/ 17949 q 17950 } 17951 /^X\(\/\/\)$/{ 17952 s//\1/ 17953 q 17954 } 17955 /^X\(\/\).*/{ 17956 s//\1/ 17957 q 17958 } 17959 s/.*/./; q'` 17960 test -d "$as_dir" && break 17961 done 17962 test -z "$as_dirs" || eval "mkdir $as_dirs" 17963 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17964 17965 17966} # as_fn_mkdir_p 17967if mkdir -p . 2>/dev/null; then 17968 as_mkdir_p='mkdir -p "$as_dir"' 17969else 17970 test -d ./-p && rmdir ./-p 17971 as_mkdir_p=false 17972fi 17973 17974if test -x / >/dev/null 2>&1; then 17975 as_test_x='test -x' 17976else 17977 if ls -dL / >/dev/null 2>&1; then 17978 as_ls_L_option=L 17979 else 17980 as_ls_L_option= 17981 fi 17982 as_test_x=' 17983 eval sh -c '\'' 17984 if test -d "$1"; then 17985 test -d "$1/."; 17986 else 17987 case $1 in #( 17988 -*)set "./$1";; 17989 esac; 17990 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 17991 ???[sx]*):;;*)false;;esac;fi 17992 '\'' sh 17993 ' 17994fi 17995as_executable_p=$as_test_x 17996 17997# Sed expression to map a string onto a valid CPP name. 17998as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17999 18000# Sed expression to map a string onto a valid variable name. 18001as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18002 18003 18004exec 6>&1 18005## ----------------------------------- ## 18006## Main body of $CONFIG_STATUS script. ## 18007## ----------------------------------- ## 18008_ASEOF 18009test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18010 18011cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18012# Save the log message, to keep $0 and so on meaningful, and to 18013# report actual input values of CONFIG_FILES etc. instead of their 18014# values after options handling. 18015ac_log=" 18016This file was extended by libxkbfile $as_me 1.0.8, which was 18017generated by GNU Autoconf 2.68. Invocation command line was 18018 18019 CONFIG_FILES = $CONFIG_FILES 18020 CONFIG_HEADERS = $CONFIG_HEADERS 18021 CONFIG_LINKS = $CONFIG_LINKS 18022 CONFIG_COMMANDS = $CONFIG_COMMANDS 18023 $ $0 $@ 18024 18025on `(hostname || uname -n) 2>/dev/null | sed 1q` 18026" 18027 18028_ACEOF 18029 18030case $ac_config_files in *" 18031"*) set x $ac_config_files; shift; ac_config_files=$*;; 18032esac 18033 18034case $ac_config_headers in *" 18035"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18036esac 18037 18038 18039cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18040# Files that config.status was made for. 18041config_files="$ac_config_files" 18042config_headers="$ac_config_headers" 18043config_commands="$ac_config_commands" 18044 18045_ACEOF 18046 18047cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18048ac_cs_usage="\ 18049\`$as_me' instantiates files and other configuration actions 18050from templates according to the current configuration. Unless the files 18051and actions are specified as TAGs, all are instantiated by default. 18052 18053Usage: $0 [OPTION]... [TAG]... 18054 18055 -h, --help print this help, then exit 18056 -V, --version print version number and configuration settings, then exit 18057 --config print configuration, then exit 18058 -q, --quiet, --silent 18059 do not print progress messages 18060 -d, --debug don't remove temporary files 18061 --recheck update $as_me by reconfiguring in the same conditions 18062 --file=FILE[:TEMPLATE] 18063 instantiate the configuration file FILE 18064 --header=FILE[:TEMPLATE] 18065 instantiate the configuration header FILE 18066 18067Configuration files: 18068$config_files 18069 18070Configuration headers: 18071$config_headers 18072 18073Configuration commands: 18074$config_commands 18075 18076Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 18077 18078_ACEOF 18079cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18080ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18081ac_cs_version="\\ 18082libxkbfile config.status 1.0.8 18083configured by $0, generated by GNU Autoconf 2.68, 18084 with options \\"\$ac_cs_config\\" 18085 18086Copyright (C) 2010 Free Software Foundation, Inc. 18087This config.status script is free software; the Free Software Foundation 18088gives unlimited permission to copy, distribute and modify it." 18089 18090ac_pwd='$ac_pwd' 18091srcdir='$srcdir' 18092INSTALL='$INSTALL' 18093MKDIR_P='$MKDIR_P' 18094AWK='$AWK' 18095test -n "\$AWK" || AWK=awk 18096_ACEOF 18097 18098cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18099# The default lists apply if the user does not specify any file. 18100ac_need_defaults=: 18101while test $# != 0 18102do 18103 case $1 in 18104 --*=?*) 18105 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18106 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18107 ac_shift=: 18108 ;; 18109 --*=) 18110 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18111 ac_optarg= 18112 ac_shift=: 18113 ;; 18114 *) 18115 ac_option=$1 18116 ac_optarg=$2 18117 ac_shift=shift 18118 ;; 18119 esac 18120 18121 case $ac_option in 18122 # Handling of the options. 18123 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18124 ac_cs_recheck=: ;; 18125 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18126 $as_echo "$ac_cs_version"; exit ;; 18127 --config | --confi | --conf | --con | --co | --c ) 18128 $as_echo "$ac_cs_config"; exit ;; 18129 --debug | --debu | --deb | --de | --d | -d ) 18130 debug=: ;; 18131 --file | --fil | --fi | --f ) 18132 $ac_shift 18133 case $ac_optarg in 18134 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18135 '') as_fn_error $? "missing file argument" ;; 18136 esac 18137 as_fn_append CONFIG_FILES " '$ac_optarg'" 18138 ac_need_defaults=false;; 18139 --header | --heade | --head | --hea ) 18140 $ac_shift 18141 case $ac_optarg in 18142 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18143 esac 18144 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18145 ac_need_defaults=false;; 18146 --he | --h) 18147 # Conflict between --help and --header 18148 as_fn_error $? "ambiguous option: \`$1' 18149Try \`$0 --help' for more information.";; 18150 --help | --hel | -h ) 18151 $as_echo "$ac_cs_usage"; exit ;; 18152 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18153 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18154 ac_cs_silent=: ;; 18155 18156 # This is an error. 18157 -*) as_fn_error $? "unrecognized option: \`$1' 18158Try \`$0 --help' for more information." ;; 18159 18160 *) as_fn_append ac_config_targets " $1" 18161 ac_need_defaults=false ;; 18162 18163 esac 18164 shift 18165done 18166 18167ac_configure_extra_args= 18168 18169if $ac_cs_silent; then 18170 exec 6>/dev/null 18171 ac_configure_extra_args="$ac_configure_extra_args --silent" 18172fi 18173 18174_ACEOF 18175cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18176if \$ac_cs_recheck; then 18177 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18178 shift 18179 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18180 CONFIG_SHELL='$SHELL' 18181 export CONFIG_SHELL 18182 exec "\$@" 18183fi 18184 18185_ACEOF 18186cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18187exec 5>>config.log 18188{ 18189 echo 18190 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18191## Running $as_me. ## 18192_ASBOX 18193 $as_echo "$ac_log" 18194} >&5 18195 18196_ACEOF 18197cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18198# 18199# INIT-COMMANDS 18200# 18201AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 18202 18203 18204# The HP-UX ksh and POSIX shell print the target directory to stdout 18205# if CDPATH is set. 18206(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18207 18208sed_quote_subst='$sed_quote_subst' 18209double_quote_subst='$double_quote_subst' 18210delay_variable_subst='$delay_variable_subst' 18211macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18212macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18213enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18214enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18215pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18216enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18217SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18218ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18219host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18220host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18221host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18222build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18223build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18224build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18225SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18226Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18227GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18228EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18229FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18230LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18231NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18232LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18233max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18234ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18235exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18236lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18237lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18238lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18239lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 18240lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 18241reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18242reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18243OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18244deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18245file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18246file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 18247want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 18248DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 18249sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 18250AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18251AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18252archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 18253STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18254RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18255old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18256old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18257old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18258lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18259CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18260CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18261compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18262GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18263lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18264lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18265lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18266lt_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"`' 18267nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 18268lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 18269objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18270MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18271lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18272lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18273lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18274lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18275lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18276need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18277MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 18278DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18279NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18280LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18281OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18282OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18283libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18284shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18285extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18286archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18287enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18288export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18289whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18290compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18291old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18292old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18293archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18294archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18295module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18296module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18297with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18298allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18299no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18300hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18301hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 18302hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18303hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18304hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18305hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18306hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18307hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18308inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18309link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18310always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18311export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18312exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18313include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18314prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18315postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 18316file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18317variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18318need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18319need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18320version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18321runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18322shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18323shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18324libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18325library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18326soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18327install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18328postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18329postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18330finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18331finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18332hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18333sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18334sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 18335hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18336enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18337enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18338enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18339old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18340striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18341 18342LTCC='$LTCC' 18343LTCFLAGS='$LTCFLAGS' 18344compiler='$compiler_DEFAULT' 18345 18346# A function that is used when there is no print builtin or printf. 18347func_fallback_echo () 18348{ 18349 eval 'cat <<_LTECHO_EOF 18350\$1 18351_LTECHO_EOF' 18352} 18353 18354# Quote evaled strings. 18355for var in SHELL \ 18356ECHO \ 18357SED \ 18358GREP \ 18359EGREP \ 18360FGREP \ 18361LD \ 18362NM \ 18363LN_S \ 18364lt_SP2NL \ 18365lt_NL2SP \ 18366reload_flag \ 18367OBJDUMP \ 18368deplibs_check_method \ 18369file_magic_cmd \ 18370file_magic_glob \ 18371want_nocaseglob \ 18372DLLTOOL \ 18373sharedlib_from_linklib_cmd \ 18374AR \ 18375AR_FLAGS \ 18376archiver_list_spec \ 18377STRIP \ 18378RANLIB \ 18379CC \ 18380CFLAGS \ 18381compiler \ 18382lt_cv_sys_global_symbol_pipe \ 18383lt_cv_sys_global_symbol_to_cdecl \ 18384lt_cv_sys_global_symbol_to_c_name_address \ 18385lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18386nm_file_list_spec \ 18387lt_prog_compiler_no_builtin_flag \ 18388lt_prog_compiler_pic \ 18389lt_prog_compiler_wl \ 18390lt_prog_compiler_static \ 18391lt_cv_prog_compiler_c_o \ 18392need_locks \ 18393MANIFEST_TOOL \ 18394DSYMUTIL \ 18395NMEDIT \ 18396LIPO \ 18397OTOOL \ 18398OTOOL64 \ 18399shrext_cmds \ 18400export_dynamic_flag_spec \ 18401whole_archive_flag_spec \ 18402compiler_needs_object \ 18403with_gnu_ld \ 18404allow_undefined_flag \ 18405no_undefined_flag \ 18406hardcode_libdir_flag_spec \ 18407hardcode_libdir_flag_spec_ld \ 18408hardcode_libdir_separator \ 18409exclude_expsyms \ 18410include_expsyms \ 18411file_list_spec \ 18412variables_saved_for_relink \ 18413libname_spec \ 18414library_names_spec \ 18415soname_spec \ 18416install_override_mode \ 18417finish_eval \ 18418old_striplib \ 18419striplib; do 18420 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18421 *[\\\\\\\`\\"\\\$]*) 18422 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 18423 ;; 18424 *) 18425 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18426 ;; 18427 esac 18428done 18429 18430# Double-quote double-evaled strings. 18431for var in reload_cmds \ 18432old_postinstall_cmds \ 18433old_postuninstall_cmds \ 18434old_archive_cmds \ 18435extract_expsyms_cmds \ 18436old_archive_from_new_cmds \ 18437old_archive_from_expsyms_cmds \ 18438archive_cmds \ 18439archive_expsym_cmds \ 18440module_cmds \ 18441module_expsym_cmds \ 18442export_symbols_cmds \ 18443prelink_cmds \ 18444postlink_cmds \ 18445postinstall_cmds \ 18446postuninstall_cmds \ 18447finish_cmds \ 18448sys_lib_search_path_spec \ 18449sys_lib_dlsearch_path_spec; do 18450 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18451 *[\\\\\\\`\\"\\\$]*) 18452 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 18453 ;; 18454 *) 18455 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18456 ;; 18457 esac 18458done 18459 18460ac_aux_dir='$ac_aux_dir' 18461xsi_shell='$xsi_shell' 18462lt_shell_append='$lt_shell_append' 18463 18464# See if we are running on zsh, and set the options which allow our 18465# commands through without removal of \ escapes INIT. 18466if test -n "\${ZSH_VERSION+set}" ; then 18467 setopt NO_GLOB_SUBST 18468fi 18469 18470 18471 PACKAGE='$PACKAGE' 18472 VERSION='$VERSION' 18473 TIMESTAMP='$TIMESTAMP' 18474 RM='$RM' 18475 ofile='$ofile' 18476 18477 18478 18479 18480_ACEOF 18481 18482cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18483 18484# Handling of arguments. 18485for ac_config_target in $ac_config_targets 18486do 18487 case $ac_config_target in 18488 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 18489 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18490 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18491 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18492 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 18493 "xkbfile.pc") CONFIG_FILES="$CONFIG_FILES xkbfile.pc" ;; 18494 18495 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18496 esac 18497done 18498 18499 18500# If the user did not use the arguments to specify the items to instantiate, 18501# then the envvar interface is used. Set only those that are not. 18502# We use the long form for the default assignment because of an extremely 18503# bizarre bug on SunOS 4.1.3. 18504if $ac_need_defaults; then 18505 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18506 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18507 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18508fi 18509 18510# Have a temporary directory for convenience. Make it in the build tree 18511# simply because there is no reason against having it here, and in addition, 18512# creating and moving files from /tmp can sometimes cause problems. 18513# Hook for its removal unless debugging. 18514# Note that there is a small window in which the directory will not be cleaned: 18515# after its creation but before its name has been assigned to `$tmp'. 18516$debug || 18517{ 18518 tmp= ac_tmp= 18519 trap 'exit_status=$? 18520 : "${ac_tmp:=$tmp}" 18521 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18522' 0 18523 trap 'as_fn_exit 1' 1 2 13 15 18524} 18525# Create a (secure) tmp directory for tmp files. 18526 18527{ 18528 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18529 test -d "$tmp" 18530} || 18531{ 18532 tmp=./conf$$-$RANDOM 18533 (umask 077 && mkdir "$tmp") 18534} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18535ac_tmp=$tmp 18536 18537# Set up the scripts for CONFIG_FILES section. 18538# No need to generate them if there are no CONFIG_FILES. 18539# This happens for instance with `./config.status config.h'. 18540if test -n "$CONFIG_FILES"; then 18541 18542 18543ac_cr=`echo X | tr X '\015'` 18544# On cygwin, bash can eat \r inside `` if the user requested igncr. 18545# But we know of no other shell where ac_cr would be empty at this 18546# point, so we can use a bashism as a fallback. 18547if test "x$ac_cr" = x; then 18548 eval ac_cr=\$\'\\r\' 18549fi 18550ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18551if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18552 ac_cs_awk_cr='\\r' 18553else 18554 ac_cs_awk_cr=$ac_cr 18555fi 18556 18557echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18558_ACEOF 18559 18560 18561{ 18562 echo "cat >conf$$subs.awk <<_ACEOF" && 18563 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18564 echo "_ACEOF" 18565} >conf$$subs.sh || 18566 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18567ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18568ac_delim='%!_!# ' 18569for ac_last_try in false false false false false :; do 18570 . ./conf$$subs.sh || 18571 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18572 18573 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18574 if test $ac_delim_n = $ac_delim_num; then 18575 break 18576 elif $ac_last_try; then 18577 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18578 else 18579 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18580 fi 18581done 18582rm -f conf$$subs.sh 18583 18584cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18585cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18586_ACEOF 18587sed -n ' 18588h 18589s/^/S["/; s/!.*/"]=/ 18590p 18591g 18592s/^[^!]*!// 18593:repl 18594t repl 18595s/'"$ac_delim"'$// 18596t delim 18597:nl 18598h 18599s/\(.\{148\}\)..*/\1/ 18600t more1 18601s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18602p 18603n 18604b repl 18605:more1 18606s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18607p 18608g 18609s/.\{148\}// 18610t nl 18611:delim 18612h 18613s/\(.\{148\}\)..*/\1/ 18614t more2 18615s/["\\]/\\&/g; s/^/"/; s/$/"/ 18616p 18617b 18618:more2 18619s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18620p 18621g 18622s/.\{148\}// 18623t delim 18624' <conf$$subs.awk | sed ' 18625/^[^""]/{ 18626 N 18627 s/\n// 18628} 18629' >>$CONFIG_STATUS || ac_write_fail=1 18630rm -f conf$$subs.awk 18631cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18632_ACAWK 18633cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18634 for (key in S) S_is_set[key] = 1 18635 FS = "" 18636 18637} 18638{ 18639 line = $ 0 18640 nfields = split(line, field, "@") 18641 substed = 0 18642 len = length(field[1]) 18643 for (i = 2; i < nfields; i++) { 18644 key = field[i] 18645 keylen = length(key) 18646 if (S_is_set[key]) { 18647 value = S[key] 18648 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18649 len += length(value) + length(field[++i]) 18650 substed = 1 18651 } else 18652 len += 1 + keylen 18653 } 18654 18655 print line 18656} 18657 18658_ACAWK 18659_ACEOF 18660cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18661if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18662 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18663else 18664 cat 18665fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 18666 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18667_ACEOF 18668 18669# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18670# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18671# trailing colons and then remove the whole line if VPATH becomes empty 18672# (actually we leave an empty line to preserve line numbers). 18673if test "x$srcdir" = x.; then 18674 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18675h 18676s/// 18677s/^/:/ 18678s/[ ]*$/:/ 18679s/:\$(srcdir):/:/g 18680s/:\${srcdir}:/:/g 18681s/:@srcdir@:/:/g 18682s/^:*// 18683s/:*$// 18684x 18685s/\(=[ ]*\).*/\1/ 18686G 18687s/\n// 18688s/^[^=]*=[ ]*$// 18689}' 18690fi 18691 18692cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18693fi # test -n "$CONFIG_FILES" 18694 18695# Set up the scripts for CONFIG_HEADERS section. 18696# No need to generate them if there are no CONFIG_HEADERS. 18697# This happens for instance with `./config.status Makefile'. 18698if test -n "$CONFIG_HEADERS"; then 18699cat >"$ac_tmp/defines.awk" <<\_ACAWK || 18700BEGIN { 18701_ACEOF 18702 18703# Transform confdefs.h into an awk script `defines.awk', embedded as 18704# here-document in config.status, that substitutes the proper values into 18705# config.h.in to produce config.h. 18706 18707# Create a delimiter string that does not exist in confdefs.h, to ease 18708# handling of long lines. 18709ac_delim='%!_!# ' 18710for ac_last_try in false false :; do 18711 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 18712 if test -z "$ac_tt"; then 18713 break 18714 elif $ac_last_try; then 18715 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 18716 else 18717 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18718 fi 18719done 18720 18721# For the awk script, D is an array of macro values keyed by name, 18722# likewise P contains macro parameters if any. Preserve backslash 18723# newline sequences. 18724 18725ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18726sed -n ' 18727s/.\{148\}/&'"$ac_delim"'/g 18728t rset 18729:rset 18730s/^[ ]*#[ ]*define[ ][ ]*/ / 18731t def 18732d 18733:def 18734s/\\$// 18735t bsnl 18736s/["\\]/\\&/g 18737s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18738D["\1"]=" \3"/p 18739s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18740d 18741:bsnl 18742s/["\\]/\\&/g 18743s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18744D["\1"]=" \3\\\\\\n"\\/p 18745t cont 18746s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18747t cont 18748d 18749:cont 18750n 18751s/.\{148\}/&'"$ac_delim"'/g 18752t clear 18753:clear 18754s/\\$// 18755t bsnlc 18756s/["\\]/\\&/g; s/^/"/; s/$/"/p 18757d 18758:bsnlc 18759s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18760b cont 18761' <confdefs.h | sed ' 18762s/'"$ac_delim"'/"\\\ 18763"/g' >>$CONFIG_STATUS || ac_write_fail=1 18764 18765cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18766 for (key in D) D_is_set[key] = 1 18767 FS = "" 18768} 18769/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18770 line = \$ 0 18771 split(line, arg, " ") 18772 if (arg[1] == "#") { 18773 defundef = arg[2] 18774 mac1 = arg[3] 18775 } else { 18776 defundef = substr(arg[1], 2) 18777 mac1 = arg[2] 18778 } 18779 split(mac1, mac2, "(") #) 18780 macro = mac2[1] 18781 prefix = substr(line, 1, index(line, defundef) - 1) 18782 if (D_is_set[macro]) { 18783 # Preserve the white space surrounding the "#". 18784 print prefix "define", macro P[macro] D[macro] 18785 next 18786 } else { 18787 # Replace #undef with comments. This is necessary, for example, 18788 # in the case of _POSIX_SOURCE, which is predefined and required 18789 # on some systems where configure will not decide to define it. 18790 if (defundef == "undef") { 18791 print "/*", prefix defundef, macro, "*/" 18792 next 18793 } 18794 } 18795} 18796{ print } 18797_ACAWK 18798_ACEOF 18799cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18800 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 18801fi # test -n "$CONFIG_HEADERS" 18802 18803 18804eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 18805shift 18806for ac_tag 18807do 18808 case $ac_tag in 18809 :[FHLC]) ac_mode=$ac_tag; continue;; 18810 esac 18811 case $ac_mode$ac_tag in 18812 :[FHL]*:*);; 18813 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18814 :[FH]-) ac_tag=-:-;; 18815 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18816 esac 18817 ac_save_IFS=$IFS 18818 IFS=: 18819 set x $ac_tag 18820 IFS=$ac_save_IFS 18821 shift 18822 ac_file=$1 18823 shift 18824 18825 case $ac_mode in 18826 :L) ac_source=$1;; 18827 :[FH]) 18828 ac_file_inputs= 18829 for ac_f 18830 do 18831 case $ac_f in 18832 -) ac_f="$ac_tmp/stdin";; 18833 *) # Look for the file first in the build tree, then in the source tree 18834 # (if the path is not absolute). The absolute path cannot be DOS-style, 18835 # because $ac_f cannot contain `:'. 18836 test -f "$ac_f" || 18837 case $ac_f in 18838 [\\/$]*) false;; 18839 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18840 esac || 18841 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18842 esac 18843 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18844 as_fn_append ac_file_inputs " '$ac_f'" 18845 done 18846 18847 # Let's still pretend it is `configure' which instantiates (i.e., don't 18848 # use $as_me), people would be surprised to read: 18849 # /* config.h. Generated by config.status. */ 18850 configure_input='Generated from '` 18851 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18852 `' by configure.' 18853 if test x"$ac_file" != x-; then 18854 configure_input="$ac_file. $configure_input" 18855 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18856$as_echo "$as_me: creating $ac_file" >&6;} 18857 fi 18858 # Neutralize special characters interpreted by sed in replacement strings. 18859 case $configure_input in #( 18860 *\&* | *\|* | *\\* ) 18861 ac_sed_conf_input=`$as_echo "$configure_input" | 18862 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18863 *) ac_sed_conf_input=$configure_input;; 18864 esac 18865 18866 case $ac_tag in 18867 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18868 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18869 esac 18870 ;; 18871 esac 18872 18873 ac_dir=`$as_dirname -- "$ac_file" || 18874$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18875 X"$ac_file" : 'X\(//\)[^/]' \| \ 18876 X"$ac_file" : 'X\(//\)$' \| \ 18877 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18878$as_echo X"$ac_file" | 18879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18880 s//\1/ 18881 q 18882 } 18883 /^X\(\/\/\)[^/].*/{ 18884 s//\1/ 18885 q 18886 } 18887 /^X\(\/\/\)$/{ 18888 s//\1/ 18889 q 18890 } 18891 /^X\(\/\).*/{ 18892 s//\1/ 18893 q 18894 } 18895 s/.*/./; q'` 18896 as_dir="$ac_dir"; as_fn_mkdir_p 18897 ac_builddir=. 18898 18899case "$ac_dir" in 18900.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18901*) 18902 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18903 # A ".." for each directory in $ac_dir_suffix. 18904 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18905 case $ac_top_builddir_sub in 18906 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18907 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18908 esac ;; 18909esac 18910ac_abs_top_builddir=$ac_pwd 18911ac_abs_builddir=$ac_pwd$ac_dir_suffix 18912# for backward compatibility: 18913ac_top_builddir=$ac_top_build_prefix 18914 18915case $srcdir in 18916 .) # We are building in place. 18917 ac_srcdir=. 18918 ac_top_srcdir=$ac_top_builddir_sub 18919 ac_abs_top_srcdir=$ac_pwd ;; 18920 [\\/]* | ?:[\\/]* ) # Absolute name. 18921 ac_srcdir=$srcdir$ac_dir_suffix; 18922 ac_top_srcdir=$srcdir 18923 ac_abs_top_srcdir=$srcdir ;; 18924 *) # Relative name. 18925 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18926 ac_top_srcdir=$ac_top_build_prefix$srcdir 18927 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18928esac 18929ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18930 18931 18932 case $ac_mode in 18933 :F) 18934 # 18935 # CONFIG_FILE 18936 # 18937 18938 case $INSTALL in 18939 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18940 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18941 esac 18942 ac_MKDIR_P=$MKDIR_P 18943 case $MKDIR_P in 18944 [\\/$]* | ?:[\\/]* ) ;; 18945 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18946 esac 18947_ACEOF 18948 18949cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18950# If the template does not know about datarootdir, expand it. 18951# FIXME: This hack should be removed a few years after 2.60. 18952ac_datarootdir_hack=; ac_datarootdir_seen= 18953ac_sed_dataroot=' 18954/datarootdir/ { 18955 p 18956 q 18957} 18958/@datadir@/p 18959/@docdir@/p 18960/@infodir@/p 18961/@localedir@/p 18962/@mandir@/p' 18963case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18964*datarootdir*) ac_datarootdir_seen=yes;; 18965*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18967$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18968_ACEOF 18969cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18970 ac_datarootdir_hack=' 18971 s&@datadir@&$datadir&g 18972 s&@docdir@&$docdir&g 18973 s&@infodir@&$infodir&g 18974 s&@localedir@&$localedir&g 18975 s&@mandir@&$mandir&g 18976 s&\\\${datarootdir}&$datarootdir&g' ;; 18977esac 18978_ACEOF 18979 18980# Neutralize VPATH when `$srcdir' = `.'. 18981# Shell code in configure.ac might set extrasub. 18982# FIXME: do we really want to maintain this feature? 18983cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18984ac_sed_extra="$ac_vpsub 18985$extrasub 18986_ACEOF 18987cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18988:t 18989/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18990s|@configure_input@|$ac_sed_conf_input|;t t 18991s&@top_builddir@&$ac_top_builddir_sub&;t t 18992s&@top_build_prefix@&$ac_top_build_prefix&;t t 18993s&@srcdir@&$ac_srcdir&;t t 18994s&@abs_srcdir@&$ac_abs_srcdir&;t t 18995s&@top_srcdir@&$ac_top_srcdir&;t t 18996s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18997s&@builddir@&$ac_builddir&;t t 18998s&@abs_builddir@&$ac_abs_builddir&;t t 18999s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19000s&@INSTALL@&$ac_INSTALL&;t t 19001s&@MKDIR_P@&$ac_MKDIR_P&;t t 19002$ac_datarootdir_hack 19003" 19004eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19005 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19006 19007test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19008 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19009 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19010 "$ac_tmp/out"`; test -z "$ac_out"; } && 19011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19012which seems to be undefined. Please make sure it is defined" >&5 19013$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19014which seems to be undefined. Please make sure it is defined" >&2;} 19015 19016 rm -f "$ac_tmp/stdin" 19017 case $ac_file in 19018 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19019 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19020 esac \ 19021 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19022 ;; 19023 :H) 19024 # 19025 # CONFIG_HEADER 19026 # 19027 if test x"$ac_file" != x-; then 19028 { 19029 $as_echo "/* $configure_input */" \ 19030 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19031 } >"$ac_tmp/config.h" \ 19032 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19033 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19034 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19035$as_echo "$as_me: $ac_file is unchanged" >&6;} 19036 else 19037 rm -f "$ac_file" 19038 mv "$ac_tmp/config.h" "$ac_file" \ 19039 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19040 fi 19041 else 19042 $as_echo "/* $configure_input */" \ 19043 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19044 || as_fn_error $? "could not create -" "$LINENO" 5 19045 fi 19046# Compute "$ac_file"'s index in $config_headers. 19047_am_arg="$ac_file" 19048_am_stamp_count=1 19049for _am_header in $config_headers :; do 19050 case $_am_header in 19051 $_am_arg | $_am_arg:* ) 19052 break ;; 19053 * ) 19054 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19055 esac 19056done 19057echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19058$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19059 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19060 X"$_am_arg" : 'X\(//\)$' \| \ 19061 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19062$as_echo X"$_am_arg" | 19063 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19064 s//\1/ 19065 q 19066 } 19067 /^X\(\/\/\)[^/].*/{ 19068 s//\1/ 19069 q 19070 } 19071 /^X\(\/\/\)$/{ 19072 s//\1/ 19073 q 19074 } 19075 /^X\(\/\).*/{ 19076 s//\1/ 19077 q 19078 } 19079 s/.*/./; q'`/stamp-h$_am_stamp_count 19080 ;; 19081 19082 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19083$as_echo "$as_me: executing $ac_file commands" >&6;} 19084 ;; 19085 esac 19086 19087 19088 case $ac_file$ac_mode in 19089 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19090 # Autoconf 2.62 quotes --file arguments for eval, but not when files 19091 # are listed without --file. Let's play safe and only enable the eval 19092 # if we detect the quoting. 19093 case $CONFIG_FILES in 19094 *\'*) eval set x "$CONFIG_FILES" ;; 19095 *) set x $CONFIG_FILES ;; 19096 esac 19097 shift 19098 for mf 19099 do 19100 # Strip MF so we end up with the name of the file. 19101 mf=`echo "$mf" | sed -e 's/:.*$//'` 19102 # Check whether this is an Automake generated Makefile or not. 19103 # We used to match only the files named `Makefile.in', but 19104 # some people rename them; so instead we look at the file content. 19105 # Grep'ing the first line is not enough: some people post-process 19106 # each Makefile.in and add a new line on top of each file to say so. 19107 # Grep'ing the whole file is not good either: AIX grep has a line 19108 # limit of 2048, but all sed's we know have understand at least 4000. 19109 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 19110 dirpart=`$as_dirname -- "$mf" || 19111$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19112 X"$mf" : 'X\(//\)[^/]' \| \ 19113 X"$mf" : 'X\(//\)$' \| \ 19114 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 19115$as_echo X"$mf" | 19116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19117 s//\1/ 19118 q 19119 } 19120 /^X\(\/\/\)[^/].*/{ 19121 s//\1/ 19122 q 19123 } 19124 /^X\(\/\/\)$/{ 19125 s//\1/ 19126 q 19127 } 19128 /^X\(\/\).*/{ 19129 s//\1/ 19130 q 19131 } 19132 s/.*/./; q'` 19133 else 19134 continue 19135 fi 19136 # Extract the definition of DEPDIR, am__include, and am__quote 19137 # from the Makefile without running `make'. 19138 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 19139 test -z "$DEPDIR" && continue 19140 am__include=`sed -n 's/^am__include = //p' < "$mf"` 19141 test -z "am__include" && continue 19142 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 19143 # When using ansi2knr, U may be empty or an underscore; expand it 19144 U=`sed -n 's/^U = //p' < "$mf"` 19145 # Find all dependency output files, they are included files with 19146 # $(DEPDIR) in their names. We invoke sed twice because it is the 19147 # simplest approach to changing $(DEPDIR) to its actual value in the 19148 # expansion. 19149 for file in `sed -n " 19150 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 19151 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 19152 # Make sure the directory exists. 19153 test -f "$dirpart/$file" && continue 19154 fdir=`$as_dirname -- "$file" || 19155$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19156 X"$file" : 'X\(//\)[^/]' \| \ 19157 X"$file" : 'X\(//\)$' \| \ 19158 X"$file" : 'X\(/\)' \| . 2>/dev/null || 19159$as_echo X"$file" | 19160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19161 s//\1/ 19162 q 19163 } 19164 /^X\(\/\/\)[^/].*/{ 19165 s//\1/ 19166 q 19167 } 19168 /^X\(\/\/\)$/{ 19169 s//\1/ 19170 q 19171 } 19172 /^X\(\/\).*/{ 19173 s//\1/ 19174 q 19175 } 19176 s/.*/./; q'` 19177 as_dir=$dirpart/$fdir; as_fn_mkdir_p 19178 # echo "creating $dirpart/$file" 19179 echo '# dummy' > "$dirpart/$file" 19180 done 19181 done 19182} 19183 ;; 19184 "libtool":C) 19185 19186 # See if we are running on zsh, and set the options which allow our 19187 # commands through without removal of \ escapes. 19188 if test -n "${ZSH_VERSION+set}" ; then 19189 setopt NO_GLOB_SUBST 19190 fi 19191 19192 cfgfile="${ofile}T" 19193 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19194 $RM "$cfgfile" 19195 19196 cat <<_LT_EOF >> "$cfgfile" 19197#! $SHELL 19198 19199# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 19200# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 19201# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19202# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19203# 19204# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 19205# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 19206# Inc. 19207# Written by Gordon Matzigkeit, 1996 19208# 19209# This file is part of GNU Libtool. 19210# 19211# GNU Libtool is free software; you can redistribute it and/or 19212# modify it under the terms of the GNU General Public License as 19213# published by the Free Software Foundation; either version 2 of 19214# the License, or (at your option) any later version. 19215# 19216# As a special exception to the GNU General Public License, 19217# if you distribute this file as part of a program or library that 19218# is built using GNU Libtool, you may include this file under the 19219# same distribution terms that you use for the rest of that program. 19220# 19221# GNU Libtool is distributed in the hope that it will be useful, 19222# but WITHOUT ANY WARRANTY; without even the implied warranty of 19223# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19224# GNU General Public License for more details. 19225# 19226# You should have received a copy of the GNU General Public License 19227# along with GNU Libtool; see the file COPYING. If not, a copy 19228# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 19229# obtained by writing to the Free Software Foundation, Inc., 19230# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19231 19232 19233# The names of the tagged configurations supported by this script. 19234available_tags="" 19235 19236# ### BEGIN LIBTOOL CONFIG 19237 19238# Which release of libtool.m4 was used? 19239macro_version=$macro_version 19240macro_revision=$macro_revision 19241 19242# Whether or not to build shared libraries. 19243build_libtool_libs=$enable_shared 19244 19245# Whether or not to build static libraries. 19246build_old_libs=$enable_static 19247 19248# What type of objects to build. 19249pic_mode=$pic_mode 19250 19251# Whether or not to optimize for fast installation. 19252fast_install=$enable_fast_install 19253 19254# Shell to use when invoking shell scripts. 19255SHELL=$lt_SHELL 19256 19257# An echo program that protects backslashes. 19258ECHO=$lt_ECHO 19259 19260# The host system. 19261host_alias=$host_alias 19262host=$host 19263host_os=$host_os 19264 19265# The build system. 19266build_alias=$build_alias 19267build=$build 19268build_os=$build_os 19269 19270# A sed program that does not truncate output. 19271SED=$lt_SED 19272 19273# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19274Xsed="\$SED -e 1s/^X//" 19275 19276# A grep program that handles long lines. 19277GREP=$lt_GREP 19278 19279# An ERE matcher. 19280EGREP=$lt_EGREP 19281 19282# A literal string matcher. 19283FGREP=$lt_FGREP 19284 19285# A BSD- or MS-compatible name lister. 19286NM=$lt_NM 19287 19288# Whether we need soft or hard links. 19289LN_S=$lt_LN_S 19290 19291# What is the maximum length of a command? 19292max_cmd_len=$max_cmd_len 19293 19294# Object file suffix (normally "o"). 19295objext=$ac_objext 19296 19297# Executable file suffix (normally ""). 19298exeext=$exeext 19299 19300# whether the shell understands "unset". 19301lt_unset=$lt_unset 19302 19303# turn spaces into newlines. 19304SP2NL=$lt_lt_SP2NL 19305 19306# turn newlines into spaces. 19307NL2SP=$lt_lt_NL2SP 19308 19309# convert \$build file names to \$host format. 19310to_host_file_cmd=$lt_cv_to_host_file_cmd 19311 19312# convert \$build files to toolchain format. 19313to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19314 19315# An object symbol dumper. 19316OBJDUMP=$lt_OBJDUMP 19317 19318# Method to check whether dependent libraries are shared objects. 19319deplibs_check_method=$lt_deplibs_check_method 19320 19321# Command to use when deplibs_check_method = "file_magic". 19322file_magic_cmd=$lt_file_magic_cmd 19323 19324# How to find potential files when deplibs_check_method = "file_magic". 19325file_magic_glob=$lt_file_magic_glob 19326 19327# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19328want_nocaseglob=$lt_want_nocaseglob 19329 19330# DLL creation program. 19331DLLTOOL=$lt_DLLTOOL 19332 19333# Command to associate shared and link libraries. 19334sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19335 19336# The archiver. 19337AR=$lt_AR 19338 19339# Flags to create an archive. 19340AR_FLAGS=$lt_AR_FLAGS 19341 19342# How to feed a file listing to the archiver. 19343archiver_list_spec=$lt_archiver_list_spec 19344 19345# A symbol stripping program. 19346STRIP=$lt_STRIP 19347 19348# Commands used to install an old-style archive. 19349RANLIB=$lt_RANLIB 19350old_postinstall_cmds=$lt_old_postinstall_cmds 19351old_postuninstall_cmds=$lt_old_postuninstall_cmds 19352 19353# Whether to use a lock for old archive extraction. 19354lock_old_archive_extraction=$lock_old_archive_extraction 19355 19356# A C compiler. 19357LTCC=$lt_CC 19358 19359# LTCC compiler flags. 19360LTCFLAGS=$lt_CFLAGS 19361 19362# Take the output of nm and produce a listing of raw symbols and C names. 19363global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19364 19365# Transform the output of nm in a proper C declaration. 19366global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19367 19368# Transform the output of nm in a C name address pair. 19369global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19370 19371# Transform the output of nm in a C name address pair when lib prefix is needed. 19372global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19373 19374# Specify filename containing input files for \$NM. 19375nm_file_list_spec=$lt_nm_file_list_spec 19376 19377# The root where to search for dependent libraries,and in which our libraries should be installed. 19378lt_sysroot=$lt_sysroot 19379 19380# The name of the directory that contains temporary libtool files. 19381objdir=$objdir 19382 19383# Used to examine libraries when file_magic_cmd begins with "file". 19384MAGIC_CMD=$MAGIC_CMD 19385 19386# Must we lock files when doing compilation? 19387need_locks=$lt_need_locks 19388 19389# Manifest tool. 19390MANIFEST_TOOL=$lt_MANIFEST_TOOL 19391 19392# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19393DSYMUTIL=$lt_DSYMUTIL 19394 19395# Tool to change global to local symbols on Mac OS X. 19396NMEDIT=$lt_NMEDIT 19397 19398# Tool to manipulate fat objects and archives on Mac OS X. 19399LIPO=$lt_LIPO 19400 19401# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19402OTOOL=$lt_OTOOL 19403 19404# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19405OTOOL64=$lt_OTOOL64 19406 19407# Old archive suffix (normally "a"). 19408libext=$libext 19409 19410# Shared library suffix (normally ".so"). 19411shrext_cmds=$lt_shrext_cmds 19412 19413# The commands to extract the exported symbol list from a shared archive. 19414extract_expsyms_cmds=$lt_extract_expsyms_cmds 19415 19416# Variables whose values should be saved in libtool wrapper scripts and 19417# restored at link time. 19418variables_saved_for_relink=$lt_variables_saved_for_relink 19419 19420# Do we need the "lib" prefix for modules? 19421need_lib_prefix=$need_lib_prefix 19422 19423# Do we need a version for libraries? 19424need_version=$need_version 19425 19426# Library versioning type. 19427version_type=$version_type 19428 19429# Shared library runtime path variable. 19430runpath_var=$runpath_var 19431 19432# Shared library path variable. 19433shlibpath_var=$shlibpath_var 19434 19435# Is shlibpath searched before the hard-coded library search path? 19436shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19437 19438# Format of library name prefix. 19439libname_spec=$lt_libname_spec 19440 19441# List of archive names. First name is the real one, the rest are links. 19442# The last name is the one that the linker finds with -lNAME 19443library_names_spec=$lt_library_names_spec 19444 19445# The coded name of the library, if different from the real name. 19446soname_spec=$lt_soname_spec 19447 19448# Permission mode override for installation of shared libraries. 19449install_override_mode=$lt_install_override_mode 19450 19451# Command to use after installation of a shared archive. 19452postinstall_cmds=$lt_postinstall_cmds 19453 19454# Command to use after uninstallation of a shared archive. 19455postuninstall_cmds=$lt_postuninstall_cmds 19456 19457# Commands used to finish a libtool library installation in a directory. 19458finish_cmds=$lt_finish_cmds 19459 19460# As "finish_cmds", except a single script fragment to be evaled but 19461# not shown. 19462finish_eval=$lt_finish_eval 19463 19464# Whether we should hardcode library paths into libraries. 19465hardcode_into_libs=$hardcode_into_libs 19466 19467# Compile-time system search path for libraries. 19468sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19469 19470# Run-time system search path for libraries. 19471sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19472 19473# Whether dlopen is supported. 19474dlopen_support=$enable_dlopen 19475 19476# Whether dlopen of programs is supported. 19477dlopen_self=$enable_dlopen_self 19478 19479# Whether dlopen of statically linked programs is supported. 19480dlopen_self_static=$enable_dlopen_self_static 19481 19482# Commands to strip libraries. 19483old_striplib=$lt_old_striplib 19484striplib=$lt_striplib 19485 19486 19487# The linker used to build libraries. 19488LD=$lt_LD 19489 19490# How to create reloadable object files. 19491reload_flag=$lt_reload_flag 19492reload_cmds=$lt_reload_cmds 19493 19494# Commands used to build an old-style archive. 19495old_archive_cmds=$lt_old_archive_cmds 19496 19497# A language specific compiler. 19498CC=$lt_compiler 19499 19500# Is the compiler the GNU compiler? 19501with_gcc=$GCC 19502 19503# Compiler flag to turn off builtin functions. 19504no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19505 19506# Additional compiler flags for building library objects. 19507pic_flag=$lt_lt_prog_compiler_pic 19508 19509# How to pass a linker flag through the compiler. 19510wl=$lt_lt_prog_compiler_wl 19511 19512# Compiler flag to prevent dynamic linking. 19513link_static_flag=$lt_lt_prog_compiler_static 19514 19515# Does compiler simultaneously support -c and -o options? 19516compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19517 19518# Whether or not to add -lc for building shared libraries. 19519build_libtool_need_lc=$archive_cmds_need_lc 19520 19521# Whether or not to disallow shared libs when runtime libs are static. 19522allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19523 19524# Compiler flag to allow reflexive dlopens. 19525export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19526 19527# Compiler flag to generate shared objects directly from archives. 19528whole_archive_flag_spec=$lt_whole_archive_flag_spec 19529 19530# Whether the compiler copes with passing no objects directly. 19531compiler_needs_object=$lt_compiler_needs_object 19532 19533# Create an old-style archive from a shared archive. 19534old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19535 19536# Create a temporary old-style archive to link instead of a shared archive. 19537old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19538 19539# Commands used to build a shared archive. 19540archive_cmds=$lt_archive_cmds 19541archive_expsym_cmds=$lt_archive_expsym_cmds 19542 19543# Commands used to build a loadable module if different from building 19544# a shared archive. 19545module_cmds=$lt_module_cmds 19546module_expsym_cmds=$lt_module_expsym_cmds 19547 19548# Whether we are building with GNU ld or not. 19549with_gnu_ld=$lt_with_gnu_ld 19550 19551# Flag that allows shared libraries with undefined symbols to be built. 19552allow_undefined_flag=$lt_allow_undefined_flag 19553 19554# Flag that enforces no undefined symbols. 19555no_undefined_flag=$lt_no_undefined_flag 19556 19557# Flag to hardcode \$libdir into a binary during linking. 19558# This must work even if \$libdir does not exist 19559hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19560 19561# If ld is used when linking, flag to hardcode \$libdir into a binary 19562# during linking. This must work even if \$libdir does not exist. 19563hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 19564 19565# Whether we need a single "-rpath" flag with a separated argument. 19566hardcode_libdir_separator=$lt_hardcode_libdir_separator 19567 19568# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19569# DIR into the resulting binary. 19570hardcode_direct=$hardcode_direct 19571 19572# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19573# DIR into the resulting binary and the resulting library dependency is 19574# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19575# library is relocated. 19576hardcode_direct_absolute=$hardcode_direct_absolute 19577 19578# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19579# into the resulting binary. 19580hardcode_minus_L=$hardcode_minus_L 19581 19582# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19583# into the resulting binary. 19584hardcode_shlibpath_var=$hardcode_shlibpath_var 19585 19586# Set to "yes" if building a shared library automatically hardcodes DIR 19587# into the library and all subsequent libraries and executables linked 19588# against it. 19589hardcode_automatic=$hardcode_automatic 19590 19591# Set to yes if linker adds runtime paths of dependent libraries 19592# to runtime path list. 19593inherit_rpath=$inherit_rpath 19594 19595# Whether libtool must link a program against all its dependency libraries. 19596link_all_deplibs=$link_all_deplibs 19597 19598# Set to "yes" if exported symbols are required. 19599always_export_symbols=$always_export_symbols 19600 19601# The commands to list exported symbols. 19602export_symbols_cmds=$lt_export_symbols_cmds 19603 19604# Symbols that should not be listed in the preloaded symbols. 19605exclude_expsyms=$lt_exclude_expsyms 19606 19607# Symbols that must always be exported. 19608include_expsyms=$lt_include_expsyms 19609 19610# Commands necessary for linking programs (against libraries) with templates. 19611prelink_cmds=$lt_prelink_cmds 19612 19613# Commands necessary for finishing linking programs. 19614postlink_cmds=$lt_postlink_cmds 19615 19616# Specify filename containing input files. 19617file_list_spec=$lt_file_list_spec 19618 19619# How to hardcode a shared library path into an executable. 19620hardcode_action=$hardcode_action 19621 19622# ### END LIBTOOL CONFIG 19623 19624_LT_EOF 19625 19626 case $host_os in 19627 aix3*) 19628 cat <<\_LT_EOF >> "$cfgfile" 19629# AIX sometimes has problems with the GCC collect2 program. For some 19630# reason, if we set the COLLECT_NAMES environment variable, the problems 19631# vanish in a puff of smoke. 19632if test "X${COLLECT_NAMES+set}" != Xset; then 19633 COLLECT_NAMES= 19634 export COLLECT_NAMES 19635fi 19636_LT_EOF 19637 ;; 19638 esac 19639 19640 19641ltmain="$ac_aux_dir/ltmain.sh" 19642 19643 19644 # We use sed instead of cat because bash on DJGPP gets confused if 19645 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19646 # text mode, it properly converts lines to CR/LF. This bash problem 19647 # is reportedly fixed, but why not run on old versions too? 19648 sed '$q' "$ltmain" >> "$cfgfile" \ 19649 || (rm -f "$cfgfile"; exit 1) 19650 19651 if test x"$xsi_shell" = xyes; then 19652 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 19653func_dirname ()\ 19654{\ 19655\ case ${1} in\ 19656\ */*) func_dirname_result="${1%/*}${2}" ;;\ 19657\ * ) func_dirname_result="${3}" ;;\ 19658\ esac\ 19659} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 19660 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19661 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19662test 0 -eq $? || _lt_function_replace_fail=: 19663 19664 19665 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 19666func_basename ()\ 19667{\ 19668\ func_basename_result="${1##*/}"\ 19669} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 19670 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19671 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19672test 0 -eq $? || _lt_function_replace_fail=: 19673 19674 19675 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 19676func_dirname_and_basename ()\ 19677{\ 19678\ case ${1} in\ 19679\ */*) func_dirname_result="${1%/*}${2}" ;;\ 19680\ * ) func_dirname_result="${3}" ;;\ 19681\ esac\ 19682\ func_basename_result="${1##*/}"\ 19683} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 19684 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19685 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19686test 0 -eq $? || _lt_function_replace_fail=: 19687 19688 19689 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 19690func_stripname ()\ 19691{\ 19692\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 19693\ # positional parameters, so assign one to ordinary parameter first.\ 19694\ func_stripname_result=${3}\ 19695\ func_stripname_result=${func_stripname_result#"${1}"}\ 19696\ func_stripname_result=${func_stripname_result%"${2}"}\ 19697} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 19698 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19699 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19700test 0 -eq $? || _lt_function_replace_fail=: 19701 19702 19703 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 19704func_split_long_opt ()\ 19705{\ 19706\ func_split_long_opt_name=${1%%=*}\ 19707\ func_split_long_opt_arg=${1#*=}\ 19708} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 19709 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19710 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19711test 0 -eq $? || _lt_function_replace_fail=: 19712 19713 19714 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 19715func_split_short_opt ()\ 19716{\ 19717\ func_split_short_opt_arg=${1#??}\ 19718\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 19719} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 19720 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19721 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19722test 0 -eq $? || _lt_function_replace_fail=: 19723 19724 19725 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 19726func_lo2o ()\ 19727{\ 19728\ case ${1} in\ 19729\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 19730\ *) func_lo2o_result=${1} ;;\ 19731\ esac\ 19732} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 19733 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19734 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19735test 0 -eq $? || _lt_function_replace_fail=: 19736 19737 19738 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 19739func_xform ()\ 19740{\ 19741 func_xform_result=${1%.*}.lo\ 19742} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 19743 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19744 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19745test 0 -eq $? || _lt_function_replace_fail=: 19746 19747 19748 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 19749func_arith ()\ 19750{\ 19751 func_arith_result=$(( $* ))\ 19752} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 19753 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19754 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19755test 0 -eq $? || _lt_function_replace_fail=: 19756 19757 19758 sed -e '/^func_len ()$/,/^} # func_len /c\ 19759func_len ()\ 19760{\ 19761 func_len_result=${#1}\ 19762} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 19763 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19764 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19765test 0 -eq $? || _lt_function_replace_fail=: 19766 19767fi 19768 19769if test x"$lt_shell_append" = xyes; then 19770 sed -e '/^func_append ()$/,/^} # func_append /c\ 19771func_append ()\ 19772{\ 19773 eval "${1}+=\\${2}"\ 19774} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 19775 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19776 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19777test 0 -eq $? || _lt_function_replace_fail=: 19778 19779 19780 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 19781func_append_quoted ()\ 19782{\ 19783\ func_quote_for_eval "${2}"\ 19784\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 19785} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 19786 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19787 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19788test 0 -eq $? || _lt_function_replace_fail=: 19789 19790 19791 # Save a `func_append' function call where possible by direct use of '+=' 19792 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 19793 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19794 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19795 test 0 -eq $? || _lt_function_replace_fail=: 19796else 19797 # Save a `func_append' function call even when '+=' is not available 19798 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 19799 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19800 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19801 test 0 -eq $? || _lt_function_replace_fail=: 19802fi 19803 19804if test x"$_lt_function_replace_fail" = x":"; then 19805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 19806$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 19807fi 19808 19809 19810 mv -f "$cfgfile" "$ofile" || 19811 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19812 chmod +x "$ofile" 19813 19814 ;; 19815 19816 esac 19817done # for ac_tag 19818 19819 19820as_fn_exit 0 19821_ACEOF 19822ac_clean_files=$ac_clean_files_save 19823 19824test $ac_write_fail = 0 || 19825 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 19826 19827 19828# configure is writing to config.log, and then calls config.status. 19829# config.status does its own redirection, appending to config.log. 19830# Unfortunately, on DOS this fails, as config.log is still kept open 19831# by configure, so config.status won't be able to write to it; its 19832# output is simply discarded. So we exec the FD to /dev/null, 19833# effectively closing config.log, so it can be properly (re)opened and 19834# appended to by config.status. When coming back to configure, we 19835# need to make the FD available again. 19836if test "$no_create" != yes; then 19837 ac_cs_success=: 19838 ac_config_status_args= 19839 test "$silent" = yes && 19840 ac_config_status_args="$ac_config_status_args --quiet" 19841 exec 5>/dev/null 19842 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19843 exec 5>>config.log 19844 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19845 # would make configure fail if this is the last instruction. 19846 $ac_cs_success || as_fn_exit 1 19847fi 19848if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 19849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 19850$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 19851fi 19852 19853