configure revision 1d778f8e
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for xdm 1.1.17. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xdm/-/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21then : 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 case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as 'sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed 'exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144then : 145 emulate sh 146 NULLCMD=: 147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 148 # is contrary to our usage. Disable this feature. 149 alias -g '\${1+\"\$@\"}'='\"\$@\"' 150 setopt NO_GLOB_SUBST 151else case e in #( 152 e) case \`(set -o) 2>/dev/null\` in #( 153 *posix*) : 154 set -o posix ;; #( 155 *) : 156 ;; 157esac ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else case e in #( 176 e) exitcode=1; echo positional parameters were not saved. ;; 177esac 178fi 179test x\$exitcode = x0 || exit 1 180blah=\$(echo \$(echo blah)) 181test x\"\$blah\" = xblah || exit 1 182test -x / || exit 1" 183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 187 188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 192 PATH=/empty FPATH=/empty; export PATH FPATH 193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 195test \$(( 1 + 1 )) = 2 || exit 1" 196 if (eval "$as_required") 2>/dev/null 197then : 198 as_have_required=yes 199else case e in #( 200 e) as_have_required=no ;; 201esac 202fi 203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 204then : 205 206else case e in #( 207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 208as_found=false 209for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 210do 211 IFS=$as_save_IFS 212 case $as_dir in #((( 213 '') as_dir=./ ;; 214 */) ;; 215 *) as_dir=$as_dir/ ;; 216 esac 217 as_found=: 218 case $as_dir in #( 219 /*) 220 for as_base in sh bash ksh sh5; do 221 # Try only shells that exist, to save several forks. 222 as_shell=$as_dir$as_base 223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 225then : 226 CONFIG_SHELL=$as_shell as_have_required=yes 227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 228then : 229 break 2 230fi 231fi 232 done;; 233 esac 234 as_found=false 235done 236IFS=$as_save_IFS 237if $as_found 238then : 239 240else case e in #( 241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 243then : 244 CONFIG_SHELL=$SHELL as_have_required=yes 245fi ;; 246esac 247fi 248 249 250 if test "x$CONFIG_SHELL" != x 251then : 252 export CONFIG_SHELL 253 # We cannot yet assume a decent shell, so we have to provide a 254# neutralization value for shells without unset; and this also 255# works around shells that cannot unset nonexistent variables. 256# Preserve -v and -x to the replacement shell. 257BASH_ENV=/dev/null 258ENV=/dev/null 259(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 260case $- in # (((( 261 *v*x* | *x*v* ) as_opts=-vx ;; 262 *v* ) as_opts=-v ;; 263 *x* ) as_opts=-x ;; 264 * ) as_opts= ;; 265esac 266exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 267# Admittedly, this is quite paranoid, since all the known shells bail 268# out after a failed 'exec'. 269printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 270exit 255 271fi 272 273 if test x$as_have_required = xno 274then : 275 printf "%s\n" "$0: This script requires a shell more modern than all" 276 printf "%s\n" "$0: the shells that I found on your system." 277 if test ${ZSH_VERSION+y} ; then 278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 280 else 281 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 282$0: https://gitlab.freedesktop.org/xorg/app/xdm/-/issues 283$0: about your system, including any error possibly output 284$0: before this message. Then install a modern shell, or 285$0: manually run the script under such a shell if you do 286$0: have one." 287 fi 288 exit 1 289fi ;; 290esac 291fi 292fi 293SHELL=${CONFIG_SHELL-/bin/sh} 294export SHELL 295# Unset more variables known to interfere with behavior of common tools. 296CLICOLOR_FORCE= GREP_OPTIONS= 297unset CLICOLOR_FORCE GREP_OPTIONS 298 299## --------------------- ## 300## M4sh Shell Functions. ## 301## --------------------- ## 302# as_fn_unset VAR 303# --------------- 304# Portably unset VAR. 305as_fn_unset () 306{ 307 { eval $1=; unset $1;} 308} 309as_unset=as_fn_unset 310 311 312# as_fn_set_status STATUS 313# ----------------------- 314# Set $? to STATUS, without forking. 315as_fn_set_status () 316{ 317 return $1 318} # as_fn_set_status 319 320# as_fn_exit STATUS 321# ----------------- 322# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 323as_fn_exit () 324{ 325 set +e 326 as_fn_set_status $1 327 exit $1 328} # as_fn_exit 329 330# as_fn_mkdir_p 331# ------------- 332# Create "$as_dir" as a directory, including parents if necessary. 333as_fn_mkdir_p () 334{ 335 336 case $as_dir in #( 337 -*) as_dir=./$as_dir;; 338 esac 339 test -d "$as_dir" || eval $as_mkdir_p || { 340 as_dirs= 341 while :; do 342 case $as_dir in #( 343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 344 *) as_qdir=$as_dir;; 345 esac 346 as_dirs="'$as_qdir' $as_dirs" 347 as_dir=`$as_dirname -- "$as_dir" || 348$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 349 X"$as_dir" : 'X\(//\)[^/]' \| \ 350 X"$as_dir" : 'X\(//\)$' \| \ 351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 352printf "%s\n" X"$as_dir" | 353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\/\)[^/].*/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)$/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\).*/{ 366 s//\1/ 367 q 368 } 369 s/.*/./; q'` 370 test -d "$as_dir" && break 371 done 372 test -z "$as_dirs" || eval "mkdir $as_dirs" 373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 374 375 376} # as_fn_mkdir_p 377 378# as_fn_executable_p FILE 379# ----------------------- 380# Test if FILE is an executable regular file. 381as_fn_executable_p () 382{ 383 test -f "$1" && test -x "$1" 384} # as_fn_executable_p 385# as_fn_append VAR VALUE 386# ---------------------- 387# Append the text in VALUE to the end of the definition contained in VAR. Take 388# advantage of any shell optimizations that allow amortized linear growth over 389# repeated appends, instead of the typical quadratic growth present in naive 390# implementations. 391if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 392then : 393 eval 'as_fn_append () 394 { 395 eval $1+=\$2 396 }' 397else case e in #( 398 e) as_fn_append () 399 { 400 eval $1=\$$1\$2 401 } ;; 402esac 403fi # as_fn_append 404 405# as_fn_arith ARG... 406# ------------------ 407# Perform arithmetic evaluation on the ARGs, and store the result in the 408# global $as_val. Take advantage of shells that can avoid forks. The arguments 409# must be portable across $(()) and expr. 410if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 411then : 412 eval 'as_fn_arith () 413 { 414 as_val=$(( $* )) 415 }' 416else case e in #( 417 e) as_fn_arith () 418 { 419 as_val=`expr "$@" || test $? -eq 1` 420 } ;; 421esac 422fi # as_fn_arith 423 424 425# as_fn_error STATUS ERROR [LINENO LOG_FD] 426# ---------------------------------------- 427# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 428# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 429# script with STATUS, using 1 if that was 0. 430as_fn_error () 431{ 432 as_status=$1; test $as_status -eq 0 && as_status=1 433 if test "$4"; then 434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 436 fi 437 printf "%s\n" "$as_me: error: $2" >&2 438 as_fn_exit $as_status 439} # as_fn_error 440 441if expr a : '\(a\)' >/dev/null 2>&1 && 442 test "X`expr 00001 : '.*\(...\)'`" = X001; then 443 as_expr=expr 444else 445 as_expr=false 446fi 447 448if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 449 as_basename=basename 450else 451 as_basename=false 452fi 453 454if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 455 as_dirname=dirname 456else 457 as_dirname=false 458fi 459 460as_me=`$as_basename -- "$0" || 461$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 462 X"$0" : 'X\(//\)$' \| \ 463 X"$0" : 'X\(/\)' \| . 2>/dev/null || 464printf "%s\n" X/"$0" | 465 sed '/^.*\/\([^/][^/]*\)\/*$/{ 466 s//\1/ 467 q 468 } 469 /^X\/\(\/\/\)$/{ 470 s//\1/ 471 q 472 } 473 /^X\/\(\/\).*/{ 474 s//\1/ 475 q 476 } 477 s/.*/./; q'` 478 479# Avoid depending upon Character Ranges. 480as_cr_letters='abcdefghijklmnopqrstuvwxyz' 481as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 482as_cr_Letters=$as_cr_letters$as_cr_LETTERS 483as_cr_digits='0123456789' 484as_cr_alnum=$as_cr_Letters$as_cr_digits 485 486 487 as_lineno_1=$LINENO as_lineno_1a=$LINENO 488 as_lineno_2=$LINENO as_lineno_2a=$LINENO 489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 492 sed -n ' 493 p 494 /[$]LINENO/= 495 ' <$as_myself | 496 sed ' 497 t clear 498 :clear 499 s/[$]LINENO.*/&-/ 500 t lineno 501 b 502 :lineno 503 N 504 :loop 505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 506 t loop 507 s/-\n.*// 508 ' >$as_me.lineno && 509 chmod +x "$as_me.lineno" || 510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 511 512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 513 # already done that, so ensure we don't try to do so again and fall 514 # in an infinite loop. This has already happened in practice. 515 _as_can_reexec=no; export _as_can_reexec 516 # Don't try to exec as it changes $[0], causing all sort of problems 517 # (the dirname of $[0] is not the place where we might find the 518 # original and so on. Autoconf is especially sensitive to this). 519 . "./$as_me.lineno" 520 # Exit status is that of the last command. 521 exit 522} 523 524 525# Determine whether it's possible to make 'echo' print without a newline. 526# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 527# for compatibility with existing Makefiles. 528ECHO_C= ECHO_N= ECHO_T= 529case `echo -n x` in #((((( 530-n*) 531 case `echo 'xy\c'` in 532 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 533 xy) ECHO_C='\c';; 534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 535 ECHO_T=' ';; 536 esac;; 537*) 538 ECHO_N='-n';; 539esac 540 541# For backward compatibility with old third-party macros, we provide 542# the shell variables $as_echo and $as_echo_n. New code should use 543# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 544as_echo='printf %s\n' 545as_echo_n='printf %s' 546 547rm -f conf$$ conf$$.exe conf$$.file 548if test -d conf$$.dir; then 549 rm -f conf$$.dir/conf$$.file 550else 551 rm -f conf$$.dir 552 mkdir conf$$.dir 2>/dev/null 553fi 554if (echo >conf$$.file) 2>/dev/null; then 555 if ln -s conf$$.file conf$$ 2>/dev/null; then 556 as_ln_s='ln -s' 557 # ... but there are two gotchas: 558 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 559 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 560 # In both cases, we have to default to 'cp -pR'. 561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 562 as_ln_s='cp -pR' 563 elif ln conf$$.file conf$$ 2>/dev/null; then 564 as_ln_s=ln 565 else 566 as_ln_s='cp -pR' 567 fi 568else 569 as_ln_s='cp -pR' 570fi 571rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 572rmdir conf$$.dir 2>/dev/null 573 574if mkdir -p . 2>/dev/null; then 575 as_mkdir_p='mkdir -p "$as_dir"' 576else 577 test -d ./-p && rmdir ./-p 578 as_mkdir_p=false 579fi 580 581as_test_x='test -x' 582as_executable_p=as_fn_executable_p 583 584# Sed expression to map a string onto a valid CPP name. 585as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 586as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 587 588# Sed expression to map a string onto a valid variable name. 589as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 590as_tr_sh="eval sed '$as_sed_sh'" # deprecated 591 592SHELL=${CONFIG_SHELL-/bin/sh} 593 594 595test -n "$DJDIR" || exec 7<&0 </dev/null 596exec 6>&1 597 598# Name of the host. 599# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 600# so uname gets run too. 601ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 602 603# 604# Initializations. 605# 606ac_default_prefix=/usr/local 607ac_clean_files= 608ac_config_libobj_dir=. 609LIBOBJS= 610cross_compiling=no 611subdirs= 612MFLAGS= 613MAKEFLAGS= 614 615# Identity of this package. 616PACKAGE_NAME='xdm' 617PACKAGE_TARNAME='xdm' 618PACKAGE_VERSION='1.1.17' 619PACKAGE_STRING='xdm 1.1.17' 620PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xdm/-/issues' 621PACKAGE_URL='' 622 623# Factoring default headers for most tests. 624ac_includes_default="\ 625#include <stddef.h> 626#ifdef HAVE_STDIO_H 627# include <stdio.h> 628#endif 629#ifdef HAVE_STDLIB_H 630# include <stdlib.h> 631#endif 632#ifdef HAVE_STRING_H 633# include <string.h> 634#endif 635#ifdef HAVE_INTTYPES_H 636# include <inttypes.h> 637#endif 638#ifdef HAVE_STDINT_H 639# include <stdint.h> 640#endif 641#ifdef HAVE_STRINGS_H 642# include <strings.h> 643#endif 644#ifdef HAVE_SYS_TYPES_H 645# include <sys/types.h> 646#endif 647#ifdef HAVE_SYS_STAT_H 648# include <sys/stat.h> 649#endif 650#ifdef HAVE_UNISTD_H 651# include <unistd.h> 652#endif" 653 654ac_header_c_list= 655ac_unique_file="Makefile.am" 656ac_func_c_list= 657ac_subst_vars='am__EXEEXT_FALSE 658am__EXEEXT_TRUE 659LTLIBOBJS 660LIBOBJS 661appdefaultdir 662APPDEFS_LIBS 663APPDEFS_CFLAGS 664DEF_AUTH_DIR 665XDMXAUTHDIR 666DEF_CHOOSER 667DEF_XDM_CONFIG 668DEF_FAILSAFE_CLIENT 669DEF_SYSTEM_SHELL 670DEF_SYSTEM_PATH 671DEF_USER_PATH 672DEF_SESSION 673XRDB_PROGRAM 674DEF_SERVER_LINE 675CHOOSER_LIBS 676CHOOSER_CFLAGS 677XDMSHELL_LIBS 678XDMSHELL_CFLAGS 679XT_LIBS 680XT_CFLAGS 681INSTALL_XDMSHELL_FALSE 682INSTALL_XDMSHELL_TRUE 683HAS_XDM_AUTH_FALSE 684HAS_XDM_AUTH_TRUE 685DEF_GREETER_LIB 686XDMGREET_LIBS 687XDMGREET_CFLAGS 688AUTH_LIBS 689AUTH_CFLAGS 690XLIB_LIBS 691XLIB_CFLAGS 692DMCP_LIBS 693DMCP_CFLAGS 694XDM_TOOLKIT_LIBS 695XDM_TOOLKIT_CFLAGS 696XDM_PIXMAPDIR 697XDM_BWPIXMAP 698XDM_PIXMAP 699USE_XPM_FALSE 700USE_XPM_TRUE 701XPM_LIBS 702XPM_CFLAGS 703XFT_LIBS 704XFT_CFLAGS 705XINERAMA_LIBS 706XINERAMA_CFLAGS 707SHELL_CMD 708WTMP_FILE 709SET_WTMP_FILE_FALSE 710SET_WTMP_FILE_TRUE 711UTMP_FILE 712SET_UTMP_FILE_FALSE 713SET_UTMP_FILE_TRUE 714SERVERSTYPE 715DEFAULTVT 716XDMPIDDIR 717XDMLOGDIR 718XDMSCRIPTDIR 719XDMCONFIGDIR 720XDMLIBDIR 721HAS_KERBEROS_FIVE_FALSE 722HAS_KERBEROS_FIVE_TRUE 723DEV_RANDOM 724SU 725USE_SYSTEMD_DAEMON_FALSE 726USE_SYSTEMD_DAEMON_TRUE 727SYSTEMD_DAEMON_LIBS 728SYSTEMD_DAEMON_CFLAGS 729HAVE_SYSTEMD_FALSE 730HAVE_SYSTEMD_TRUE 731systemdsystemunitdir 732HAS_SECURE_RPC_FALSE 733HAS_SECURE_RPC_TRUE 734HAVE_ARC4RANDOM_FALSE 735HAVE_ARC4RANDOM_TRUE 736HAVE_ARC4RANDOM 737LIBBSD_LIBS 738LIBBSD_CFLAGS 739XDM_LIBS 740XDM_CFLAGS 741HAVE_MKTEMP_COMMAND_FALSE 742HAVE_MKTEMP_COMMAND_TRUE 743MKTEMP_COMMAND 744LINT_FALSE 745LINT_TRUE 746LINT_FLAGS 747LINT 748TRADITIONALCPPFLAGS 749RAWCPPFLAGS 750RAWCPP 751CPP 752MAN_SUBSTS 753XORG_MAN_PAGE 754ADMIN_MAN_DIR 755DRIVER_MAN_DIR 756MISC_MAN_DIR 757FILE_MAN_DIR 758LIB_MAN_DIR 759APP_MAN_DIR 760ADMIN_MAN_SUFFIX 761DRIVER_MAN_SUFFIX 762MISC_MAN_SUFFIX 763FILE_MAN_SUFFIX 764LIB_MAN_SUFFIX 765APP_MAN_SUFFIX 766INSTALL_CMD 767PKG_CONFIG_LIBDIR 768PKG_CONFIG_PATH 769PKG_CONFIG 770CHANGELOG_CMD 771STRICT_CFLAGS 772CWARNFLAGS 773BASE_CFLAGS 774LT_SYS_LIBRARY_PATH 775OTOOL64 776OTOOL 777LIPO 778NMEDIT 779DSYMUTIL 780MANIFEST_TOOL 781RANLIB 782ac_ct_AR 783AR 784DLLTOOL 785OBJDUMP 786FILECMD 787LN_S 788NM 789ac_ct_DUMPBIN 790DUMPBIN 791LD 792FGREP 793EGREP 794GREP 795SED 796host_os 797host_vendor 798host_cpu 799host 800build_os 801build_vendor 802build_cpu 803build 804LIBTOOL 805am__xargs_n 806am__rm_f_notfound 807AM_BACKSLASH 808AM_DEFAULT_VERBOSITY 809AM_DEFAULT_V 810AM_V 811CSCOPE 812ETAGS 813CTAGS 814am__fastdepCC_FALSE 815am__fastdepCC_TRUE 816CCDEPMODE 817am__nodep 818AMDEPBACKSLASH 819AMDEP_FALSE 820AMDEP_TRUE 821am__include 822DEPDIR 823am__untar 824am__tar 825AMTAR 826am__leading_dot 827SET_MAKE 828AWK 829mkdir_p 830MKDIR_P 831INSTALL_STRIP_PROGRAM 832STRIP 833install_sh 834MAKEINFO 835AUTOHEADER 836AUTOMAKE 837AUTOCONF 838ACLOCAL 839VERSION 840PACKAGE 841CYGPATH_W 842am__isrc 843INSTALL_DATA 844INSTALL_SCRIPT 845INSTALL_PROGRAM 846OBJEXT 847EXEEXT 848ac_ct_CC 849CPPFLAGS 850LDFLAGS 851CFLAGS 852CC 853target_alias 854host_alias 855build_alias 856LIBS 857ECHO_T 858ECHO_N 859ECHO_C 860DEFS 861mandir 862localedir 863libdir 864psdir 865pdfdir 866dvidir 867htmldir 868infodir 869docdir 870oldincludedir 871includedir 872runstatedir 873localstatedir 874sharedstatedir 875sysconfdir 876datadir 877datarootdir 878libexecdir 879sbindir 880bindir 881program_transform_name 882prefix 883exec_prefix 884PACKAGE_URL 885PACKAGE_BUGREPORT 886PACKAGE_STRING 887PACKAGE_VERSION 888PACKAGE_TARNAME 889PACKAGE_NAME 890PATH_SEPARATOR 891SHELL 892am__quote' 893ac_subst_files='' 894ac_user_opts=' 895enable_option_checking 896enable_dependency_tracking 897enable_silent_rules 898enable_static 899enable_shared 900enable_pic 901with_pic 902enable_fast_install 903enable_aix_soname 904with_aix_soname 905with_gnu_ld 906with_sysroot 907enable_libtool_lock 908enable_selective_werror 909enable_strict_compilation 910with_lint 911enable_unix_transport 912enable_tcp_transport 913enable_ipv6 914enable_local_transport 915enable_secure_rpc 916with_pam 917with_selinux 918with_systemdsystemunitdir 919with_systemd_daemon 920with_random_device 921with_xdmlibdir 922with_xdmconfigdir 923with_xdmscriptdir 924with_logdir 925with_piddir 926with_default_vt 927with_config_type 928with_utmp_file 929with_wtmp_file 930with_xinerama 931with_xft 932enable_xpm_logos 933with_color_pixmap 934with_bw_pixmap 935with_pixmapdir 936enable_xdm_auth 937enable_xdmshell 938with_xrdb 939with_default_session 940with_authdir 941with_appdefaultdir 942' 943 ac_precious_vars='build_alias 944host_alias 945target_alias 946CC 947CFLAGS 948LDFLAGS 949LIBS 950CPPFLAGS 951LT_SYS_LIBRARY_PATH 952PKG_CONFIG 953PKG_CONFIG_PATH 954PKG_CONFIG_LIBDIR 955CPP 956LINT 957LINT_FLAGS 958XDM_CFLAGS 959XDM_LIBS 960LIBBSD_CFLAGS 961LIBBSD_LIBS 962SYSTEMD_DAEMON_CFLAGS 963SYSTEMD_DAEMON_LIBS 964XINERAMA_CFLAGS 965XINERAMA_LIBS 966XFT_CFLAGS 967XFT_LIBS 968XPM_CFLAGS 969XPM_LIBS 970XDM_TOOLKIT_CFLAGS 971XDM_TOOLKIT_LIBS 972DMCP_CFLAGS 973DMCP_LIBS 974XLIB_CFLAGS 975XLIB_LIBS 976AUTH_CFLAGS 977AUTH_LIBS 978XDMGREET_CFLAGS 979XDMGREET_LIBS 980XT_CFLAGS 981XT_LIBS 982APPDEFS_CFLAGS 983APPDEFS_LIBS' 984 985 986# Initialize some variables set by options. 987ac_init_help= 988ac_init_version=false 989ac_unrecognized_opts= 990ac_unrecognized_sep= 991# The variables have the same names as the options, with 992# dashes changed to underlines. 993cache_file=/dev/null 994exec_prefix=NONE 995no_create= 996no_recursion= 997prefix=NONE 998program_prefix=NONE 999program_suffix=NONE 1000program_transform_name=s,x,x, 1001silent= 1002site= 1003srcdir= 1004verbose= 1005x_includes=NONE 1006x_libraries=NONE 1007 1008# Installation directory options. 1009# These are left unexpanded so users can "make install exec_prefix=/foo" 1010# and all the variables that are supposed to be based on exec_prefix 1011# by default will actually change. 1012# Use braces instead of parens because sh, perl, etc. also accept them. 1013# (The list follows the same order as the GNU Coding Standards.) 1014bindir='${exec_prefix}/bin' 1015sbindir='${exec_prefix}/sbin' 1016libexecdir='${exec_prefix}/libexec' 1017datarootdir='${prefix}/share' 1018datadir='${datarootdir}' 1019sysconfdir='${prefix}/etc' 1020sharedstatedir='${prefix}/com' 1021localstatedir='${prefix}/var' 1022runstatedir='${localstatedir}/run' 1023includedir='${prefix}/include' 1024oldincludedir='/usr/include' 1025docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1026infodir='${datarootdir}/info' 1027htmldir='${docdir}' 1028dvidir='${docdir}' 1029pdfdir='${docdir}' 1030psdir='${docdir}' 1031libdir='${exec_prefix}/lib' 1032localedir='${datarootdir}/locale' 1033mandir='${datarootdir}/man' 1034 1035ac_prev= 1036ac_dashdash= 1037for ac_option 1038do 1039 # If the previous option needs an argument, assign it. 1040 if test -n "$ac_prev"; then 1041 eval $ac_prev=\$ac_option 1042 ac_prev= 1043 continue 1044 fi 1045 1046 case $ac_option in 1047 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1048 *=) ac_optarg= ;; 1049 *) ac_optarg=yes ;; 1050 esac 1051 1052 case $ac_dashdash$ac_option in 1053 --) 1054 ac_dashdash=yes ;; 1055 1056 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1057 ac_prev=bindir ;; 1058 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1059 bindir=$ac_optarg ;; 1060 1061 -build | --build | --buil | --bui | --bu) 1062 ac_prev=build_alias ;; 1063 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1064 build_alias=$ac_optarg ;; 1065 1066 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1067 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1068 ac_prev=cache_file ;; 1069 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1070 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1071 cache_file=$ac_optarg ;; 1072 1073 --config-cache | -C) 1074 cache_file=config.cache ;; 1075 1076 -datadir | --datadir | --datadi | --datad) 1077 ac_prev=datadir ;; 1078 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1079 datadir=$ac_optarg ;; 1080 1081 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1082 | --dataroo | --dataro | --datar) 1083 ac_prev=datarootdir ;; 1084 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1085 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1086 datarootdir=$ac_optarg ;; 1087 1088 -disable-* | --disable-*) 1089 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1090 # Reject names that are not valid shell variable names. 1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1092 as_fn_error $? "invalid feature name: '$ac_useropt'" 1093 ac_useropt_orig=$ac_useropt 1094 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1095 case $ac_user_opts in 1096 *" 1097"enable_$ac_useropt" 1098"*) ;; 1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1100 ac_unrecognized_sep=', ';; 1101 esac 1102 eval enable_$ac_useropt=no ;; 1103 1104 -docdir | --docdir | --docdi | --doc | --do) 1105 ac_prev=docdir ;; 1106 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1107 docdir=$ac_optarg ;; 1108 1109 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1110 ac_prev=dvidir ;; 1111 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1112 dvidir=$ac_optarg ;; 1113 1114 -enable-* | --enable-*) 1115 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1116 # Reject names that are not valid shell variable names. 1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1118 as_fn_error $? "invalid feature name: '$ac_useropt'" 1119 ac_useropt_orig=$ac_useropt 1120 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1121 case $ac_user_opts in 1122 *" 1123"enable_$ac_useropt" 1124"*) ;; 1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1126 ac_unrecognized_sep=', ';; 1127 esac 1128 eval enable_$ac_useropt=\$ac_optarg ;; 1129 1130 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1131 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1132 | --exec | --exe | --ex) 1133 ac_prev=exec_prefix ;; 1134 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1135 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1136 | --exec=* | --exe=* | --ex=*) 1137 exec_prefix=$ac_optarg ;; 1138 1139 -gas | --gas | --ga | --g) 1140 # Obsolete; use --with-gas. 1141 with_gas=yes ;; 1142 1143 -help | --help | --hel | --he | -h) 1144 ac_init_help=long ;; 1145 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1146 ac_init_help=recursive ;; 1147 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1148 ac_init_help=short ;; 1149 1150 -host | --host | --hos | --ho) 1151 ac_prev=host_alias ;; 1152 -host=* | --host=* | --hos=* | --ho=*) 1153 host_alias=$ac_optarg ;; 1154 1155 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1156 ac_prev=htmldir ;; 1157 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1158 | --ht=*) 1159 htmldir=$ac_optarg ;; 1160 1161 -includedir | --includedir | --includedi | --included | --include \ 1162 | --includ | --inclu | --incl | --inc) 1163 ac_prev=includedir ;; 1164 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1165 | --includ=* | --inclu=* | --incl=* | --inc=*) 1166 includedir=$ac_optarg ;; 1167 1168 -infodir | --infodir | --infodi | --infod | --info | --inf) 1169 ac_prev=infodir ;; 1170 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1171 infodir=$ac_optarg ;; 1172 1173 -libdir | --libdir | --libdi | --libd) 1174 ac_prev=libdir ;; 1175 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1176 libdir=$ac_optarg ;; 1177 1178 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1179 | --libexe | --libex | --libe) 1180 ac_prev=libexecdir ;; 1181 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1182 | --libexe=* | --libex=* | --libe=*) 1183 libexecdir=$ac_optarg ;; 1184 1185 -localedir | --localedir | --localedi | --localed | --locale) 1186 ac_prev=localedir ;; 1187 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1188 localedir=$ac_optarg ;; 1189 1190 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1191 | --localstate | --localstat | --localsta | --localst | --locals) 1192 ac_prev=localstatedir ;; 1193 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1194 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1195 localstatedir=$ac_optarg ;; 1196 1197 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1198 ac_prev=mandir ;; 1199 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1200 mandir=$ac_optarg ;; 1201 1202 -nfp | --nfp | --nf) 1203 # Obsolete; use --without-fp. 1204 with_fp=no ;; 1205 1206 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1207 | --no-cr | --no-c | -n) 1208 no_create=yes ;; 1209 1210 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1211 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1212 no_recursion=yes ;; 1213 1214 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1215 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1216 | --oldin | --oldi | --old | --ol | --o) 1217 ac_prev=oldincludedir ;; 1218 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1219 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1220 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1221 oldincludedir=$ac_optarg ;; 1222 1223 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1224 ac_prev=prefix ;; 1225 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1226 prefix=$ac_optarg ;; 1227 1228 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1229 | --program-pre | --program-pr | --program-p) 1230 ac_prev=program_prefix ;; 1231 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1232 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1233 program_prefix=$ac_optarg ;; 1234 1235 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1236 | --program-suf | --program-su | --program-s) 1237 ac_prev=program_suffix ;; 1238 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1239 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1240 program_suffix=$ac_optarg ;; 1241 1242 -program-transform-name | --program-transform-name \ 1243 | --program-transform-nam | --program-transform-na \ 1244 | --program-transform-n | --program-transform- \ 1245 | --program-transform | --program-transfor \ 1246 | --program-transfo | --program-transf \ 1247 | --program-trans | --program-tran \ 1248 | --progr-tra | --program-tr | --program-t) 1249 ac_prev=program_transform_name ;; 1250 -program-transform-name=* | --program-transform-name=* \ 1251 | --program-transform-nam=* | --program-transform-na=* \ 1252 | --program-transform-n=* | --program-transform-=* \ 1253 | --program-transform=* | --program-transfor=* \ 1254 | --program-transfo=* | --program-transf=* \ 1255 | --program-trans=* | --program-tran=* \ 1256 | --progr-tra=* | --program-tr=* | --program-t=*) 1257 program_transform_name=$ac_optarg ;; 1258 1259 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1260 ac_prev=pdfdir ;; 1261 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1262 pdfdir=$ac_optarg ;; 1263 1264 -psdir | --psdir | --psdi | --psd | --ps) 1265 ac_prev=psdir ;; 1266 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1267 psdir=$ac_optarg ;; 1268 1269 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1270 | -silent | --silent | --silen | --sile | --sil) 1271 silent=yes ;; 1272 1273 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1274 | --runstate | --runstat | --runsta | --runst | --runs \ 1275 | --run | --ru | --r) 1276 ac_prev=runstatedir ;; 1277 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1278 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1279 | --run=* | --ru=* | --r=*) 1280 runstatedir=$ac_optarg ;; 1281 1282 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1283 ac_prev=sbindir ;; 1284 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1285 | --sbi=* | --sb=*) 1286 sbindir=$ac_optarg ;; 1287 1288 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1289 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1290 | --sharedst | --shareds | --shared | --share | --shar \ 1291 | --sha | --sh) 1292 ac_prev=sharedstatedir ;; 1293 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1294 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1295 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1296 | --sha=* | --sh=*) 1297 sharedstatedir=$ac_optarg ;; 1298 1299 -site | --site | --sit) 1300 ac_prev=site ;; 1301 -site=* | --site=* | --sit=*) 1302 site=$ac_optarg ;; 1303 1304 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1305 ac_prev=srcdir ;; 1306 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1307 srcdir=$ac_optarg ;; 1308 1309 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1310 | --syscon | --sysco | --sysc | --sys | --sy) 1311 ac_prev=sysconfdir ;; 1312 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1313 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1314 sysconfdir=$ac_optarg ;; 1315 1316 -target | --target | --targe | --targ | --tar | --ta | --t) 1317 ac_prev=target_alias ;; 1318 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1319 target_alias=$ac_optarg ;; 1320 1321 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1322 verbose=yes ;; 1323 1324 -version | --version | --versio | --versi | --vers | -V) 1325 ac_init_version=: ;; 1326 1327 -with-* | --with-*) 1328 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1329 # Reject names that are not valid shell variable names. 1330 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1331 as_fn_error $? "invalid package name: '$ac_useropt'" 1332 ac_useropt_orig=$ac_useropt 1333 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1334 case $ac_user_opts in 1335 *" 1336"with_$ac_useropt" 1337"*) ;; 1338 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1339 ac_unrecognized_sep=', ';; 1340 esac 1341 eval with_$ac_useropt=\$ac_optarg ;; 1342 1343 -without-* | --without-*) 1344 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1345 # Reject names that are not valid shell variable names. 1346 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1347 as_fn_error $? "invalid package name: '$ac_useropt'" 1348 ac_useropt_orig=$ac_useropt 1349 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1350 case $ac_user_opts in 1351 *" 1352"with_$ac_useropt" 1353"*) ;; 1354 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1355 ac_unrecognized_sep=', ';; 1356 esac 1357 eval with_$ac_useropt=no ;; 1358 1359 --x) 1360 # Obsolete; use --with-x. 1361 with_x=yes ;; 1362 1363 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1364 | --x-incl | --x-inc | --x-in | --x-i) 1365 ac_prev=x_includes ;; 1366 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1367 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1368 x_includes=$ac_optarg ;; 1369 1370 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1371 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1372 ac_prev=x_libraries ;; 1373 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1374 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1375 x_libraries=$ac_optarg ;; 1376 1377 -*) as_fn_error $? "unrecognized option: '$ac_option' 1378Try '$0 --help' for more information" 1379 ;; 1380 1381 *=*) 1382 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1383 # Reject names that are not valid shell variable names. 1384 case $ac_envvar in #( 1385 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1386 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1387 esac 1388 eval $ac_envvar=\$ac_optarg 1389 export $ac_envvar ;; 1390 1391 *) 1392 # FIXME: should be removed in autoconf 3.0. 1393 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1394 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1395 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1396 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1397 ;; 1398 1399 esac 1400done 1401 1402if test -n "$ac_prev"; then 1403 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1404 as_fn_error $? "missing argument to $ac_option" 1405fi 1406 1407if test -n "$ac_unrecognized_opts"; then 1408 case $enable_option_checking in 1409 no) ;; 1410 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1411 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1412 esac 1413fi 1414 1415# Check all directory arguments for consistency. 1416for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1417 datadir sysconfdir sharedstatedir localstatedir includedir \ 1418 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1419 libdir localedir mandir runstatedir 1420do 1421 eval ac_val=\$$ac_var 1422 # Remove trailing slashes. 1423 case $ac_val in 1424 */ ) 1425 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1426 eval $ac_var=\$ac_val;; 1427 esac 1428 # Be sure to have absolute directory names. 1429 case $ac_val in 1430 [\\/$]* | ?:[\\/]* ) continue;; 1431 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1432 esac 1433 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1434done 1435 1436# There might be people who depend on the old broken behavior: '$host' 1437# used to hold the argument of --host etc. 1438# FIXME: To remove some day. 1439build=$build_alias 1440host=$host_alias 1441target=$target_alias 1442 1443# FIXME: To remove some day. 1444if test "x$host_alias" != x; then 1445 if test "x$build_alias" = x; then 1446 cross_compiling=maybe 1447 elif test "x$build_alias" != "x$host_alias"; then 1448 cross_compiling=yes 1449 fi 1450fi 1451 1452ac_tool_prefix= 1453test -n "$host_alias" && ac_tool_prefix=$host_alias- 1454 1455test "$silent" = yes && exec 6>/dev/null 1456 1457 1458ac_pwd=`pwd` && test -n "$ac_pwd" && 1459ac_ls_di=`ls -di .` && 1460ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1461 as_fn_error $? "working directory cannot be determined" 1462test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1463 as_fn_error $? "pwd does not report name of working directory" 1464 1465 1466# Find the source files, if location was not specified. 1467if test -z "$srcdir"; then 1468 ac_srcdir_defaulted=yes 1469 # Try the directory containing this script, then the parent directory. 1470 ac_confdir=`$as_dirname -- "$as_myself" || 1471$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1472 X"$as_myself" : 'X\(//\)[^/]' \| \ 1473 X"$as_myself" : 'X\(//\)$' \| \ 1474 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1475printf "%s\n" X"$as_myself" | 1476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1477 s//\1/ 1478 q 1479 } 1480 /^X\(\/\/\)[^/].*/{ 1481 s//\1/ 1482 q 1483 } 1484 /^X\(\/\/\)$/{ 1485 s//\1/ 1486 q 1487 } 1488 /^X\(\/\).*/{ 1489 s//\1/ 1490 q 1491 } 1492 s/.*/./; q'` 1493 srcdir=$ac_confdir 1494 if test ! -r "$srcdir/$ac_unique_file"; then 1495 srcdir=.. 1496 fi 1497else 1498 ac_srcdir_defaulted=no 1499fi 1500if test ! -r "$srcdir/$ac_unique_file"; then 1501 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1502 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1503fi 1504ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1505ac_abs_confdir=`( 1506 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1507 pwd)` 1508# When building in place, set srcdir=. 1509if test "$ac_abs_confdir" = "$ac_pwd"; then 1510 srcdir=. 1511fi 1512# Remove unnecessary trailing slashes from srcdir. 1513# Double slashes in file names in object file debugging info 1514# mess up M-x gdb in Emacs. 1515case $srcdir in 1516*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1517esac 1518for ac_var in $ac_precious_vars; do 1519 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1520 eval ac_env_${ac_var}_value=\$${ac_var} 1521 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1522 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1523done 1524 1525# 1526# Report the --help message. 1527# 1528if test "$ac_init_help" = "long"; then 1529 # Omit some internal or obsolete options to make the list less imposing. 1530 # This message is too long to be a string in the A/UX 3.1 sh. 1531 cat <<_ACEOF 1532'configure' configures xdm 1.1.17 to adapt to many kinds of systems. 1533 1534Usage: $0 [OPTION]... [VAR=VALUE]... 1535 1536To assign environment variables (e.g., CC, CFLAGS...), specify them as 1537VAR=VALUE. See below for descriptions of some of the useful variables. 1538 1539Defaults for the options are specified in brackets. 1540 1541Configuration: 1542 -h, --help display this help and exit 1543 --help=short display options specific to this package 1544 --help=recursive display the short help of all the included packages 1545 -V, --version display version information and exit 1546 -q, --quiet, --silent do not print 'checking ...' messages 1547 --cache-file=FILE cache test results in FILE [disabled] 1548 -C, --config-cache alias for '--cache-file=config.cache' 1549 -n, --no-create do not create output files 1550 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1551 1552Installation directories: 1553 --prefix=PREFIX install architecture-independent files in PREFIX 1554 [$ac_default_prefix] 1555 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1556 [PREFIX] 1557 1558By default, 'make install' will install all the files in 1559'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1560an installation prefix other than '$ac_default_prefix' using '--prefix', 1561for instance '--prefix=\$HOME'. 1562 1563For better control, use the options below. 1564 1565Fine tuning of the installation directories: 1566 --bindir=DIR user executables [EPREFIX/bin] 1567 --sbindir=DIR system admin executables [EPREFIX/sbin] 1568 --libexecdir=DIR program executables [EPREFIX/libexec] 1569 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1570 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1571 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1572 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1573 --libdir=DIR object code libraries [EPREFIX/lib] 1574 --includedir=DIR C header files [PREFIX/include] 1575 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1576 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1577 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1578 --infodir=DIR info documentation [DATAROOTDIR/info] 1579 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1580 --mandir=DIR man documentation [DATAROOTDIR/man] 1581 --docdir=DIR documentation root [DATAROOTDIR/doc/xdm] 1582 --htmldir=DIR html documentation [DOCDIR] 1583 --dvidir=DIR dvi documentation [DOCDIR] 1584 --pdfdir=DIR pdf documentation [DOCDIR] 1585 --psdir=DIR ps documentation [DOCDIR] 1586_ACEOF 1587 1588 cat <<\_ACEOF 1589 1590Program names: 1591 --program-prefix=PREFIX prepend PREFIX to installed program names 1592 --program-suffix=SUFFIX append SUFFIX to installed program names 1593 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1594 1595System types: 1596 --build=BUILD configure for building on BUILD [guessed] 1597 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1598_ACEOF 1599fi 1600 1601if test -n "$ac_init_help"; then 1602 case $ac_init_help in 1603 short | recursive ) echo "Configuration of xdm 1.1.17:";; 1604 esac 1605 cat <<\_ACEOF 1606 1607Optional Features: 1608 --disable-option-checking ignore unrecognized --enable/--with options 1609 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1610 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1611 --enable-dependency-tracking 1612 do not reject slow dependency extractors 1613 --disable-dependency-tracking 1614 speeds up one-time build 1615 --enable-silent-rules less verbose build output (undo: "make V=1") 1616 --disable-silent-rules verbose build output (undo: "make V=0") 1617 --enable-static[=PKGS] build static libraries [default=no] 1618 --enable-shared[=PKGS] build shared libraries [default=yes] 1619 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1620 both] 1621 --enable-fast-install[=PKGS] 1622 optimize for fast installation [default=yes] 1623 --enable-aix-soname=aix|svr4|both 1624 shared library versioning (aka "SONAME") variant to 1625 provide on AIX, [default=aix]. 1626 --disable-libtool-lock avoid locking (might break parallel builds) 1627 --disable-selective-werror 1628 Turn off selective compiler errors. (default: 1629 enabled) 1630 --enable-strict-compilation 1631 Enable all warnings from compiler and make them 1632 errors (default: disabled) 1633 --enable-unix-transport Enable UNIX domain socket transport 1634 --enable-tcp-transport Enable TCP socket transport 1635 --enable-ipv6 Enable IPv6 support 1636 --enable-local-transport 1637 Enable os-specific local transport 1638 --enable-secure-rpc Enable Secure RPC 1639 --enable-xpm-logos Display xpm logos in greeter (default is YES) 1640 --enable-xdm-auth Support XDM-AUTHENTICATION-1 and XDM-AUTHORIZATION-1 1641 (default: auto) 1642 --enable-xdmshell Install xdmshell (default: disabled) 1643 1644Optional Packages: 1645 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1646 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1647 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1648 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1649 compiler's sysroot if not specified). 1650 --with-lint Use a lint-style source code checker (default: 1651 disabled) 1652 --with-pam Use PAM for authentication (default is autodetected) 1653 --with-selinux Add support for SELinux (default is no support) 1654 --with-systemdsystemunitdir=DIR 1655 Directory for systemd service files (default from 1656 the System and Service Manager) 1657 --with-systemd-daemon Add support for systemd startup notification 1658 (default is autodetected) 1659 --with-random-device\=<pathname>\ 1660 Use <pathname> as a source of randomness (default is 1661 auto-detected) 1662 --with-xdmlibdir=<pathname> 1663 specify directory for xdm scripts and modules 1664 (default=${libdir}/X11/xdm) 1665 --with-xdmconfigdir=<pathname> 1666 specify directory for xdm config files (default is 1667 same as xdmlibdir) 1668 --with-xdmscriptdir=<pathname> 1669 specify directory for xdm scripts (default is same 1670 as xdmlibdir) 1671 --with-logdir=<pathname> 1672 specify directory for xdm log files 1673 (default=/var/log) 1674 --with-piddir=<pathname> 1675 specify directory for xdm pid files 1676 (default=/var/run) 1677 --with-default-vt=<vtname> 1678 specify default vt to start xdm on (default=none) 1679 --with-config-type={ws|fs} 1680 default config file type to use - workstation (ws) 1681 or fileserver (fs) (default=ws) 1682 --with-utmp-file=<pathname> 1683 specify file to pass to sessreg -u for current 1684 logins 1685 --without-utmp-file specify passing "none" to sessreg -u to not record 1686 logins in utmp 1687 --with-wtmp-file=<pathname> 1688 specify file to pass to sessreg -w for login history 1689 --without-wtmp-file specify passing "none" to sessreg -w to not record 1690 logins in wtmp 1691 --with-xinerama Use Xinerama (default is YES if installed) 1692 --with-xft Use Xft to draw text (default is YES if installed) 1693 --with-color-pixmap=<filename> 1694 specify xpm file to use as color logo 1695 (default=xorg.xpm) 1696 --with-bw-pixmap=<filename> 1697 specify xpm file to use as black-and-white logo 1698 (default=xorg-bw.xpm) 1699 --with-pixmapdir=<pathname> 1700 specify directory for xpm files 1701 (default=xdmlibdir/pixmaps) 1702 --with-xrdb=path Use path for xrdb (default: bindir/xrdb) 1703 --with-default-session=command 1704 Use command for default session (default: 1705 bindir/xterm -ls) 1706 --with-authdir=<pathname> 1707 specify directory for X auth files 1708 (default=/var/lib/xdm) 1709 --with-appdefaultdir=<pathname> 1710 specify directory for app-defaults files (default is 1711 autodetected) 1712 1713Some influential environment variables: 1714 CC C compiler command 1715 CFLAGS C compiler flags 1716 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1717 nonstandard directory <lib dir> 1718 LIBS libraries to pass to the linker, e.g. -l<library> 1719 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1720 you have headers in a nonstandard directory <include dir> 1721 LT_SYS_LIBRARY_PATH 1722 User-defined run-time library search path. 1723 PKG_CONFIG path to pkg-config utility 1724 PKG_CONFIG_PATH 1725 directories to add to pkg-config's search path 1726 PKG_CONFIG_LIBDIR 1727 path overriding pkg-config's built-in search path 1728 CPP C preprocessor 1729 LINT Path to a lint-style command 1730 LINT_FLAGS Flags for the lint-style command 1731 XDM_CFLAGS C compiler flags for XDM, overriding pkg-config 1732 XDM_LIBS linker flags for XDM, overriding pkg-config 1733 LIBBSD_CFLAGS 1734 C compiler flags for LIBBSD, overriding pkg-config 1735 LIBBSD_LIBS linker flags for LIBBSD, overriding pkg-config 1736 SYSTEMD_DAEMON_CFLAGS 1737 C compiler flags for SYSTEMD_DAEMON, overriding pkg-config 1738 SYSTEMD_DAEMON_LIBS 1739 linker flags for SYSTEMD_DAEMON, overriding pkg-config 1740 XINERAMA_CFLAGS 1741 C compiler flags for XINERAMA, overriding pkg-config 1742 XINERAMA_LIBS 1743 linker flags for XINERAMA, overriding pkg-config 1744 XFT_CFLAGS C compiler flags for XFT, overriding pkg-config 1745 XFT_LIBS linker flags for XFT, overriding pkg-config 1746 XPM_CFLAGS C compiler flags for XPM, overriding pkg-config 1747 XPM_LIBS linker flags for XPM, overriding pkg-config 1748 XDM_TOOLKIT_CFLAGS 1749 C compiler flags for XDM_TOOLKIT, overriding pkg-config 1750 XDM_TOOLKIT_LIBS 1751 linker flags for XDM_TOOLKIT, overriding pkg-config 1752 DMCP_CFLAGS C compiler flags for DMCP, overriding pkg-config 1753 DMCP_LIBS linker flags for DMCP, overriding pkg-config 1754 XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config 1755 XLIB_LIBS linker flags for XLIB, overriding pkg-config 1756 AUTH_CFLAGS C compiler flags for AUTH, overriding pkg-config 1757 AUTH_LIBS linker flags for AUTH, overriding pkg-config 1758 XDMGREET_CFLAGS 1759 C compiler flags for XDMGREET, overriding pkg-config 1760 XDMGREET_LIBS 1761 linker flags for XDMGREET, overriding pkg-config 1762 XT_CFLAGS C compiler flags for XT, overriding pkg-config 1763 XT_LIBS linker flags for XT, overriding pkg-config 1764 APPDEFS_CFLAGS 1765 C compiler flags for APPDEFS, overriding pkg-config 1766 APPDEFS_LIBS 1767 linker flags for APPDEFS, overriding pkg-config 1768 1769Use these variables to override the choices made by 'configure' or to help 1770it to find libraries and programs with nonstandard names/locations. 1771 1772Report bugs to <https://gitlab.freedesktop.org/xorg/app/xdm/-/issues>. 1773_ACEOF 1774ac_status=$? 1775fi 1776 1777if test "$ac_init_help" = "recursive"; then 1778 # If there are subdirs, report their specific --help. 1779 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1780 test -d "$ac_dir" || 1781 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1782 continue 1783 ac_builddir=. 1784 1785case "$ac_dir" in 1786.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1787*) 1788 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1789 # A ".." for each directory in $ac_dir_suffix. 1790 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1791 case $ac_top_builddir_sub in 1792 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1793 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1794 esac ;; 1795esac 1796ac_abs_top_builddir=$ac_pwd 1797ac_abs_builddir=$ac_pwd$ac_dir_suffix 1798# for backward compatibility: 1799ac_top_builddir=$ac_top_build_prefix 1800 1801case $srcdir in 1802 .) # We are building in place. 1803 ac_srcdir=. 1804 ac_top_srcdir=$ac_top_builddir_sub 1805 ac_abs_top_srcdir=$ac_pwd ;; 1806 [\\/]* | ?:[\\/]* ) # Absolute name. 1807 ac_srcdir=$srcdir$ac_dir_suffix; 1808 ac_top_srcdir=$srcdir 1809 ac_abs_top_srcdir=$srcdir ;; 1810 *) # Relative name. 1811 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1812 ac_top_srcdir=$ac_top_build_prefix$srcdir 1813 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1814esac 1815ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1816 1817 cd "$ac_dir" || { ac_status=$?; continue; } 1818 # Check for configure.gnu first; this name is used for a wrapper for 1819 # Metaconfig's "Configure" on case-insensitive file systems. 1820 if test -f "$ac_srcdir/configure.gnu"; then 1821 echo && 1822 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1823 elif test -f "$ac_srcdir/configure"; then 1824 echo && 1825 $SHELL "$ac_srcdir/configure" --help=recursive 1826 else 1827 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1828 fi || ac_status=$? 1829 cd "$ac_pwd" || { ac_status=$?; break; } 1830 done 1831fi 1832 1833test -n "$ac_init_help" && exit $ac_status 1834if $ac_init_version; then 1835 cat <<\_ACEOF 1836xdm configure 1.1.17 1837generated by GNU Autoconf 2.72 1838 1839Copyright (C) 2023 Free Software Foundation, Inc. 1840This configure script is free software; the Free Software Foundation 1841gives unlimited permission to copy, distribute and modify it. 1842_ACEOF 1843 exit 1844fi 1845 1846## ------------------------ ## 1847## Autoconf initialization. ## 1848## ------------------------ ## 1849 1850# ac_fn_c_try_compile LINENO 1851# -------------------------- 1852# Try to compile conftest.$ac_ext, and return whether this succeeded. 1853ac_fn_c_try_compile () 1854{ 1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1856 rm -f conftest.$ac_objext conftest.beam 1857 if { { ac_try="$ac_compile" 1858case "(($ac_try" in 1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1860 *) ac_try_echo=$ac_try;; 1861esac 1862eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1863printf "%s\n" "$ac_try_echo"; } >&5 1864 (eval "$ac_compile") 2>conftest.err 1865 ac_status=$? 1866 if test -s conftest.err; then 1867 grep -v '^ *+' conftest.err >conftest.er1 1868 cat conftest.er1 >&5 1869 mv -f conftest.er1 conftest.err 1870 fi 1871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1872 test $ac_status = 0; } && { 1873 test -z "$ac_c_werror_flag" || 1874 test ! -s conftest.err 1875 } && test -s conftest.$ac_objext 1876then : 1877 ac_retval=0 1878else case e in #( 1879 e) printf "%s\n" "$as_me: failed program was:" >&5 1880sed 's/^/| /' conftest.$ac_ext >&5 1881 1882 ac_retval=1 ;; 1883esac 1884fi 1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1886 as_fn_set_status $ac_retval 1887 1888} # ac_fn_c_try_compile 1889 1890# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1891# ------------------------------------------------------- 1892# Tests whether HEADER exists and can be compiled using the include files in 1893# INCLUDES, setting the cache variable VAR accordingly. 1894ac_fn_c_check_header_compile () 1895{ 1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1898printf %s "checking for $2... " >&6; } 1899if eval test \${$3+y} 1900then : 1901 printf %s "(cached) " >&6 1902else case e in #( 1903 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1904/* end confdefs.h. */ 1905$4 1906#include <$2> 1907_ACEOF 1908if ac_fn_c_try_compile "$LINENO" 1909then : 1910 eval "$3=yes" 1911else case e in #( 1912 e) eval "$3=no" ;; 1913esac 1914fi 1915rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1916esac 1917fi 1918eval ac_res=\$$3 1919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1920printf "%s\n" "$ac_res" >&6; } 1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1922 1923} # ac_fn_c_check_header_compile 1924 1925# ac_fn_c_try_link LINENO 1926# ----------------------- 1927# Try to link conftest.$ac_ext, and return whether this succeeded. 1928ac_fn_c_try_link () 1929{ 1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1931 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1932 if { { ac_try="$ac_link" 1933case "(($ac_try" in 1934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1935 *) ac_try_echo=$ac_try;; 1936esac 1937eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1938printf "%s\n" "$ac_try_echo"; } >&5 1939 (eval "$ac_link") 2>conftest.err 1940 ac_status=$? 1941 if test -s conftest.err; then 1942 grep -v '^ *+' conftest.err >conftest.er1 1943 cat conftest.er1 >&5 1944 mv -f conftest.er1 conftest.err 1945 fi 1946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1947 test $ac_status = 0; } && { 1948 test -z "$ac_c_werror_flag" || 1949 test ! -s conftest.err 1950 } && test -s conftest$ac_exeext && { 1951 test "$cross_compiling" = yes || 1952 test -x conftest$ac_exeext 1953 } 1954then : 1955 ac_retval=0 1956else case e in #( 1957 e) printf "%s\n" "$as_me: failed program was:" >&5 1958sed 's/^/| /' conftest.$ac_ext >&5 1959 1960 ac_retval=1 ;; 1961esac 1962fi 1963 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1964 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1965 # interfere with the next link command; also delete a directory that is 1966 # left behind by Apple's compiler. We do this before executing the actions. 1967 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1969 as_fn_set_status $ac_retval 1970 1971} # ac_fn_c_try_link 1972 1973# ac_fn_c_check_func LINENO FUNC VAR 1974# ---------------------------------- 1975# Tests whether FUNC exists, setting the cache variable VAR accordingly 1976ac_fn_c_check_func () 1977{ 1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1980printf %s "checking for $2... " >&6; } 1981if eval test \${$3+y} 1982then : 1983 printf %s "(cached) " >&6 1984else case e in #( 1985 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1986/* end confdefs.h. */ 1987/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1988 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1989#define $2 innocuous_$2 1990 1991/* System header to define __stub macros and hopefully few prototypes, 1992 which can conflict with char $2 (void); below. */ 1993 1994#include <limits.h> 1995#undef $2 1996 1997/* Override any GCC internal prototype to avoid an error. 1998 Use char because int might match the return type of a GCC 1999 builtin and then its argument prototype would still apply. */ 2000#ifdef __cplusplus 2001extern "C" 2002#endif 2003char $2 (void); 2004/* The GNU C library defines this for functions which it implements 2005 to always fail with ENOSYS. Some functions are actually named 2006 something starting with __ and the normal name is an alias. */ 2007#if defined __stub_$2 || defined __stub___$2 2008choke me 2009#endif 2010 2011int 2012main (void) 2013{ 2014return $2 (); 2015 ; 2016 return 0; 2017} 2018_ACEOF 2019if ac_fn_c_try_link "$LINENO" 2020then : 2021 eval "$3=yes" 2022else case e in #( 2023 e) eval "$3=no" ;; 2024esac 2025fi 2026rm -f core conftest.err conftest.$ac_objext conftest.beam \ 2027 conftest$ac_exeext conftest.$ac_ext ;; 2028esac 2029fi 2030eval ac_res=\$$3 2031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2032printf "%s\n" "$ac_res" >&6; } 2033 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2034 2035} # ac_fn_c_check_func 2036 2037# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 2038# ------------------------------------------------------------------ 2039# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2040# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 2041ac_fn_check_decl () 2042{ 2043 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2044 as_decl_name=`echo $2|sed 's/ *(.*//'` 2045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2046printf %s "checking whether $as_decl_name is declared... " >&6; } 2047if eval test \${$3+y} 2048then : 2049 printf %s "(cached) " >&6 2050else case e in #( 2051 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2052 eval ac_save_FLAGS=\$$6 2053 as_fn_append $6 " $5" 2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2055/* end confdefs.h. */ 2056$4 2057int 2058main (void) 2059{ 2060#ifndef $as_decl_name 2061#ifdef __cplusplus 2062 (void) $as_decl_use; 2063#else 2064 (void) $as_decl_name; 2065#endif 2066#endif 2067 2068 ; 2069 return 0; 2070} 2071_ACEOF 2072if ac_fn_c_try_compile "$LINENO" 2073then : 2074 eval "$3=yes" 2075else case e in #( 2076 e) eval "$3=no" ;; 2077esac 2078fi 2079rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2080 eval $6=\$ac_save_FLAGS 2081 ;; 2082esac 2083fi 2084eval ac_res=\$$3 2085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2086printf "%s\n" "$ac_res" >&6; } 2087 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2088 2089} # ac_fn_check_decl 2090 2091# ac_fn_c_try_cpp LINENO 2092# ---------------------- 2093# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2094ac_fn_c_try_cpp () 2095{ 2096 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2097 if { { ac_try="$ac_cpp conftest.$ac_ext" 2098case "(($ac_try" in 2099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2100 *) ac_try_echo=$ac_try;; 2101esac 2102eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2103printf "%s\n" "$ac_try_echo"; } >&5 2104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2105 ac_status=$? 2106 if test -s conftest.err; then 2107 grep -v '^ *+' conftest.err >conftest.er1 2108 cat conftest.er1 >&5 2109 mv -f conftest.er1 conftest.err 2110 fi 2111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2112 test $ac_status = 0; } > conftest.i && { 2113 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2114 test ! -s conftest.err 2115 } 2116then : 2117 ac_retval=0 2118else case e in #( 2119 e) printf "%s\n" "$as_me: failed program was:" >&5 2120sed 's/^/| /' conftest.$ac_ext >&5 2121 2122 ac_retval=1 ;; 2123esac 2124fi 2125 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2126 as_fn_set_status $ac_retval 2127 2128} # ac_fn_c_try_cpp 2129 2130# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2131# ---------------------------------------------------- 2132# Tries to find if the field MEMBER exists in type AGGR, after including 2133# INCLUDES, setting cache variable VAR accordingly. 2134ac_fn_c_check_member () 2135{ 2136 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2138printf %s "checking for $2.$3... " >&6; } 2139if eval test \${$4+y} 2140then : 2141 printf %s "(cached) " >&6 2142else case e in #( 2143 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2144/* end confdefs.h. */ 2145$5 2146int 2147main (void) 2148{ 2149static $2 ac_aggr; 2150if (ac_aggr.$3) 2151return 0; 2152 ; 2153 return 0; 2154} 2155_ACEOF 2156if ac_fn_c_try_compile "$LINENO" 2157then : 2158 eval "$4=yes" 2159else case e in #( 2160 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2161/* end confdefs.h. */ 2162$5 2163int 2164main (void) 2165{ 2166static $2 ac_aggr; 2167if (sizeof ac_aggr.$3) 2168return 0; 2169 ; 2170 return 0; 2171} 2172_ACEOF 2173if ac_fn_c_try_compile "$LINENO" 2174then : 2175 eval "$4=yes" 2176else case e in #( 2177 e) eval "$4=no" ;; 2178esac 2179fi 2180rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 2181esac 2182fi 2183rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 2184esac 2185fi 2186eval ac_res=\$$4 2187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2188printf "%s\n" "$ac_res" >&6; } 2189 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2190 2191} # ac_fn_c_check_member 2192 2193# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2194# ------------------------------------------- 2195# Tests whether TYPE exists after having included INCLUDES, setting cache 2196# variable VAR accordingly. 2197ac_fn_c_check_type () 2198{ 2199 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2201printf %s "checking for $2... " >&6; } 2202if eval test \${$3+y} 2203then : 2204 printf %s "(cached) " >&6 2205else case e in #( 2206 e) eval "$3=no" 2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2208/* end confdefs.h. */ 2209$4 2210int 2211main (void) 2212{ 2213if (sizeof ($2)) 2214 return 0; 2215 ; 2216 return 0; 2217} 2218_ACEOF 2219if ac_fn_c_try_compile "$LINENO" 2220then : 2221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2222/* end confdefs.h. */ 2223$4 2224int 2225main (void) 2226{ 2227if (sizeof (($2))) 2228 return 0; 2229 ; 2230 return 0; 2231} 2232_ACEOF 2233if ac_fn_c_try_compile "$LINENO" 2234then : 2235 2236else case e in #( 2237 e) eval "$3=yes" ;; 2238esac 2239fi 2240rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2241fi 2242rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 2243esac 2244fi 2245eval ac_res=\$$3 2246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2247printf "%s\n" "$ac_res" >&6; } 2248 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2249 2250} # ac_fn_c_check_type 2251 2252# ac_fn_c_try_run LINENO 2253# ---------------------- 2254# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 2255# executables *can* be run. 2256ac_fn_c_try_run () 2257{ 2258 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2259 if { { ac_try="$ac_link" 2260case "(($ac_try" in 2261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2262 *) ac_try_echo=$ac_try;; 2263esac 2264eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2265printf "%s\n" "$ac_try_echo"; } >&5 2266 (eval "$ac_link") 2>&5 2267 ac_status=$? 2268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2269 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2270 { { case "(($ac_try" in 2271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2272 *) ac_try_echo=$ac_try;; 2273esac 2274eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2275printf "%s\n" "$ac_try_echo"; } >&5 2276 (eval "$ac_try") 2>&5 2277 ac_status=$? 2278 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2279 test $ac_status = 0; }; } 2280then : 2281 ac_retval=0 2282else case e in #( 2283 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5 2284 printf "%s\n" "$as_me: failed program was:" >&5 2285sed 's/^/| /' conftest.$ac_ext >&5 2286 2287 ac_retval=$ac_status ;; 2288esac 2289fi 2290 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2291 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2292 as_fn_set_status $ac_retval 2293 2294} # ac_fn_c_try_run 2295ac_configure_args_raw= 2296for ac_arg 2297do 2298 case $ac_arg in 2299 *\'*) 2300 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2301 esac 2302 as_fn_append ac_configure_args_raw " '$ac_arg'" 2303done 2304 2305case $ac_configure_args_raw in 2306 *$as_nl*) 2307 ac_safe_unquote= ;; 2308 *) 2309 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2310 ac_unsafe_a="$ac_unsafe_z#~" 2311 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2312 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2313esac 2314 2315cat >config.log <<_ACEOF 2316This file contains any messages produced by compilers while 2317running configure, to aid debugging if configure makes a mistake. 2318 2319It was created by xdm $as_me 1.1.17, which was 2320generated by GNU Autoconf 2.72. Invocation command line was 2321 2322 $ $0$ac_configure_args_raw 2323 2324_ACEOF 2325exec 5>>config.log 2326{ 2327cat <<_ASUNAME 2328## --------- ## 2329## Platform. ## 2330## --------- ## 2331 2332hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2333uname -m = `(uname -m) 2>/dev/null || echo unknown` 2334uname -r = `(uname -r) 2>/dev/null || echo unknown` 2335uname -s = `(uname -s) 2>/dev/null || echo unknown` 2336uname -v = `(uname -v) 2>/dev/null || echo unknown` 2337 2338/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2339/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2340 2341/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2342/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2343/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2344/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2345/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2346/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2347/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2348 2349_ASUNAME 2350 2351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2352for as_dir in $PATH 2353do 2354 IFS=$as_save_IFS 2355 case $as_dir in #((( 2356 '') as_dir=./ ;; 2357 */) ;; 2358 *) as_dir=$as_dir/ ;; 2359 esac 2360 printf "%s\n" "PATH: $as_dir" 2361 done 2362IFS=$as_save_IFS 2363 2364} >&5 2365 2366cat >&5 <<_ACEOF 2367 2368 2369## ----------- ## 2370## Core tests. ## 2371## ----------- ## 2372 2373_ACEOF 2374 2375 2376# Keep a trace of the command line. 2377# Strip out --no-create and --no-recursion so they do not pile up. 2378# Strip out --silent because we don't want to record it for future runs. 2379# Also quote any args containing shell meta-characters. 2380# Make two passes to allow for proper duplicate-argument suppression. 2381ac_configure_args= 2382ac_configure_args0= 2383ac_configure_args1= 2384ac_must_keep_next=false 2385for ac_pass in 1 2 2386do 2387 for ac_arg 2388 do 2389 case $ac_arg in 2390 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2391 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2392 | -silent | --silent | --silen | --sile | --sil) 2393 continue ;; 2394 *\'*) 2395 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2396 esac 2397 case $ac_pass in 2398 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2399 2) 2400 as_fn_append ac_configure_args1 " '$ac_arg'" 2401 if test $ac_must_keep_next = true; then 2402 ac_must_keep_next=false # Got value, back to normal. 2403 else 2404 case $ac_arg in 2405 *=* | --config-cache | -C | -disable-* | --disable-* \ 2406 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2407 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2408 | -with-* | --with-* | -without-* | --without-* | --x) 2409 case "$ac_configure_args0 " in 2410 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2411 esac 2412 ;; 2413 -* ) ac_must_keep_next=true ;; 2414 esac 2415 fi 2416 as_fn_append ac_configure_args " '$ac_arg'" 2417 ;; 2418 esac 2419 done 2420done 2421{ ac_configure_args0=; unset ac_configure_args0;} 2422{ ac_configure_args1=; unset ac_configure_args1;} 2423 2424# When interrupted or exit'd, cleanup temporary files, and complete 2425# config.log. We remove comments because anyway the quotes in there 2426# would cause problems or look ugly. 2427# WARNING: Use '\'' to represent an apostrophe within the trap. 2428# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2429trap 'exit_status=$? 2430 # Sanitize IFS. 2431 IFS=" "" $as_nl" 2432 # Save into config.log some information that might help in debugging. 2433 { 2434 echo 2435 2436 printf "%s\n" "## ---------------- ## 2437## Cache variables. ## 2438## ---------------- ##" 2439 echo 2440 # The following way of writing the cache mishandles newlines in values, 2441( 2442 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2443 eval ac_val=\$$ac_var 2444 case $ac_val in #( 2445 *${as_nl}*) 2446 case $ac_var in #( 2447 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2448printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2449 esac 2450 case $ac_var in #( 2451 _ | IFS | as_nl) ;; #( 2452 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2453 *) { eval $ac_var=; unset $ac_var;} ;; 2454 esac ;; 2455 esac 2456 done 2457 (set) 2>&1 | 2458 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2459 *${as_nl}ac_space=\ *) 2460 sed -n \ 2461 "s/'\''/'\''\\\\'\'''\''/g; 2462 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2463 ;; #( 2464 *) 2465 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2466 ;; 2467 esac | 2468 sort 2469) 2470 echo 2471 2472 printf "%s\n" "## ----------------- ## 2473## Output variables. ## 2474## ----------------- ##" 2475 echo 2476 for ac_var in $ac_subst_vars 2477 do 2478 eval ac_val=\$$ac_var 2479 case $ac_val in 2480 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2481 esac 2482 printf "%s\n" "$ac_var='\''$ac_val'\''" 2483 done | sort 2484 echo 2485 2486 if test -n "$ac_subst_files"; then 2487 printf "%s\n" "## ------------------- ## 2488## File substitutions. ## 2489## ------------------- ##" 2490 echo 2491 for ac_var in $ac_subst_files 2492 do 2493 eval ac_val=\$$ac_var 2494 case $ac_val in 2495 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2496 esac 2497 printf "%s\n" "$ac_var='\''$ac_val'\''" 2498 done | sort 2499 echo 2500 fi 2501 2502 if test -s confdefs.h; then 2503 printf "%s\n" "## ----------- ## 2504## confdefs.h. ## 2505## ----------- ##" 2506 echo 2507 cat confdefs.h 2508 echo 2509 fi 2510 test "$ac_signal" != 0 && 2511 printf "%s\n" "$as_me: caught signal $ac_signal" 2512 printf "%s\n" "$as_me: exit $exit_status" 2513 } >&5 2514 rm -f core *.core core.conftest.* && 2515 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2516 exit $exit_status 2517' 0 2518for ac_signal in 1 2 13 15; do 2519 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2520done 2521ac_signal=0 2522 2523# confdefs.h avoids OS command line length limits that DEFS can exceed. 2524rm -f -r conftest* confdefs.h 2525 2526printf "%s\n" "/* confdefs.h */" > confdefs.h 2527 2528# Predefined preprocessor variables. 2529 2530printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2531 2532printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2533 2534printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2535 2536printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2537 2538printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2539 2540printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2541 2542 2543# Let the site file select an alternate cache file if it wants to. 2544# Prefer an explicitly selected file to automatically selected ones. 2545if test -n "$CONFIG_SITE"; then 2546 ac_site_files="$CONFIG_SITE" 2547elif test "x$prefix" != xNONE; then 2548 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2549else 2550 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2551fi 2552 2553for ac_site_file in $ac_site_files 2554do 2555 case $ac_site_file in #( 2556 */*) : 2557 ;; #( 2558 *) : 2559 ac_site_file=./$ac_site_file ;; 2560esac 2561 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2563printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2564 sed 's/^/| /' "$ac_site_file" >&5 2565 . "$ac_site_file" \ 2566 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2567printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2568as_fn_error $? "failed to load site script $ac_site_file 2569See 'config.log' for more details" "$LINENO" 5; } 2570 fi 2571done 2572 2573if test -r "$cache_file"; then 2574 # Some versions of bash will fail to source /dev/null (special files 2575 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2576 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2578printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2579 case $cache_file in 2580 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2581 *) . "./$cache_file";; 2582 esac 2583 fi 2584else 2585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2586printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2587 >$cache_file 2588fi 2589 2590as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2591# Test code for whether the C compiler supports C89 (global declarations) 2592ac_c_conftest_c89_globals=' 2593/* Does the compiler advertise C89 conformance? 2594 Do not test the value of __STDC__, because some compilers set it to 0 2595 while being otherwise adequately conformant. */ 2596#if !defined __STDC__ 2597# error "Compiler does not advertise C89 conformance" 2598#endif 2599 2600#include <stddef.h> 2601#include <stdarg.h> 2602struct stat; 2603/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2604struct buf { int x; }; 2605struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2606static char *e (char **p, int i) 2607{ 2608 return p[i]; 2609} 2610static char *f (char * (*g) (char **, int), char **p, ...) 2611{ 2612 char *s; 2613 va_list v; 2614 va_start (v,p); 2615 s = g (p, va_arg (v,int)); 2616 va_end (v); 2617 return s; 2618} 2619 2620/* C89 style stringification. */ 2621#define noexpand_stringify(a) #a 2622const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2623 2624/* C89 style token pasting. Exercises some of the corner cases that 2625 e.g. old MSVC gets wrong, but not very hard. */ 2626#define noexpand_concat(a,b) a##b 2627#define expand_concat(a,b) noexpand_concat(a,b) 2628extern int vA; 2629extern int vbee; 2630#define aye A 2631#define bee B 2632int *pvA = &expand_concat(v,aye); 2633int *pvbee = &noexpand_concat(v,bee); 2634 2635/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2636 function prototypes and stuff, but not \xHH hex character constants. 2637 These do not provoke an error unfortunately, instead are silently treated 2638 as an "x". The following induces an error, until -std is added to get 2639 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2640 array size at least. It is necessary to write \x00 == 0 to get something 2641 that is true only with -std. */ 2642int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2643 2644/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2645 inside strings and character constants. */ 2646#define FOO(x) '\''x'\'' 2647int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2648 2649int test (int i, double x); 2650struct s1 {int (*f) (int a);}; 2651struct s2 {int (*f) (double a);}; 2652int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2653 int, int);' 2654 2655# Test code for whether the C compiler supports C89 (body of main). 2656ac_c_conftest_c89_main=' 2657ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2658' 2659 2660# Test code for whether the C compiler supports C99 (global declarations) 2661ac_c_conftest_c99_globals=' 2662/* Does the compiler advertise C99 conformance? */ 2663#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2664# error "Compiler does not advertise C99 conformance" 2665#endif 2666 2667// See if C++-style comments work. 2668 2669#include <stdbool.h> 2670extern int puts (const char *); 2671extern int printf (const char *, ...); 2672extern int dprintf (int, const char *, ...); 2673extern void *malloc (size_t); 2674extern void free (void *); 2675 2676// Check varargs macros. These examples are taken from C99 6.10.3.5. 2677// dprintf is used instead of fprintf to avoid needing to declare 2678// FILE and stderr. 2679#define debug(...) dprintf (2, __VA_ARGS__) 2680#define showlist(...) puts (#__VA_ARGS__) 2681#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2682static void 2683test_varargs_macros (void) 2684{ 2685 int x = 1234; 2686 int y = 5678; 2687 debug ("Flag"); 2688 debug ("X = %d\n", x); 2689 showlist (The first, second, and third items.); 2690 report (x>y, "x is %d but y is %d", x, y); 2691} 2692 2693// Check long long types. 2694#define BIG64 18446744073709551615ull 2695#define BIG32 4294967295ul 2696#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2697#if !BIG_OK 2698 #error "your preprocessor is broken" 2699#endif 2700#if BIG_OK 2701#else 2702 #error "your preprocessor is broken" 2703#endif 2704static long long int bignum = -9223372036854775807LL; 2705static unsigned long long int ubignum = BIG64; 2706 2707struct incomplete_array 2708{ 2709 int datasize; 2710 double data[]; 2711}; 2712 2713struct named_init { 2714 int number; 2715 const wchar_t *name; 2716 double average; 2717}; 2718 2719typedef const char *ccp; 2720 2721static inline int 2722test_restrict (ccp restrict text) 2723{ 2724 // Iterate through items via the restricted pointer. 2725 // Also check for declarations in for loops. 2726 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2727 continue; 2728 return 0; 2729} 2730 2731// Check varargs and va_copy. 2732static bool 2733test_varargs (const char *format, ...) 2734{ 2735 va_list args; 2736 va_start (args, format); 2737 va_list args_copy; 2738 va_copy (args_copy, args); 2739 2740 const char *str = ""; 2741 int number = 0; 2742 float fnumber = 0; 2743 2744 while (*format) 2745 { 2746 switch (*format++) 2747 { 2748 case '\''s'\'': // string 2749 str = va_arg (args_copy, const char *); 2750 break; 2751 case '\''d'\'': // int 2752 number = va_arg (args_copy, int); 2753 break; 2754 case '\''f'\'': // float 2755 fnumber = va_arg (args_copy, double); 2756 break; 2757 default: 2758 break; 2759 } 2760 } 2761 va_end (args_copy); 2762 va_end (args); 2763 2764 return *str && number && fnumber; 2765} 2766' 2767 2768# Test code for whether the C compiler supports C99 (body of main). 2769ac_c_conftest_c99_main=' 2770 // Check bool. 2771 _Bool success = false; 2772 success |= (argc != 0); 2773 2774 // Check restrict. 2775 if (test_restrict ("String literal") == 0) 2776 success = true; 2777 char *restrict newvar = "Another string"; 2778 2779 // Check varargs. 2780 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2781 test_varargs_macros (); 2782 2783 // Check flexible array members. 2784 struct incomplete_array *ia = 2785 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2786 ia->datasize = 10; 2787 for (int i = 0; i < ia->datasize; ++i) 2788 ia->data[i] = i * 1.234; 2789 // Work around memory leak warnings. 2790 free (ia); 2791 2792 // Check named initializers. 2793 struct named_init ni = { 2794 .number = 34, 2795 .name = L"Test wide string", 2796 .average = 543.34343, 2797 }; 2798 2799 ni.number = 58; 2800 2801 int dynamic_array[ni.number]; 2802 dynamic_array[0] = argv[0][0]; 2803 dynamic_array[ni.number - 1] = 543; 2804 2805 // work around unused variable warnings 2806 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2807 || dynamic_array[ni.number - 1] != 543); 2808' 2809 2810# Test code for whether the C compiler supports C11 (global declarations) 2811ac_c_conftest_c11_globals=' 2812/* Does the compiler advertise C11 conformance? */ 2813#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2814# error "Compiler does not advertise C11 conformance" 2815#endif 2816 2817// Check _Alignas. 2818char _Alignas (double) aligned_as_double; 2819char _Alignas (0) no_special_alignment; 2820extern char aligned_as_int; 2821char _Alignas (0) _Alignas (int) aligned_as_int; 2822 2823// Check _Alignof. 2824enum 2825{ 2826 int_alignment = _Alignof (int), 2827 int_array_alignment = _Alignof (int[100]), 2828 char_alignment = _Alignof (char) 2829}; 2830_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2831 2832// Check _Noreturn. 2833int _Noreturn does_not_return (void) { for (;;) continue; } 2834 2835// Check _Static_assert. 2836struct test_static_assert 2837{ 2838 int x; 2839 _Static_assert (sizeof (int) <= sizeof (long int), 2840 "_Static_assert does not work in struct"); 2841 long int y; 2842}; 2843 2844// Check UTF-8 literals. 2845#define u8 syntax error! 2846char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2847 2848// Check duplicate typedefs. 2849typedef long *long_ptr; 2850typedef long int *long_ptr; 2851typedef long_ptr long_ptr; 2852 2853// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2854struct anonymous 2855{ 2856 union { 2857 struct { int i; int j; }; 2858 struct { int k; long int l; } w; 2859 }; 2860 int m; 2861} v1; 2862' 2863 2864# Test code for whether the C compiler supports C11 (body of main). 2865ac_c_conftest_c11_main=' 2866 _Static_assert ((offsetof (struct anonymous, i) 2867 == offsetof (struct anonymous, w.k)), 2868 "Anonymous union alignment botch"); 2869 v1.i = 2; 2870 v1.w.k = 5; 2871 ok |= v1.i != 5; 2872' 2873 2874# Test code for whether the C compiler supports C11 (complete). 2875ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2876${ac_c_conftest_c99_globals} 2877${ac_c_conftest_c11_globals} 2878 2879int 2880main (int argc, char **argv) 2881{ 2882 int ok = 0; 2883 ${ac_c_conftest_c89_main} 2884 ${ac_c_conftest_c99_main} 2885 ${ac_c_conftest_c11_main} 2886 return ok; 2887} 2888" 2889 2890# Test code for whether the C compiler supports C99 (complete). 2891ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2892${ac_c_conftest_c99_globals} 2893 2894int 2895main (int argc, char **argv) 2896{ 2897 int ok = 0; 2898 ${ac_c_conftest_c89_main} 2899 ${ac_c_conftest_c99_main} 2900 return ok; 2901} 2902" 2903 2904# Test code for whether the C compiler supports C89 (complete). 2905ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2906 2907int 2908main (int argc, char **argv) 2909{ 2910 int ok = 0; 2911 ${ac_c_conftest_c89_main} 2912 return ok; 2913} 2914" 2915 2916as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2917as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2918as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2919as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2920as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2921as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2922as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2923as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2924as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2925as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2926as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H" 2927as_fn_append ac_func_c_list " fork HAVE_FORK" 2928as_fn_append ac_func_c_list " vfork HAVE_VFORK" 2929 2930# Auxiliary files required by this configure script. 2931ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile" 2932 2933# Locations in which to look for auxiliary files. 2934ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2935 2936# Search for a directory containing all of the required auxiliary files, 2937# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2938# If we don't find one directory that contains all the files we need, 2939# we report the set of missing files from the *first* directory in 2940# $ac_aux_dir_candidates and give up. 2941ac_missing_aux_files="" 2942ac_first_candidate=: 2943printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2945as_found=false 2946for as_dir in $ac_aux_dir_candidates 2947do 2948 IFS=$as_save_IFS 2949 case $as_dir in #((( 2950 '') as_dir=./ ;; 2951 */) ;; 2952 *) as_dir=$as_dir/ ;; 2953 esac 2954 as_found=: 2955 2956 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2957 ac_aux_dir_found=yes 2958 ac_install_sh= 2959 for ac_aux in $ac_aux_files 2960 do 2961 # As a special case, if "install-sh" is required, that requirement 2962 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2963 # and $ac_install_sh is set appropriately for whichever one is found. 2964 if test x"$ac_aux" = x"install-sh" 2965 then 2966 if test -f "${as_dir}install-sh"; then 2967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2968 ac_install_sh="${as_dir}install-sh -c" 2969 elif test -f "${as_dir}install.sh"; then 2970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2971 ac_install_sh="${as_dir}install.sh -c" 2972 elif test -f "${as_dir}shtool"; then 2973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2974 ac_install_sh="${as_dir}shtool install -c" 2975 else 2976 ac_aux_dir_found=no 2977 if $ac_first_candidate; then 2978 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2979 else 2980 break 2981 fi 2982 fi 2983 else 2984 if test -f "${as_dir}${ac_aux}"; then 2985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2986 else 2987 ac_aux_dir_found=no 2988 if $ac_first_candidate; then 2989 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2990 else 2991 break 2992 fi 2993 fi 2994 fi 2995 done 2996 if test "$ac_aux_dir_found" = yes; then 2997 ac_aux_dir="$as_dir" 2998 break 2999 fi 3000 ac_first_candidate=false 3001 3002 as_found=false 3003done 3004IFS=$as_save_IFS 3005if $as_found 3006then : 3007 3008else case e in #( 3009 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 3010esac 3011fi 3012 3013 3014# These three variables are undocumented and unsupported, 3015# and are intended to be withdrawn in a future Autoconf release. 3016# They can cause serious problems if a builder's source tree is in a directory 3017# whose full name contains unusual characters. 3018if test -f "${ac_aux_dir}config.guess"; then 3019 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 3020fi 3021if test -f "${ac_aux_dir}config.sub"; then 3022 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 3023fi 3024if test -f "$ac_aux_dir/configure"; then 3025 ac_configure="$SHELL ${ac_aux_dir}configure" 3026fi 3027 3028# Check that the precious variables saved in the cache have kept the same 3029# value. 3030ac_cache_corrupted=false 3031for ac_var in $ac_precious_vars; do 3032 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3033 eval ac_new_set=\$ac_env_${ac_var}_set 3034 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3035 eval ac_new_val=\$ac_env_${ac_var}_value 3036 case $ac_old_set,$ac_new_set in 3037 set,) 3038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 3039printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 3040 ac_cache_corrupted=: ;; 3041 ,set) 3042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 3043printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 3044 ac_cache_corrupted=: ;; 3045 ,);; 3046 *) 3047 if test "x$ac_old_val" != "x$ac_new_val"; then 3048 # differences in whitespace do not lead to failure. 3049 ac_old_val_w=`echo x $ac_old_val` 3050 ac_new_val_w=`echo x $ac_new_val` 3051 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 3053printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 3054 ac_cache_corrupted=: 3055 else 3056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 3057printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 3058 eval $ac_var=\$ac_old_val 3059 fi 3060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 3061printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 3062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 3063printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 3064 fi;; 3065 esac 3066 # Pass precious variables to config.status. 3067 if test "$ac_new_set" = set; then 3068 case $ac_new_val in 3069 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3070 *) ac_arg=$ac_var=$ac_new_val ;; 3071 esac 3072 case " $ac_configure_args " in 3073 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3074 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3075 esac 3076 fi 3077done 3078if $ac_cache_corrupted; then 3079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3080printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3082printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 3083 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 3084 and start over" "$LINENO" 5 3085fi 3086## -------------------- ## 3087## Main body of script. ## 3088## -------------------- ## 3089 3090ac_ext=c 3091ac_cpp='$CPP $CPPFLAGS' 3092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3094ac_compiler_gnu=$ac_cv_c_compiler_gnu 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108# Expand $ac_aux_dir to an absolute path. 3109am_aux_dir=`cd "$ac_aux_dir" && pwd` 3110 3111ac_ext=c 3112ac_cpp='$CPP $CPPFLAGS' 3113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3115ac_compiler_gnu=$ac_cv_c_compiler_gnu 3116if test -n "$ac_tool_prefix"; then 3117 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3118set dummy ${ac_tool_prefix}gcc; ac_word=$2 3119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3120printf %s "checking for $ac_word... " >&6; } 3121if test ${ac_cv_prog_CC+y} 3122then : 3123 printf %s "(cached) " >&6 3124else case e in #( 3125 e) if test -n "$CC"; then 3126 ac_cv_prog_CC="$CC" # Let the user override the test. 3127else 3128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3129for as_dir in $PATH 3130do 3131 IFS=$as_save_IFS 3132 case $as_dir in #((( 3133 '') as_dir=./ ;; 3134 */) ;; 3135 *) as_dir=$as_dir/ ;; 3136 esac 3137 for ac_exec_ext in '' $ac_executable_extensions; do 3138 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3139 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3140 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3141 break 2 3142 fi 3143done 3144 done 3145IFS=$as_save_IFS 3146 3147fi ;; 3148esac 3149fi 3150CC=$ac_cv_prog_CC 3151if test -n "$CC"; then 3152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3153printf "%s\n" "$CC" >&6; } 3154else 3155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3156printf "%s\n" "no" >&6; } 3157fi 3158 3159 3160fi 3161if test -z "$ac_cv_prog_CC"; then 3162 ac_ct_CC=$CC 3163 # Extract the first word of "gcc", so it can be a program name with args. 3164set dummy gcc; ac_word=$2 3165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3166printf %s "checking for $ac_word... " >&6; } 3167if test ${ac_cv_prog_ac_ct_CC+y} 3168then : 3169 printf %s "(cached) " >&6 3170else case e in #( 3171 e) if test -n "$ac_ct_CC"; then 3172 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3173else 3174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3175for as_dir in $PATH 3176do 3177 IFS=$as_save_IFS 3178 case $as_dir in #((( 3179 '') as_dir=./ ;; 3180 */) ;; 3181 *) as_dir=$as_dir/ ;; 3182 esac 3183 for ac_exec_ext in '' $ac_executable_extensions; do 3184 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3185 ac_cv_prog_ac_ct_CC="gcc" 3186 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3187 break 2 3188 fi 3189done 3190 done 3191IFS=$as_save_IFS 3192 3193fi ;; 3194esac 3195fi 3196ac_ct_CC=$ac_cv_prog_ac_ct_CC 3197if test -n "$ac_ct_CC"; then 3198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3199printf "%s\n" "$ac_ct_CC" >&6; } 3200else 3201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3202printf "%s\n" "no" >&6; } 3203fi 3204 3205 if test "x$ac_ct_CC" = x; then 3206 CC="" 3207 else 3208 case $cross_compiling:$ac_tool_warned in 3209yes:) 3210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3211printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3212ac_tool_warned=yes ;; 3213esac 3214 CC=$ac_ct_CC 3215 fi 3216else 3217 CC="$ac_cv_prog_CC" 3218fi 3219 3220if test -z "$CC"; then 3221 if test -n "$ac_tool_prefix"; then 3222 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3223set dummy ${ac_tool_prefix}cc; ac_word=$2 3224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3225printf %s "checking for $ac_word... " >&6; } 3226if test ${ac_cv_prog_CC+y} 3227then : 3228 printf %s "(cached) " >&6 3229else case e in #( 3230 e) if test -n "$CC"; then 3231 ac_cv_prog_CC="$CC" # Let the user override the test. 3232else 3233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3234for as_dir in $PATH 3235do 3236 IFS=$as_save_IFS 3237 case $as_dir in #((( 3238 '') as_dir=./ ;; 3239 */) ;; 3240 *) as_dir=$as_dir/ ;; 3241 esac 3242 for ac_exec_ext in '' $ac_executable_extensions; do 3243 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3244 ac_cv_prog_CC="${ac_tool_prefix}cc" 3245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3246 break 2 3247 fi 3248done 3249 done 3250IFS=$as_save_IFS 3251 3252fi ;; 3253esac 3254fi 3255CC=$ac_cv_prog_CC 3256if test -n "$CC"; then 3257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3258printf "%s\n" "$CC" >&6; } 3259else 3260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3261printf "%s\n" "no" >&6; } 3262fi 3263 3264 3265 fi 3266fi 3267if test -z "$CC"; then 3268 # Extract the first word of "cc", so it can be a program name with args. 3269set dummy cc; ac_word=$2 3270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3271printf %s "checking for $ac_word... " >&6; } 3272if test ${ac_cv_prog_CC+y} 3273then : 3274 printf %s "(cached) " >&6 3275else case e in #( 3276 e) if test -n "$CC"; then 3277 ac_cv_prog_CC="$CC" # Let the user override the test. 3278else 3279 ac_prog_rejected=no 3280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3281for as_dir in $PATH 3282do 3283 IFS=$as_save_IFS 3284 case $as_dir in #((( 3285 '') as_dir=./ ;; 3286 */) ;; 3287 *) as_dir=$as_dir/ ;; 3288 esac 3289 for ac_exec_ext in '' $ac_executable_extensions; do 3290 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3291 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3292 ac_prog_rejected=yes 3293 continue 3294 fi 3295 ac_cv_prog_CC="cc" 3296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3297 break 2 3298 fi 3299done 3300 done 3301IFS=$as_save_IFS 3302 3303if test $ac_prog_rejected = yes; then 3304 # We found a bogon in the path, so make sure we never use it. 3305 set dummy $ac_cv_prog_CC 3306 shift 3307 if test $# != 0; then 3308 # We chose a different compiler from the bogus one. 3309 # However, it has the same basename, so the bogon will be chosen 3310 # first if we set CC to just the basename; use the full file name. 3311 shift 3312 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3313 fi 3314fi 3315fi ;; 3316esac 3317fi 3318CC=$ac_cv_prog_CC 3319if test -n "$CC"; then 3320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3321printf "%s\n" "$CC" >&6; } 3322else 3323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3324printf "%s\n" "no" >&6; } 3325fi 3326 3327 3328fi 3329if test -z "$CC"; then 3330 if test -n "$ac_tool_prefix"; then 3331 for ac_prog in cl.exe 3332 do 3333 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3334set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3336printf %s "checking for $ac_word... " >&6; } 3337if test ${ac_cv_prog_CC+y} 3338then : 3339 printf %s "(cached) " >&6 3340else case e in #( 3341 e) if test -n "$CC"; then 3342 ac_cv_prog_CC="$CC" # Let the user override the test. 3343else 3344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3345for as_dir in $PATH 3346do 3347 IFS=$as_save_IFS 3348 case $as_dir in #((( 3349 '') as_dir=./ ;; 3350 */) ;; 3351 *) as_dir=$as_dir/ ;; 3352 esac 3353 for ac_exec_ext in '' $ac_executable_extensions; do 3354 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3355 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3356 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3357 break 2 3358 fi 3359done 3360 done 3361IFS=$as_save_IFS 3362 3363fi ;; 3364esac 3365fi 3366CC=$ac_cv_prog_CC 3367if test -n "$CC"; then 3368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3369printf "%s\n" "$CC" >&6; } 3370else 3371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3372printf "%s\n" "no" >&6; } 3373fi 3374 3375 3376 test -n "$CC" && break 3377 done 3378fi 3379if test -z "$CC"; then 3380 ac_ct_CC=$CC 3381 for ac_prog in cl.exe 3382do 3383 # Extract the first word of "$ac_prog", so it can be a program name with args. 3384set dummy $ac_prog; ac_word=$2 3385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3386printf %s "checking for $ac_word... " >&6; } 3387if test ${ac_cv_prog_ac_ct_CC+y} 3388then : 3389 printf %s "(cached) " >&6 3390else case e in #( 3391 e) if test -n "$ac_ct_CC"; then 3392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3393else 3394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3395for as_dir in $PATH 3396do 3397 IFS=$as_save_IFS 3398 case $as_dir in #((( 3399 '') as_dir=./ ;; 3400 */) ;; 3401 *) as_dir=$as_dir/ ;; 3402 esac 3403 for ac_exec_ext in '' $ac_executable_extensions; do 3404 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3405 ac_cv_prog_ac_ct_CC="$ac_prog" 3406 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3407 break 2 3408 fi 3409done 3410 done 3411IFS=$as_save_IFS 3412 3413fi ;; 3414esac 3415fi 3416ac_ct_CC=$ac_cv_prog_ac_ct_CC 3417if test -n "$ac_ct_CC"; then 3418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3419printf "%s\n" "$ac_ct_CC" >&6; } 3420else 3421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3422printf "%s\n" "no" >&6; } 3423fi 3424 3425 3426 test -n "$ac_ct_CC" && break 3427done 3428 3429 if test "x$ac_ct_CC" = x; then 3430 CC="" 3431 else 3432 case $cross_compiling:$ac_tool_warned in 3433yes:) 3434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3435printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3436ac_tool_warned=yes ;; 3437esac 3438 CC=$ac_ct_CC 3439 fi 3440fi 3441 3442fi 3443if test -z "$CC"; then 3444 if test -n "$ac_tool_prefix"; then 3445 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3446set dummy ${ac_tool_prefix}clang; ac_word=$2 3447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3448printf %s "checking for $ac_word... " >&6; } 3449if test ${ac_cv_prog_CC+y} 3450then : 3451 printf %s "(cached) " >&6 3452else case e in #( 3453 e) if test -n "$CC"; then 3454 ac_cv_prog_CC="$CC" # Let the user override the test. 3455else 3456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3457for as_dir in $PATH 3458do 3459 IFS=$as_save_IFS 3460 case $as_dir in #((( 3461 '') as_dir=./ ;; 3462 */) ;; 3463 *) as_dir=$as_dir/ ;; 3464 esac 3465 for ac_exec_ext in '' $ac_executable_extensions; do 3466 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3467 ac_cv_prog_CC="${ac_tool_prefix}clang" 3468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3469 break 2 3470 fi 3471done 3472 done 3473IFS=$as_save_IFS 3474 3475fi ;; 3476esac 3477fi 3478CC=$ac_cv_prog_CC 3479if test -n "$CC"; then 3480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3481printf "%s\n" "$CC" >&6; } 3482else 3483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3484printf "%s\n" "no" >&6; } 3485fi 3486 3487 3488fi 3489if test -z "$ac_cv_prog_CC"; then 3490 ac_ct_CC=$CC 3491 # Extract the first word of "clang", so it can be a program name with args. 3492set dummy clang; ac_word=$2 3493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3494printf %s "checking for $ac_word... " >&6; } 3495if test ${ac_cv_prog_ac_ct_CC+y} 3496then : 3497 printf %s "(cached) " >&6 3498else case e in #( 3499 e) if test -n "$ac_ct_CC"; then 3500 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3501else 3502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3503for as_dir in $PATH 3504do 3505 IFS=$as_save_IFS 3506 case $as_dir in #((( 3507 '') as_dir=./ ;; 3508 */) ;; 3509 *) as_dir=$as_dir/ ;; 3510 esac 3511 for ac_exec_ext in '' $ac_executable_extensions; do 3512 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3513 ac_cv_prog_ac_ct_CC="clang" 3514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3515 break 2 3516 fi 3517done 3518 done 3519IFS=$as_save_IFS 3520 3521fi ;; 3522esac 3523fi 3524ac_ct_CC=$ac_cv_prog_ac_ct_CC 3525if test -n "$ac_ct_CC"; then 3526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3527printf "%s\n" "$ac_ct_CC" >&6; } 3528else 3529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3530printf "%s\n" "no" >&6; } 3531fi 3532 3533 if test "x$ac_ct_CC" = x; then 3534 CC="" 3535 else 3536 case $cross_compiling:$ac_tool_warned in 3537yes:) 3538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3539printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3540ac_tool_warned=yes ;; 3541esac 3542 CC=$ac_ct_CC 3543 fi 3544else 3545 CC="$ac_cv_prog_CC" 3546fi 3547 3548fi 3549 3550 3551test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3552printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3553as_fn_error $? "no acceptable C compiler found in \$PATH 3554See 'config.log' for more details" "$LINENO" 5; } 3555 3556# Provide some information about the compiler. 3557printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3558set X $ac_compile 3559ac_compiler=$2 3560for ac_option in --version -v -V -qversion -version; do 3561 { { ac_try="$ac_compiler $ac_option >&5" 3562case "(($ac_try" in 3563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3564 *) ac_try_echo=$ac_try;; 3565esac 3566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3567printf "%s\n" "$ac_try_echo"; } >&5 3568 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3569 ac_status=$? 3570 if test -s conftest.err; then 3571 sed '10a\ 3572... rest of stderr output deleted ... 3573 10q' conftest.err >conftest.er1 3574 cat conftest.er1 >&5 3575 fi 3576 rm -f conftest.er1 conftest.err 3577 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3578 test $ac_status = 0; } 3579done 3580 3581cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3582/* end confdefs.h. */ 3583 3584int 3585main (void) 3586{ 3587 3588 ; 3589 return 0; 3590} 3591_ACEOF 3592ac_clean_files_save=$ac_clean_files 3593ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3594# Try to create an executable without -o first, disregard a.out. 3595# It will help us diagnose broken compilers, and finding out an intuition 3596# of exeext. 3597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3598printf %s "checking whether the C compiler works... " >&6; } 3599ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3600 3601# The possible output files: 3602ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3603 3604ac_rmfiles= 3605for ac_file in $ac_files 3606do 3607 case $ac_file in 3608 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3609 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3610 esac 3611done 3612rm -f $ac_rmfiles 3613 3614if { { ac_try="$ac_link_default" 3615case "(($ac_try" in 3616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3617 *) ac_try_echo=$ac_try;; 3618esac 3619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3620printf "%s\n" "$ac_try_echo"; } >&5 3621 (eval "$ac_link_default") 2>&5 3622 ac_status=$? 3623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3624 test $ac_status = 0; } 3625then : 3626 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3627# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3628# in a Makefile. We should not override ac_cv_exeext if it was cached, 3629# so that the user can short-circuit this test for compilers unknown to 3630# Autoconf. 3631for ac_file in $ac_files '' 3632do 3633 test -f "$ac_file" || continue 3634 case $ac_file in 3635 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3636 ;; 3637 [ab].out ) 3638 # We found the default executable, but exeext='' is most 3639 # certainly right. 3640 break;; 3641 *.* ) 3642 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3643 then :; else 3644 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3645 fi 3646 # We set ac_cv_exeext here because the later test for it is not 3647 # safe: cross compilers may not add the suffix if given an '-o' 3648 # argument, so we may need to know it at that point already. 3649 # Even if this section looks crufty: it has the advantage of 3650 # actually working. 3651 break;; 3652 * ) 3653 break;; 3654 esac 3655done 3656test "$ac_cv_exeext" = no && ac_cv_exeext= 3657 3658else case e in #( 3659 e) ac_file='' ;; 3660esac 3661fi 3662if test -z "$ac_file" 3663then : 3664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3665printf "%s\n" "no" >&6; } 3666printf "%s\n" "$as_me: failed program was:" >&5 3667sed 's/^/| /' conftest.$ac_ext >&5 3668 3669{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3670printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3671as_fn_error 77 "C compiler cannot create executables 3672See 'config.log' for more details" "$LINENO" 5; } 3673else case e in #( 3674 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3675printf "%s\n" "yes" >&6; } ;; 3676esac 3677fi 3678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3679printf %s "checking for C compiler default output file name... " >&6; } 3680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3681printf "%s\n" "$ac_file" >&6; } 3682ac_exeext=$ac_cv_exeext 3683 3684rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3685ac_clean_files=$ac_clean_files_save 3686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3687printf %s "checking for suffix of executables... " >&6; } 3688if { { ac_try="$ac_link" 3689case "(($ac_try" in 3690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3691 *) ac_try_echo=$ac_try;; 3692esac 3693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3694printf "%s\n" "$ac_try_echo"; } >&5 3695 (eval "$ac_link") 2>&5 3696 ac_status=$? 3697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3698 test $ac_status = 0; } 3699then : 3700 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3701# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3702# work properly (i.e., refer to 'conftest.exe'), while it won't with 3703# 'rm'. 3704for ac_file in conftest.exe conftest conftest.*; do 3705 test -f "$ac_file" || continue 3706 case $ac_file in 3707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3708 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3709 break;; 3710 * ) break;; 3711 esac 3712done 3713else case e in #( 3714 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3715printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3716as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3717See 'config.log' for more details" "$LINENO" 5; } ;; 3718esac 3719fi 3720rm -f conftest conftest$ac_cv_exeext 3721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3722printf "%s\n" "$ac_cv_exeext" >&6; } 3723 3724rm -f conftest.$ac_ext 3725EXEEXT=$ac_cv_exeext 3726ac_exeext=$EXEEXT 3727cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3728/* end confdefs.h. */ 3729#include <stdio.h> 3730int 3731main (void) 3732{ 3733FILE *f = fopen ("conftest.out", "w"); 3734 if (!f) 3735 return 1; 3736 return ferror (f) || fclose (f) != 0; 3737 3738 ; 3739 return 0; 3740} 3741_ACEOF 3742ac_clean_files="$ac_clean_files conftest.out" 3743# Check that the compiler produces executables we can run. If not, either 3744# the compiler is broken, or we cross compile. 3745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3746printf %s "checking whether we are cross compiling... " >&6; } 3747if test "$cross_compiling" != yes; then 3748 { { ac_try="$ac_link" 3749case "(($ac_try" in 3750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3751 *) ac_try_echo=$ac_try;; 3752esac 3753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3754printf "%s\n" "$ac_try_echo"; } >&5 3755 (eval "$ac_link") 2>&5 3756 ac_status=$? 3757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3758 test $ac_status = 0; } 3759 if { ac_try='./conftest$ac_cv_exeext' 3760 { { case "(($ac_try" in 3761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3762 *) ac_try_echo=$ac_try;; 3763esac 3764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3765printf "%s\n" "$ac_try_echo"; } >&5 3766 (eval "$ac_try") 2>&5 3767 ac_status=$? 3768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3769 test $ac_status = 0; }; }; then 3770 cross_compiling=no 3771 else 3772 if test "$cross_compiling" = maybe; then 3773 cross_compiling=yes 3774 else 3775 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3776printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3777as_fn_error 77 "cannot run C compiled programs. 3778If you meant to cross compile, use '--host'. 3779See 'config.log' for more details" "$LINENO" 5; } 3780 fi 3781 fi 3782fi 3783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3784printf "%s\n" "$cross_compiling" >&6; } 3785 3786rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 3787 conftest.o conftest.obj conftest.out 3788ac_clean_files=$ac_clean_files_save 3789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3790printf %s "checking for suffix of object files... " >&6; } 3791if test ${ac_cv_objext+y} 3792then : 3793 printf %s "(cached) " >&6 3794else case e in #( 3795 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3796/* end confdefs.h. */ 3797 3798int 3799main (void) 3800{ 3801 3802 ; 3803 return 0; 3804} 3805_ACEOF 3806rm -f conftest.o conftest.obj 3807if { { ac_try="$ac_compile" 3808case "(($ac_try" in 3809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3810 *) ac_try_echo=$ac_try;; 3811esac 3812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3813printf "%s\n" "$ac_try_echo"; } >&5 3814 (eval "$ac_compile") 2>&5 3815 ac_status=$? 3816 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3817 test $ac_status = 0; } 3818then : 3819 for ac_file in conftest.o conftest.obj conftest.*; do 3820 test -f "$ac_file" || continue; 3821 case $ac_file in 3822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3823 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3824 break;; 3825 esac 3826done 3827else case e in #( 3828 e) printf "%s\n" "$as_me: failed program was:" >&5 3829sed 's/^/| /' conftest.$ac_ext >&5 3830 3831{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3832printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3833as_fn_error $? "cannot compute suffix of object files: cannot compile 3834See 'config.log' for more details" "$LINENO" 5; } ;; 3835esac 3836fi 3837rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 3838esac 3839fi 3840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3841printf "%s\n" "$ac_cv_objext" >&6; } 3842OBJEXT=$ac_cv_objext 3843ac_objext=$OBJEXT 3844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3845printf %s "checking whether the compiler supports GNU C... " >&6; } 3846if test ${ac_cv_c_compiler_gnu+y} 3847then : 3848 printf %s "(cached) " >&6 3849else case e in #( 3850 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3851/* end confdefs.h. */ 3852 3853int 3854main (void) 3855{ 3856#ifndef __GNUC__ 3857 choke me 3858#endif 3859 3860 ; 3861 return 0; 3862} 3863_ACEOF 3864if ac_fn_c_try_compile "$LINENO" 3865then : 3866 ac_compiler_gnu=yes 3867else case e in #( 3868 e) ac_compiler_gnu=no ;; 3869esac 3870fi 3871rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3872ac_cv_c_compiler_gnu=$ac_compiler_gnu 3873 ;; 3874esac 3875fi 3876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3877printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3878ac_compiler_gnu=$ac_cv_c_compiler_gnu 3879 3880if test $ac_compiler_gnu = yes; then 3881 GCC=yes 3882else 3883 GCC= 3884fi 3885ac_test_CFLAGS=${CFLAGS+y} 3886ac_save_CFLAGS=$CFLAGS 3887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3888printf %s "checking whether $CC accepts -g... " >&6; } 3889if test ${ac_cv_prog_cc_g+y} 3890then : 3891 printf %s "(cached) " >&6 3892else case e in #( 3893 e) ac_save_c_werror_flag=$ac_c_werror_flag 3894 ac_c_werror_flag=yes 3895 ac_cv_prog_cc_g=no 3896 CFLAGS="-g" 3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3898/* end confdefs.h. */ 3899 3900int 3901main (void) 3902{ 3903 3904 ; 3905 return 0; 3906} 3907_ACEOF 3908if ac_fn_c_try_compile "$LINENO" 3909then : 3910 ac_cv_prog_cc_g=yes 3911else case e in #( 3912 e) CFLAGS="" 3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3914/* end confdefs.h. */ 3915 3916int 3917main (void) 3918{ 3919 3920 ; 3921 return 0; 3922} 3923_ACEOF 3924if ac_fn_c_try_compile "$LINENO" 3925then : 3926 3927else case e in #( 3928 e) ac_c_werror_flag=$ac_save_c_werror_flag 3929 CFLAGS="-g" 3930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3931/* end confdefs.h. */ 3932 3933int 3934main (void) 3935{ 3936 3937 ; 3938 return 0; 3939} 3940_ACEOF 3941if ac_fn_c_try_compile "$LINENO" 3942then : 3943 ac_cv_prog_cc_g=yes 3944fi 3945rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3946esac 3947fi 3948rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3949esac 3950fi 3951rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3952 ac_c_werror_flag=$ac_save_c_werror_flag ;; 3953esac 3954fi 3955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3956printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3957if test $ac_test_CFLAGS; then 3958 CFLAGS=$ac_save_CFLAGS 3959elif test $ac_cv_prog_cc_g = yes; then 3960 if test "$GCC" = yes; then 3961 CFLAGS="-g -O2" 3962 else 3963 CFLAGS="-g" 3964 fi 3965else 3966 if test "$GCC" = yes; then 3967 CFLAGS="-O2" 3968 else 3969 CFLAGS= 3970 fi 3971fi 3972ac_prog_cc_stdc=no 3973if test x$ac_prog_cc_stdc = xno 3974then : 3975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3976printf %s "checking for $CC option to enable C11 features... " >&6; } 3977if test ${ac_cv_prog_cc_c11+y} 3978then : 3979 printf %s "(cached) " >&6 3980else case e in #( 3981 e) ac_cv_prog_cc_c11=no 3982ac_save_CC=$CC 3983cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3984/* end confdefs.h. */ 3985$ac_c_conftest_c11_program 3986_ACEOF 3987for ac_arg in '' -std=gnu11 3988do 3989 CC="$ac_save_CC $ac_arg" 3990 if ac_fn_c_try_compile "$LINENO" 3991then : 3992 ac_cv_prog_cc_c11=$ac_arg 3993fi 3994rm -f core conftest.err conftest.$ac_objext conftest.beam 3995 test "x$ac_cv_prog_cc_c11" != "xno" && break 3996done 3997rm -f conftest.$ac_ext 3998CC=$ac_save_CC ;; 3999esac 4000fi 4001 4002if test "x$ac_cv_prog_cc_c11" = xno 4003then : 4004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4005printf "%s\n" "unsupported" >&6; } 4006else case e in #( 4007 e) if test "x$ac_cv_prog_cc_c11" = x 4008then : 4009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4010printf "%s\n" "none needed" >&6; } 4011else case e in #( 4012 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4013printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4014 CC="$CC $ac_cv_prog_cc_c11" ;; 4015esac 4016fi 4017 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4018 ac_prog_cc_stdc=c11 ;; 4019esac 4020fi 4021fi 4022if test x$ac_prog_cc_stdc = xno 4023then : 4024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4025printf %s "checking for $CC option to enable C99 features... " >&6; } 4026if test ${ac_cv_prog_cc_c99+y} 4027then : 4028 printf %s "(cached) " >&6 4029else case e in #( 4030 e) ac_cv_prog_cc_c99=no 4031ac_save_CC=$CC 4032cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4033/* end confdefs.h. */ 4034$ac_c_conftest_c99_program 4035_ACEOF 4036for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4037do 4038 CC="$ac_save_CC $ac_arg" 4039 if ac_fn_c_try_compile "$LINENO" 4040then : 4041 ac_cv_prog_cc_c99=$ac_arg 4042fi 4043rm -f core conftest.err conftest.$ac_objext conftest.beam 4044 test "x$ac_cv_prog_cc_c99" != "xno" && break 4045done 4046rm -f conftest.$ac_ext 4047CC=$ac_save_CC ;; 4048esac 4049fi 4050 4051if test "x$ac_cv_prog_cc_c99" = xno 4052then : 4053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4054printf "%s\n" "unsupported" >&6; } 4055else case e in #( 4056 e) if test "x$ac_cv_prog_cc_c99" = x 4057then : 4058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4059printf "%s\n" "none needed" >&6; } 4060else case e in #( 4061 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4062printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4063 CC="$CC $ac_cv_prog_cc_c99" ;; 4064esac 4065fi 4066 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4067 ac_prog_cc_stdc=c99 ;; 4068esac 4069fi 4070fi 4071if test x$ac_prog_cc_stdc = xno 4072then : 4073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4074printf %s "checking for $CC option to enable C89 features... " >&6; } 4075if test ${ac_cv_prog_cc_c89+y} 4076then : 4077 printf %s "(cached) " >&6 4078else case e in #( 4079 e) ac_cv_prog_cc_c89=no 4080ac_save_CC=$CC 4081cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4082/* end confdefs.h. */ 4083$ac_c_conftest_c89_program 4084_ACEOF 4085for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4086do 4087 CC="$ac_save_CC $ac_arg" 4088 if ac_fn_c_try_compile "$LINENO" 4089then : 4090 ac_cv_prog_cc_c89=$ac_arg 4091fi 4092rm -f core conftest.err conftest.$ac_objext conftest.beam 4093 test "x$ac_cv_prog_cc_c89" != "xno" && break 4094done 4095rm -f conftest.$ac_ext 4096CC=$ac_save_CC ;; 4097esac 4098fi 4099 4100if test "x$ac_cv_prog_cc_c89" = xno 4101then : 4102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4103printf "%s\n" "unsupported" >&6; } 4104else case e in #( 4105 e) if test "x$ac_cv_prog_cc_c89" = x 4106then : 4107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4108printf "%s\n" "none needed" >&6; } 4109else case e in #( 4110 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4111printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4112 CC="$CC $ac_cv_prog_cc_c89" ;; 4113esac 4114fi 4115 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4116 ac_prog_cc_stdc=c89 ;; 4117esac 4118fi 4119fi 4120 4121ac_ext=c 4122ac_cpp='$CPP $CPPFLAGS' 4123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4125ac_compiler_gnu=$ac_cv_c_compiler_gnu 4126 4127 4128 ac_ext=c 4129ac_cpp='$CPP $CPPFLAGS' 4130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4132ac_compiler_gnu=$ac_cv_c_compiler_gnu 4133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4134printf %s "checking whether $CC understands -c and -o together... " >&6; } 4135if test ${am_cv_prog_cc_c_o+y} 4136then : 4137 printf %s "(cached) " >&6 4138else case e in #( 4139 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4140/* end confdefs.h. */ 4141 4142int 4143main (void) 4144{ 4145 4146 ; 4147 return 0; 4148} 4149_ACEOF 4150 # Make sure it works both with $CC and with simple cc. 4151 # Following AC_PROG_CC_C_O, we do the test twice because some 4152 # compilers refuse to overwrite an existing .o file with -o, 4153 # though they will create one. 4154 am_cv_prog_cc_c_o=yes 4155 for am_i in 1 2; do 4156 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4157 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4158 ac_status=$? 4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4160 (exit $ac_status); } \ 4161 && test -f conftest2.$ac_objext; then 4162 : OK 4163 else 4164 am_cv_prog_cc_c_o=no 4165 break 4166 fi 4167 done 4168 rm -f core conftest* 4169 unset am_i ;; 4170esac 4171fi 4172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4173printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4174if test "$am_cv_prog_cc_c_o" != yes; then 4175 # Losing compiler, so override with the script. 4176 # FIXME: It is wrong to rewrite CC. 4177 # But if we don't then we get into trouble of one sort or another. 4178 # A longer-term fix would be to have automake use am__CC in this case, 4179 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4180 CC="$am_aux_dir/compile $CC" 4181fi 4182ac_ext=c 4183ac_cpp='$CPP $CPPFLAGS' 4184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4186ac_compiler_gnu=$ac_cv_c_compiler_gnu 4187 4188 4189 4190ac_header= ac_cache= 4191for ac_item in $ac_header_c_list 4192do 4193 if test $ac_cache; then 4194 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4195 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4196 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4197 fi 4198 ac_header= ac_cache= 4199 elif test $ac_header; then 4200 ac_cache=$ac_item 4201 else 4202 ac_header=$ac_item 4203 fi 4204done 4205 4206 4207 4208 4209 4210 4211 4212 4213if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4214then : 4215 4216printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4217 4218fi 4219 4220 4221 4222 4223 4224 4225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4226printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4227if test ${ac_cv_safe_to_define___extensions__+y} 4228then : 4229 printf %s "(cached) " >&6 4230else case e in #( 4231 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4232/* end confdefs.h. */ 4233 4234# define __EXTENSIONS__ 1 4235 $ac_includes_default 4236int 4237main (void) 4238{ 4239 4240 ; 4241 return 0; 4242} 4243_ACEOF 4244if ac_fn_c_try_compile "$LINENO" 4245then : 4246 ac_cv_safe_to_define___extensions__=yes 4247else case e in #( 4248 e) ac_cv_safe_to_define___extensions__=no ;; 4249esac 4250fi 4251rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4252esac 4253fi 4254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4255printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 4256 4257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 4258printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 4259if test ${ac_cv_should_define__xopen_source+y} 4260then : 4261 printf %s "(cached) " >&6 4262else case e in #( 4263 e) ac_cv_should_define__xopen_source=no 4264 if test $ac_cv_header_wchar_h = yes 4265then : 4266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4267/* end confdefs.h. */ 4268 4269 #include <wchar.h> 4270 mbstate_t x; 4271int 4272main (void) 4273{ 4274 4275 ; 4276 return 0; 4277} 4278_ACEOF 4279if ac_fn_c_try_compile "$LINENO" 4280then : 4281 4282else case e in #( 4283 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4284/* end confdefs.h. */ 4285 4286 #define _XOPEN_SOURCE 500 4287 #include <wchar.h> 4288 mbstate_t x; 4289int 4290main (void) 4291{ 4292 4293 ; 4294 return 0; 4295} 4296_ACEOF 4297if ac_fn_c_try_compile "$LINENO" 4298then : 4299 ac_cv_should_define__xopen_source=yes 4300fi 4301rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4302esac 4303fi 4304rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4305fi ;; 4306esac 4307fi 4308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 4309printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 4310 4311 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 4312 4313 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 4314 4315 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 4316 4317 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 4318 4319 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 4320 4321 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 4322 4323 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4324 4325 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 4326 4327 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 4328 4329 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 4330 4331 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h 4332 4333 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 4334 4335 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 4336 4337 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 4338 4339 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 4340 4341 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 4342 4343 if test $ac_cv_header_minix_config_h = yes 4344then : 4345 MINIX=yes 4346 printf "%s\n" "#define _MINIX 1" >>confdefs.h 4347 4348 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 4349 4350 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 4351 4352else case e in #( 4353 e) MINIX= ;; 4354esac 4355fi 4356 if test $ac_cv_safe_to_define___extensions__ = yes 4357then : 4358 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 4359 4360fi 4361 if test $ac_cv_should_define__xopen_source = yes 4362then : 4363 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 4364 4365fi 4366 4367 4368 4369ac_config_headers="$ac_config_headers config.h" 4370 4371 4372# Initialize Automake 4373am__api_version='1.17' 4374 4375 4376 # Find a good install program. We prefer a C program (faster), 4377# so one script is as good as another. But avoid the broken or 4378# incompatible versions: 4379# SysV /etc/install, /usr/sbin/install 4380# SunOS /usr/etc/install 4381# IRIX /sbin/install 4382# AIX /bin/install 4383# AmigaOS /C/install, which installs bootblocks on floppy discs 4384# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4385# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4386# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4387# OS/2's system install, which has a completely different semantic 4388# ./install, which can be erroneously created by make from ./install.sh. 4389# Reject install programs that cannot install multiple files. 4390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4391printf %s "checking for a BSD-compatible install... " >&6; } 4392if test -z "$INSTALL"; then 4393if test ${ac_cv_path_install+y} 4394then : 4395 printf %s "(cached) " >&6 4396else case e in #( 4397 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4398for as_dir in $PATH 4399do 4400 IFS=$as_save_IFS 4401 case $as_dir in #((( 4402 '') as_dir=./ ;; 4403 */) ;; 4404 *) as_dir=$as_dir/ ;; 4405 esac 4406 # Account for fact that we put trailing slashes in our PATH walk. 4407case $as_dir in #(( 4408 ./ | /[cC]/* | \ 4409 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4410 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4411 /usr/ucb/* ) ;; 4412 *) 4413 # OSF1 and SCO ODT 3.0 have their own names for install. 4414 # Don't use installbsd from OSF since it installs stuff as root 4415 # by default. 4416 for ac_prog in ginstall scoinst install; do 4417 for ac_exec_ext in '' $ac_executable_extensions; do 4418 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 4419 if test $ac_prog = install && 4420 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4421 # AIX install. It has an incompatible calling convention. 4422 : 4423 elif test $ac_prog = install && 4424 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4425 # program-specific install script used by HP pwplus--don't use. 4426 : 4427 else 4428 rm -rf conftest.one conftest.two conftest.dir 4429 echo one > conftest.one 4430 echo two > conftest.two 4431 mkdir conftest.dir 4432 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 4433 test -s conftest.one && test -s conftest.two && 4434 test -s conftest.dir/conftest.one && 4435 test -s conftest.dir/conftest.two 4436 then 4437 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 4438 break 3 4439 fi 4440 fi 4441 fi 4442 done 4443 done 4444 ;; 4445esac 4446 4447 done 4448IFS=$as_save_IFS 4449 4450rm -rf conftest.one conftest.two conftest.dir 4451 ;; 4452esac 4453fi 4454 if test ${ac_cv_path_install+y}; then 4455 INSTALL=$ac_cv_path_install 4456 else 4457 # As a last resort, use the slow shell script. Don't cache a 4458 # value for INSTALL within a source directory, because that will 4459 # break other packages using the cache if that directory is 4460 # removed, or if the value is a relative name. 4461 INSTALL=$ac_install_sh 4462 fi 4463fi 4464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4465printf "%s\n" "$INSTALL" >&6; } 4466 4467# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4468# It thinks the first close brace ends the variable substitution. 4469test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4470 4471test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4472 4473test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4474 4475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 4476printf %s "checking whether sleep supports fractional seconds... " >&6; } 4477if test ${am_cv_sleep_fractional_seconds+y} 4478then : 4479 printf %s "(cached) " >&6 4480else case e in #( 4481 e) if sleep 0.001 2>/dev/null 4482then : 4483 am_cv_sleep_fractional_seconds=yes 4484else case e in #( 4485 e) am_cv_sleep_fractional_seconds=no ;; 4486esac 4487fi 4488 ;; 4489esac 4490fi 4491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 4492printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 4493 4494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 4495printf %s "checking filesystem timestamp resolution... " >&6; } 4496if test ${am_cv_filesystem_timestamp_resolution+y} 4497then : 4498 printf %s "(cached) " >&6 4499else case e in #( 4500 e) # Default to the worst case. 4501am_cv_filesystem_timestamp_resolution=2 4502 4503# Only try to go finer than 1 sec if sleep can do it. 4504# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 4505# - 1 sec is not much of a win compared to 2 sec, and 4506# - it takes 2 seconds to perform the test whether 1 sec works. 4507# 4508# Instead, just use the default 2s on platforms that have 1s resolution, 4509# accept the extra 1s delay when using $sleep in the Automake tests, in 4510# exchange for not incurring the 2s delay for running the test for all 4511# packages. 4512# 4513am_try_resolutions= 4514if test "$am_cv_sleep_fractional_seconds" = yes; then 4515 # Even a millisecond often causes a bunch of false positives, 4516 # so just try a hundredth of a second. The time saved between .001 and 4517 # .01 is not terribly consequential. 4518 am_try_resolutions="0.01 0.1 $am_try_resolutions" 4519fi 4520 4521# In order to catch current-generation FAT out, we must *modify* files 4522# that already exist; the *creation* timestamp is finer. Use names 4523# that make ls -t sort them differently when they have equal 4524# timestamps than when they have distinct timestamps, keeping 4525# in mind that ls -t prints the *newest* file first. 4526rm -f conftest.ts? 4527: > conftest.ts1 4528: > conftest.ts2 4529: > conftest.ts3 4530 4531# Make sure ls -t actually works. Do 'set' in a subshell so we don't 4532# clobber the current shell's arguments. (Outer-level square brackets 4533# are removed by m4; they're present so that m4 does not expand 4534# <dollar><star>; be careful, easy to get confused.) 4535if ( 4536 set X `ls -t conftest.ts[12]` && 4537 { 4538 test "$*" != "X conftest.ts1 conftest.ts2" || 4539 test "$*" != "X conftest.ts2 conftest.ts1"; 4540 } 4541); then :; else 4542 # If neither matched, then we have a broken ls. This can happen 4543 # if, for instance, CONFIG_SHELL is bash and it inherits a 4544 # broken ls alias from the environment. This has actually 4545 # happened. Such a system could not be considered "sane". 4546 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 4547 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4548printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4549as_fn_error $? "ls -t produces unexpected output. 4550Make sure there is not a broken ls alias in your environment. 4551See 'config.log' for more details" "$LINENO" 5; } 4552fi 4553 4554for am_try_res in $am_try_resolutions; do 4555 # Any one fine-grained sleep might happen to cross the boundary 4556 # between two values of a coarser actual resolution, but if we do 4557 # two fine-grained sleeps in a row, at least one of them will fall 4558 # entirely within a coarse interval. 4559 echo alpha > conftest.ts1 4560 sleep $am_try_res 4561 echo beta > conftest.ts2 4562 sleep $am_try_res 4563 echo gamma > conftest.ts3 4564 4565 # We assume that 'ls -t' will make use of high-resolution 4566 # timestamps if the operating system supports them at all. 4567 if (set X `ls -t conftest.ts?` && 4568 test "$2" = conftest.ts3 && 4569 test "$3" = conftest.ts2 && 4570 test "$4" = conftest.ts1); then 4571 # 4572 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 4573 # because we don't need to test make. 4574 make_ok=true 4575 if test $am_try_res != 1; then 4576 # But if we've succeeded so far with a subsecond resolution, we 4577 # have one more thing to check: make. It can happen that 4578 # everything else supports the subsecond mtimes, but make doesn't; 4579 # notably on macOS, which ships make 3.81 from 2006 (the last one 4580 # released under GPLv2). https://bugs.gnu.org/68808 4581 # 4582 # We test $MAKE if it is defined in the environment, else "make". 4583 # It might get overridden later, but our hope is that in practice 4584 # it does not matter: it is the system "make" which is (by far) 4585 # the most likely to be broken, whereas if the user overrides it, 4586 # probably they did so with a better, or at least not worse, make. 4587 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 4588 # 4589 # Create a Makefile (real tab character here): 4590 rm -f conftest.mk 4591 echo 'conftest.ts1: conftest.ts2' >conftest.mk 4592 echo ' touch conftest.ts2' >>conftest.mk 4593 # 4594 # Now, running 4595 # touch conftest.ts1; touch conftest.ts2; make 4596 # should touch ts1 because ts2 is newer. This could happen by luck, 4597 # but most often, it will fail if make's support is insufficient. So 4598 # test for several consecutive successes. 4599 # 4600 # (We reuse conftest.ts[12] because we still want to modify existing 4601 # files, not create new ones, per above.) 4602 n=0 4603 make=${MAKE-make} 4604 until test $n -eq 3; do 4605 echo one > conftest.ts1 4606 sleep $am_try_res 4607 echo two > conftest.ts2 # ts2 should now be newer than ts1 4608 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 4609 make_ok=false 4610 break # out of $n loop 4611 fi 4612 n=`expr $n + 1` 4613 done 4614 fi 4615 # 4616 if $make_ok; then 4617 # Everything we know to check worked out, so call this resolution good. 4618 am_cv_filesystem_timestamp_resolution=$am_try_res 4619 break # out of $am_try_res loop 4620 fi 4621 # Otherwise, we'll go on to check the next resolution. 4622 fi 4623done 4624rm -f conftest.ts? 4625# (end _am_filesystem_timestamp_resolution) 4626 ;; 4627esac 4628fi 4629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 4630printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 4631 4632# This check should not be cached, as it may vary across builds of 4633# different projects. 4634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4635printf %s "checking whether build environment is sane... " >&6; } 4636# Reject unsafe characters in $srcdir or the absolute working directory 4637# name. Accept space and tab only in the latter. 4638am_lf=' 4639' 4640case `pwd` in 4641 *[\\\"\#\$\&\'\`$am_lf]*) 4642 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4643esac 4644case $srcdir in 4645 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4646 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4647esac 4648 4649# Do 'set' in a subshell so we don't clobber the current shell's 4650# arguments. Must try -L first in case configure is actually a 4651# symlink; some systems play weird games with the mod time of symlinks 4652# (eg FreeBSD returns the mod time of the symlink's containing 4653# directory). 4654am_build_env_is_sane=no 4655am_has_slept=no 4656rm -f conftest.file 4657for am_try in 1 2; do 4658 echo "timestamp, slept: $am_has_slept" > conftest.file 4659 if ( 4660 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4661 if test "$*" = "X"; then 4662 # -L didn't work. 4663 set X `ls -t "$srcdir/configure" conftest.file` 4664 fi 4665 test "$2" = conftest.file 4666 ); then 4667 am_build_env_is_sane=yes 4668 break 4669 fi 4670 # Just in case. 4671 sleep "$am_cv_filesystem_timestamp_resolution" 4672 am_has_slept=yes 4673done 4674 4675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 4676printf "%s\n" "$am_build_env_is_sane" >&6; } 4677if test "$am_build_env_is_sane" = no; then 4678 as_fn_error $? "newly created file is older than distributed files! 4679Check your system clock" "$LINENO" 5 4680fi 4681 4682# If we didn't sleep, we still need to ensure time stamps of config.status and 4683# generated files are strictly newer. 4684am_sleep_pid= 4685if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 4686then : 4687 4688else case e in #( 4689 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 4690 am_sleep_pid=$! 4691 ;; 4692esac 4693fi 4694 4695rm -f conftest.file 4696 4697test "$program_prefix" != NONE && 4698 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4699# Use a double $ so make ignores it. 4700test "$program_suffix" != NONE && 4701 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4702# Double any \ or $. 4703# By default was 's,x,x', remove it if useless. 4704ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4705program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 4706 4707 4708 if test x"${MISSING+set}" != xset; then 4709 MISSING="\${SHELL} '$am_aux_dir/missing'" 4710fi 4711# Use eval to expand $SHELL 4712if eval "$MISSING --is-lightweight"; then 4713 am_missing_run="$MISSING " 4714else 4715 am_missing_run= 4716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4717printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4718fi 4719 4720if test x"${install_sh+set}" != xset; then 4721 case $am_aux_dir in 4722 *\ * | *\ *) 4723 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4724 *) 4725 install_sh="\${SHELL} $am_aux_dir/install-sh" 4726 esac 4727fi 4728 4729# Installed binaries are usually stripped using 'strip' when the user 4730# run "make install-strip". However 'strip' might not be the right 4731# tool to use in cross-compilation environments, therefore Automake 4732# will honor the 'STRIP' environment variable to overrule this program. 4733if test "$cross_compiling" != no; then 4734 if test -n "$ac_tool_prefix"; then 4735 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4736set dummy ${ac_tool_prefix}strip; ac_word=$2 4737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4738printf %s "checking for $ac_word... " >&6; } 4739if test ${ac_cv_prog_STRIP+y} 4740then : 4741 printf %s "(cached) " >&6 4742else case e in #( 4743 e) if test -n "$STRIP"; then 4744 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4745else 4746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4747for as_dir in $PATH 4748do 4749 IFS=$as_save_IFS 4750 case $as_dir in #((( 4751 '') as_dir=./ ;; 4752 */) ;; 4753 *) as_dir=$as_dir/ ;; 4754 esac 4755 for ac_exec_ext in '' $ac_executable_extensions; do 4756 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4757 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4759 break 2 4760 fi 4761done 4762 done 4763IFS=$as_save_IFS 4764 4765fi ;; 4766esac 4767fi 4768STRIP=$ac_cv_prog_STRIP 4769if test -n "$STRIP"; then 4770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4771printf "%s\n" "$STRIP" >&6; } 4772else 4773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4774printf "%s\n" "no" >&6; } 4775fi 4776 4777 4778fi 4779if test -z "$ac_cv_prog_STRIP"; then 4780 ac_ct_STRIP=$STRIP 4781 # Extract the first word of "strip", so it can be a program name with args. 4782set dummy strip; ac_word=$2 4783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4784printf %s "checking for $ac_word... " >&6; } 4785if test ${ac_cv_prog_ac_ct_STRIP+y} 4786then : 4787 printf %s "(cached) " >&6 4788else case e in #( 4789 e) if test -n "$ac_ct_STRIP"; then 4790 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4791else 4792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4793for as_dir in $PATH 4794do 4795 IFS=$as_save_IFS 4796 case $as_dir in #((( 4797 '') as_dir=./ ;; 4798 */) ;; 4799 *) as_dir=$as_dir/ ;; 4800 esac 4801 for ac_exec_ext in '' $ac_executable_extensions; do 4802 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4803 ac_cv_prog_ac_ct_STRIP="strip" 4804 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4805 break 2 4806 fi 4807done 4808 done 4809IFS=$as_save_IFS 4810 4811fi ;; 4812esac 4813fi 4814ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4815if test -n "$ac_ct_STRIP"; then 4816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4817printf "%s\n" "$ac_ct_STRIP" >&6; } 4818else 4819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4820printf "%s\n" "no" >&6; } 4821fi 4822 4823 if test "x$ac_ct_STRIP" = x; then 4824 STRIP=":" 4825 else 4826 case $cross_compiling:$ac_tool_warned in 4827yes:) 4828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4829printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4830ac_tool_warned=yes ;; 4831esac 4832 STRIP=$ac_ct_STRIP 4833 fi 4834else 4835 STRIP="$ac_cv_prog_STRIP" 4836fi 4837 4838fi 4839INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4840 4841 4842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4843printf %s "checking for a race-free mkdir -p... " >&6; } 4844if test -z "$MKDIR_P"; then 4845 if test ${ac_cv_path_mkdir+y} 4846then : 4847 printf %s "(cached) " >&6 4848else case e in #( 4849 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4850for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4851do 4852 IFS=$as_save_IFS 4853 case $as_dir in #((( 4854 '') as_dir=./ ;; 4855 */) ;; 4856 *) as_dir=$as_dir/ ;; 4857 esac 4858 for ac_prog in mkdir gmkdir; do 4859 for ac_exec_ext in '' $ac_executable_extensions; do 4860 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4861 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4862 'mkdir ('*'coreutils) '* | \ 4863 *'BusyBox '* | \ 4864 'mkdir (fileutils) '4.1*) 4865 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4866 break 3;; 4867 esac 4868 done 4869 done 4870 done 4871IFS=$as_save_IFS 4872 ;; 4873esac 4874fi 4875 4876 test -d ./--version && rmdir ./--version 4877 if test ${ac_cv_path_mkdir+y}; then 4878 MKDIR_P="$ac_cv_path_mkdir -p" 4879 else 4880 # As a last resort, use plain mkdir -p, 4881 # in the hope it doesn't have the bugs of ancient mkdir. 4882 MKDIR_P='mkdir -p' 4883 fi 4884fi 4885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4886printf "%s\n" "$MKDIR_P" >&6; } 4887 4888for ac_prog in gawk mawk nawk awk 4889do 4890 # Extract the first word of "$ac_prog", so it can be a program name with args. 4891set dummy $ac_prog; ac_word=$2 4892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4893printf %s "checking for $ac_word... " >&6; } 4894if test ${ac_cv_prog_AWK+y} 4895then : 4896 printf %s "(cached) " >&6 4897else case e in #( 4898 e) if test -n "$AWK"; then 4899 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4900else 4901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4902for as_dir in $PATH 4903do 4904 IFS=$as_save_IFS 4905 case $as_dir in #((( 4906 '') as_dir=./ ;; 4907 */) ;; 4908 *) as_dir=$as_dir/ ;; 4909 esac 4910 for ac_exec_ext in '' $ac_executable_extensions; do 4911 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4912 ac_cv_prog_AWK="$ac_prog" 4913 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4914 break 2 4915 fi 4916done 4917 done 4918IFS=$as_save_IFS 4919 4920fi ;; 4921esac 4922fi 4923AWK=$ac_cv_prog_AWK 4924if test -n "$AWK"; then 4925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4926printf "%s\n" "$AWK" >&6; } 4927else 4928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4929printf "%s\n" "no" >&6; } 4930fi 4931 4932 4933 test -n "$AWK" && break 4934done 4935 4936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4937printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4938set x ${MAKE-make} 4939ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4940if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4941then : 4942 printf %s "(cached) " >&6 4943else case e in #( 4944 e) cat >conftest.make <<\_ACEOF 4945SHELL = /bin/sh 4946all: 4947 @echo '@@@%%%=$(MAKE)=@@@%%%' 4948_ACEOF 4949# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4950case `${MAKE-make} -f conftest.make 2>/dev/null` in 4951 *@@@%%%=?*=@@@%%%*) 4952 eval ac_cv_prog_make_${ac_make}_set=yes;; 4953 *) 4954 eval ac_cv_prog_make_${ac_make}_set=no;; 4955esac 4956rm -f conftest.make ;; 4957esac 4958fi 4959if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4961printf "%s\n" "yes" >&6; } 4962 SET_MAKE= 4963else 4964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4965printf "%s\n" "no" >&6; } 4966 SET_MAKE="MAKE=${MAKE-make}" 4967fi 4968 4969rm -rf .tst 2>/dev/null 4970mkdir .tst 2>/dev/null 4971if test -d .tst; then 4972 am__leading_dot=. 4973else 4974 am__leading_dot=_ 4975fi 4976rmdir .tst 2>/dev/null 4977 4978DEPDIR="${am__leading_dot}deps" 4979 4980ac_config_commands="$ac_config_commands depfiles" 4981 4982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4983printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4984cat > confinc.mk << 'END' 4985am__doit: 4986 @echo this is the am__doit target >confinc.out 4987.PHONY: am__doit 4988END 4989am__include="#" 4990am__quote= 4991# BSD make does it like this. 4992echo '.include "confinc.mk" # ignored' > confmf.BSD 4993# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4994echo 'include confinc.mk # ignored' > confmf.GNU 4995_am_result=no 4996for s in GNU BSD; do 4997 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4998 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4999 ac_status=$? 5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5001 (exit $ac_status); } 5002 case $?:`cat confinc.out 2>/dev/null` in #( 5003 '0:this is the am__doit target') : 5004 case $s in #( 5005 BSD) : 5006 am__include='.include' am__quote='"' ;; #( 5007 *) : 5008 am__include='include' am__quote='' ;; 5009esac ;; #( 5010 *) : 5011 ;; 5012esac 5013 if test "$am__include" != "#"; then 5014 _am_result="yes ($s style)" 5015 break 5016 fi 5017done 5018rm -f confinc.* confmf.* 5019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 5020printf "%s\n" "${_am_result}" >&6; } 5021 5022# Check whether --enable-dependency-tracking was given. 5023if test ${enable_dependency_tracking+y} 5024then : 5025 enableval=$enable_dependency_tracking; 5026fi 5027 5028if test "x$enable_dependency_tracking" != xno; then 5029 am_depcomp="$ac_aux_dir/depcomp" 5030 AMDEPBACKSLASH='\' 5031 am__nodep='_no' 5032fi 5033 if test "x$enable_dependency_tracking" != xno; then 5034 AMDEP_TRUE= 5035 AMDEP_FALSE='#' 5036else 5037 AMDEP_TRUE='#' 5038 AMDEP_FALSE= 5039fi 5040 5041 5042AM_DEFAULT_VERBOSITY=1 5043# Check whether --enable-silent-rules was given. 5044if test ${enable_silent_rules+y} 5045then : 5046 enableval=$enable_silent_rules; 5047fi 5048 5049am_make=${MAKE-make} 5050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 5051printf %s "checking whether $am_make supports nested variables... " >&6; } 5052if test ${am_cv_make_support_nested_variables+y} 5053then : 5054 printf %s "(cached) " >&6 5055else case e in #( 5056 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 5057BAR0=false 5058BAR1=true 5059V=1 5060am__doit: 5061 @$(TRUE) 5062.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 5063 am_cv_make_support_nested_variables=yes 5064else 5065 am_cv_make_support_nested_variables=no 5066fi ;; 5067esac 5068fi 5069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 5070printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 5071AM_BACKSLASH='\' 5072 5073am__rm_f_notfound= 5074if (rm -f && rm -fr && rm -rf) 2>/dev/null 5075then : 5076 5077else case e in #( 5078 e) am__rm_f_notfound='""' ;; 5079esac 5080fi 5081 5082 5083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 5084printf %s "checking xargs -n works... " >&6; } 5085if test ${am_cv_xargs_n_works+y} 5086then : 5087 printf %s "(cached) " >&6 5088else case e in #( 5089 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 50903" 5091then : 5092 am_cv_xargs_n_works=yes 5093else case e in #( 5094 e) am_cv_xargs_n_works=no ;; 5095esac 5096fi ;; 5097esac 5098fi 5099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 5100printf "%s\n" "$am_cv_xargs_n_works" >&6; } 5101if test "$am_cv_xargs_n_works" = yes 5102then : 5103 am__xargs_n='xargs -n' 5104else case e in #( 5105 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 5106 ;; 5107esac 5108fi 5109 5110if test "`cd $srcdir && pwd`" != "`pwd`"; then 5111 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 5112 # is not polluted with repeated "-I." 5113 am__isrc=' -I$(srcdir)' 5114 # test to see if srcdir already configured 5115 if test -f $srcdir/config.status; then 5116 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 5117 fi 5118fi 5119 5120# test whether we have cygpath 5121if test -z "$CYGPATH_W"; then 5122 if (cygpath --version) >/dev/null 2>/dev/null; then 5123 CYGPATH_W='cygpath -w' 5124 else 5125 CYGPATH_W=echo 5126 fi 5127fi 5128 5129 5130# Define the identity of the package. 5131 PACKAGE='xdm' 5132 VERSION='1.1.17' 5133 5134 5135printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 5136 5137 5138printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 5139 5140# Some tools Automake needs. 5141 5142ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 5143 5144 5145AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 5146 5147 5148AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 5149 5150 5151AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 5152 5153 5154MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 5155 5156# For better backward compatibility. To be removed once Automake 1.9.x 5157# dies out for good. For more background, see: 5158# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 5159# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 5160mkdir_p='$(MKDIR_P)' 5161 5162# We need awk for the "check" target (and possibly the TAP driver). The 5163# system "awk" is bad on some platforms. 5164# Always define AMTAR for backward compatibility. Yes, it's still used 5165# in the wild :-( We should find a proper way to deprecate it ... 5166AMTAR='$${TAR-tar}' 5167 5168 5169# We'll loop over all known methods to create a tar archive until one works. 5170_am_tools='gnutar pax cpio none' 5171 5172am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 5173 5174 5175 5176 5177 5178depcc="$CC" am_compiler_list= 5179 5180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5181printf %s "checking dependency style of $depcc... " >&6; } 5182if test ${am_cv_CC_dependencies_compiler_type+y} 5183then : 5184 printf %s "(cached) " >&6 5185else case e in #( 5186 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5187 # We make a subdir and do the tests there. Otherwise we can end up 5188 # making bogus files that we don't know about and never remove. For 5189 # instance it was reported that on HP-UX the gcc test will end up 5190 # making a dummy file named 'D' -- because '-MD' means "put the output 5191 # in D". 5192 rm -rf conftest.dir 5193 mkdir conftest.dir 5194 # Copy depcomp to subdir because otherwise we won't find it if we're 5195 # using a relative directory. 5196 cp "$am_depcomp" conftest.dir 5197 cd conftest.dir 5198 # We will build objects and dependencies in a subdirectory because 5199 # it helps to detect inapplicable dependency modes. For instance 5200 # both Tru64's cc and ICC support -MD to output dependencies as a 5201 # side effect of compilation, but ICC will put the dependencies in 5202 # the current directory while Tru64 will put them in the object 5203 # directory. 5204 mkdir sub 5205 5206 am_cv_CC_dependencies_compiler_type=none 5207 if test "$am_compiler_list" = ""; then 5208 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5209 fi 5210 am__universal=false 5211 case " $depcc " in #( 5212 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5213 esac 5214 5215 for depmode in $am_compiler_list; do 5216 # Setup a source with many dependencies, because some compilers 5217 # like to wrap large dependency lists on column 80 (with \), and 5218 # we should not choose a depcomp mode which is confused by this. 5219 # 5220 # We need to recreate these files for each test, as the compiler may 5221 # overwrite some of them when testing with obscure command lines. 5222 # This happens at least with the AIX C compiler. 5223 : > sub/conftest.c 5224 for i in 1 2 3 4 5 6; do 5225 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5226 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5227 # Solaris 10 /bin/sh. 5228 echo '/* dummy */' > sub/conftst$i.h 5229 done 5230 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5231 5232 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5233 # mode. It turns out that the SunPro C++ compiler does not properly 5234 # handle '-M -o', and we need to detect this. Also, some Intel 5235 # versions had trouble with output in subdirs. 5236 am__obj=sub/conftest.${OBJEXT-o} 5237 am__minus_obj="-o $am__obj" 5238 case $depmode in 5239 gcc) 5240 # This depmode causes a compiler race in universal mode. 5241 test "$am__universal" = false || continue 5242 ;; 5243 nosideeffect) 5244 # After this tag, mechanisms are not by side-effect, so they'll 5245 # only be used when explicitly requested. 5246 if test "x$enable_dependency_tracking" = xyes; then 5247 continue 5248 else 5249 break 5250 fi 5251 ;; 5252 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5253 # This compiler won't grok '-c -o', but also, the minuso test has 5254 # not run yet. These depmodes are late enough in the game, and 5255 # so weak that their functioning should not be impacted. 5256 am__obj=conftest.${OBJEXT-o} 5257 am__minus_obj= 5258 ;; 5259 none) break ;; 5260 esac 5261 if depmode=$depmode \ 5262 source=sub/conftest.c object=$am__obj \ 5263 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5264 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5265 >/dev/null 2>conftest.err && 5266 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5267 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5268 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5269 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5270 # icc doesn't choke on unknown options, it will just issue warnings 5271 # or remarks (even with -Werror). So we grep stderr for any message 5272 # that says an option was ignored or not supported. 5273 # When given -MP, icc 7.0 and 7.1 complain thus: 5274 # icc: Command line warning: ignoring option '-M'; no argument required 5275 # The diagnosis changed in icc 8.0: 5276 # icc: Command line remark: option '-MP' not supported 5277 if (grep 'ignoring option' conftest.err || 5278 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5279 am_cv_CC_dependencies_compiler_type=$depmode 5280 break 5281 fi 5282 fi 5283 done 5284 5285 cd .. 5286 rm -rf conftest.dir 5287else 5288 am_cv_CC_dependencies_compiler_type=none 5289fi 5290 ;; 5291esac 5292fi 5293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5294printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 5295CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5296 5297 if 5298 test "x$enable_dependency_tracking" != xno \ 5299 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5300 am__fastdepCC_TRUE= 5301 am__fastdepCC_FALSE='#' 5302else 5303 am__fastdepCC_TRUE='#' 5304 am__fastdepCC_FALSE= 5305fi 5306 5307 5308# Variables for tags utilities; see am/tags.am 5309if test -z "$CTAGS"; then 5310 CTAGS=ctags 5311fi 5312 5313if test -z "$ETAGS"; then 5314 ETAGS=etags 5315fi 5316 5317if test -z "$CSCOPE"; then 5318 CSCOPE=cscope 5319fi 5320 5321 5322 5323 5324 5325 5326 5327 5328# Initialize libtool 5329case `pwd` in 5330 *\ * | *\ *) 5331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5332printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5333esac 5334 5335 5336 5337macro_version='2.5.4' 5338macro_revision='2.5.4' 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353ltmain=$ac_aux_dir/ltmain.sh 5354 5355 5356 5357 # Make sure we can run config.sub. 5358$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 5359 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 5360 5361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5362printf %s "checking build system type... " >&6; } 5363if test ${ac_cv_build+y} 5364then : 5365 printf %s "(cached) " >&6 5366else case e in #( 5367 e) ac_build_alias=$build_alias 5368test "x$ac_build_alias" = x && 5369 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 5370test "x$ac_build_alias" = x && 5371 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5372ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 5373 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 5374 ;; 5375esac 5376fi 5377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5378printf "%s\n" "$ac_cv_build" >&6; } 5379case $ac_cv_build in 5380*-*-*) ;; 5381*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5382esac 5383build=$ac_cv_build 5384ac_save_IFS=$IFS; IFS='-' 5385set x $ac_cv_build 5386shift 5387build_cpu=$1 5388build_vendor=$2 5389shift; shift 5390# Remember, the first character of IFS is used to create $*, 5391# except with old shells: 5392build_os=$* 5393IFS=$ac_save_IFS 5394case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5395 5396 5397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5398printf %s "checking host system type... " >&6; } 5399if test ${ac_cv_host+y} 5400then : 5401 printf %s "(cached) " >&6 5402else case e in #( 5403 e) if test "x$host_alias" = x; then 5404 ac_cv_host=$ac_cv_build 5405else 5406 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 5407 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 5408fi 5409 ;; 5410esac 5411fi 5412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5413printf "%s\n" "$ac_cv_host" >&6; } 5414case $ac_cv_host in 5415*-*-*) ;; 5416*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5417esac 5418host=$ac_cv_host 5419ac_save_IFS=$IFS; IFS='-' 5420set x $ac_cv_host 5421shift 5422host_cpu=$1 5423host_vendor=$2 5424shift; shift 5425# Remember, the first character of IFS is used to create $*, 5426# except with old shells: 5427host_os=$* 5428IFS=$ac_save_IFS 5429case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5430 5431 5432# Backslashify metacharacters that are still active within 5433# double-quoted strings. 5434sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5435 5436# Same as above, but do not quote variable references. 5437double_quote_subst='s/\(["`\\]\)/\\\1/g' 5438 5439# Sed substitution to delay expansion of an escaped shell variable in a 5440# double_quote_subst'ed string. 5441delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5442 5443# Sed substitution to delay expansion of an escaped single quote. 5444delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5445 5446# Sed substitution to avoid accidental globbing in evaled expressions 5447no_glob_subst='s/\*/\\\*/g' 5448 5449ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5450ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5451ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5452 5453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5454printf %s "checking how to print strings... " >&6; } 5455# Test print first, because it will be a builtin if present. 5456if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5457 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5458 ECHO='print -r --' 5459elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5460 ECHO='printf %s\n' 5461else 5462 # Use this function as a fallback that always works. 5463 func_fallback_echo () 5464 { 5465 eval 'cat <<_LTECHO_EOF 5466$1 5467_LTECHO_EOF' 5468 } 5469 ECHO='func_fallback_echo' 5470fi 5471 5472# func_echo_all arg... 5473# Invoke $ECHO with all args, space-separated. 5474func_echo_all () 5475{ 5476 $ECHO "" 5477} 5478 5479case $ECHO in 5480 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5481printf "%s\n" "printf" >&6; } ;; 5482 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5483printf "%s\n" "print -r" >&6; } ;; 5484 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5485printf "%s\n" "cat" >&6; } ;; 5486esac 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5502printf %s "checking for a sed that does not truncate output... " >&6; } 5503if test ${ac_cv_path_SED+y} 5504then : 5505 printf %s "(cached) " >&6 5506else case e in #( 5507 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5508 for ac_i in 1 2 3 4 5 6 7; do 5509 ac_script="$ac_script$as_nl$ac_script" 5510 done 5511 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5512 { ac_script=; unset ac_script;} 5513 if test -z "$SED"; then 5514 ac_path_SED_found=false 5515 # Loop through the user's path and test for each of PROGNAME-LIST 5516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5517for as_dir in $PATH 5518do 5519 IFS=$as_save_IFS 5520 case $as_dir in #((( 5521 '') as_dir=./ ;; 5522 */) ;; 5523 *) as_dir=$as_dir/ ;; 5524 esac 5525 for ac_prog in sed gsed 5526 do 5527 for ac_exec_ext in '' $ac_executable_extensions; do 5528 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5529 as_fn_executable_p "$ac_path_SED" || continue 5530# Check for GNU ac_path_SED and select it if it is found. 5531 # Check for GNU $ac_path_SED 5532case `"$ac_path_SED" --version 2>&1` in #( 5533*GNU*) 5534 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5535#( 5536*) 5537 ac_count=0 5538 printf %s 0123456789 >"conftest.in" 5539 while : 5540 do 5541 cat "conftest.in" "conftest.in" >"conftest.tmp" 5542 mv "conftest.tmp" "conftest.in" 5543 cp "conftest.in" "conftest.nl" 5544 printf "%s\n" '' >> "conftest.nl" 5545 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5546 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5547 as_fn_arith $ac_count + 1 && ac_count=$as_val 5548 if test $ac_count -gt ${ac_path_SED_max-0}; then 5549 # Best one so far, save it but keep looking for a better one 5550 ac_cv_path_SED="$ac_path_SED" 5551 ac_path_SED_max=$ac_count 5552 fi 5553 # 10*(2^10) chars as input seems more than enough 5554 test $ac_count -gt 10 && break 5555 done 5556 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5557esac 5558 5559 $ac_path_SED_found && break 3 5560 done 5561 done 5562 done 5563IFS=$as_save_IFS 5564 if test -z "$ac_cv_path_SED"; then 5565 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5566 fi 5567else 5568 ac_cv_path_SED=$SED 5569fi 5570 ;; 5571esac 5572fi 5573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5574printf "%s\n" "$ac_cv_path_SED" >&6; } 5575 SED="$ac_cv_path_SED" 5576 rm -f conftest.sed 5577 5578test -z "$SED" && SED=sed 5579Xsed="$SED -e 1s/^X//" 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5592printf %s "checking for grep that handles long lines and -e... " >&6; } 5593if test ${ac_cv_path_GREP+y} 5594then : 5595 printf %s "(cached) " >&6 5596else case e in #( 5597 e) if test -z "$GREP"; then 5598 ac_path_GREP_found=false 5599 # Loop through the user's path and test for each of PROGNAME-LIST 5600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5601for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5602do 5603 IFS=$as_save_IFS 5604 case $as_dir in #((( 5605 '') as_dir=./ ;; 5606 */) ;; 5607 *) as_dir=$as_dir/ ;; 5608 esac 5609 for ac_prog in grep ggrep 5610 do 5611 for ac_exec_ext in '' $ac_executable_extensions; do 5612 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5613 as_fn_executable_p "$ac_path_GREP" || continue 5614# Check for GNU ac_path_GREP and select it if it is found. 5615 # Check for GNU $ac_path_GREP 5616case `"$ac_path_GREP" --version 2>&1` in #( 5617*GNU*) 5618 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5619#( 5620*) 5621 ac_count=0 5622 printf %s 0123456789 >"conftest.in" 5623 while : 5624 do 5625 cat "conftest.in" "conftest.in" >"conftest.tmp" 5626 mv "conftest.tmp" "conftest.in" 5627 cp "conftest.in" "conftest.nl" 5628 printf "%s\n" 'GREP' >> "conftest.nl" 5629 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5630 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5631 as_fn_arith $ac_count + 1 && ac_count=$as_val 5632 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5633 # Best one so far, save it but keep looking for a better one 5634 ac_cv_path_GREP="$ac_path_GREP" 5635 ac_path_GREP_max=$ac_count 5636 fi 5637 # 10*(2^10) chars as input seems more than enough 5638 test $ac_count -gt 10 && break 5639 done 5640 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5641esac 5642 5643 $ac_path_GREP_found && break 3 5644 done 5645 done 5646 done 5647IFS=$as_save_IFS 5648 if test -z "$ac_cv_path_GREP"; then 5649 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5650 fi 5651else 5652 ac_cv_path_GREP=$GREP 5653fi 5654 ;; 5655esac 5656fi 5657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5658printf "%s\n" "$ac_cv_path_GREP" >&6; } 5659 GREP="$ac_cv_path_GREP" 5660 5661 5662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5663printf %s "checking for egrep... " >&6; } 5664if test ${ac_cv_path_EGREP+y} 5665then : 5666 printf %s "(cached) " >&6 5667else case e in #( 5668 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5669 then ac_cv_path_EGREP="$GREP -E" 5670 else 5671 if test -z "$EGREP"; then 5672 ac_path_EGREP_found=false 5673 # Loop through the user's path and test for each of PROGNAME-LIST 5674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5675for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5676do 5677 IFS=$as_save_IFS 5678 case $as_dir in #((( 5679 '') as_dir=./ ;; 5680 */) ;; 5681 *) as_dir=$as_dir/ ;; 5682 esac 5683 for ac_prog in egrep 5684 do 5685 for ac_exec_ext in '' $ac_executable_extensions; do 5686 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5687 as_fn_executable_p "$ac_path_EGREP" || continue 5688# Check for GNU ac_path_EGREP and select it if it is found. 5689 # Check for GNU $ac_path_EGREP 5690case `"$ac_path_EGREP" --version 2>&1` in #( 5691*GNU*) 5692 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5693#( 5694*) 5695 ac_count=0 5696 printf %s 0123456789 >"conftest.in" 5697 while : 5698 do 5699 cat "conftest.in" "conftest.in" >"conftest.tmp" 5700 mv "conftest.tmp" "conftest.in" 5701 cp "conftest.in" "conftest.nl" 5702 printf "%s\n" 'EGREP' >> "conftest.nl" 5703 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5704 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5705 as_fn_arith $ac_count + 1 && ac_count=$as_val 5706 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5707 # Best one so far, save it but keep looking for a better one 5708 ac_cv_path_EGREP="$ac_path_EGREP" 5709 ac_path_EGREP_max=$ac_count 5710 fi 5711 # 10*(2^10) chars as input seems more than enough 5712 test $ac_count -gt 10 && break 5713 done 5714 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5715esac 5716 5717 $ac_path_EGREP_found && break 3 5718 done 5719 done 5720 done 5721IFS=$as_save_IFS 5722 if test -z "$ac_cv_path_EGREP"; then 5723 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5724 fi 5725else 5726 ac_cv_path_EGREP=$EGREP 5727fi 5728 5729 fi ;; 5730esac 5731fi 5732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5733printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5734 EGREP="$ac_cv_path_EGREP" 5735 5736 EGREP_TRADITIONAL=$EGREP 5737 ac_cv_path_EGREP_TRADITIONAL=$EGREP 5738 5739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5740printf %s "checking for fgrep... " >&6; } 5741if test ${ac_cv_path_FGREP+y} 5742then : 5743 printf %s "(cached) " >&6 5744else case e in #( 5745 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5746 then ac_cv_path_FGREP="$GREP -F" 5747 else 5748 if test -z "$FGREP"; then 5749 ac_path_FGREP_found=false 5750 # Loop through the user's path and test for each of PROGNAME-LIST 5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5752for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5753do 5754 IFS=$as_save_IFS 5755 case $as_dir in #((( 5756 '') as_dir=./ ;; 5757 */) ;; 5758 *) as_dir=$as_dir/ ;; 5759 esac 5760 for ac_prog in fgrep 5761 do 5762 for ac_exec_ext in '' $ac_executable_extensions; do 5763 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5764 as_fn_executable_p "$ac_path_FGREP" || continue 5765# Check for GNU ac_path_FGREP and select it if it is found. 5766 # Check for GNU $ac_path_FGREP 5767case `"$ac_path_FGREP" --version 2>&1` in #( 5768*GNU*) 5769 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5770#( 5771*) 5772 ac_count=0 5773 printf %s 0123456789 >"conftest.in" 5774 while : 5775 do 5776 cat "conftest.in" "conftest.in" >"conftest.tmp" 5777 mv "conftest.tmp" "conftest.in" 5778 cp "conftest.in" "conftest.nl" 5779 printf "%s\n" 'FGREP' >> "conftest.nl" 5780 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5781 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5782 as_fn_arith $ac_count + 1 && ac_count=$as_val 5783 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5784 # Best one so far, save it but keep looking for a better one 5785 ac_cv_path_FGREP="$ac_path_FGREP" 5786 ac_path_FGREP_max=$ac_count 5787 fi 5788 # 10*(2^10) chars as input seems more than enough 5789 test $ac_count -gt 10 && break 5790 done 5791 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5792esac 5793 5794 $ac_path_FGREP_found && break 3 5795 done 5796 done 5797 done 5798IFS=$as_save_IFS 5799 if test -z "$ac_cv_path_FGREP"; then 5800 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5801 fi 5802else 5803 ac_cv_path_FGREP=$FGREP 5804fi 5805 5806 fi ;; 5807esac 5808fi 5809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5810printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5811 FGREP="$ac_cv_path_FGREP" 5812 5813 5814test -z "$GREP" && GREP=grep 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834# Check whether --with-gnu-ld was given. 5835if test ${with_gnu_ld+y} 5836then : 5837 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5838else case e in #( 5839 e) with_gnu_ld=no ;; 5840esac 5841fi 5842 5843ac_prog=ld 5844if test yes = "$GCC"; then 5845 # Check if gcc -print-prog-name=ld gives a path. 5846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5847printf %s "checking for ld used by $CC... " >&6; } 5848 case $host in 5849 *-*-mingw* | *-*-windows*) 5850 # gcc leaves a trailing carriage return, which upsets mingw 5851 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5852 *) 5853 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5854 esac 5855 case $ac_prog in 5856 # Accept absolute paths. 5857 [\\/]* | ?:[\\/]*) 5858 re_direlt='/[^/][^/]*/\.\./' 5859 # Canonicalize the pathname of ld 5860 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5861 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5862 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5863 done 5864 test -z "$LD" && LD=$ac_prog 5865 ;; 5866 "") 5867 # If it fails, then pretend we aren't using GCC. 5868 ac_prog=ld 5869 ;; 5870 *) 5871 # If it is relative, then search for the first ld in PATH. 5872 with_gnu_ld=unknown 5873 ;; 5874 esac 5875elif test yes = "$with_gnu_ld"; then 5876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5877printf %s "checking for GNU ld... " >&6; } 5878else 5879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5880printf %s "checking for non-GNU ld... " >&6; } 5881fi 5882if test ${lt_cv_path_LD+y} 5883then : 5884 printf %s "(cached) " >&6 5885else case e in #( 5886 e) if test -z "$LD"; then 5887 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5888 for ac_dir in $PATH; do 5889 IFS=$lt_save_ifs 5890 test -z "$ac_dir" && ac_dir=. 5891 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5892 lt_cv_path_LD=$ac_dir/$ac_prog 5893 # Check to see if the program is GNU ld. I'd rather use --version, 5894 # but apparently some variants of GNU ld only accept -v. 5895 # Break only if it was the GNU/non-GNU ld that we prefer. 5896 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5897 *GNU* | *'with BFD'*) 5898 test no != "$with_gnu_ld" && break 5899 ;; 5900 *) 5901 test yes != "$with_gnu_ld" && break 5902 ;; 5903 esac 5904 fi 5905 done 5906 IFS=$lt_save_ifs 5907else 5908 lt_cv_path_LD=$LD # Let the user override the test with a path. 5909fi ;; 5910esac 5911fi 5912 5913LD=$lt_cv_path_LD 5914if test -n "$LD"; then 5915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5916printf "%s\n" "$LD" >&6; } 5917else 5918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5919printf "%s\n" "no" >&6; } 5920fi 5921test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5923printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5924if test ${lt_cv_prog_gnu_ld+y} 5925then : 5926 printf %s "(cached) " >&6 5927else case e in #( 5928 e) # I'd rather use --version here, but apparently some GNU lds only accept -v. 5929case `$LD -v 2>&1 </dev/null` in 5930*GNU* | *'with BFD'*) 5931 lt_cv_prog_gnu_ld=yes 5932 ;; 5933*) 5934 lt_cv_prog_gnu_ld=no 5935 ;; 5936esac ;; 5937esac 5938fi 5939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5940printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5941with_gnu_ld=$lt_cv_prog_gnu_ld 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5952printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5953if test ${lt_cv_path_NM+y} 5954then : 5955 printf %s "(cached) " >&6 5956else case e in #( 5957 e) if test -n "$NM"; then 5958 # Let the user override the test. 5959 lt_cv_path_NM=$NM 5960else 5961 lt_nm_to_check=${ac_tool_prefix}nm 5962 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5963 lt_nm_to_check="$lt_nm_to_check nm" 5964 fi 5965 for lt_tmp_nm in $lt_nm_to_check; do 5966 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5967 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5968 IFS=$lt_save_ifs 5969 test -z "$ac_dir" && ac_dir=. 5970 tmp_nm=$ac_dir/$lt_tmp_nm 5971 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5972 # Check to see if the nm accepts a BSD-compat flag. 5973 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5974 # nm: unknown option "B" ignored 5975 # Tru64's nm complains that /dev/null is an invalid object file 5976 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5977 case $build_os in 5978 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;; 5979 *) lt_bad_file=/dev/null ;; 5980 esac 5981 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5982 *$lt_bad_file* | *'Invalid file or object type'*) 5983 lt_cv_path_NM="$tmp_nm -B" 5984 break 2 5985 ;; 5986 *) 5987 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5988 */dev/null*) 5989 lt_cv_path_NM="$tmp_nm -p" 5990 break 2 5991 ;; 5992 *) 5993 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5994 continue # so that we can try to find one that supports BSD flags 5995 ;; 5996 esac 5997 ;; 5998 esac 5999 fi 6000 done 6001 IFS=$lt_save_ifs 6002 done 6003 : ${lt_cv_path_NM=no} 6004fi ;; 6005esac 6006fi 6007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6008printf "%s\n" "$lt_cv_path_NM" >&6; } 6009if test no != "$lt_cv_path_NM"; then 6010 NM=$lt_cv_path_NM 6011else 6012 # Didn't find any BSD compatible name lister, look for dumpbin. 6013 if test -n "$DUMPBIN"; then : 6014 # Let the user override the test. 6015 else 6016 if test -n "$ac_tool_prefix"; then 6017 for ac_prog in dumpbin "link -dump" 6018 do 6019 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6020set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6022printf %s "checking for $ac_word... " >&6; } 6023if test ${ac_cv_prog_DUMPBIN+y} 6024then : 6025 printf %s "(cached) " >&6 6026else case e in #( 6027 e) if test -n "$DUMPBIN"; then 6028 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6029else 6030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6031for as_dir in $PATH 6032do 6033 IFS=$as_save_IFS 6034 case $as_dir in #((( 6035 '') as_dir=./ ;; 6036 */) ;; 6037 *) as_dir=$as_dir/ ;; 6038 esac 6039 for ac_exec_ext in '' $ac_executable_extensions; do 6040 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6041 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6043 break 2 6044 fi 6045done 6046 done 6047IFS=$as_save_IFS 6048 6049fi ;; 6050esac 6051fi 6052DUMPBIN=$ac_cv_prog_DUMPBIN 6053if test -n "$DUMPBIN"; then 6054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6055printf "%s\n" "$DUMPBIN" >&6; } 6056else 6057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6058printf "%s\n" "no" >&6; } 6059fi 6060 6061 6062 test -n "$DUMPBIN" && break 6063 done 6064fi 6065if test -z "$DUMPBIN"; then 6066 ac_ct_DUMPBIN=$DUMPBIN 6067 for ac_prog in dumpbin "link -dump" 6068do 6069 # Extract the first word of "$ac_prog", so it can be a program name with args. 6070set dummy $ac_prog; ac_word=$2 6071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6072printf %s "checking for $ac_word... " >&6; } 6073if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 6074then : 6075 printf %s "(cached) " >&6 6076else case e in #( 6077 e) if test -n "$ac_ct_DUMPBIN"; then 6078 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6079else 6080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6081for as_dir in $PATH 6082do 6083 IFS=$as_save_IFS 6084 case $as_dir in #((( 6085 '') as_dir=./ ;; 6086 */) ;; 6087 *) as_dir=$as_dir/ ;; 6088 esac 6089 for ac_exec_ext in '' $ac_executable_extensions; do 6090 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6091 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6093 break 2 6094 fi 6095done 6096 done 6097IFS=$as_save_IFS 6098 6099fi ;; 6100esac 6101fi 6102ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6103if test -n "$ac_ct_DUMPBIN"; then 6104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6105printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 6106else 6107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6108printf "%s\n" "no" >&6; } 6109fi 6110 6111 6112 test -n "$ac_ct_DUMPBIN" && break 6113done 6114 6115 if test "x$ac_ct_DUMPBIN" = x; then 6116 DUMPBIN=":" 6117 else 6118 case $cross_compiling:$ac_tool_warned in 6119yes:) 6120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6121printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6122ac_tool_warned=yes ;; 6123esac 6124 DUMPBIN=$ac_ct_DUMPBIN 6125 fi 6126fi 6127 6128 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 6129 *COFF*) 6130 DUMPBIN="$DUMPBIN -symbols -headers" 6131 ;; 6132 *) 6133 DUMPBIN=: 6134 ;; 6135 esac 6136 fi 6137 6138 if test : != "$DUMPBIN"; then 6139 NM=$DUMPBIN 6140 fi 6141fi 6142test -z "$NM" && NM=nm 6143 6144 6145 6146 6147 6148 6149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6150printf %s "checking the name lister ($NM) interface... " >&6; } 6151if test ${lt_cv_nm_interface+y} 6152then : 6153 printf %s "(cached) " >&6 6154else case e in #( 6155 e) lt_cv_nm_interface="BSD nm" 6156 echo "int some_variable = 0;" > conftest.$ac_ext 6157 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6158 (eval "$ac_compile" 2>conftest.err) 6159 cat conftest.err >&5 6160 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6161 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6162 cat conftest.err >&5 6163 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6164 cat conftest.out >&5 6165 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6166 lt_cv_nm_interface="MS dumpbin" 6167 fi 6168 rm -f conftest* ;; 6169esac 6170fi 6171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6172printf "%s\n" "$lt_cv_nm_interface" >&6; } 6173 6174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6175printf %s "checking whether ln -s works... " >&6; } 6176LN_S=$as_ln_s 6177if test "$LN_S" = "ln -s"; then 6178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6179printf "%s\n" "yes" >&6; } 6180else 6181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6182printf "%s\n" "no, using $LN_S" >&6; } 6183fi 6184 6185# find the maximum length of command line arguments 6186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6187printf %s "checking the maximum length of command line arguments... " >&6; } 6188if test ${lt_cv_sys_max_cmd_len+y} 6189then : 6190 printf %s "(cached) " >&6 6191else case e in #( 6192 e) i=0 6193 teststring=ABCD 6194 6195 case $build_os in 6196 msdosdjgpp*) 6197 # On DJGPP, this test can blow up pretty badly due to problems in libc 6198 # (any single argument exceeding 2000 bytes causes a buffer overrun 6199 # during glob expansion). Even if it were fixed, the result of this 6200 # check would be larger than it should be. 6201 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6202 ;; 6203 6204 gnu* | ironclad*) 6205 # Under GNU Hurd and Ironclad, this test is not required because there 6206 # is no limit to the length of command line arguments. 6207 # Libtool will interpret -1 as no limit whatsoever 6208 lt_cv_sys_max_cmd_len=-1; 6209 ;; 6210 6211 cygwin* | mingw* | windows* | cegcc*) 6212 # On Win9x/ME, this test blows up -- it succeeds, but takes 6213 # about 5 minutes as the teststring grows exponentially. 6214 # Worse, since 9x/ME are not pre-emptively multitasking, 6215 # you end up with a "frozen" computer, even though with patience 6216 # the test eventually succeeds (with a max line length of 256k). 6217 # Instead, let's just punt: use the minimum linelength reported by 6218 # all of the supported platforms: 8192 (on NT/2K/XP). 6219 lt_cv_sys_max_cmd_len=8192; 6220 ;; 6221 6222 mint*) 6223 # On MiNT this can take a long time and run out of memory. 6224 lt_cv_sys_max_cmd_len=8192; 6225 ;; 6226 6227 amigaos*) 6228 # On AmigaOS with pdksh, this test takes hours, literally. 6229 # So we just punt and use a minimum line length of 8192. 6230 lt_cv_sys_max_cmd_len=8192; 6231 ;; 6232 6233 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 6234 # This has been around since 386BSD, at least. Likely further. 6235 if test -x /sbin/sysctl; then 6236 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6237 elif test -x /usr/sbin/sysctl; then 6238 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6239 else 6240 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6241 fi 6242 # And add a safety zone 6243 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6244 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6245 ;; 6246 6247 interix*) 6248 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6249 lt_cv_sys_max_cmd_len=196608 6250 ;; 6251 6252 os2*) 6253 # The test takes a long time on OS/2. 6254 lt_cv_sys_max_cmd_len=8192 6255 ;; 6256 6257 osf*) 6258 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6259 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6260 # nice to cause kernel panics so lets avoid the loop below. 6261 # First set a reasonable default. 6262 lt_cv_sys_max_cmd_len=16384 6263 # 6264 if test -x /sbin/sysconfig; then 6265 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6266 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6267 esac 6268 fi 6269 ;; 6270 sco3.2v5*) 6271 lt_cv_sys_max_cmd_len=102400 6272 ;; 6273 sysv5* | sco5v6* | sysv4.2uw2*) 6274 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6275 if test -n "$kargmax"; then 6276 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 6277 else 6278 lt_cv_sys_max_cmd_len=32768 6279 fi 6280 ;; 6281 *) 6282 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6283 if test -n "$lt_cv_sys_max_cmd_len" && \ 6284 test undefined != "$lt_cv_sys_max_cmd_len"; then 6285 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6286 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6287 else 6288 # Make teststring a little bigger before we do anything with it. 6289 # a 1K string should be a reasonable start. 6290 for i in 1 2 3 4 5 6 7 8; do 6291 teststring=$teststring$teststring 6292 done 6293 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6294 # If test is not a shell built-in, we'll probably end up computing a 6295 # maximum length that is only half of the actual maximum length, but 6296 # we can't tell. 6297 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6298 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6299 test 17 != "$i" # 1/2 MB should be enough 6300 do 6301 i=`expr $i + 1` 6302 teststring=$teststring$teststring 6303 done 6304 # Only check the string length outside the loop. 6305 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6306 teststring= 6307 # Add a significant safety factor because C++ compilers can tack on 6308 # massive amounts of additional arguments before passing them to the 6309 # linker. It appears as though 1/2 is a usable value. 6310 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6311 fi 6312 ;; 6313 esac 6314 ;; 6315esac 6316fi 6317 6318if test -n "$lt_cv_sys_max_cmd_len"; then 6319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6320printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 6321else 6322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 6323printf "%s\n" "none" >&6; } 6324fi 6325max_cmd_len=$lt_cv_sys_max_cmd_len 6326 6327 6328 6329 6330 6331 6332: ${CP="cp -f"} 6333: ${MV="mv -f"} 6334: ${RM="rm -f"} 6335 6336if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6337 lt_unset=unset 6338else 6339 lt_unset=false 6340fi 6341 6342 6343 6344 6345 6346# test EBCDIC or ASCII 6347case `echo X|tr X '\101'` in 6348 A) # ASCII based system 6349 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6350 lt_SP2NL='tr \040 \012' 6351 lt_NL2SP='tr \015\012 \040\040' 6352 ;; 6353 *) # EBCDIC based system 6354 lt_SP2NL='tr \100 \n' 6355 lt_NL2SP='tr \r\n \100\100' 6356 ;; 6357esac 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6368printf %s "checking how to convert $build file names to $host format... " >&6; } 6369if test ${lt_cv_to_host_file_cmd+y} 6370then : 6371 printf %s "(cached) " >&6 6372else case e in #( 6373 e) case $host in 6374 *-*-mingw* ) 6375 case $build in 6376 *-*-mingw* | *-*-windows* ) # actually msys 6377 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6378 ;; 6379 *-*-cygwin* ) 6380 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6381 ;; 6382 * ) # otherwise, assume *nix 6383 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6384 ;; 6385 esac 6386 ;; 6387 *-*-cygwin* ) 6388 case $build in 6389 *-*-mingw* | *-*-windows* ) # actually msys 6390 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6391 ;; 6392 *-*-cygwin* ) 6393 lt_cv_to_host_file_cmd=func_convert_file_noop 6394 ;; 6395 * ) # otherwise, assume *nix 6396 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6397 ;; 6398 esac 6399 ;; 6400 * ) # unhandled hosts (and "normal" native builds) 6401 lt_cv_to_host_file_cmd=func_convert_file_noop 6402 ;; 6403esac 6404 ;; 6405esac 6406fi 6407 6408to_host_file_cmd=$lt_cv_to_host_file_cmd 6409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6410printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 6411 6412 6413 6414 6415 6416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6417printf %s "checking how to convert $build file names to toolchain format... " >&6; } 6418if test ${lt_cv_to_tool_file_cmd+y} 6419then : 6420 printf %s "(cached) " >&6 6421else case e in #( 6422 e) #assume ordinary cross tools, or native build. 6423lt_cv_to_tool_file_cmd=func_convert_file_noop 6424case $host in 6425 *-*-mingw* | *-*-windows* ) 6426 case $build in 6427 *-*-mingw* | *-*-windows* ) # actually msys 6428 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6429 ;; 6430 esac 6431 ;; 6432esac 6433 ;; 6434esac 6435fi 6436 6437to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6439printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 6440 6441 6442 6443 6444 6445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6446printf %s "checking for $LD option to reload object files... " >&6; } 6447if test ${lt_cv_ld_reload_flag+y} 6448then : 6449 printf %s "(cached) " >&6 6450else case e in #( 6451 e) lt_cv_ld_reload_flag='-r' ;; 6452esac 6453fi 6454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6455printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 6456reload_flag=$lt_cv_ld_reload_flag 6457case $reload_flag in 6458"" | " "*) ;; 6459*) reload_flag=" $reload_flag" ;; 6460esac 6461reload_cmds='$LD$reload_flag -o $output$reload_objs' 6462case $host_os in 6463 cygwin* | mingw* | windows* | pw32* | cegcc*) 6464 if test yes != "$GCC"; then 6465 reload_cmds=false 6466 fi 6467 ;; 6468 darwin*) 6469 if test yes = "$GCC"; then 6470 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6471 else 6472 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6473 fi 6474 ;; 6475esac 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485# Extract the first word of "file", so it can be a program name with args. 6486set dummy file; ac_word=$2 6487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6488printf %s "checking for $ac_word... " >&6; } 6489if test ${ac_cv_prog_FILECMD+y} 6490then : 6491 printf %s "(cached) " >&6 6492else case e in #( 6493 e) if test -n "$FILECMD"; then 6494 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 6495else 6496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6497for as_dir in $PATH 6498do 6499 IFS=$as_save_IFS 6500 case $as_dir in #((( 6501 '') as_dir=./ ;; 6502 */) ;; 6503 *) as_dir=$as_dir/ ;; 6504 esac 6505 for ac_exec_ext in '' $ac_executable_extensions; do 6506 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6507 ac_cv_prog_FILECMD="file" 6508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6509 break 2 6510 fi 6511done 6512 done 6513IFS=$as_save_IFS 6514 6515 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":" 6516fi ;; 6517esac 6518fi 6519FILECMD=$ac_cv_prog_FILECMD 6520if test -n "$FILECMD"; then 6521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 6522printf "%s\n" "$FILECMD" >&6; } 6523else 6524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6525printf "%s\n" "no" >&6; } 6526fi 6527 6528 6529 6530 6531 6532 6533 6534 6535if test -n "$ac_tool_prefix"; then 6536 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6537set dummy ${ac_tool_prefix}objdump; ac_word=$2 6538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6539printf %s "checking for $ac_word... " >&6; } 6540if test ${ac_cv_prog_OBJDUMP+y} 6541then : 6542 printf %s "(cached) " >&6 6543else case e in #( 6544 e) if test -n "$OBJDUMP"; then 6545 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6546else 6547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6548for as_dir in $PATH 6549do 6550 IFS=$as_save_IFS 6551 case $as_dir in #((( 6552 '') as_dir=./ ;; 6553 */) ;; 6554 *) as_dir=$as_dir/ ;; 6555 esac 6556 for ac_exec_ext in '' $ac_executable_extensions; do 6557 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6558 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6560 break 2 6561 fi 6562done 6563 done 6564IFS=$as_save_IFS 6565 6566fi ;; 6567esac 6568fi 6569OBJDUMP=$ac_cv_prog_OBJDUMP 6570if test -n "$OBJDUMP"; then 6571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6572printf "%s\n" "$OBJDUMP" >&6; } 6573else 6574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6575printf "%s\n" "no" >&6; } 6576fi 6577 6578 6579fi 6580if test -z "$ac_cv_prog_OBJDUMP"; then 6581 ac_ct_OBJDUMP=$OBJDUMP 6582 # Extract the first word of "objdump", so it can be a program name with args. 6583set dummy objdump; ac_word=$2 6584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6585printf %s "checking for $ac_word... " >&6; } 6586if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 6587then : 6588 printf %s "(cached) " >&6 6589else case e in #( 6590 e) if test -n "$ac_ct_OBJDUMP"; then 6591 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6592else 6593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6594for as_dir in $PATH 6595do 6596 IFS=$as_save_IFS 6597 case $as_dir in #((( 6598 '') as_dir=./ ;; 6599 */) ;; 6600 *) as_dir=$as_dir/ ;; 6601 esac 6602 for ac_exec_ext in '' $ac_executable_extensions; do 6603 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6604 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6606 break 2 6607 fi 6608done 6609 done 6610IFS=$as_save_IFS 6611 6612fi ;; 6613esac 6614fi 6615ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6616if test -n "$ac_ct_OBJDUMP"; then 6617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6618printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6619else 6620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6621printf "%s\n" "no" >&6; } 6622fi 6623 6624 if test "x$ac_ct_OBJDUMP" = x; then 6625 OBJDUMP="false" 6626 else 6627 case $cross_compiling:$ac_tool_warned in 6628yes:) 6629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6630printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6631ac_tool_warned=yes ;; 6632esac 6633 OBJDUMP=$ac_ct_OBJDUMP 6634 fi 6635else 6636 OBJDUMP="$ac_cv_prog_OBJDUMP" 6637fi 6638 6639test -z "$OBJDUMP" && OBJDUMP=objdump 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6650printf %s "checking how to recognize dependent libraries... " >&6; } 6651if test ${lt_cv_deplibs_check_method+y} 6652then : 6653 printf %s "(cached) " >&6 6654else case e in #( 6655 e) lt_cv_file_magic_cmd='$MAGIC_CMD' 6656lt_cv_file_magic_test_file= 6657lt_cv_deplibs_check_method='unknown' 6658# Need to set the preceding variable on all platforms that support 6659# interlibrary dependencies. 6660# 'none' -- dependencies not supported. 6661# 'unknown' -- same as none, but documents that we really don't know. 6662# 'pass_all' -- all dependencies passed with no checks. 6663# 'file_magic [[regex]]' -- check by looking for files in library path 6664# that responds to the $file_magic_cmd with a given extended regex. 6665# If you have 'file' or equivalent on your system and you're not sure 6666# whether 'pass_all' will *always* work, you probably want this one. 6667 6668case $host_os in 6669aix[4-9]*) 6670 lt_cv_deplibs_check_method=pass_all 6671 ;; 6672 6673beos*) 6674 lt_cv_deplibs_check_method=pass_all 6675 ;; 6676 6677bsdi[45]*) 6678 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6679 lt_cv_file_magic_cmd='$FILECMD -L' 6680 lt_cv_file_magic_test_file=/shlib/libc.so 6681 ;; 6682 6683cygwin*) 6684 # func_win32_libid is a shell function defined in ltmain.sh 6685 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6686 lt_cv_file_magic_cmd='func_win32_libid' 6687 ;; 6688 6689mingw* | windows* | pw32*) 6690 # Base MSYS/MinGW do not provide the 'file' command needed by 6691 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6692 # unless we find 'file', for example because we are cross-compiling. 6693 if ( file / ) >/dev/null 2>&1; then 6694 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6695 lt_cv_file_magic_cmd='func_win32_libid' 6696 else 6697 # Keep this pattern in sync with the one in func_win32_libid. 6698 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)' 6699 lt_cv_file_magic_cmd='$OBJDUMP -f' 6700 fi 6701 ;; 6702 6703cegcc*) 6704 # use the weaker test based on 'objdump'. See mingw*. 6705 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6706 lt_cv_file_magic_cmd='$OBJDUMP -f' 6707 ;; 6708 6709darwin* | rhapsody*) 6710 lt_cv_deplibs_check_method=pass_all 6711 ;; 6712 6713freebsd* | dragonfly* | midnightbsd*) 6714 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6715 case $host_cpu in 6716 i*86 ) 6717 # Not sure whether the presence of OpenBSD here was a mistake. 6718 # Let's accept both of them until this is cleared up. 6719 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6720 lt_cv_file_magic_cmd=$FILECMD 6721 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6722 ;; 6723 esac 6724 else 6725 lt_cv_deplibs_check_method=pass_all 6726 fi 6727 ;; 6728 6729haiku*) 6730 lt_cv_deplibs_check_method=pass_all 6731 ;; 6732 6733hpux10.20* | hpux11*) 6734 lt_cv_file_magic_cmd=$FILECMD 6735 case $host_cpu in 6736 ia64*) 6737 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6738 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6739 ;; 6740 hppa*64*) 6741 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]' 6742 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6743 ;; 6744 *) 6745 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6746 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6747 ;; 6748 esac 6749 ;; 6750 6751interix[3-9]*) 6752 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6753 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6754 ;; 6755 6756irix5* | irix6* | nonstopux*) 6757 case $LD in 6758 *-32|*"-32 ") libmagic=32-bit;; 6759 *-n32|*"-n32 ") libmagic=N32;; 6760 *-64|*"-64 ") libmagic=64-bit;; 6761 *) libmagic=never-match;; 6762 esac 6763 lt_cv_deplibs_check_method=pass_all 6764 ;; 6765 6766# This must be glibc/ELF. 6767linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6768 lt_cv_deplibs_check_method=pass_all 6769 ;; 6770 6771*-mlibc) 6772 lt_cv_deplibs_check_method=pass_all 6773 ;; 6774 6775netbsd* | netbsdelf*-gnu) 6776 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6777 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6778 else 6779 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6780 fi 6781 ;; 6782 6783newos6*) 6784 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6785 lt_cv_file_magic_cmd=$FILECMD 6786 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6787 ;; 6788 6789*nto* | *qnx*) 6790 lt_cv_deplibs_check_method=pass_all 6791 ;; 6792 6793openbsd*) 6794 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6795 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6796 else 6797 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6798 fi 6799 ;; 6800 6801osf3* | osf4* | osf5*) 6802 lt_cv_deplibs_check_method=pass_all 6803 ;; 6804 6805rdos*) 6806 lt_cv_deplibs_check_method=pass_all 6807 ;; 6808 6809serenity*) 6810 lt_cv_deplibs_check_method=pass_all 6811 ;; 6812 6813solaris*) 6814 lt_cv_deplibs_check_method=pass_all 6815 ;; 6816 6817sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6818 lt_cv_deplibs_check_method=pass_all 6819 ;; 6820 6821sysv4 | sysv4.3*) 6822 case $host_vendor in 6823 motorola) 6824 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]' 6825 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6826 ;; 6827 ncr) 6828 lt_cv_deplibs_check_method=pass_all 6829 ;; 6830 sequent) 6831 lt_cv_file_magic_cmd='/bin/file' 6832 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6833 ;; 6834 sni) 6835 lt_cv_file_magic_cmd='/bin/file' 6836 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6837 lt_cv_file_magic_test_file=/lib/libc.so 6838 ;; 6839 siemens) 6840 lt_cv_deplibs_check_method=pass_all 6841 ;; 6842 pc) 6843 lt_cv_deplibs_check_method=pass_all 6844 ;; 6845 esac 6846 ;; 6847 6848tpf*) 6849 lt_cv_deplibs_check_method=pass_all 6850 ;; 6851os2*) 6852 lt_cv_deplibs_check_method=pass_all 6853 ;; 6854esac 6855 ;; 6856esac 6857fi 6858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6859printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6860 6861file_magic_glob= 6862want_nocaseglob=no 6863if test "$build" = "$host"; then 6864 case $host_os in 6865 mingw* | windows* | pw32*) 6866 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6867 want_nocaseglob=yes 6868 else 6869 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6870 fi 6871 ;; 6872 esac 6873fi 6874 6875file_magic_cmd=$lt_cv_file_magic_cmd 6876deplibs_check_method=$lt_cv_deplibs_check_method 6877test -z "$deplibs_check_method" && deplibs_check_method=unknown 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900if test -n "$ac_tool_prefix"; then 6901 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6902set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6904printf %s "checking for $ac_word... " >&6; } 6905if test ${ac_cv_prog_DLLTOOL+y} 6906then : 6907 printf %s "(cached) " >&6 6908else case e in #( 6909 e) if test -n "$DLLTOOL"; then 6910 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6911else 6912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6913for as_dir in $PATH 6914do 6915 IFS=$as_save_IFS 6916 case $as_dir in #((( 6917 '') as_dir=./ ;; 6918 */) ;; 6919 *) as_dir=$as_dir/ ;; 6920 esac 6921 for ac_exec_ext in '' $ac_executable_extensions; do 6922 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6923 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6924 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6925 break 2 6926 fi 6927done 6928 done 6929IFS=$as_save_IFS 6930 6931fi ;; 6932esac 6933fi 6934DLLTOOL=$ac_cv_prog_DLLTOOL 6935if test -n "$DLLTOOL"; then 6936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6937printf "%s\n" "$DLLTOOL" >&6; } 6938else 6939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6940printf "%s\n" "no" >&6; } 6941fi 6942 6943 6944fi 6945if test -z "$ac_cv_prog_DLLTOOL"; then 6946 ac_ct_DLLTOOL=$DLLTOOL 6947 # Extract the first word of "dlltool", so it can be a program name with args. 6948set dummy dlltool; ac_word=$2 6949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6950printf %s "checking for $ac_word... " >&6; } 6951if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6952then : 6953 printf %s "(cached) " >&6 6954else case e in #( 6955 e) if test -n "$ac_ct_DLLTOOL"; then 6956 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6957else 6958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6959for as_dir in $PATH 6960do 6961 IFS=$as_save_IFS 6962 case $as_dir in #((( 6963 '') as_dir=./ ;; 6964 */) ;; 6965 *) as_dir=$as_dir/ ;; 6966 esac 6967 for ac_exec_ext in '' $ac_executable_extensions; do 6968 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6969 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6971 break 2 6972 fi 6973done 6974 done 6975IFS=$as_save_IFS 6976 6977fi ;; 6978esac 6979fi 6980ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6981if test -n "$ac_ct_DLLTOOL"; then 6982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6983printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6984else 6985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6986printf "%s\n" "no" >&6; } 6987fi 6988 6989 if test "x$ac_ct_DLLTOOL" = x; then 6990 DLLTOOL="false" 6991 else 6992 case $cross_compiling:$ac_tool_warned in 6993yes:) 6994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6995printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6996ac_tool_warned=yes ;; 6997esac 6998 DLLTOOL=$ac_ct_DLLTOOL 6999 fi 7000else 7001 DLLTOOL="$ac_cv_prog_DLLTOOL" 7002fi 7003 7004test -z "$DLLTOOL" && DLLTOOL=dlltool 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7016printf %s "checking how to associate runtime and link libraries... " >&6; } 7017if test ${lt_cv_sharedlib_from_linklib_cmd+y} 7018then : 7019 printf %s "(cached) " >&6 7020else case e in #( 7021 e) lt_cv_sharedlib_from_linklib_cmd='unknown' 7022 7023case $host_os in 7024cygwin* | mingw* | windows* | pw32* | cegcc*) 7025 # two different shell functions defined in ltmain.sh; 7026 # decide which one to use based on capabilities of $DLLTOOL 7027 case `$DLLTOOL --help 2>&1` in 7028 *--identify-strict*) 7029 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7030 ;; 7031 *) 7032 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7033 ;; 7034 esac 7035 ;; 7036*) 7037 # fallback: assume linklib IS sharedlib 7038 lt_cv_sharedlib_from_linklib_cmd=$ECHO 7039 ;; 7040esac 7041 ;; 7042esac 7043fi 7044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7045printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7046sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7047test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7048 7049 7050 7051 7052 7053 7054 7055if test -n "$ac_tool_prefix"; then 7056 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7057set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7059printf %s "checking for $ac_word... " >&6; } 7060if test ${ac_cv_prog_RANLIB+y} 7061then : 7062 printf %s "(cached) " >&6 7063else case e in #( 7064 e) if test -n "$RANLIB"; then 7065 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7066else 7067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7068for as_dir in $PATH 7069do 7070 IFS=$as_save_IFS 7071 case $as_dir in #((( 7072 '') as_dir=./ ;; 7073 */) ;; 7074 *) as_dir=$as_dir/ ;; 7075 esac 7076 for ac_exec_ext in '' $ac_executable_extensions; do 7077 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7078 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7080 break 2 7081 fi 7082done 7083 done 7084IFS=$as_save_IFS 7085 7086fi ;; 7087esac 7088fi 7089RANLIB=$ac_cv_prog_RANLIB 7090if test -n "$RANLIB"; then 7091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7092printf "%s\n" "$RANLIB" >&6; } 7093else 7094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7095printf "%s\n" "no" >&6; } 7096fi 7097 7098 7099fi 7100if test -z "$ac_cv_prog_RANLIB"; then 7101 ac_ct_RANLIB=$RANLIB 7102 # Extract the first word of "ranlib", so it can be a program name with args. 7103set dummy ranlib; ac_word=$2 7104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7105printf %s "checking for $ac_word... " >&6; } 7106if test ${ac_cv_prog_ac_ct_RANLIB+y} 7107then : 7108 printf %s "(cached) " >&6 7109else case e in #( 7110 e) if test -n "$ac_ct_RANLIB"; then 7111 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7112else 7113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7114for as_dir in $PATH 7115do 7116 IFS=$as_save_IFS 7117 case $as_dir in #((( 7118 '') as_dir=./ ;; 7119 */) ;; 7120 *) as_dir=$as_dir/ ;; 7121 esac 7122 for ac_exec_ext in '' $ac_executable_extensions; do 7123 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7124 ac_cv_prog_ac_ct_RANLIB="ranlib" 7125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7126 break 2 7127 fi 7128done 7129 done 7130IFS=$as_save_IFS 7131 7132fi ;; 7133esac 7134fi 7135ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7136if test -n "$ac_ct_RANLIB"; then 7137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7138printf "%s\n" "$ac_ct_RANLIB" >&6; } 7139else 7140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7141printf "%s\n" "no" >&6; } 7142fi 7143 7144 if test "x$ac_ct_RANLIB" = x; then 7145 RANLIB=":" 7146 else 7147 case $cross_compiling:$ac_tool_warned in 7148yes:) 7149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7150printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7151ac_tool_warned=yes ;; 7152esac 7153 RANLIB=$ac_ct_RANLIB 7154 fi 7155else 7156 RANLIB="$ac_cv_prog_RANLIB" 7157fi 7158 7159if test -n "$ac_tool_prefix"; then 7160 for ac_prog in ar 7161 do 7162 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7163set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7165printf %s "checking for $ac_word... " >&6; } 7166if test ${ac_cv_prog_AR+y} 7167then : 7168 printf %s "(cached) " >&6 7169else case e in #( 7170 e) if test -n "$AR"; then 7171 ac_cv_prog_AR="$AR" # Let the user override the test. 7172else 7173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7174for as_dir in $PATH 7175do 7176 IFS=$as_save_IFS 7177 case $as_dir in #((( 7178 '') as_dir=./ ;; 7179 */) ;; 7180 *) as_dir=$as_dir/ ;; 7181 esac 7182 for ac_exec_ext in '' $ac_executable_extensions; do 7183 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7184 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7185 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7186 break 2 7187 fi 7188done 7189 done 7190IFS=$as_save_IFS 7191 7192fi ;; 7193esac 7194fi 7195AR=$ac_cv_prog_AR 7196if test -n "$AR"; then 7197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7198printf "%s\n" "$AR" >&6; } 7199else 7200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7201printf "%s\n" "no" >&6; } 7202fi 7203 7204 7205 test -n "$AR" && break 7206 done 7207fi 7208if test -z "$AR"; then 7209 ac_ct_AR=$AR 7210 for ac_prog in ar 7211do 7212 # Extract the first word of "$ac_prog", so it can be a program name with args. 7213set dummy $ac_prog; ac_word=$2 7214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7215printf %s "checking for $ac_word... " >&6; } 7216if test ${ac_cv_prog_ac_ct_AR+y} 7217then : 7218 printf %s "(cached) " >&6 7219else case e in #( 7220 e) if test -n "$ac_ct_AR"; then 7221 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7222else 7223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7224for as_dir in $PATH 7225do 7226 IFS=$as_save_IFS 7227 case $as_dir in #((( 7228 '') as_dir=./ ;; 7229 */) ;; 7230 *) as_dir=$as_dir/ ;; 7231 esac 7232 for ac_exec_ext in '' $ac_executable_extensions; do 7233 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7234 ac_cv_prog_ac_ct_AR="$ac_prog" 7235 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7236 break 2 7237 fi 7238done 7239 done 7240IFS=$as_save_IFS 7241 7242fi ;; 7243esac 7244fi 7245ac_ct_AR=$ac_cv_prog_ac_ct_AR 7246if test -n "$ac_ct_AR"; then 7247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7248printf "%s\n" "$ac_ct_AR" >&6; } 7249else 7250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7251printf "%s\n" "no" >&6; } 7252fi 7253 7254 7255 test -n "$ac_ct_AR" && break 7256done 7257 7258 if test "x$ac_ct_AR" = x; then 7259 AR="false" 7260 else 7261 case $cross_compiling:$ac_tool_warned in 7262yes:) 7263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7264printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7265ac_tool_warned=yes ;; 7266esac 7267 AR=$ac_ct_AR 7268 fi 7269fi 7270 7271: ${AR=ar} 7272 7273 7274 7275 7276 7277 7278# Use ARFLAGS variable as AR's operation code to sync the variable naming with 7279# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 7280# higher priority because that's what people were doing historically (setting 7281# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 7282# variable obsoleted/removed. 7283 7284test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 7285lt_ar_flags=$AR_FLAGS 7286 7287 7288 7289 7290 7291 7292# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 7293# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 7294 7295 7296 7297 7298 7299 7300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7301printf %s "checking for archiver @FILE support... " >&6; } 7302if test ${lt_cv_ar_at_file+y} 7303then : 7304 printf %s "(cached) " >&6 7305else case e in #( 7306 e) lt_cv_ar_at_file=no 7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7308/* end confdefs.h. */ 7309 7310int 7311main (void) 7312{ 7313 7314 ; 7315 return 0; 7316} 7317_ACEOF 7318if ac_fn_c_try_compile "$LINENO" 7319then : 7320 echo conftest.$ac_objext > conftest.lst 7321 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7323 (eval $lt_ar_try) 2>&5 7324 ac_status=$? 7325 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7326 test $ac_status = 0; } 7327 if test 0 -eq "$ac_status"; then 7328 # Ensure the archiver fails upon bogus file names. 7329 rm -f conftest.$ac_objext libconftest.a 7330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7331 (eval $lt_ar_try) 2>&5 7332 ac_status=$? 7333 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7334 test $ac_status = 0; } 7335 if test 0 -ne "$ac_status"; then 7336 lt_cv_ar_at_file=@ 7337 fi 7338 fi 7339 rm -f conftest.* libconftest.a 7340 7341fi 7342rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7343 ;; 7344esac 7345fi 7346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7347printf "%s\n" "$lt_cv_ar_at_file" >&6; } 7348 7349if test no = "$lt_cv_ar_at_file"; then 7350 archiver_list_spec= 7351else 7352 archiver_list_spec=$lt_cv_ar_at_file 7353fi 7354 7355 7356 7357 7358 7359 7360 7361if test -n "$ac_tool_prefix"; then 7362 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7363set dummy ${ac_tool_prefix}strip; ac_word=$2 7364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7365printf %s "checking for $ac_word... " >&6; } 7366if test ${ac_cv_prog_STRIP+y} 7367then : 7368 printf %s "(cached) " >&6 7369else case e in #( 7370 e) if test -n "$STRIP"; then 7371 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7372else 7373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7374for as_dir in $PATH 7375do 7376 IFS=$as_save_IFS 7377 case $as_dir in #((( 7378 '') as_dir=./ ;; 7379 */) ;; 7380 *) as_dir=$as_dir/ ;; 7381 esac 7382 for ac_exec_ext in '' $ac_executable_extensions; do 7383 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7384 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7385 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7386 break 2 7387 fi 7388done 7389 done 7390IFS=$as_save_IFS 7391 7392fi ;; 7393esac 7394fi 7395STRIP=$ac_cv_prog_STRIP 7396if test -n "$STRIP"; then 7397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7398printf "%s\n" "$STRIP" >&6; } 7399else 7400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7401printf "%s\n" "no" >&6; } 7402fi 7403 7404 7405fi 7406if test -z "$ac_cv_prog_STRIP"; then 7407 ac_ct_STRIP=$STRIP 7408 # Extract the first word of "strip", so it can be a program name with args. 7409set dummy strip; ac_word=$2 7410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7411printf %s "checking for $ac_word... " >&6; } 7412if test ${ac_cv_prog_ac_ct_STRIP+y} 7413then : 7414 printf %s "(cached) " >&6 7415else case e in #( 7416 e) if test -n "$ac_ct_STRIP"; then 7417 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7418else 7419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7420for as_dir in $PATH 7421do 7422 IFS=$as_save_IFS 7423 case $as_dir in #((( 7424 '') as_dir=./ ;; 7425 */) ;; 7426 *) as_dir=$as_dir/ ;; 7427 esac 7428 for ac_exec_ext in '' $ac_executable_extensions; do 7429 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7430 ac_cv_prog_ac_ct_STRIP="strip" 7431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7432 break 2 7433 fi 7434done 7435 done 7436IFS=$as_save_IFS 7437 7438fi ;; 7439esac 7440fi 7441ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7442if test -n "$ac_ct_STRIP"; then 7443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7444printf "%s\n" "$ac_ct_STRIP" >&6; } 7445else 7446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7447printf "%s\n" "no" >&6; } 7448fi 7449 7450 if test "x$ac_ct_STRIP" = x; then 7451 STRIP=":" 7452 else 7453 case $cross_compiling:$ac_tool_warned in 7454yes:) 7455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7456printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7457ac_tool_warned=yes ;; 7458esac 7459 STRIP=$ac_ct_STRIP 7460 fi 7461else 7462 STRIP="$ac_cv_prog_STRIP" 7463fi 7464 7465test -z "$STRIP" && STRIP=: 7466 7467 7468 7469 7470 7471 7472 7473test -z "$RANLIB" && RANLIB=: 7474 7475 7476 7477 7478 7479 7480# Determine commands to create old-style static archives. 7481old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7482old_postinstall_cmds='chmod 644 $oldlib' 7483old_postuninstall_cmds= 7484 7485if test -n "$RANLIB"; then 7486 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7487 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7488fi 7489 7490case $host_os in 7491 darwin*) 7492 lock_old_archive_extraction=yes ;; 7493 *) 7494 lock_old_archive_extraction=no ;; 7495esac 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535# If no C compiler was specified, use CC. 7536LTCC=${LTCC-"$CC"} 7537 7538# If no C compiler flags were specified, use CFLAGS. 7539LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7540 7541# Allow CC to be a program name with arguments. 7542compiler=$CC 7543 7544 7545# Check for command to grab the raw symbol name followed by C symbol from nm. 7546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7547printf %s "checking command to parse $NM output from $compiler object... " >&6; } 7548if test ${lt_cv_sys_global_symbol_pipe+y} 7549then : 7550 printf %s "(cached) " >&6 7551else case e in #( 7552 e) 7553# These are sane defaults that work on at least a few old systems. 7554# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7555 7556# Character class describing NM global symbol codes. 7557symcode='[BCDEGRST]' 7558 7559# Regexp to match symbols that can be accessed directly from C. 7560sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7561 7562# Define system-specific variables. 7563case $host_os in 7564aix*) 7565 symcode='[BCDT]' 7566 ;; 7567cygwin* | mingw* | windows* | pw32* | cegcc*) 7568 symcode='[ABCDGISTW]' 7569 ;; 7570hpux*) 7571 if test ia64 = "$host_cpu"; then 7572 symcode='[ABCDEGRST]' 7573 fi 7574 ;; 7575irix* | nonstopux*) 7576 symcode='[BCDEGRST]' 7577 ;; 7578osf*) 7579 symcode='[BCDEGQRST]' 7580 ;; 7581solaris*) 7582 symcode='[BCDRT]' 7583 ;; 7584sco3.2v5*) 7585 symcode='[DT]' 7586 ;; 7587sysv4.2uw2*) 7588 symcode='[DT]' 7589 ;; 7590sysv5* | sco5v6* | unixware* | OpenUNIX*) 7591 symcode='[ABDT]' 7592 ;; 7593sysv4) 7594 symcode='[DFNSTU]' 7595 ;; 7596esac 7597 7598# If we're using GNU nm, then use its standard symbol codes. 7599case `$NM -V 2>&1` in 7600*GNU* | *'with BFD'*) 7601 symcode='[ABCDGIRSTW]' ;; 7602esac 7603 7604if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7605 # Gets list of data symbols to import. 7606 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 7607 # Adjust the below global symbol transforms to fixup imported variables. 7608 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7609 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7610 lt_c_name_lib_hook="\ 7611 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7612 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7613else 7614 # Disable hooks by default. 7615 lt_cv_sys_global_symbol_to_import= 7616 lt_cdecl_hook= 7617 lt_c_name_hook= 7618 lt_c_name_lib_hook= 7619fi 7620 7621# Transform an extracted symbol line into a proper C declaration. 7622# Some systems (esp. on ia64) link data and code symbols differently, 7623# so use this general approach. 7624lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 7625$lt_cdecl_hook\ 7626" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7627" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7628 7629# Transform an extracted symbol line into symbol name and symbol address 7630lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 7631$lt_c_name_hook\ 7632" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7633" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7634 7635# Transform an extracted symbol line into symbol name with lib prefix and 7636# symbol address. 7637lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7638$lt_c_name_lib_hook\ 7639" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7640" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7641" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7642 7643# Handle CRLF in mingw tool chain 7644opt_cr= 7645case $build_os in 7646mingw* | windows*) 7647 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7648 ;; 7649esac 7650 7651# Try without a prefix underscore, then with it. 7652for ac_symprfx in "" "_"; do 7653 7654 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7655 symxfrm="\\1 $ac_symprfx\\2 \\2" 7656 7657 # Write the raw and C identifiers. 7658 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7659 # Fake it for dumpbin and say T for any non-static function, 7660 # D for any global variable and I for any imported variable. 7661 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7662 # which start with @ or ?. 7663 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7664" {last_section=section; section=\$ 3};"\ 7665" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7666" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7667" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7668" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7669" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7670" \$ 0!~/External *\|/{next};"\ 7671" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7672" {if(hide[section]) next};"\ 7673" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7674" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7675" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7676" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7677" ' prfx=^$ac_symprfx" 7678 else 7679 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7680 fi 7681 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7682 7683 # Check to see that the pipe works correctly. 7684 pipe_works=no 7685 7686 rm -f conftest* 7687 cat > conftest.$ac_ext <<_LT_EOF 7688#ifdef __cplusplus 7689extern "C" { 7690#endif 7691char nm_test_var; 7692void nm_test_func(void); 7693void nm_test_func(void){} 7694#ifdef __cplusplus 7695} 7696#endif 7697int main(void){nm_test_var='a';nm_test_func();return(0);} 7698_LT_EOF 7699 7700 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7701 (eval $ac_compile) 2>&5 7702 ac_status=$? 7703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7704 test $ac_status = 0; }; then 7705 # Now try to grab the symbols. 7706 nlist=conftest.nm 7707 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 7708 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 7709 # Try sorting and uniquifying the output. 7710 if sort "$nlist" | uniq > "$nlist"T; then 7711 mv -f "$nlist"T "$nlist" 7712 else 7713 rm -f "$nlist"T 7714 fi 7715 7716 # Make sure that we snagged all the symbols we need. 7717 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7718 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7719 cat <<_LT_EOF > conftest.$ac_ext 7720/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7721#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7722/* DATA imports from DLLs on WIN32 can't be const, because runtime 7723 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7724# define LT_DLSYM_CONST 7725#elif defined __osf__ 7726/* This system does not cope well with relocations in const data. */ 7727# define LT_DLSYM_CONST 7728#else 7729# define LT_DLSYM_CONST const 7730#endif 7731 7732#ifdef __cplusplus 7733extern "C" { 7734#endif 7735 7736_LT_EOF 7737 # Now generate the symbol file. 7738 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7739 7740 cat <<_LT_EOF >> conftest.$ac_ext 7741 7742/* The mapping between symbol names and symbols. */ 7743LT_DLSYM_CONST struct { 7744 const char *name; 7745 void *address; 7746} 7747lt__PROGRAM__LTX_preloaded_symbols[] = 7748{ 7749 { "@PROGRAM@", (void *) 0 }, 7750_LT_EOF 7751 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7752 cat <<\_LT_EOF >> conftest.$ac_ext 7753 {0, (void *) 0} 7754}; 7755 7756/* This works around a problem in FreeBSD linker */ 7757#ifdef FREEBSD_WORKAROUND 7758static const void *lt_preloaded_setup() { 7759 return lt__PROGRAM__LTX_preloaded_symbols; 7760} 7761#endif 7762 7763#ifdef __cplusplus 7764} 7765#endif 7766_LT_EOF 7767 # Now try linking the two files. 7768 mv conftest.$ac_objext conftstm.$ac_objext 7769 lt_globsym_save_LIBS=$LIBS 7770 lt_globsym_save_CFLAGS=$CFLAGS 7771 LIBS=conftstm.$ac_objext 7772 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7773 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7774 (eval $ac_link) 2>&5 7775 ac_status=$? 7776 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7777 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7778 pipe_works=yes 7779 fi 7780 LIBS=$lt_globsym_save_LIBS 7781 CFLAGS=$lt_globsym_save_CFLAGS 7782 else 7783 echo "cannot find nm_test_func in $nlist" >&5 7784 fi 7785 else 7786 echo "cannot find nm_test_var in $nlist" >&5 7787 fi 7788 else 7789 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7790 fi 7791 else 7792 echo "$progname: failed program was:" >&5 7793 cat conftest.$ac_ext >&5 7794 fi 7795 rm -rf conftest* conftst* 7796 7797 # Do not use the global_symbol_pipe unless it works. 7798 if test yes = "$pipe_works"; then 7799 break 7800 else 7801 lt_cv_sys_global_symbol_pipe= 7802 fi 7803done 7804 ;; 7805esac 7806fi 7807 7808if test -z "$lt_cv_sys_global_symbol_pipe"; then 7809 lt_cv_sys_global_symbol_to_cdecl= 7810fi 7811if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7813printf "%s\n" "failed" >&6; } 7814else 7815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7816printf "%s\n" "ok" >&6; } 7817fi 7818 7819# Response file support. 7820if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7821 nm_file_list_spec='@' 7822elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7823 nm_file_list_spec='@' 7824fi 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7863printf %s "checking for sysroot... " >&6; } 7864 7865# Check whether --with-sysroot was given. 7866if test ${with_sysroot+y} 7867then : 7868 withval=$with_sysroot; 7869else case e in #( 7870 e) with_sysroot=no ;; 7871esac 7872fi 7873 7874 7875lt_sysroot= 7876case $with_sysroot in #( 7877 yes) 7878 if test yes = "$GCC"; then 7879 # Trim trailing / since we'll always append absolute paths and we want 7880 # to avoid //, if only for less confusing output for the user. 7881 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'` 7882 fi 7883 ;; #( 7884 /*) 7885 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7886 ;; #( 7887 no|'') 7888 ;; #( 7889 *) 7890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7891printf "%s\n" "$with_sysroot" >&6; } 7892 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7893 ;; 7894esac 7895 7896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7897printf "%s\n" "${lt_sysroot:-no}" >&6; } 7898 7899 7900 7901 7902 7903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7904printf %s "checking for a working dd... " >&6; } 7905if test ${ac_cv_path_lt_DD+y} 7906then : 7907 printf %s "(cached) " >&6 7908else case e in #( 7909 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7910cat conftest.i conftest.i >conftest2.i 7911: ${lt_DD:=$DD} 7912if test -z "$lt_DD"; then 7913 ac_path_lt_DD_found=false 7914 # Loop through the user's path and test for each of PROGNAME-LIST 7915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7916for as_dir in $PATH 7917do 7918 IFS=$as_save_IFS 7919 case $as_dir in #((( 7920 '') as_dir=./ ;; 7921 */) ;; 7922 *) as_dir=$as_dir/ ;; 7923 esac 7924 for ac_prog in dd 7925 do 7926 for ac_exec_ext in '' $ac_executable_extensions; do 7927 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7928 as_fn_executable_p "$ac_path_lt_DD" || continue 7929if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7930 cmp -s conftest.i conftest.out \ 7931 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7932fi 7933 $ac_path_lt_DD_found && break 3 7934 done 7935 done 7936 done 7937IFS=$as_save_IFS 7938 if test -z "$ac_cv_path_lt_DD"; then 7939 : 7940 fi 7941else 7942 ac_cv_path_lt_DD=$lt_DD 7943fi 7944 7945rm -f conftest.i conftest2.i conftest.out ;; 7946esac 7947fi 7948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7949printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7950 7951 7952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7953printf %s "checking how to truncate binary pipes... " >&6; } 7954if test ${lt_cv_truncate_bin+y} 7955then : 7956 printf %s "(cached) " >&6 7957else case e in #( 7958 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7959cat conftest.i conftest.i >conftest2.i 7960lt_cv_truncate_bin= 7961if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7962 cmp -s conftest.i conftest.out \ 7963 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7964fi 7965rm -f conftest.i conftest2.i conftest.out 7966test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; 7967esac 7968fi 7969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7970printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7971 7972 7973 7974 7975 7976 7977 7978# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7979func_cc_basename () 7980{ 7981 for cc_temp in $*""; do 7982 case $cc_temp in 7983 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7984 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7985 \-*) ;; 7986 *) break;; 7987 esac 7988 done 7989 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7990} 7991 7992# Check whether --enable-libtool-lock was given. 7993if test ${enable_libtool_lock+y} 7994then : 7995 enableval=$enable_libtool_lock; 7996fi 7997 7998test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7999 8000# Some flags need to be propagated to the compiler or linker for good 8001# libtool support. 8002case $host in 8003ia64-*-hpux*) 8004 # Find out what ABI is being produced by ac_compile, and set mode 8005 # options accordingly. 8006 echo 'int i;' > conftest.$ac_ext 8007 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8008 (eval $ac_compile) 2>&5 8009 ac_status=$? 8010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8011 test $ac_status = 0; }; then 8012 case `$FILECMD conftest.$ac_objext` in 8013 *ELF-32*) 8014 HPUX_IA64_MODE=32 8015 ;; 8016 *ELF-64*) 8017 HPUX_IA64_MODE=64 8018 ;; 8019 esac 8020 fi 8021 rm -rf conftest* 8022 ;; 8023*-*-irix6*) 8024 # Find out what ABI is being produced by ac_compile, and set linker 8025 # options accordingly. 8026 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8027 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8028 (eval $ac_compile) 2>&5 8029 ac_status=$? 8030 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8031 test $ac_status = 0; }; then 8032 if test yes = "$lt_cv_prog_gnu_ld"; then 8033 case `$FILECMD conftest.$ac_objext` in 8034 *32-bit*) 8035 LD="${LD-ld} -melf32bsmip" 8036 ;; 8037 *N32*) 8038 LD="${LD-ld} -melf32bmipn32" 8039 ;; 8040 *64-bit*) 8041 LD="${LD-ld} -melf64bmip" 8042 ;; 8043 esac 8044 else 8045 case `$FILECMD conftest.$ac_objext` in 8046 *32-bit*) 8047 LD="${LD-ld} -32" 8048 ;; 8049 *N32*) 8050 LD="${LD-ld} -n32" 8051 ;; 8052 *64-bit*) 8053 LD="${LD-ld} -64" 8054 ;; 8055 esac 8056 fi 8057 fi 8058 rm -rf conftest* 8059 ;; 8060 8061mips64*-*linux*) 8062 # Find out what ABI is being produced by ac_compile, and set linker 8063 # options accordingly. 8064 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8065 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8066 (eval $ac_compile) 2>&5 8067 ac_status=$? 8068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8069 test $ac_status = 0; }; then 8070 emul=elf 8071 case `$FILECMD conftest.$ac_objext` in 8072 *32-bit*) 8073 emul="${emul}32" 8074 ;; 8075 *64-bit*) 8076 emul="${emul}64" 8077 ;; 8078 esac 8079 case `$FILECMD conftest.$ac_objext` in 8080 *MSB*) 8081 emul="${emul}btsmip" 8082 ;; 8083 *LSB*) 8084 emul="${emul}ltsmip" 8085 ;; 8086 esac 8087 case `$FILECMD conftest.$ac_objext` in 8088 *N32*) 8089 emul="${emul}n32" 8090 ;; 8091 esac 8092 LD="${LD-ld} -m $emul" 8093 fi 8094 rm -rf conftest* 8095 ;; 8096 8097x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 8098s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*) 8099 # Find out what ABI is being produced by ac_compile, and set linker 8100 # options accordingly. Note that the listed cases only cover the 8101 # situations where additional linker options are needed (such as when 8102 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 8103 # vice versa); the common cases where no linker options are needed do 8104 # not appear in the list. 8105 echo 'int i;' > conftest.$ac_ext 8106 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8107 (eval $ac_compile) 2>&5 8108 ac_status=$? 8109 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8110 test $ac_status = 0; }; then 8111 case `$FILECMD conftest.o` in 8112 *32-bit*) 8113 case $host in 8114 x86_64-*kfreebsd*-gnu) 8115 LD="${LD-ld} -m elf_i386_fbsd" 8116 ;; 8117 x86_64-*linux*|x86_64-gnu*) 8118 case `$FILECMD conftest.o` in 8119 *x86-64*) 8120 LD="${LD-ld} -m elf32_x86_64" 8121 ;; 8122 *) 8123 LD="${LD-ld} -m elf_i386" 8124 ;; 8125 esac 8126 ;; 8127 powerpc64le-*linux*) 8128 LD="${LD-ld} -m elf32lppclinux" 8129 ;; 8130 powerpc64-*linux*) 8131 LD="${LD-ld} -m elf32ppclinux" 8132 ;; 8133 s390x-*linux*) 8134 LD="${LD-ld} -m elf_s390" 8135 ;; 8136 sparc64-*linux*) 8137 LD="${LD-ld} -m elf32_sparc" 8138 ;; 8139 esac 8140 ;; 8141 *64-bit*) 8142 case $host in 8143 x86_64-*kfreebsd*-gnu) 8144 LD="${LD-ld} -m elf_x86_64_fbsd" 8145 ;; 8146 x86_64-*linux*|x86_64-gnu*) 8147 LD="${LD-ld} -m elf_x86_64" 8148 ;; 8149 powerpcle-*linux*) 8150 LD="${LD-ld} -m elf64lppc" 8151 ;; 8152 powerpc-*linux*) 8153 LD="${LD-ld} -m elf64ppc" 8154 ;; 8155 s390*-*linux*|s390*-*tpf*) 8156 LD="${LD-ld} -m elf64_s390" 8157 ;; 8158 sparc*-*linux*) 8159 LD="${LD-ld} -m elf64_sparc" 8160 ;; 8161 esac 8162 ;; 8163 esac 8164 fi 8165 rm -rf conftest* 8166 ;; 8167 8168*-*-sco3.2v5*) 8169 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8170 SAVE_CFLAGS=$CFLAGS 8171 CFLAGS="$CFLAGS -belf" 8172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8173printf %s "checking whether the C compiler needs -belf... " >&6; } 8174if test ${lt_cv_cc_needs_belf+y} 8175then : 8176 printf %s "(cached) " >&6 8177else case e in #( 8178 e) ac_ext=c 8179ac_cpp='$CPP $CPPFLAGS' 8180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8182ac_compiler_gnu=$ac_cv_c_compiler_gnu 8183 8184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8185/* end confdefs.h. */ 8186 8187int 8188main (void) 8189{ 8190 8191 ; 8192 return 0; 8193} 8194_ACEOF 8195if ac_fn_c_try_link "$LINENO" 8196then : 8197 lt_cv_cc_needs_belf=yes 8198else case e in #( 8199 e) lt_cv_cc_needs_belf=no ;; 8200esac 8201fi 8202rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8203 conftest$ac_exeext conftest.$ac_ext 8204 ac_ext=c 8205ac_cpp='$CPP $CPPFLAGS' 8206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8208ac_compiler_gnu=$ac_cv_c_compiler_gnu 8209 ;; 8210esac 8211fi 8212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8213printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 8214 if test yes != "$lt_cv_cc_needs_belf"; then 8215 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8216 CFLAGS=$SAVE_CFLAGS 8217 fi 8218 ;; 8219*-*solaris*) 8220 # Find out what ABI is being produced by ac_compile, and set linker 8221 # options accordingly. 8222 echo 'int i;' > conftest.$ac_ext 8223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8224 (eval $ac_compile) 2>&5 8225 ac_status=$? 8226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8227 test $ac_status = 0; }; then 8228 case `$FILECMD conftest.o` in 8229 *64-bit*) 8230 case $lt_cv_prog_gnu_ld in 8231 yes*) 8232 case $host in 8233 i?86-*-solaris*|x86_64-*-solaris*) 8234 LD="${LD-ld} -m elf_x86_64" 8235 ;; 8236 sparc*-*-solaris*) 8237 LD="${LD-ld} -m elf64_sparc" 8238 ;; 8239 esac 8240 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8241 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8242 LD=${LD-ld}_sol2 8243 fi 8244 ;; 8245 *) 8246 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8247 LD="${LD-ld} -64" 8248 fi 8249 ;; 8250 esac 8251 ;; 8252 esac 8253 fi 8254 rm -rf conftest* 8255 ;; 8256esac 8257 8258need_locks=$enable_libtool_lock 8259 8260if test -n "$ac_tool_prefix"; then 8261 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8262set dummy ${ac_tool_prefix}mt; ac_word=$2 8263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8264printf %s "checking for $ac_word... " >&6; } 8265if test ${ac_cv_prog_MANIFEST_TOOL+y} 8266then : 8267 printf %s "(cached) " >&6 8268else case e in #( 8269 e) if test -n "$MANIFEST_TOOL"; then 8270 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8271else 8272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8273for as_dir in $PATH 8274do 8275 IFS=$as_save_IFS 8276 case $as_dir in #((( 8277 '') as_dir=./ ;; 8278 */) ;; 8279 *) as_dir=$as_dir/ ;; 8280 esac 8281 for ac_exec_ext in '' $ac_executable_extensions; do 8282 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8283 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8285 break 2 8286 fi 8287done 8288 done 8289IFS=$as_save_IFS 8290 8291fi ;; 8292esac 8293fi 8294MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8295if test -n "$MANIFEST_TOOL"; then 8296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8297printf "%s\n" "$MANIFEST_TOOL" >&6; } 8298else 8299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8300printf "%s\n" "no" >&6; } 8301fi 8302 8303 8304fi 8305if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8306 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8307 # Extract the first word of "mt", so it can be a program name with args. 8308set dummy mt; ac_word=$2 8309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8310printf %s "checking for $ac_word... " >&6; } 8311if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 8312then : 8313 printf %s "(cached) " >&6 8314else case e in #( 8315 e) if test -n "$ac_ct_MANIFEST_TOOL"; then 8316 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8317else 8318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8319for as_dir in $PATH 8320do 8321 IFS=$as_save_IFS 8322 case $as_dir in #((( 8323 '') as_dir=./ ;; 8324 */) ;; 8325 *) as_dir=$as_dir/ ;; 8326 esac 8327 for ac_exec_ext in '' $ac_executable_extensions; do 8328 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8329 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8331 break 2 8332 fi 8333done 8334 done 8335IFS=$as_save_IFS 8336 8337fi ;; 8338esac 8339fi 8340ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8341if test -n "$ac_ct_MANIFEST_TOOL"; then 8342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8343printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 8344else 8345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8346printf "%s\n" "no" >&6; } 8347fi 8348 8349 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8350 MANIFEST_TOOL=":" 8351 else 8352 case $cross_compiling:$ac_tool_warned in 8353yes:) 8354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8355printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8356ac_tool_warned=yes ;; 8357esac 8358 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8359 fi 8360else 8361 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8362fi 8363 8364test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8366printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8367if test ${lt_cv_path_manifest_tool+y} 8368then : 8369 printf %s "(cached) " >&6 8370else case e in #( 8371 e) lt_cv_path_manifest_tool=no 8372 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8373 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8374 cat conftest.err >&5 8375 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8376 lt_cv_path_manifest_tool=yes 8377 fi 8378 rm -f conftest* ;; 8379esac 8380fi 8381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5 8382printf "%s\n" "$lt_cv_path_manifest_tool" >&6; } 8383if test yes != "$lt_cv_path_manifest_tool"; then 8384 MANIFEST_TOOL=: 8385fi 8386 8387 8388 8389 8390 8391 8392 case $host_os in 8393 rhapsody* | darwin*) 8394 if test -n "$ac_tool_prefix"; then 8395 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8396set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8398printf %s "checking for $ac_word... " >&6; } 8399if test ${ac_cv_prog_DSYMUTIL+y} 8400then : 8401 printf %s "(cached) " >&6 8402else case e in #( 8403 e) if test -n "$DSYMUTIL"; then 8404 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8405else 8406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8407for as_dir in $PATH 8408do 8409 IFS=$as_save_IFS 8410 case $as_dir in #((( 8411 '') as_dir=./ ;; 8412 */) ;; 8413 *) as_dir=$as_dir/ ;; 8414 esac 8415 for ac_exec_ext in '' $ac_executable_extensions; do 8416 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8417 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8418 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8419 break 2 8420 fi 8421done 8422 done 8423IFS=$as_save_IFS 8424 8425fi ;; 8426esac 8427fi 8428DSYMUTIL=$ac_cv_prog_DSYMUTIL 8429if test -n "$DSYMUTIL"; then 8430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8431printf "%s\n" "$DSYMUTIL" >&6; } 8432else 8433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8434printf "%s\n" "no" >&6; } 8435fi 8436 8437 8438fi 8439if test -z "$ac_cv_prog_DSYMUTIL"; then 8440 ac_ct_DSYMUTIL=$DSYMUTIL 8441 # Extract the first word of "dsymutil", so it can be a program name with args. 8442set dummy dsymutil; ac_word=$2 8443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8444printf %s "checking for $ac_word... " >&6; } 8445if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 8446then : 8447 printf %s "(cached) " >&6 8448else case e in #( 8449 e) if test -n "$ac_ct_DSYMUTIL"; then 8450 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8451else 8452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8453for as_dir in $PATH 8454do 8455 IFS=$as_save_IFS 8456 case $as_dir in #((( 8457 '') as_dir=./ ;; 8458 */) ;; 8459 *) as_dir=$as_dir/ ;; 8460 esac 8461 for ac_exec_ext in '' $ac_executable_extensions; do 8462 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8463 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8465 break 2 8466 fi 8467done 8468 done 8469IFS=$as_save_IFS 8470 8471fi ;; 8472esac 8473fi 8474ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8475if test -n "$ac_ct_DSYMUTIL"; then 8476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8477printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 8478else 8479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8480printf "%s\n" "no" >&6; } 8481fi 8482 8483 if test "x$ac_ct_DSYMUTIL" = x; then 8484 DSYMUTIL=":" 8485 else 8486 case $cross_compiling:$ac_tool_warned in 8487yes:) 8488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8489printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8490ac_tool_warned=yes ;; 8491esac 8492 DSYMUTIL=$ac_ct_DSYMUTIL 8493 fi 8494else 8495 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8496fi 8497 8498 if test -n "$ac_tool_prefix"; then 8499 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8500set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8502printf %s "checking for $ac_word... " >&6; } 8503if test ${ac_cv_prog_NMEDIT+y} 8504then : 8505 printf %s "(cached) " >&6 8506else case e in #( 8507 e) if test -n "$NMEDIT"; then 8508 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8509else 8510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8511for as_dir in $PATH 8512do 8513 IFS=$as_save_IFS 8514 case $as_dir in #((( 8515 '') as_dir=./ ;; 8516 */) ;; 8517 *) as_dir=$as_dir/ ;; 8518 esac 8519 for ac_exec_ext in '' $ac_executable_extensions; do 8520 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8521 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8523 break 2 8524 fi 8525done 8526 done 8527IFS=$as_save_IFS 8528 8529fi ;; 8530esac 8531fi 8532NMEDIT=$ac_cv_prog_NMEDIT 8533if test -n "$NMEDIT"; then 8534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8535printf "%s\n" "$NMEDIT" >&6; } 8536else 8537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8538printf "%s\n" "no" >&6; } 8539fi 8540 8541 8542fi 8543if test -z "$ac_cv_prog_NMEDIT"; then 8544 ac_ct_NMEDIT=$NMEDIT 8545 # Extract the first word of "nmedit", so it can be a program name with args. 8546set dummy nmedit; ac_word=$2 8547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8548printf %s "checking for $ac_word... " >&6; } 8549if test ${ac_cv_prog_ac_ct_NMEDIT+y} 8550then : 8551 printf %s "(cached) " >&6 8552else case e in #( 8553 e) if test -n "$ac_ct_NMEDIT"; then 8554 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8555else 8556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8557for as_dir in $PATH 8558do 8559 IFS=$as_save_IFS 8560 case $as_dir in #((( 8561 '') as_dir=./ ;; 8562 */) ;; 8563 *) as_dir=$as_dir/ ;; 8564 esac 8565 for ac_exec_ext in '' $ac_executable_extensions; do 8566 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8567 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8569 break 2 8570 fi 8571done 8572 done 8573IFS=$as_save_IFS 8574 8575fi ;; 8576esac 8577fi 8578ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8579if test -n "$ac_ct_NMEDIT"; then 8580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8581printf "%s\n" "$ac_ct_NMEDIT" >&6; } 8582else 8583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8584printf "%s\n" "no" >&6; } 8585fi 8586 8587 if test "x$ac_ct_NMEDIT" = x; then 8588 NMEDIT=":" 8589 else 8590 case $cross_compiling:$ac_tool_warned in 8591yes:) 8592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8593printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8594ac_tool_warned=yes ;; 8595esac 8596 NMEDIT=$ac_ct_NMEDIT 8597 fi 8598else 8599 NMEDIT="$ac_cv_prog_NMEDIT" 8600fi 8601 8602 if test -n "$ac_tool_prefix"; then 8603 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8604set dummy ${ac_tool_prefix}lipo; ac_word=$2 8605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8606printf %s "checking for $ac_word... " >&6; } 8607if test ${ac_cv_prog_LIPO+y} 8608then : 8609 printf %s "(cached) " >&6 8610else case e in #( 8611 e) if test -n "$LIPO"; then 8612 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8613else 8614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8615for as_dir in $PATH 8616do 8617 IFS=$as_save_IFS 8618 case $as_dir in #((( 8619 '') as_dir=./ ;; 8620 */) ;; 8621 *) as_dir=$as_dir/ ;; 8622 esac 8623 for ac_exec_ext in '' $ac_executable_extensions; do 8624 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8625 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8627 break 2 8628 fi 8629done 8630 done 8631IFS=$as_save_IFS 8632 8633fi ;; 8634esac 8635fi 8636LIPO=$ac_cv_prog_LIPO 8637if test -n "$LIPO"; then 8638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8639printf "%s\n" "$LIPO" >&6; } 8640else 8641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8642printf "%s\n" "no" >&6; } 8643fi 8644 8645 8646fi 8647if test -z "$ac_cv_prog_LIPO"; then 8648 ac_ct_LIPO=$LIPO 8649 # Extract the first word of "lipo", so it can be a program name with args. 8650set dummy lipo; ac_word=$2 8651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8652printf %s "checking for $ac_word... " >&6; } 8653if test ${ac_cv_prog_ac_ct_LIPO+y} 8654then : 8655 printf %s "(cached) " >&6 8656else case e in #( 8657 e) if test -n "$ac_ct_LIPO"; then 8658 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8659else 8660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8661for as_dir in $PATH 8662do 8663 IFS=$as_save_IFS 8664 case $as_dir in #((( 8665 '') as_dir=./ ;; 8666 */) ;; 8667 *) as_dir=$as_dir/ ;; 8668 esac 8669 for ac_exec_ext in '' $ac_executable_extensions; do 8670 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8671 ac_cv_prog_ac_ct_LIPO="lipo" 8672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8673 break 2 8674 fi 8675done 8676 done 8677IFS=$as_save_IFS 8678 8679fi ;; 8680esac 8681fi 8682ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8683if test -n "$ac_ct_LIPO"; then 8684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8685printf "%s\n" "$ac_ct_LIPO" >&6; } 8686else 8687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8688printf "%s\n" "no" >&6; } 8689fi 8690 8691 if test "x$ac_ct_LIPO" = x; then 8692 LIPO=":" 8693 else 8694 case $cross_compiling:$ac_tool_warned in 8695yes:) 8696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8697printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8698ac_tool_warned=yes ;; 8699esac 8700 LIPO=$ac_ct_LIPO 8701 fi 8702else 8703 LIPO="$ac_cv_prog_LIPO" 8704fi 8705 8706 if test -n "$ac_tool_prefix"; then 8707 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8708set dummy ${ac_tool_prefix}otool; ac_word=$2 8709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8710printf %s "checking for $ac_word... " >&6; } 8711if test ${ac_cv_prog_OTOOL+y} 8712then : 8713 printf %s "(cached) " >&6 8714else case e in #( 8715 e) if test -n "$OTOOL"; then 8716 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8717else 8718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8719for as_dir in $PATH 8720do 8721 IFS=$as_save_IFS 8722 case $as_dir in #((( 8723 '') as_dir=./ ;; 8724 */) ;; 8725 *) as_dir=$as_dir/ ;; 8726 esac 8727 for ac_exec_ext in '' $ac_executable_extensions; do 8728 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8729 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8731 break 2 8732 fi 8733done 8734 done 8735IFS=$as_save_IFS 8736 8737fi ;; 8738esac 8739fi 8740OTOOL=$ac_cv_prog_OTOOL 8741if test -n "$OTOOL"; then 8742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8743printf "%s\n" "$OTOOL" >&6; } 8744else 8745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8746printf "%s\n" "no" >&6; } 8747fi 8748 8749 8750fi 8751if test -z "$ac_cv_prog_OTOOL"; then 8752 ac_ct_OTOOL=$OTOOL 8753 # Extract the first word of "otool", so it can be a program name with args. 8754set dummy otool; ac_word=$2 8755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8756printf %s "checking for $ac_word... " >&6; } 8757if test ${ac_cv_prog_ac_ct_OTOOL+y} 8758then : 8759 printf %s "(cached) " >&6 8760else case e in #( 8761 e) if test -n "$ac_ct_OTOOL"; then 8762 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8763else 8764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8765for as_dir in $PATH 8766do 8767 IFS=$as_save_IFS 8768 case $as_dir in #((( 8769 '') as_dir=./ ;; 8770 */) ;; 8771 *) as_dir=$as_dir/ ;; 8772 esac 8773 for ac_exec_ext in '' $ac_executable_extensions; do 8774 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8775 ac_cv_prog_ac_ct_OTOOL="otool" 8776 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8777 break 2 8778 fi 8779done 8780 done 8781IFS=$as_save_IFS 8782 8783fi ;; 8784esac 8785fi 8786ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8787if test -n "$ac_ct_OTOOL"; then 8788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8789printf "%s\n" "$ac_ct_OTOOL" >&6; } 8790else 8791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8792printf "%s\n" "no" >&6; } 8793fi 8794 8795 if test "x$ac_ct_OTOOL" = x; then 8796 OTOOL=":" 8797 else 8798 case $cross_compiling:$ac_tool_warned in 8799yes:) 8800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8801printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8802ac_tool_warned=yes ;; 8803esac 8804 OTOOL=$ac_ct_OTOOL 8805 fi 8806else 8807 OTOOL="$ac_cv_prog_OTOOL" 8808fi 8809 8810 if test -n "$ac_tool_prefix"; then 8811 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8812set dummy ${ac_tool_prefix}otool64; ac_word=$2 8813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8814printf %s "checking for $ac_word... " >&6; } 8815if test ${ac_cv_prog_OTOOL64+y} 8816then : 8817 printf %s "(cached) " >&6 8818else case e in #( 8819 e) if test -n "$OTOOL64"; then 8820 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8821else 8822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8823for as_dir in $PATH 8824do 8825 IFS=$as_save_IFS 8826 case $as_dir in #((( 8827 '') as_dir=./ ;; 8828 */) ;; 8829 *) as_dir=$as_dir/ ;; 8830 esac 8831 for ac_exec_ext in '' $ac_executable_extensions; do 8832 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8833 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8835 break 2 8836 fi 8837done 8838 done 8839IFS=$as_save_IFS 8840 8841fi ;; 8842esac 8843fi 8844OTOOL64=$ac_cv_prog_OTOOL64 8845if test -n "$OTOOL64"; then 8846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8847printf "%s\n" "$OTOOL64" >&6; } 8848else 8849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8850printf "%s\n" "no" >&6; } 8851fi 8852 8853 8854fi 8855if test -z "$ac_cv_prog_OTOOL64"; then 8856 ac_ct_OTOOL64=$OTOOL64 8857 # Extract the first word of "otool64", so it can be a program name with args. 8858set dummy otool64; ac_word=$2 8859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8860printf %s "checking for $ac_word... " >&6; } 8861if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8862then : 8863 printf %s "(cached) " >&6 8864else case e in #( 8865 e) if test -n "$ac_ct_OTOOL64"; then 8866 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8867else 8868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8869for as_dir in $PATH 8870do 8871 IFS=$as_save_IFS 8872 case $as_dir in #((( 8873 '') as_dir=./ ;; 8874 */) ;; 8875 *) as_dir=$as_dir/ ;; 8876 esac 8877 for ac_exec_ext in '' $ac_executable_extensions; do 8878 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8879 ac_cv_prog_ac_ct_OTOOL64="otool64" 8880 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8881 break 2 8882 fi 8883done 8884 done 8885IFS=$as_save_IFS 8886 8887fi ;; 8888esac 8889fi 8890ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8891if test -n "$ac_ct_OTOOL64"; then 8892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8893printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8894else 8895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8896printf "%s\n" "no" >&6; } 8897fi 8898 8899 if test "x$ac_ct_OTOOL64" = x; then 8900 OTOOL64=":" 8901 else 8902 case $cross_compiling:$ac_tool_warned in 8903yes:) 8904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8905printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8906ac_tool_warned=yes ;; 8907esac 8908 OTOOL64=$ac_ct_OTOOL64 8909 fi 8910else 8911 OTOOL64="$ac_cv_prog_OTOOL64" 8912fi 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8941printf %s "checking for -single_module linker flag... " >&6; } 8942if test ${lt_cv_apple_cc_single_mod+y} 8943then : 8944 printf %s "(cached) " >&6 8945else case e in #( 8946 e) lt_cv_apple_cc_single_mod=no 8947 if test -z "$LT_MULTI_MODULE"; then 8948 # By default we will add the -single_module flag. You can override 8949 # by either setting the environment variable LT_MULTI_MODULE 8950 # non-empty at configure time, or by adding -multi_module to the 8951 # link flags. 8952 rm -rf libconftest.dylib* 8953 echo "int foo(void){return 1;}" > conftest.c 8954 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8955-dynamiclib -Wl,-single_module conftest.c" >&5 8956 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8957 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8958 _lt_result=$? 8959 # If there is a non-empty error log, and "single_module" 8960 # appears in it, assume the flag caused a linker warning 8961 if test -s conftest.err && $GREP single_module conftest.err; then 8962 cat conftest.err >&5 8963 # Otherwise, if the output was created with a 0 exit code from 8964 # the compiler, it worked. 8965 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8966 lt_cv_apple_cc_single_mod=yes 8967 else 8968 cat conftest.err >&5 8969 fi 8970 rm -rf libconftest.dylib* 8971 rm -f conftest.* 8972 fi ;; 8973esac 8974fi 8975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8976printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8977 8978 # Feature test to disable chained fixups since it is not 8979 # compatible with '-undefined dynamic_lookup' 8980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5 8981printf %s "checking for -no_fixup_chains linker flag... " >&6; } 8982if test ${lt_cv_support_no_fixup_chains+y} 8983then : 8984 printf %s "(cached) " >&6 8985else case e in #( 8986 e) save_LDFLAGS=$LDFLAGS 8987 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains" 8988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8989/* end confdefs.h. */ 8990 8991int 8992main (void) 8993{ 8994 8995 ; 8996 return 0; 8997} 8998_ACEOF 8999if ac_fn_c_try_link "$LINENO" 9000then : 9001 lt_cv_support_no_fixup_chains=yes 9002else case e in #( 9003 e) lt_cv_support_no_fixup_chains=no 9004 ;; 9005esac 9006fi 9007rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9008 conftest$ac_exeext conftest.$ac_ext 9009 LDFLAGS=$save_LDFLAGS 9010 9011 ;; 9012esac 9013fi 9014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5 9015printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; } 9016 9017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 9018printf %s "checking for -exported_symbols_list linker flag... " >&6; } 9019if test ${lt_cv_ld_exported_symbols_list+y} 9020then : 9021 printf %s "(cached) " >&6 9022else case e in #( 9023 e) lt_cv_ld_exported_symbols_list=no 9024 save_LDFLAGS=$LDFLAGS 9025 echo "_main" > conftest.sym 9026 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9028/* end confdefs.h. */ 9029 9030int 9031main (void) 9032{ 9033 9034 ; 9035 return 0; 9036} 9037_ACEOF 9038if ac_fn_c_try_link "$LINENO" 9039then : 9040 lt_cv_ld_exported_symbols_list=yes 9041else case e in #( 9042 e) lt_cv_ld_exported_symbols_list=no ;; 9043esac 9044fi 9045rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9046 conftest$ac_exeext conftest.$ac_ext 9047 LDFLAGS=$save_LDFLAGS 9048 ;; 9049esac 9050fi 9051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 9052printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 9053 9054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 9055printf %s "checking for -force_load linker flag... " >&6; } 9056if test ${lt_cv_ld_force_load+y} 9057then : 9058 printf %s "(cached) " >&6 9059else case e in #( 9060 e) lt_cv_ld_force_load=no 9061 cat > conftest.c << _LT_EOF 9062int forced_loaded() { return 2;} 9063_LT_EOF 9064 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9065 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9066 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 9067 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 9068 echo "$RANLIB libconftest.a" >&5 9069 $RANLIB libconftest.a 2>&5 9070 cat > conftest.c << _LT_EOF 9071int main(void) { return 0;} 9072_LT_EOF 9073 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9074 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9075 _lt_result=$? 9076 if test -s conftest.err && $GREP force_load conftest.err; then 9077 cat conftest.err >&5 9078 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 9079 lt_cv_ld_force_load=yes 9080 else 9081 cat conftest.err >&5 9082 fi 9083 rm -f conftest.err libconftest.a conftest conftest.c 9084 rm -rf conftest.dSYM 9085 ;; 9086esac 9087fi 9088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 9089printf "%s\n" "$lt_cv_ld_force_load" >&6; } 9090 case $host_os in 9091 rhapsody* | darwin1.[012]) 9092 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 9093 darwin1.*) 9094 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9095 darwin*) 9096 case $MACOSX_DEPLOYMENT_TARGET,$host in 9097 10.[012],*|,*powerpc*-darwin[5-8]*) 9098 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9099 *) 9100 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' 9101 if test yes = "$lt_cv_support_no_fixup_chains"; then 9102 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains' 9103 fi 9104 ;; 9105 esac 9106 ;; 9107 esac 9108 if test yes = "$lt_cv_apple_cc_single_mod"; then 9109 _lt_dar_single_mod='$single_module' 9110 fi 9111 _lt_dar_needs_single_mod=no 9112 case $host_os in 9113 rhapsody* | darwin1.*) 9114 _lt_dar_needs_single_mod=yes ;; 9115 darwin*) 9116 # When targeting Mac OS X 10.4 (darwin 8) or later, 9117 # -single_module is the default and -multi_module is unsupported. 9118 # The toolchain on macOS 10.14 (darwin 18) and later cannot 9119 # target any OS version that needs -single_module. 9120 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 9121 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*) 9122 _lt_dar_needs_single_mod=yes ;; 9123 esac 9124 ;; 9125 esac 9126 if test yes = "$lt_cv_ld_exported_symbols_list"; then 9127 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 9128 else 9129 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 9130 fi 9131 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 9132 _lt_dsymutil='~$DSYMUTIL $lib || :' 9133 else 9134 _lt_dsymutil= 9135 fi 9136 ;; 9137 esac 9138 9139# func_munge_path_list VARIABLE PATH 9140# ----------------------------------- 9141# VARIABLE is name of variable containing _space_ separated list of 9142# directories to be munged by the contents of PATH, which is string 9143# having a format: 9144# "DIR[:DIR]:" 9145# string "DIR[ DIR]" will be prepended to VARIABLE 9146# ":DIR[:DIR]" 9147# string "DIR[ DIR]" will be appended to VARIABLE 9148# "DIRP[:DIRP]::[DIRA:]DIRA" 9149# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 9150# "DIRA[ DIRA]" will be appended to VARIABLE 9151# "DIR[:DIR]" 9152# VARIABLE will be replaced by "DIR[ DIR]" 9153func_munge_path_list () 9154{ 9155 case x$2 in 9156 x) 9157 ;; 9158 *:) 9159 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 9160 ;; 9161 x:*) 9162 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 9163 ;; 9164 *::*) 9165 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 9166 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 9167 ;; 9168 *) 9169 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 9170 ;; 9171 esac 9172} 9173 9174ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9175" 9176if test "x$ac_cv_header_dlfcn_h" = xyes 9177then : 9178 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 9179 9180fi 9181 9182 9183 9184 9185 9186# Set options 9187# Check whether --enable-static was given. 9188if test ${enable_static+y} 9189then : 9190 enableval=$enable_static; p=${PACKAGE-default} 9191 case $enableval in 9192 yes) enable_static=yes ;; 9193 no) enable_static=no ;; 9194 *) 9195 enable_static=no 9196 # Look at the argument we got. We use all the common list separators. 9197 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9198 for pkg in $enableval; do 9199 IFS=$lt_save_ifs 9200 if test "X$pkg" = "X$p"; then 9201 enable_static=yes 9202 fi 9203 done 9204 IFS=$lt_save_ifs 9205 ;; 9206 esac 9207else case e in #( 9208 e) enable_static=no ;; 9209esac 9210fi 9211 9212 9213 9214 9215 9216 9217 9218enable_dlopen=yes 9219 9220 9221 9222 9223 enable_win32_dll=no 9224 9225 9226 # Check whether --enable-shared was given. 9227if test ${enable_shared+y} 9228then : 9229 enableval=$enable_shared; p=${PACKAGE-default} 9230 case $enableval in 9231 yes) enable_shared=yes ;; 9232 no) enable_shared=no ;; 9233 *) 9234 enable_shared=no 9235 # Look at the argument we got. We use all the common list separators. 9236 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9237 for pkg in $enableval; do 9238 IFS=$lt_save_ifs 9239 if test "X$pkg" = "X$p"; then 9240 enable_shared=yes 9241 fi 9242 done 9243 IFS=$lt_save_ifs 9244 ;; 9245 esac 9246else case e in #( 9247 e) enable_shared=yes ;; 9248esac 9249fi 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 # Check whether --enable-pic was given. 9261if test ${enable_pic+y} 9262then : 9263 enableval=$enable_pic; lt_p=${PACKAGE-default} 9264 case $enableval in 9265 yes|no) pic_mode=$enableval ;; 9266 *) 9267 pic_mode=default 9268 # Look at the argument we got. We use all the common list separators. 9269 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9270 for lt_pkg in $enableval; do 9271 IFS=$lt_save_ifs 9272 if test "X$lt_pkg" = "X$lt_p"; then 9273 pic_mode=yes 9274 fi 9275 done 9276 IFS=$lt_save_ifs 9277 ;; 9278 esac 9279else case e in #( 9280 e) # Check whether --with-pic was given. 9281if test ${with_pic+y} 9282then : 9283 withval=$with_pic; lt_p=${PACKAGE-default} 9284 case $withval in 9285 yes|no) pic_mode=$withval ;; 9286 *) 9287 pic_mode=default 9288 # Look at the argument we got. We use all the common list separators. 9289 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9290 for lt_pkg in $withval; do 9291 IFS=$lt_save_ifs 9292 if test "X$lt_pkg" = "X$lt_p"; then 9293 pic_mode=yes 9294 fi 9295 done 9296 IFS=$lt_save_ifs 9297 ;; 9298 esac 9299else case e in #( 9300 e) pic_mode=default ;; 9301esac 9302fi 9303 9304 ;; 9305esac 9306fi 9307 9308 9309 9310 9311 9312 9313 9314 9315 # Check whether --enable-fast-install was given. 9316if test ${enable_fast_install+y} 9317then : 9318 enableval=$enable_fast_install; p=${PACKAGE-default} 9319 case $enableval in 9320 yes) enable_fast_install=yes ;; 9321 no) enable_fast_install=no ;; 9322 *) 9323 enable_fast_install=no 9324 # Look at the argument we got. We use all the common list separators. 9325 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9326 for pkg in $enableval; do 9327 IFS=$lt_save_ifs 9328 if test "X$pkg" = "X$p"; then 9329 enable_fast_install=yes 9330 fi 9331 done 9332 IFS=$lt_save_ifs 9333 ;; 9334 esac 9335else case e in #( 9336 e) enable_fast_install=yes ;; 9337esac 9338fi 9339 9340 9341 9342 9343 9344 9345 9346 9347 shared_archive_member_spec= 9348case $host,$enable_shared in 9349power*-*-aix[5-9]*,yes) 9350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9351printf %s "checking which variant of shared library versioning to provide... " >&6; } 9352 # Check whether --enable-aix-soname was given. 9353if test ${enable_aix_soname+y} 9354then : 9355 enableval=$enable_aix_soname; case $enableval in 9356 aix|svr4|both) 9357 ;; 9358 *) 9359 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5 9360 ;; 9361 esac 9362 lt_cv_with_aix_soname=$enable_aix_soname 9363else case e in #( 9364 e) # Check whether --with-aix-soname was given. 9365if test ${with_aix_soname+y} 9366then : 9367 withval=$with_aix_soname; case $withval in 9368 aix|svr4|both) 9369 ;; 9370 *) 9371 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9372 ;; 9373 esac 9374 lt_cv_with_aix_soname=$with_aix_soname 9375else case e in #( 9376 e) if test ${lt_cv_with_aix_soname+y} 9377then : 9378 printf %s "(cached) " >&6 9379else case e in #( 9380 e) lt_cv_with_aix_soname=aix ;; 9381esac 9382fi 9383 ;; 9384esac 9385fi 9386 9387 enable_aix_soname=$lt_cv_with_aix_soname ;; 9388esac 9389fi 9390 9391 with_aix_soname=$enable_aix_soname 9392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9393printf "%s\n" "$with_aix_soname" >&6; } 9394 if test aix != "$with_aix_soname"; then 9395 # For the AIX way of multilib, we name the shared archive member 9396 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9397 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9398 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9399 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9400 if test 64 = "${OBJECT_MODE-32}"; then 9401 shared_archive_member_spec=shr_64 9402 else 9403 shared_archive_member_spec=shr 9404 fi 9405 fi 9406 ;; 9407*) 9408 with_aix_soname=aix 9409 ;; 9410esac 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421# This can be used to rebuild libtool when needed 9422LIBTOOL_DEPS=$ltmain 9423 9424# Always use our own libtool. 9425LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456test -z "$LN_S" && LN_S="ln -s" 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471if test -n "${ZSH_VERSION+set}"; then 9472 setopt NO_GLOB_SUBST 9473fi 9474 9475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9476printf %s "checking for objdir... " >&6; } 9477if test ${lt_cv_objdir+y} 9478then : 9479 printf %s "(cached) " >&6 9480else case e in #( 9481 e) rm -f .libs 2>/dev/null 9482mkdir .libs 2>/dev/null 9483if test -d .libs; then 9484 lt_cv_objdir=.libs 9485else 9486 # MS-DOS does not allow filenames that begin with a dot. 9487 lt_cv_objdir=_libs 9488fi 9489rmdir .libs 2>/dev/null ;; 9490esac 9491fi 9492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9493printf "%s\n" "$lt_cv_objdir" >&6; } 9494objdir=$lt_cv_objdir 9495 9496 9497 9498 9499 9500printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 9501 9502 9503 9504 9505case $host_os in 9506aix3*) 9507 # AIX sometimes has problems with the GCC collect2 program. For some 9508 # reason, if we set the COLLECT_NAMES environment variable, the problems 9509 # vanish in a puff of smoke. 9510 if test set != "${COLLECT_NAMES+set}"; then 9511 COLLECT_NAMES= 9512 export COLLECT_NAMES 9513 fi 9514 ;; 9515esac 9516 9517# Global variables: 9518ofile=libtool 9519can_build_shared=yes 9520 9521# All known linkers require a '.a' archive for static linking (except MSVC and 9522# ICC, which need '.lib'). 9523libext=a 9524 9525with_gnu_ld=$lt_cv_prog_gnu_ld 9526 9527old_CC=$CC 9528old_CFLAGS=$CFLAGS 9529 9530# Set sane defaults for various variables 9531test -z "$CC" && CC=cc 9532test -z "$LTCC" && LTCC=$CC 9533test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9534test -z "$LD" && LD=ld 9535test -z "$ac_objext" && ac_objext=o 9536 9537func_cc_basename $compiler 9538cc_basename=$func_cc_basename_result 9539 9540 9541# Only perform the check for file, if the check method requires it 9542test -z "$MAGIC_CMD" && MAGIC_CMD=file 9543case $deplibs_check_method in 9544file_magic*) 9545 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9547printf %s "checking for ${ac_tool_prefix}file... " >&6; } 9548if test ${lt_cv_path_MAGIC_CMD+y} 9549then : 9550 printf %s "(cached) " >&6 9551else case e in #( 9552 e) case $MAGIC_CMD in 9553[\\/*] | ?:[\\/]*) 9554 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9555 ;; 9556*) 9557 lt_save_MAGIC_CMD=$MAGIC_CMD 9558 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9559 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9560 for ac_dir in $ac_dummy; do 9561 IFS=$lt_save_ifs 9562 test -z "$ac_dir" && ac_dir=. 9563 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9564 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9565 if test -n "$file_magic_test_file"; then 9566 case $deplibs_check_method in 9567 "file_magic "*) 9568 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9569 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9570 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9571 $EGREP "$file_magic_regex" > /dev/null; then 9572 : 9573 else 9574 cat <<_LT_EOF 1>&2 9575 9576*** Warning: the command libtool uses to detect shared libraries, 9577*** $file_magic_cmd, produces output that libtool cannot recognize. 9578*** The result is that libtool may fail to recognize shared libraries 9579*** as such. This will affect the creation of libtool libraries that 9580*** depend on shared libraries, but programs linked with such libtool 9581*** libraries will work regardless of this problem. Nevertheless, you 9582*** may want to report the problem to your system manager and/or to 9583*** bug-libtool@gnu.org 9584 9585_LT_EOF 9586 fi ;; 9587 esac 9588 fi 9589 break 9590 fi 9591 done 9592 IFS=$lt_save_ifs 9593 MAGIC_CMD=$lt_save_MAGIC_CMD 9594 ;; 9595esac ;; 9596esac 9597fi 9598 9599MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9600if test -n "$MAGIC_CMD"; then 9601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9602printf "%s\n" "$MAGIC_CMD" >&6; } 9603else 9604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9605printf "%s\n" "no" >&6; } 9606fi 9607 9608 9609 9610 9611 9612if test -z "$lt_cv_path_MAGIC_CMD"; then 9613 if test -n "$ac_tool_prefix"; then 9614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9615printf %s "checking for file... " >&6; } 9616if test ${lt_cv_path_MAGIC_CMD+y} 9617then : 9618 printf %s "(cached) " >&6 9619else case e in #( 9620 e) case $MAGIC_CMD in 9621[\\/*] | ?:[\\/]*) 9622 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9623 ;; 9624*) 9625 lt_save_MAGIC_CMD=$MAGIC_CMD 9626 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9627 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9628 for ac_dir in $ac_dummy; do 9629 IFS=$lt_save_ifs 9630 test -z "$ac_dir" && ac_dir=. 9631 if test -f "$ac_dir/file"; then 9632 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9633 if test -n "$file_magic_test_file"; then 9634 case $deplibs_check_method in 9635 "file_magic "*) 9636 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9637 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9638 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9639 $EGREP "$file_magic_regex" > /dev/null; then 9640 : 9641 else 9642 cat <<_LT_EOF 1>&2 9643 9644*** Warning: the command libtool uses to detect shared libraries, 9645*** $file_magic_cmd, produces output that libtool cannot recognize. 9646*** The result is that libtool may fail to recognize shared libraries 9647*** as such. This will affect the creation of libtool libraries that 9648*** depend on shared libraries, but programs linked with such libtool 9649*** libraries will work regardless of this problem. Nevertheless, you 9650*** may want to report the problem to your system manager and/or to 9651*** bug-libtool@gnu.org 9652 9653_LT_EOF 9654 fi ;; 9655 esac 9656 fi 9657 break 9658 fi 9659 done 9660 IFS=$lt_save_ifs 9661 MAGIC_CMD=$lt_save_MAGIC_CMD 9662 ;; 9663esac ;; 9664esac 9665fi 9666 9667MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9668if test -n "$MAGIC_CMD"; then 9669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9670printf "%s\n" "$MAGIC_CMD" >&6; } 9671else 9672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9673printf "%s\n" "no" >&6; } 9674fi 9675 9676 9677 else 9678 MAGIC_CMD=: 9679 fi 9680fi 9681 9682 fi 9683 ;; 9684esac 9685 9686# Use C for the default configuration in the libtool script 9687 9688lt_save_CC=$CC 9689ac_ext=c 9690ac_cpp='$CPP $CPPFLAGS' 9691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9693ac_compiler_gnu=$ac_cv_c_compiler_gnu 9694 9695 9696# Source file extension for C test sources. 9697ac_ext=c 9698 9699# Object file extension for compiled C test sources. 9700objext=o 9701objext=$objext 9702 9703# Code to be used in simple compile tests 9704lt_simple_compile_test_code="int some_variable = 0;" 9705 9706# Code to be used in simple link tests 9707lt_simple_link_test_code='int main(void){return(0);}' 9708 9709 9710 9711 9712 9713 9714 9715# If no C compiler was specified, use CC. 9716LTCC=${LTCC-"$CC"} 9717 9718# If no C compiler flags were specified, use CFLAGS. 9719LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9720 9721# Allow CC to be a program name with arguments. 9722compiler=$CC 9723 9724# Save the default compiler, since it gets overwritten when the other 9725# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9726compiler_DEFAULT=$CC 9727 9728# save warnings/boilerplate of simple test code 9729ac_outfile=conftest.$ac_objext 9730echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9731eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9732_lt_compiler_boilerplate=`cat conftest.err` 9733$RM conftest* 9734 9735ac_outfile=conftest.$ac_objext 9736echo "$lt_simple_link_test_code" >conftest.$ac_ext 9737eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9738_lt_linker_boilerplate=`cat conftest.err` 9739$RM -r conftest* 9740 9741 9742## CAVEAT EMPTOR: 9743## There is no encapsulation within the following macros, do not change 9744## the running order or otherwise move them around unless you know exactly 9745## what you are doing... 9746if test -n "$compiler"; then 9747 9748lt_prog_compiler_no_builtin_flag= 9749 9750if test yes = "$GCC"; then 9751 case $cc_basename in 9752 nvcc*) 9753 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9754 *) 9755 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9756 esac 9757 9758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9759printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9760if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9761then : 9762 printf %s "(cached) " >&6 9763else case e in #( 9764 e) lt_cv_prog_compiler_rtti_exceptions=no 9765 ac_outfile=conftest.$ac_objext 9766 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9767 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9768 # Insert the option either (1) after the last *FLAGS variable, or 9769 # (2) before a word containing "conftest.", or (3) at the end. 9770 # Note that $ac_compile itself does not contain backslashes and begins 9771 # with a dollar sign (not a hyphen), so the echo should work correctly. 9772 # The option is referenced via a variable to avoid confusing sed. 9773 lt_compile=`echo "$ac_compile" | $SED \ 9774 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9775 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9776 -e 's:$: $lt_compiler_flag:'` 9777 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9778 (eval "$lt_compile" 2>conftest.err) 9779 ac_status=$? 9780 cat conftest.err >&5 9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9782 if (exit $ac_status) && test -s "$ac_outfile"; then 9783 # The compiler can only warn and ignore the option if not recognized 9784 # So say no if there are warnings other than the usual output. 9785 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9786 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9787 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9788 lt_cv_prog_compiler_rtti_exceptions=yes 9789 fi 9790 fi 9791 $RM conftest* 9792 ;; 9793esac 9794fi 9795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9796printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9797 9798if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9799 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9800else 9801 : 9802fi 9803 9804fi 9805 9806 9807 9808 9809 9810 9811 lt_prog_compiler_wl= 9812lt_prog_compiler_pic= 9813lt_prog_compiler_static= 9814 9815 9816 if test yes = "$GCC"; then 9817 lt_prog_compiler_wl='-Wl,' 9818 lt_prog_compiler_static='-static' 9819 9820 case $host_os in 9821 aix*) 9822 # All AIX code is PIC. 9823 if test ia64 = "$host_cpu"; then 9824 # AIX 5 now supports IA64 processor 9825 lt_prog_compiler_static='-Bstatic' 9826 fi 9827 lt_prog_compiler_pic='-fPIC' 9828 ;; 9829 9830 amigaos*) 9831 case $host_cpu in 9832 powerpc) 9833 # see comment about AmigaOS4 .so support 9834 lt_prog_compiler_pic='-fPIC' 9835 ;; 9836 m68k) 9837 # FIXME: we need at least 68020 code to build shared libraries, but 9838 # adding the '-m68020' flag to GCC prevents building anything better, 9839 # like '-m68040'. 9840 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9841 ;; 9842 esac 9843 ;; 9844 9845 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9846 # PIC is the default for these OSes. 9847 ;; 9848 9849 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 9850 # This hack is so that the source file can tell whether it is being 9851 # built for inclusion in a dll (and should export symbols for example). 9852 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9853 # (--disable-auto-import) libraries 9854 lt_prog_compiler_pic='-DDLL_EXPORT' 9855 case $host_os in 9856 os2*) 9857 lt_prog_compiler_static='$wl-static' 9858 ;; 9859 esac 9860 ;; 9861 9862 darwin* | rhapsody*) 9863 # PIC is the default on this platform 9864 # Common symbols not allowed in MH_DYLIB files 9865 lt_prog_compiler_pic='-fno-common' 9866 ;; 9867 9868 haiku*) 9869 # PIC is the default for Haiku. 9870 # The "-static" flag exists, but is broken. 9871 lt_prog_compiler_static= 9872 ;; 9873 9874 hpux*) 9875 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9876 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9877 # sets the default TLS model and affects inlining. 9878 case $host_cpu in 9879 hppa*64*) 9880 # +Z the default 9881 ;; 9882 *) 9883 lt_prog_compiler_pic='-fPIC' 9884 ;; 9885 esac 9886 ;; 9887 9888 interix[3-9]*) 9889 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9890 # Instead, we relocate shared libraries at runtime. 9891 ;; 9892 9893 msdosdjgpp*) 9894 # Just because we use GCC doesn't mean we suddenly get shared libraries 9895 # on systems that don't support them. 9896 lt_prog_compiler_can_build_shared=no 9897 enable_shared=no 9898 ;; 9899 9900 *nto* | *qnx*) 9901 # QNX uses GNU C++, but need to define -shared option too, otherwise 9902 # it will coredump. 9903 lt_prog_compiler_pic='-fPIC -shared' 9904 ;; 9905 9906 sysv4*MP*) 9907 if test -d /usr/nec; then 9908 lt_prog_compiler_pic=-Kconform_pic 9909 fi 9910 ;; 9911 9912 *) 9913 lt_prog_compiler_pic='-fPIC' 9914 ;; 9915 esac 9916 9917 case $cc_basename in 9918 nvcc*) # Cuda Compiler Driver 2.2 9919 lt_prog_compiler_wl='-Xlinker ' 9920 if test -n "$lt_prog_compiler_pic"; then 9921 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9922 fi 9923 ;; 9924 esac 9925 else 9926 # PORTME Check for flag to pass linker flags through the system compiler. 9927 case $host_os in 9928 aix*) 9929 lt_prog_compiler_wl='-Wl,' 9930 if test ia64 = "$host_cpu"; then 9931 # AIX 5 now supports IA64 processor 9932 lt_prog_compiler_static='-Bstatic' 9933 else 9934 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9935 fi 9936 ;; 9937 9938 darwin* | rhapsody*) 9939 # PIC is the default on this platform 9940 # Common symbols not allowed in MH_DYLIB files 9941 lt_prog_compiler_pic='-fno-common' 9942 case $cc_basename in 9943 nagfor*) 9944 # NAG Fortran compiler 9945 lt_prog_compiler_wl='-Wl,-Wl,,' 9946 lt_prog_compiler_pic='-PIC' 9947 lt_prog_compiler_static='-Bstatic' 9948 ;; 9949 esac 9950 ;; 9951 9952 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 9953 # This hack is so that the source file can tell whether it is being 9954 # built for inclusion in a dll (and should export symbols for example). 9955 lt_prog_compiler_pic='-DDLL_EXPORT' 9956 case $host_os in 9957 os2*) 9958 lt_prog_compiler_static='$wl-static' 9959 ;; 9960 esac 9961 ;; 9962 9963 hpux9* | hpux10* | hpux11*) 9964 lt_prog_compiler_wl='-Wl,' 9965 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9966 # not for PA HP-UX. 9967 case $host_cpu in 9968 hppa*64*|ia64*) 9969 # +Z the default 9970 ;; 9971 *) 9972 lt_prog_compiler_pic='+Z' 9973 ;; 9974 esac 9975 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9976 lt_prog_compiler_static='$wl-a ${wl}archive' 9977 ;; 9978 9979 irix5* | irix6* | nonstopux*) 9980 lt_prog_compiler_wl='-Wl,' 9981 # PIC (with -KPIC) is the default. 9982 lt_prog_compiler_static='-non_shared' 9983 ;; 9984 9985 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9986 case $cc_basename in 9987 # old Intel for x86_64, which still supported -KPIC. 9988 ecc*) 9989 lt_prog_compiler_wl='-Wl,' 9990 lt_prog_compiler_pic='-KPIC' 9991 lt_prog_compiler_static='-static' 9992 ;; 9993 *flang* | ftn | f18* | f95*) 9994 # Flang compiler. 9995 lt_prog_compiler_wl='-Wl,' 9996 lt_prog_compiler_pic='-fPIC' 9997 lt_prog_compiler_static='-static' 9998 ;; 9999 # icc used to be incompatible with GCC. 10000 # ICC 10 doesn't accept -KPIC any more. 10001 icc* | ifort*) 10002 lt_prog_compiler_wl='-Wl,' 10003 lt_prog_compiler_pic='-fPIC' 10004 lt_prog_compiler_static='-static' 10005 ;; 10006 # Lahey Fortran 8.1. 10007 lf95*) 10008 lt_prog_compiler_wl='-Wl,' 10009 lt_prog_compiler_pic='--shared' 10010 lt_prog_compiler_static='--static' 10011 ;; 10012 nagfor*) 10013 # NAG Fortran compiler 10014 lt_prog_compiler_wl='-Wl,-Wl,,' 10015 lt_prog_compiler_pic='-PIC' 10016 lt_prog_compiler_static='-Bstatic' 10017 ;; 10018 tcc*) 10019 # Fabrice Bellard et al's Tiny C Compiler 10020 lt_prog_compiler_wl='-Wl,' 10021 lt_prog_compiler_pic='-fPIC' 10022 lt_prog_compiler_static='-static' 10023 ;; 10024 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10025 # Portland Group compilers (*not* the Pentium gcc compiler, 10026 # which looks to be a dead project) 10027 lt_prog_compiler_wl='-Wl,' 10028 lt_prog_compiler_pic='-fpic' 10029 lt_prog_compiler_static='-Bstatic' 10030 ;; 10031 ccc*) 10032 lt_prog_compiler_wl='-Wl,' 10033 # All Alpha code is PIC. 10034 lt_prog_compiler_static='-non_shared' 10035 ;; 10036 xl* | bgxl* | bgf* | mpixl*) 10037 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10038 lt_prog_compiler_wl='-Wl,' 10039 lt_prog_compiler_pic='-qpic' 10040 lt_prog_compiler_static='-qstaticlink' 10041 ;; 10042 *) 10043 case `$CC -V 2>&1 | $SED 5q` in 10044 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10045 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10046 lt_prog_compiler_pic='-KPIC' 10047 lt_prog_compiler_static='-Bstatic' 10048 lt_prog_compiler_wl='' 10049 ;; 10050 *Sun\ F* | *Sun*Fortran*) 10051 lt_prog_compiler_pic='-KPIC' 10052 lt_prog_compiler_static='-Bstatic' 10053 lt_prog_compiler_wl='-Qoption ld ' 10054 ;; 10055 *Sun\ C*) 10056 # Sun C 5.9 10057 lt_prog_compiler_pic='-KPIC' 10058 lt_prog_compiler_static='-Bstatic' 10059 lt_prog_compiler_wl='-Wl,' 10060 ;; 10061 *Intel*\ [CF]*Compiler*) 10062 lt_prog_compiler_wl='-Wl,' 10063 lt_prog_compiler_pic='-fPIC' 10064 lt_prog_compiler_static='-static' 10065 ;; 10066 *Portland\ Group*) 10067 lt_prog_compiler_wl='-Wl,' 10068 lt_prog_compiler_pic='-fpic' 10069 lt_prog_compiler_static='-Bstatic' 10070 ;; 10071 esac 10072 ;; 10073 esac 10074 ;; 10075 10076 newsos6) 10077 lt_prog_compiler_pic='-KPIC' 10078 lt_prog_compiler_static='-Bstatic' 10079 ;; 10080 10081 *-mlibc) 10082 lt_prog_compiler_wl='-Wl,' 10083 lt_prog_compiler_pic='-fPIC' 10084 lt_prog_compiler_static='-static' 10085 ;; 10086 10087 *nto* | *qnx*) 10088 # QNX uses GNU C++, but need to define -shared option too, otherwise 10089 # it will coredump. 10090 lt_prog_compiler_pic='-fPIC -shared' 10091 ;; 10092 10093 osf3* | osf4* | osf5*) 10094 lt_prog_compiler_wl='-Wl,' 10095 # All OSF/1 code is PIC. 10096 lt_prog_compiler_static='-non_shared' 10097 ;; 10098 10099 rdos*) 10100 lt_prog_compiler_static='-non_shared' 10101 ;; 10102 10103 serenity*) 10104 ;; 10105 10106 solaris*) 10107 lt_prog_compiler_pic='-KPIC' 10108 lt_prog_compiler_static='-Bstatic' 10109 case $cc_basename in 10110 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10111 lt_prog_compiler_wl='-Qoption ld ';; 10112 *) 10113 lt_prog_compiler_wl='-Wl,';; 10114 esac 10115 ;; 10116 10117 sunos4*) 10118 lt_prog_compiler_wl='-Qoption ld ' 10119 lt_prog_compiler_pic='-PIC' 10120 lt_prog_compiler_static='-Bstatic' 10121 ;; 10122 10123 sysv4 | sysv4.2uw2* | sysv4.3*) 10124 lt_prog_compiler_wl='-Wl,' 10125 lt_prog_compiler_pic='-KPIC' 10126 lt_prog_compiler_static='-Bstatic' 10127 ;; 10128 10129 sysv4*MP*) 10130 if test -d /usr/nec; then 10131 lt_prog_compiler_pic='-Kconform_pic' 10132 lt_prog_compiler_static='-Bstatic' 10133 fi 10134 ;; 10135 10136 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10137 lt_prog_compiler_wl='-Wl,' 10138 lt_prog_compiler_pic='-KPIC' 10139 lt_prog_compiler_static='-Bstatic' 10140 ;; 10141 10142 unicos*) 10143 lt_prog_compiler_wl='-Wl,' 10144 lt_prog_compiler_can_build_shared=no 10145 ;; 10146 10147 uts4*) 10148 lt_prog_compiler_pic='-pic' 10149 lt_prog_compiler_static='-Bstatic' 10150 ;; 10151 10152 *) 10153 lt_prog_compiler_can_build_shared=no 10154 ;; 10155 esac 10156 fi 10157 10158case $host_os in 10159 # For platforms that do not support PIC, -DPIC is meaningless: 10160 *djgpp*) 10161 lt_prog_compiler_pic= 10162 ;; 10163 *) 10164 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10165 ;; 10166esac 10167 10168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10169printf %s "checking for $compiler option to produce PIC... " >&6; } 10170if test ${lt_cv_prog_compiler_pic+y} 10171then : 10172 printf %s "(cached) " >&6 10173else case e in #( 10174 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 10175esac 10176fi 10177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10178printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 10179lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10180 10181# 10182# Check to make sure the PIC flag actually works. 10183# 10184if test -n "$lt_prog_compiler_pic"; then 10185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10186printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10187if test ${lt_cv_prog_compiler_pic_works+y} 10188then : 10189 printf %s "(cached) " >&6 10190else case e in #( 10191 e) lt_cv_prog_compiler_pic_works=no 10192 ac_outfile=conftest.$ac_objext 10193 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10194 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 10195 # Insert the option either (1) after the last *FLAGS variable, or 10196 # (2) before a word containing "conftest.", or (3) at the end. 10197 # Note that $ac_compile itself does not contain backslashes and begins 10198 # with a dollar sign (not a hyphen), so the echo should work correctly. 10199 # The option is referenced via a variable to avoid confusing sed. 10200 lt_compile=`echo "$ac_compile" | $SED \ 10201 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10202 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10203 -e 's:$: $lt_compiler_flag:'` 10204 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10205 (eval "$lt_compile" 2>conftest.err) 10206 ac_status=$? 10207 cat conftest.err >&5 10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10209 if (exit $ac_status) && test -s "$ac_outfile"; then 10210 # The compiler can only warn and ignore the option if not recognized 10211 # So say no if there are warnings other than the usual output. 10212 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10213 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10214 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10215 lt_cv_prog_compiler_pic_works=yes 10216 fi 10217 fi 10218 $RM conftest* 10219 ;; 10220esac 10221fi 10222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10223printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 10224 10225if test yes = "$lt_cv_prog_compiler_pic_works"; then 10226 case $lt_prog_compiler_pic in 10227 "" | " "*) ;; 10228 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10229 esac 10230else 10231 lt_prog_compiler_pic= 10232 lt_prog_compiler_can_build_shared=no 10233fi 10234 10235fi 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247# 10248# Check to make sure the static flag actually works. 10249# 10250wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10252printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10253if test ${lt_cv_prog_compiler_static_works+y} 10254then : 10255 printf %s "(cached) " >&6 10256else case e in #( 10257 e) lt_cv_prog_compiler_static_works=no 10258 save_LDFLAGS=$LDFLAGS 10259 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10260 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10261 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10262 # The linker can only warn and ignore the option if not recognized 10263 # So say no if there are warnings 10264 if test -s conftest.err; then 10265 # Append any errors to the config.log. 10266 cat conftest.err 1>&5 10267 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10268 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10269 if diff conftest.exp conftest.er2 >/dev/null; then 10270 lt_cv_prog_compiler_static_works=yes 10271 fi 10272 else 10273 lt_cv_prog_compiler_static_works=yes 10274 fi 10275 fi 10276 $RM -r conftest* 10277 LDFLAGS=$save_LDFLAGS 10278 ;; 10279esac 10280fi 10281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10282printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 10283 10284if test yes = "$lt_cv_prog_compiler_static_works"; then 10285 : 10286else 10287 lt_prog_compiler_static= 10288fi 10289 10290 10291 10292 10293 10294 10295 10296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10297printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10298if test ${lt_cv_prog_compiler_c_o+y} 10299then : 10300 printf %s "(cached) " >&6 10301else case e in #( 10302 e) lt_cv_prog_compiler_c_o=no 10303 $RM -r conftest 2>/dev/null 10304 mkdir conftest 10305 cd conftest 10306 mkdir out 10307 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10308 10309 lt_compiler_flag="-o out/conftest2.$ac_objext" 10310 # Insert the option either (1) after the last *FLAGS variable, or 10311 # (2) before a word containing "conftest.", or (3) at the end. 10312 # Note that $ac_compile itself does not contain backslashes and begins 10313 # with a dollar sign (not a hyphen), so the echo should work correctly. 10314 lt_compile=`echo "$ac_compile" | $SED \ 10315 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10316 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10317 -e 's:$: $lt_compiler_flag:'` 10318 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10319 (eval "$lt_compile" 2>out/conftest.err) 10320 ac_status=$? 10321 cat out/conftest.err >&5 10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10323 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10324 then 10325 # The compiler can only warn and ignore the option if not recognized 10326 # So say no if there are warnings 10327 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10328 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10329 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10330 lt_cv_prog_compiler_c_o=yes 10331 fi 10332 fi 10333 chmod u+w . 2>&5 10334 $RM conftest* 10335 # SGI C++ compiler will create directory out/ii_files/ for 10336 # template instantiation 10337 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10338 $RM out/* && rmdir out 10339 cd .. 10340 $RM -r conftest 10341 $RM conftest* 10342 ;; 10343esac 10344fi 10345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10346printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10347 10348 10349 10350 10351 10352 10353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10354printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10355if test ${lt_cv_prog_compiler_c_o+y} 10356then : 10357 printf %s "(cached) " >&6 10358else case e in #( 10359 e) lt_cv_prog_compiler_c_o=no 10360 $RM -r conftest 2>/dev/null 10361 mkdir conftest 10362 cd conftest 10363 mkdir out 10364 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10365 10366 lt_compiler_flag="-o out/conftest2.$ac_objext" 10367 # Insert the option either (1) after the last *FLAGS variable, or 10368 # (2) before a word containing "conftest.", or (3) at the end. 10369 # Note that $ac_compile itself does not contain backslashes and begins 10370 # with a dollar sign (not a hyphen), so the echo should work correctly. 10371 lt_compile=`echo "$ac_compile" | $SED \ 10372 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10373 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10374 -e 's:$: $lt_compiler_flag:'` 10375 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10376 (eval "$lt_compile" 2>out/conftest.err) 10377 ac_status=$? 10378 cat out/conftest.err >&5 10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10380 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10381 then 10382 # The compiler can only warn and ignore the option if not recognized 10383 # So say no if there are warnings 10384 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10385 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10386 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10387 lt_cv_prog_compiler_c_o=yes 10388 fi 10389 fi 10390 chmod u+w . 2>&5 10391 $RM conftest* 10392 # SGI C++ compiler will create directory out/ii_files/ for 10393 # template instantiation 10394 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10395 $RM out/* && rmdir out 10396 cd .. 10397 $RM -r conftest 10398 $RM conftest* 10399 ;; 10400esac 10401fi 10402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10403printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10404 10405 10406 10407 10408hard_links=nottested 10409if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10410 # do not overwrite the value of need_locks provided by the user 10411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10412printf %s "checking if we can lock with hard links... " >&6; } 10413 hard_links=yes 10414 $RM conftest* 10415 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10416 touch conftest.a 10417 ln conftest.a conftest.b 2>&5 || hard_links=no 10418 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10420printf "%s\n" "$hard_links" >&6; } 10421 if test no = "$hard_links"; then 10422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10423printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10424 need_locks=warn 10425 fi 10426else 10427 need_locks=no 10428fi 10429 10430 10431 10432 10433 10434 10435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10436printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10437 10438 runpath_var= 10439 allow_undefined_flag= 10440 always_export_symbols=no 10441 archive_cmds= 10442 archive_expsym_cmds= 10443 compiler_needs_object=no 10444 enable_shared_with_static_runtimes=no 10445 export_dynamic_flag_spec= 10446 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10447 hardcode_automatic=no 10448 hardcode_direct=no 10449 hardcode_direct_absolute=no 10450 hardcode_libdir_flag_spec= 10451 hardcode_libdir_separator= 10452 hardcode_minus_L=no 10453 hardcode_shlibpath_var=unsupported 10454 inherit_rpath=no 10455 link_all_deplibs=unknown 10456 module_cmds= 10457 module_expsym_cmds= 10458 old_archive_from_new_cmds= 10459 old_archive_from_expsyms_cmds= 10460 thread_safe_flag_spec= 10461 whole_archive_flag_spec= 10462 # include_expsyms should be a list of space-separated symbols to be *always* 10463 # included in the symbol list 10464 include_expsyms= 10465 # exclude_expsyms can be an extended regexp of symbols to exclude 10466 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10467 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10468 # as well as any symbol that contains 'd'. 10469 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10470 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10471 # platforms (ab)use it in PIC code, but their linkers get confused if 10472 # the symbol is explicitly referenced. Since portable code cannot 10473 # rely on this symbol name, it's probably fine to never include it in 10474 # preloaded symbol tables. 10475 # Exclude shared library initialization/finalization symbols. 10476 extract_expsyms_cmds= 10477 10478 case $host_os in 10479 cygwin* | mingw* | windows* | pw32* | cegcc*) 10480 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 10481 # When not using gcc, we currently assume that we are using 10482 # Microsoft Visual C++ or Intel C++ Compiler. 10483 if test yes != "$GCC"; then 10484 with_gnu_ld=no 10485 fi 10486 ;; 10487 interix*) 10488 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 10489 with_gnu_ld=yes 10490 ;; 10491 esac 10492 10493 ld_shlibs=yes 10494 10495 # On some targets, GNU ld is compatible enough with the native linker 10496 # that we're better off using the native interface for both. 10497 lt_use_gnu_ld_interface=no 10498 if test yes = "$with_gnu_ld"; then 10499 case $host_os in 10500 aix*) 10501 # The AIX port of GNU ld has always aspired to compatibility 10502 # with the native linker. However, as the warning in the GNU ld 10503 # block says, versions before 2.19.5* couldn't really create working 10504 # shared libraries, regardless of the interface used. 10505 case `$LD -v 2>&1` in 10506 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10507 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10508 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10509 *) 10510 lt_use_gnu_ld_interface=yes 10511 ;; 10512 esac 10513 ;; 10514 *) 10515 lt_use_gnu_ld_interface=yes 10516 ;; 10517 esac 10518 fi 10519 10520 if test yes = "$lt_use_gnu_ld_interface"; then 10521 # If archive_cmds runs LD, not CC, wlarc should be empty 10522 wlarc='$wl' 10523 10524 # Set some defaults for GNU ld with shared library support. These 10525 # are reset later if shared libraries are not supported. Putting them 10526 # here allows them to be overridden if necessary. 10527 runpath_var=LD_RUN_PATH 10528 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10529 export_dynamic_flag_spec='$wl--export-dynamic' 10530 # ancient GNU ld didn't support --whole-archive et. al. 10531 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10532 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10533 else 10534 whole_archive_flag_spec= 10535 fi 10536 supports_anon_versioning=no 10537 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 10538 *GNU\ gold*) supports_anon_versioning=yes ;; 10539 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10540 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10541 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10542 *\ 2.11.*) ;; # other 2.11 versions 10543 *) supports_anon_versioning=yes ;; 10544 esac 10545 10546 # See if GNU ld supports shared libraries. 10547 case $host_os in 10548 aix[3-9]*) 10549 # On AIX/PPC, the GNU linker is very broken 10550 if test ia64 != "$host_cpu"; then 10551 ld_shlibs=no 10552 cat <<_LT_EOF 1>&2 10553 10554*** Warning: the GNU linker, at least up to release 2.19, is reported 10555*** to be unable to reliably create shared libraries on AIX. 10556*** Therefore, libtool is disabling shared libraries support. If you 10557*** really care for shared libraries, you may want to install binutils 10558*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10559*** You will then need to restart the configuration process. 10560 10561_LT_EOF 10562 fi 10563 ;; 10564 10565 amigaos*) 10566 case $host_cpu in 10567 powerpc) 10568 # see comment about AmigaOS4 .so support 10569 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10570 archive_expsym_cmds='' 10571 ;; 10572 m68k) 10573 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)' 10574 hardcode_libdir_flag_spec='-L$libdir' 10575 hardcode_minus_L=yes 10576 ;; 10577 esac 10578 ;; 10579 10580 beos*) 10581 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10582 allow_undefined_flag=unsupported 10583 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10584 # support --undefined. This deserves some investigation. FIXME 10585 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10586 else 10587 ld_shlibs=no 10588 fi 10589 ;; 10590 10591 cygwin* | mingw* | windows* | pw32* | cegcc*) 10592 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10593 # as there is no search path for DLLs. 10594 hardcode_libdir_flag_spec='-L$libdir' 10595 export_dynamic_flag_spec='$wl--export-all-symbols' 10596 allow_undefined_flag=unsupported 10597 always_export_symbols=no 10598 enable_shared_with_static_runtimes=yes 10599 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' 10600 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10601 file_list_spec='@' 10602 10603 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10604 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10605 # If the export-symbols file already is a .def file, use it as 10606 # is; otherwise, prepend EXPORTS... 10607 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10608 cp $export_symbols $output_objdir/$soname.def; 10609 else 10610 echo EXPORTS > $output_objdir/$soname.def; 10611 cat $export_symbols >> $output_objdir/$soname.def; 10612 fi~ 10613 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10614 else 10615 ld_shlibs=no 10616 fi 10617 ;; 10618 10619 haiku*) 10620 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10621 link_all_deplibs=no 10622 ;; 10623 10624 os2*) 10625 hardcode_libdir_flag_spec='-L$libdir' 10626 hardcode_minus_L=yes 10627 allow_undefined_flag=unsupported 10628 shrext_cmds=.dll 10629 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10630 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10631 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10632 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10633 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10634 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10635 emximp -o $lib $output_objdir/$libname.def' 10636 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10637 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10638 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10639 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10640 prefix_cmds="$SED"~ 10641 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10642 prefix_cmds="$prefix_cmds -e 1d"; 10643 fi~ 10644 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10645 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10646 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10647 emximp -o $lib $output_objdir/$libname.def' 10648 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10649 enable_shared_with_static_runtimes=yes 10650 file_list_spec='@' 10651 ;; 10652 10653 interix[3-9]*) 10654 hardcode_direct=no 10655 hardcode_shlibpath_var=no 10656 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10657 export_dynamic_flag_spec='$wl-E' 10658 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10659 # Instead, shared libraries are loaded at an image base (0x10000000 by 10660 # default) and relocated if they conflict, which is a slow very memory 10661 # consuming and fragmenting process. To avoid this, we pick a random, 10662 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10663 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10664 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10665 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' 10666 ;; 10667 10668 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10669 tmp_diet=no 10670 if test linux-dietlibc = "$host_os"; then 10671 case $cc_basename in 10672 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10673 esac 10674 fi 10675 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10676 && test no = "$tmp_diet" 10677 then 10678 tmp_addflag=' $pic_flag' 10679 tmp_sharedflag='-shared' 10680 case $cc_basename,$host_cpu in 10681 pgcc*) # Portland Group C compiler 10682 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' 10683 tmp_addflag=' $pic_flag' 10684 ;; 10685 pgf77* | pgf90* | pgf95* | pgfortran*) 10686 # Portland Group f77 and f90 compilers 10687 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' 10688 tmp_addflag=' $pic_flag -Mnomain' ;; 10689 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10690 tmp_addflag=' -i_dynamic' ;; 10691 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10692 tmp_addflag=' -i_dynamic -nofor_main' ;; 10693 ifc* | ifort*) # Intel Fortran compiler 10694 tmp_addflag=' -nofor_main' ;; 10695 lf95*) # Lahey Fortran 8.1 10696 whole_archive_flag_spec= 10697 tmp_sharedflag='--shared' ;; 10698 nagfor*) # NAGFOR 5.3 10699 tmp_sharedflag='-Wl,-shared' ;; 10700 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10701 tmp_sharedflag='-qmkshrobj' 10702 tmp_addflag= ;; 10703 nvcc*) # Cuda Compiler Driver 2.2 10704 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' 10705 compiler_needs_object=yes 10706 ;; 10707 esac 10708 case `$CC -V 2>&1 | $SED 5q` in 10709 *Sun\ C*) # Sun C 5.9 10710 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' 10711 compiler_needs_object=yes 10712 tmp_sharedflag='-G' ;; 10713 *Sun\ F*) # Sun Fortran 8.3 10714 tmp_sharedflag='-G' ;; 10715 esac 10716 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10717 10718 if test yes = "$supports_anon_versioning"; then 10719 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10720 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10721 echo "local: *; };" >> $output_objdir/$libname.ver~ 10722 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10723 fi 10724 10725 case $cc_basename in 10726 tcc*) 10727 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10728 export_dynamic_flag_spec='-rdynamic' 10729 ;; 10730 xlf* | bgf* | bgxlf* | mpixlf*) 10731 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10732 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10733 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10734 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10735 if test yes = "$supports_anon_versioning"; then 10736 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10737 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10738 echo "local: *; };" >> $output_objdir/$libname.ver~ 10739 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10740 fi 10741 ;; 10742 esac 10743 else 10744 ld_shlibs=no 10745 fi 10746 ;; 10747 10748 *-mlibc) 10749 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10750 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10751 ;; 10752 10753 netbsd* | netbsdelf*-gnu) 10754 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10755 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10756 wlarc= 10757 else 10758 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10759 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10760 fi 10761 ;; 10762 10763 solaris*) 10764 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10765 ld_shlibs=no 10766 cat <<_LT_EOF 1>&2 10767 10768*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10769*** create shared libraries on Solaris systems. Therefore, libtool 10770*** is disabling shared libraries support. We urge you to upgrade GNU 10771*** binutils to release 2.9.1 or newer. Another option is to modify 10772*** your PATH or compiler configuration so that the native linker is 10773*** used, and then restart. 10774 10775_LT_EOF 10776 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10777 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10778 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10779 else 10780 ld_shlibs=no 10781 fi 10782 ;; 10783 10784 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10785 case `$LD -v 2>&1` in 10786 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10787 ld_shlibs=no 10788 cat <<_LT_EOF 1>&2 10789 10790*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10791*** reliably create shared libraries on SCO systems. Therefore, libtool 10792*** is disabling shared libraries support. We urge you to upgrade GNU 10793*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10794*** your PATH or compiler configuration so that the native linker is 10795*** used, and then restart. 10796 10797_LT_EOF 10798 ;; 10799 *) 10800 # For security reasons, it is highly recommended that you always 10801 # use absolute paths for naming shared libraries, and exclude the 10802 # DT_RUNPATH tag from executables and libraries. But doing so 10803 # requires that you compile everything twice, which is a pain. 10804 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10805 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10806 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10807 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10808 else 10809 ld_shlibs=no 10810 fi 10811 ;; 10812 esac 10813 ;; 10814 10815 sunos4*) 10816 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10817 wlarc= 10818 hardcode_direct=yes 10819 hardcode_shlibpath_var=no 10820 ;; 10821 10822 *) 10823 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10824 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10825 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10826 else 10827 ld_shlibs=no 10828 fi 10829 ;; 10830 esac 10831 10832 if test no = "$ld_shlibs"; then 10833 runpath_var= 10834 hardcode_libdir_flag_spec= 10835 export_dynamic_flag_spec= 10836 whole_archive_flag_spec= 10837 fi 10838 else 10839 # PORTME fill in a description of your system's linker (not GNU ld) 10840 case $host_os in 10841 aix3*) 10842 allow_undefined_flag=unsupported 10843 always_export_symbols=yes 10844 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' 10845 # Note: this linker hardcodes the directories in LIBPATH if there 10846 # are no directories specified by -L. 10847 hardcode_minus_L=yes 10848 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10849 # Neither direct hardcoding nor static linking is supported with a 10850 # broken collect2. 10851 hardcode_direct=unsupported 10852 fi 10853 ;; 10854 10855 aix[4-9]*) 10856 if test ia64 = "$host_cpu"; then 10857 # On IA64, the linker does run time linking by default, so we don't 10858 # have to do anything special. 10859 aix_use_runtimelinking=no 10860 exp_sym_flag='-Bexport' 10861 no_entry_flag= 10862 else 10863 # If we're using GNU nm, then we don't want the "-C" option. 10864 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10865 # Without the "-l" option, or with the "-B" option, AIX nm treats 10866 # weak defined symbols like other global defined symbols, whereas 10867 # GNU nm marks them as "W". 10868 # While the 'weak' keyword is ignored in the Export File, we need 10869 # it in the Import File for the 'aix-soname' feature, so we have 10870 # to replace the "-B" option with "-P" for AIX nm. 10871 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10872 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 10873 else 10874 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 10875 fi 10876 aix_use_runtimelinking=no 10877 10878 # Test if we are trying to use run time linking or normal 10879 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10880 # have runtime linking enabled, and use it for executables. 10881 # For shared libraries, we enable/disable runtime linking 10882 # depending on the kind of the shared library created - 10883 # when "with_aix_soname,aix_use_runtimelinking" is: 10884 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10885 # "aix,yes" lib.so shared, rtl:yes, for executables 10886 # lib.a static archive 10887 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10888 # lib.a(lib.so.V) shared, rtl:no, for executables 10889 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10890 # lib.a(lib.so.V) shared, rtl:no 10891 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10892 # lib.a static archive 10893 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10894 for ld_flag in $LDFLAGS; do 10895 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10896 aix_use_runtimelinking=yes 10897 break 10898 fi 10899 done 10900 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10901 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10902 # so we don't have lib.a shared libs to link our executables. 10903 # We have to force runtime linking in this case. 10904 aix_use_runtimelinking=yes 10905 LDFLAGS="$LDFLAGS -Wl,-brtl" 10906 fi 10907 ;; 10908 esac 10909 10910 exp_sym_flag='-bexport' 10911 no_entry_flag='-bnoentry' 10912 fi 10913 10914 # When large executables or shared objects are built, AIX ld can 10915 # have problems creating the table of contents. If linking a library 10916 # or program results in "error TOC overflow" add -mminimal-toc to 10917 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10918 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10919 10920 archive_cmds='' 10921 hardcode_direct=yes 10922 hardcode_direct_absolute=yes 10923 hardcode_libdir_separator=':' 10924 link_all_deplibs=yes 10925 file_list_spec='$wl-f,' 10926 case $with_aix_soname,$aix_use_runtimelinking in 10927 aix,*) ;; # traditional, no import file 10928 svr4,* | *,yes) # use import file 10929 # The Import File defines what to hardcode. 10930 hardcode_direct=no 10931 hardcode_direct_absolute=no 10932 ;; 10933 esac 10934 10935 if test yes = "$GCC"; then 10936 case $host_os in aix4.[012]|aix4.[012].*) 10937 # We only want to do this on AIX 4.2 and lower, the check 10938 # below for broken collect2 doesn't work under 4.3+ 10939 collect2name=`$CC -print-prog-name=collect2` 10940 if test -f "$collect2name" && 10941 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10942 then 10943 # We have reworked collect2 10944 : 10945 else 10946 # We have old collect2 10947 hardcode_direct=unsupported 10948 # It fails to find uninstalled libraries when the uninstalled 10949 # path is not listed in the libpath. Setting hardcode_minus_L 10950 # to unsupported forces relinking 10951 hardcode_minus_L=yes 10952 hardcode_libdir_flag_spec='-L$libdir' 10953 hardcode_libdir_separator= 10954 fi 10955 ;; 10956 esac 10957 shared_flag='-shared' 10958 if test yes = "$aix_use_runtimelinking"; then 10959 shared_flag="$shared_flag "'$wl-G' 10960 fi 10961 # Need to ensure runtime linking is disabled for the traditional 10962 # shared library, or the linker may eventually find shared libraries 10963 # /with/ Import File - we do not want to mix them. 10964 shared_flag_aix='-shared' 10965 shared_flag_svr4='-shared $wl-G' 10966 else 10967 # not using gcc 10968 if test ia64 = "$host_cpu"; then 10969 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10970 # chokes on -Wl,-G. The following line is correct: 10971 shared_flag='-G' 10972 else 10973 if test yes = "$aix_use_runtimelinking"; then 10974 shared_flag='$wl-G' 10975 else 10976 shared_flag='$wl-bM:SRE' 10977 fi 10978 shared_flag_aix='$wl-bM:SRE' 10979 shared_flag_svr4='$wl-G' 10980 fi 10981 fi 10982 10983 export_dynamic_flag_spec='$wl-bexpall' 10984 # It seems that -bexpall does not export symbols beginning with 10985 # underscore (_), so it is better to generate a list of symbols to export. 10986 always_export_symbols=yes 10987 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10988 # Warning - without using the other runtime loading flags (-brtl), 10989 # -berok will link without error, but may produce a broken library. 10990 allow_undefined_flag='-berok' 10991 # Determine the default libpath from the value encoded in an 10992 # empty executable. 10993 if test set = "${lt_cv_aix_libpath+set}"; then 10994 aix_libpath=$lt_cv_aix_libpath 10995else 10996 if test ${lt_cv_aix_libpath_+y} 10997then : 10998 printf %s "(cached) " >&6 10999else case e in #( 11000 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11001/* end confdefs.h. */ 11002 11003int 11004main (void) 11005{ 11006 11007 ; 11008 return 0; 11009} 11010_ACEOF 11011if ac_fn_c_try_link "$LINENO" 11012then : 11013 11014 lt_aix_libpath_sed=' 11015 /Import File Strings/,/^$/ { 11016 /^0/ { 11017 s/^0 *\([^ ]*\) *$/\1/ 11018 p 11019 } 11020 }' 11021 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11022 # Check for a 64-bit object if we didn't find anything. 11023 if test -z "$lt_cv_aix_libpath_"; then 11024 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11025 fi 11026fi 11027rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11028 conftest$ac_exeext conftest.$ac_ext 11029 if test -z "$lt_cv_aix_libpath_"; then 11030 lt_cv_aix_libpath_=/usr/lib:/lib 11031 fi 11032 ;; 11033esac 11034fi 11035 11036 aix_libpath=$lt_cv_aix_libpath_ 11037fi 11038 11039 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11040 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 11041 else 11042 if test ia64 = "$host_cpu"; then 11043 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 11044 allow_undefined_flag="-z nodefs" 11045 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" 11046 else 11047 # Determine the default libpath from the value encoded in an 11048 # empty executable. 11049 if test set = "${lt_cv_aix_libpath+set}"; then 11050 aix_libpath=$lt_cv_aix_libpath 11051else 11052 if test ${lt_cv_aix_libpath_+y} 11053then : 11054 printf %s "(cached) " >&6 11055else case e in #( 11056 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11057/* end confdefs.h. */ 11058 11059int 11060main (void) 11061{ 11062 11063 ; 11064 return 0; 11065} 11066_ACEOF 11067if ac_fn_c_try_link "$LINENO" 11068then : 11069 11070 lt_aix_libpath_sed=' 11071 /Import File Strings/,/^$/ { 11072 /^0/ { 11073 s/^0 *\([^ ]*\) *$/\1/ 11074 p 11075 } 11076 }' 11077 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11078 # Check for a 64-bit object if we didn't find anything. 11079 if test -z "$lt_cv_aix_libpath_"; then 11080 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11081 fi 11082fi 11083rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11084 conftest$ac_exeext conftest.$ac_ext 11085 if test -z "$lt_cv_aix_libpath_"; then 11086 lt_cv_aix_libpath_=/usr/lib:/lib 11087 fi 11088 ;; 11089esac 11090fi 11091 11092 aix_libpath=$lt_cv_aix_libpath_ 11093fi 11094 11095 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11096 # Warning - without using the other run time loading flags, 11097 # -berok will link without error, but may produce a broken library. 11098 no_undefined_flag=' $wl-bernotok' 11099 allow_undefined_flag=' $wl-berok' 11100 if test yes = "$with_gnu_ld"; then 11101 # We only use this code for GNU lds that support --whole-archive. 11102 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 11103 else 11104 # Exported symbols can be pulled into shared objects from archives 11105 whole_archive_flag_spec='$convenience' 11106 fi 11107 archive_cmds_need_lc=yes 11108 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 11109 # -brtl affects multiple linker settings, -berok does not and is overridden later 11110 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 11111 if test svr4 != "$with_aix_soname"; then 11112 # This is similar to how AIX traditionally builds its shared libraries. 11113 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 11114 fi 11115 if test aix != "$with_aix_soname"; then 11116 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 11117 else 11118 # used by -dlpreopen to get the symbols 11119 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 11120 fi 11121 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 11122 fi 11123 fi 11124 ;; 11125 11126 amigaos*) 11127 case $host_cpu in 11128 powerpc) 11129 # see comment about AmigaOS4 .so support 11130 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11131 archive_expsym_cmds='' 11132 ;; 11133 m68k) 11134 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)' 11135 hardcode_libdir_flag_spec='-L$libdir' 11136 hardcode_minus_L=yes 11137 ;; 11138 esac 11139 ;; 11140 11141 bsdi[45]*) 11142 export_dynamic_flag_spec=-rdynamic 11143 ;; 11144 11145 cygwin* | mingw* | windows* | pw32* | cegcc*) 11146 # When not using gcc, we currently assume that we are using 11147 # Microsoft Visual C++ or Intel C++ Compiler. 11148 # hardcode_libdir_flag_spec is actually meaningless, as there is 11149 # no search path for DLLs. 11150 case $cc_basename in 11151 cl* | icl*) 11152 # Native MSVC or ICC 11153 hardcode_libdir_flag_spec=' ' 11154 allow_undefined_flag=unsupported 11155 always_export_symbols=yes 11156 file_list_spec='@' 11157 # Tell ltmain to make .lib files, not .a files. 11158 libext=lib 11159 # Tell ltmain to make .dll files, not .so files. 11160 shrext_cmds=.dll 11161 # FIXME: Setting linknames here is a bad hack. 11162 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 11163 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11164 cp "$export_symbols" "$output_objdir/$soname.def"; 11165 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 11166 else 11167 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 11168 fi~ 11169 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11170 linknames=' 11171 # The linker will not automatically build a static lib if we build a DLL. 11172 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11173 enable_shared_with_static_runtimes=yes 11174 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11175 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11176 # Don't use ranlib 11177 old_postinstall_cmds='chmod 644 $oldlib' 11178 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11179 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11180 case $lt_outputfile in 11181 *.exe|*.EXE) ;; 11182 *) 11183 lt_outputfile=$lt_outputfile.exe 11184 lt_tool_outputfile=$lt_tool_outputfile.exe 11185 ;; 11186 esac~ 11187 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 11188 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11189 $RM "$lt_outputfile.manifest"; 11190 fi' 11191 ;; 11192 *) 11193 # Assume MSVC and ICC wrapper 11194 hardcode_libdir_flag_spec=' ' 11195 allow_undefined_flag=unsupported 11196 # Tell ltmain to make .lib files, not .a files. 11197 libext=lib 11198 # Tell ltmain to make .dll files, not .so files. 11199 shrext_cmds=.dll 11200 # FIXME: Setting linknames here is a bad hack. 11201 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11202 # The linker will automatically build a .lib file if we build a DLL. 11203 old_archive_from_new_cmds='true' 11204 # FIXME: Should let the user specify the lib program. 11205 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11206 enable_shared_with_static_runtimes=yes 11207 ;; 11208 esac 11209 ;; 11210 11211 darwin* | rhapsody*) 11212 11213 11214 archive_cmds_need_lc=no 11215 hardcode_direct=no 11216 hardcode_automatic=yes 11217 hardcode_shlibpath_var=unsupported 11218 if test yes = "$lt_cv_ld_force_load"; then 11219 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\"`' 11220 11221 else 11222 whole_archive_flag_spec='' 11223 fi 11224 link_all_deplibs=yes 11225 allow_undefined_flag=$_lt_dar_allow_undefined 11226 case $cc_basename in 11227 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11228 *) _lt_dar_can_shared=$GCC ;; 11229 esac 11230 if test yes = "$_lt_dar_can_shared"; then 11231 output_verbose_link_cmd=func_echo_all 11232 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11233 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11234 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" 11235 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" 11236 11237 else 11238 ld_shlibs=no 11239 fi 11240 11241 ;; 11242 11243 dgux*) 11244 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11245 hardcode_libdir_flag_spec='-L$libdir' 11246 hardcode_shlibpath_var=no 11247 ;; 11248 11249 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11250 # support. Future versions do this automatically, but an explicit c++rt0.o 11251 # does not break anything, and helps significantly (at the cost of a little 11252 # extra space). 11253 freebsd2.2*) 11254 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11255 hardcode_libdir_flag_spec='-R$libdir' 11256 hardcode_direct=yes 11257 hardcode_shlibpath_var=no 11258 ;; 11259 11260 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11261 freebsd2.*) 11262 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11263 hardcode_direct=yes 11264 hardcode_minus_L=yes 11265 hardcode_shlibpath_var=no 11266 ;; 11267 11268 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11269 freebsd* | dragonfly* | midnightbsd*) 11270 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11271 hardcode_libdir_flag_spec='-R$libdir' 11272 hardcode_direct=yes 11273 hardcode_shlibpath_var=no 11274 ;; 11275 11276 hpux9*) 11277 if test yes = "$GCC"; then 11278 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11279 else 11280 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11281 fi 11282 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11283 hardcode_libdir_separator=: 11284 hardcode_direct=yes 11285 11286 # hardcode_minus_L: Not really in the search PATH, 11287 # but as the default location of the library. 11288 hardcode_minus_L=yes 11289 export_dynamic_flag_spec='$wl-E' 11290 ;; 11291 11292 hpux10*) 11293 if test yes,no = "$GCC,$with_gnu_ld"; then 11294 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11295 else 11296 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11297 fi 11298 if test no = "$with_gnu_ld"; then 11299 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11300 hardcode_libdir_separator=: 11301 hardcode_direct=yes 11302 hardcode_direct_absolute=yes 11303 export_dynamic_flag_spec='$wl-E' 11304 # hardcode_minus_L: Not really in the search PATH, 11305 # but as the default location of the library. 11306 hardcode_minus_L=yes 11307 fi 11308 ;; 11309 11310 hpux11*) 11311 if test yes,no = "$GCC,$with_gnu_ld"; then 11312 case $host_cpu in 11313 hppa*64*) 11314 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11315 ;; 11316 ia64*) 11317 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11318 ;; 11319 *) 11320 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11321 ;; 11322 esac 11323 else 11324 case $host_cpu in 11325 hppa*64*) 11326 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11327 ;; 11328 ia64*) 11329 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11330 ;; 11331 *) 11332 11333 # Older versions of the 11.00 compiler do not understand -b yet 11334 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11336printf %s "checking if $CC understands -b... " >&6; } 11337if test ${lt_cv_prog_compiler__b+y} 11338then : 11339 printf %s "(cached) " >&6 11340else case e in #( 11341 e) lt_cv_prog_compiler__b=no 11342 save_LDFLAGS=$LDFLAGS 11343 LDFLAGS="$LDFLAGS -b" 11344 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11345 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11346 # The linker can only warn and ignore the option if not recognized 11347 # So say no if there are warnings 11348 if test -s conftest.err; then 11349 # Append any errors to the config.log. 11350 cat conftest.err 1>&5 11351 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11352 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11353 if diff conftest.exp conftest.er2 >/dev/null; then 11354 lt_cv_prog_compiler__b=yes 11355 fi 11356 else 11357 lt_cv_prog_compiler__b=yes 11358 fi 11359 fi 11360 $RM -r conftest* 11361 LDFLAGS=$save_LDFLAGS 11362 ;; 11363esac 11364fi 11365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11366printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 11367 11368if test yes = "$lt_cv_prog_compiler__b"; then 11369 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11370else 11371 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11372fi 11373 11374 ;; 11375 esac 11376 fi 11377 if test no = "$with_gnu_ld"; then 11378 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11379 hardcode_libdir_separator=: 11380 11381 case $host_cpu in 11382 hppa*64*|ia64*) 11383 hardcode_direct=no 11384 hardcode_shlibpath_var=no 11385 ;; 11386 *) 11387 hardcode_direct=yes 11388 hardcode_direct_absolute=yes 11389 export_dynamic_flag_spec='$wl-E' 11390 11391 # hardcode_minus_L: Not really in the search PATH, 11392 # but as the default location of the library. 11393 hardcode_minus_L=yes 11394 ;; 11395 esac 11396 fi 11397 ;; 11398 11399 irix5* | irix6* | nonstopux*) 11400 if test yes = "$GCC"; then 11401 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' 11402 # Try to use the -exported_symbol ld option, if it does not 11403 # work, assume that -exports_file does not work either and 11404 # implicitly export all symbols. 11405 # This should be the same for all languages, so no per-tag cache variable. 11406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11407printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11408if test ${lt_cv_irix_exported_symbol+y} 11409then : 11410 printf %s "(cached) " >&6 11411else case e in #( 11412 e) save_LDFLAGS=$LDFLAGS 11413 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11415/* end confdefs.h. */ 11416int foo (void) { return 0; } 11417_ACEOF 11418if ac_fn_c_try_link "$LINENO" 11419then : 11420 lt_cv_irix_exported_symbol=yes 11421else case e in #( 11422 e) lt_cv_irix_exported_symbol=no ;; 11423esac 11424fi 11425rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11426 conftest$ac_exeext conftest.$ac_ext 11427 LDFLAGS=$save_LDFLAGS ;; 11428esac 11429fi 11430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11431printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 11432 if test yes = "$lt_cv_irix_exported_symbol"; then 11433 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' 11434 fi 11435 else 11436 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' 11437 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' 11438 fi 11439 archive_cmds_need_lc='no' 11440 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11441 hardcode_libdir_separator=: 11442 inherit_rpath=yes 11443 link_all_deplibs=yes 11444 ;; 11445 11446 linux*) 11447 case $cc_basename in 11448 tcc*) 11449 # Fabrice Bellard et al's Tiny C Compiler 11450 ld_shlibs=yes 11451 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11452 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11453 ;; 11454 esac 11455 ;; 11456 11457 *-mlibc) 11458 ;; 11459 11460 netbsd* | netbsdelf*-gnu) 11461 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11462 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11463 else 11464 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11465 fi 11466 hardcode_libdir_flag_spec='-R$libdir' 11467 hardcode_direct=yes 11468 hardcode_shlibpath_var=no 11469 ;; 11470 11471 newsos6) 11472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11473 hardcode_direct=yes 11474 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11475 hardcode_libdir_separator=: 11476 hardcode_shlibpath_var=no 11477 ;; 11478 11479 *nto* | *qnx*) 11480 ;; 11481 11482 openbsd*) 11483 if test -f /usr/libexec/ld.so; then 11484 hardcode_direct=yes 11485 hardcode_shlibpath_var=no 11486 hardcode_direct_absolute=yes 11487 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11488 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11489 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11490 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11491 export_dynamic_flag_spec='$wl-E' 11492 else 11493 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11494 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11495 fi 11496 else 11497 ld_shlibs=no 11498 fi 11499 ;; 11500 11501 os2*) 11502 hardcode_libdir_flag_spec='-L$libdir' 11503 hardcode_minus_L=yes 11504 allow_undefined_flag=unsupported 11505 shrext_cmds=.dll 11506 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11507 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11508 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11509 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11510 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11511 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11512 emximp -o $lib $output_objdir/$libname.def' 11513 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11514 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11515 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11516 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11517 prefix_cmds="$SED"~ 11518 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11519 prefix_cmds="$prefix_cmds -e 1d"; 11520 fi~ 11521 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11522 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11523 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11524 emximp -o $lib $output_objdir/$libname.def' 11525 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11526 enable_shared_with_static_runtimes=yes 11527 file_list_spec='@' 11528 ;; 11529 11530 osf3*) 11531 if test yes = "$GCC"; then 11532 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11533 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' 11534 else 11535 allow_undefined_flag=' -expect_unresolved \*' 11536 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' 11537 fi 11538 archive_cmds_need_lc='no' 11539 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11540 hardcode_libdir_separator=: 11541 ;; 11542 11543 osf4* | osf5*) # as osf3* with the addition of -msym flag 11544 if test yes = "$GCC"; then 11545 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11546 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' 11547 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11548 else 11549 allow_undefined_flag=' -expect_unresolved \*' 11550 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' 11551 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~ 11552 $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' 11553 11554 # Both c and cxx compiler support -rpath directly 11555 hardcode_libdir_flag_spec='-rpath $libdir' 11556 fi 11557 archive_cmds_need_lc='no' 11558 hardcode_libdir_separator=: 11559 ;; 11560 11561 serenity*) 11562 ;; 11563 11564 solaris*) 11565 no_undefined_flag=' -z defs' 11566 if test yes = "$GCC"; then 11567 wlarc='$wl' 11568 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11569 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11570 $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' 11571 else 11572 case `$CC -V 2>&1` in 11573 *"Compilers 5.0"*) 11574 wlarc='' 11575 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11576 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11577 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11578 ;; 11579 *) 11580 wlarc='$wl' 11581 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11582 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11583 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11584 ;; 11585 esac 11586 fi 11587 hardcode_libdir_flag_spec='-R$libdir' 11588 hardcode_shlibpath_var=no 11589 case $host_os in 11590 solaris2.[0-5] | solaris2.[0-5].*) ;; 11591 *) 11592 # The compiler driver will combine and reorder linker options, 11593 # but understands '-z linker_flag'. GCC discards it without '$wl', 11594 # but is careful enough not to reorder. 11595 # Supported since Solaris 2.6 (maybe 2.5.1?) 11596 if test yes = "$GCC"; then 11597 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11598 else 11599 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11600 fi 11601 ;; 11602 esac 11603 link_all_deplibs=yes 11604 ;; 11605 11606 sunos4*) 11607 if test sequent = "$host_vendor"; then 11608 # Use $CC to link under sequent, because it throws in some extra .o 11609 # files that make .init and .fini sections work. 11610 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11611 else 11612 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11613 fi 11614 hardcode_libdir_flag_spec='-L$libdir' 11615 hardcode_direct=yes 11616 hardcode_minus_L=yes 11617 hardcode_shlibpath_var=no 11618 ;; 11619 11620 sysv4) 11621 case $host_vendor in 11622 sni) 11623 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11624 hardcode_direct=yes # is this really true??? 11625 ;; 11626 siemens) 11627 ## LD is ld it makes a PLAMLIB 11628 ## CC just makes a GrossModule. 11629 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11630 reload_cmds='$CC -r -o $output$reload_objs' 11631 hardcode_direct=no 11632 ;; 11633 motorola) 11634 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11635 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11636 ;; 11637 esac 11638 runpath_var='LD_RUN_PATH' 11639 hardcode_shlibpath_var=no 11640 ;; 11641 11642 sysv4.3*) 11643 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11644 hardcode_shlibpath_var=no 11645 export_dynamic_flag_spec='-Bexport' 11646 ;; 11647 11648 sysv4*MP*) 11649 if test -d /usr/nec; then 11650 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11651 hardcode_shlibpath_var=no 11652 runpath_var=LD_RUN_PATH 11653 hardcode_runpath_var=yes 11654 ld_shlibs=yes 11655 fi 11656 ;; 11657 11658 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11659 no_undefined_flag='$wl-z,text' 11660 archive_cmds_need_lc=no 11661 hardcode_shlibpath_var=no 11662 runpath_var='LD_RUN_PATH' 11663 11664 if test yes = "$GCC"; then 11665 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11666 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11667 else 11668 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11669 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11670 fi 11671 ;; 11672 11673 sysv5* | sco3.2v5* | sco5v6*) 11674 # Note: We CANNOT use -z defs as we might desire, because we do not 11675 # link with -lc, and that would cause any symbols used from libc to 11676 # always be unresolved, which means just about no library would 11677 # ever link correctly. If we're not using GNU ld we use -z text 11678 # though, which does catch some bad symbols but isn't as heavy-handed 11679 # as -z defs. 11680 no_undefined_flag='$wl-z,text' 11681 allow_undefined_flag='$wl-z,nodefs' 11682 archive_cmds_need_lc=no 11683 hardcode_shlibpath_var=no 11684 hardcode_libdir_flag_spec='$wl-R,$libdir' 11685 hardcode_libdir_separator=':' 11686 link_all_deplibs=yes 11687 export_dynamic_flag_spec='$wl-Bexport' 11688 runpath_var='LD_RUN_PATH' 11689 11690 if test yes = "$GCC"; then 11691 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11692 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11693 else 11694 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11695 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11696 fi 11697 ;; 11698 11699 uts4*) 11700 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11701 hardcode_libdir_flag_spec='-L$libdir' 11702 hardcode_shlibpath_var=no 11703 ;; 11704 11705 *) 11706 ld_shlibs=no 11707 ;; 11708 esac 11709 11710 if test sni = "$host_vendor"; then 11711 case $host in 11712 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11713 export_dynamic_flag_spec='$wl-Blargedynsym' 11714 ;; 11715 esac 11716 fi 11717 fi 11718 11719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11720printf "%s\n" "$ld_shlibs" >&6; } 11721test no = "$ld_shlibs" && can_build_shared=no 11722 11723with_gnu_ld=$with_gnu_ld 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739# 11740# Do we need to explicitly link libc? 11741# 11742case "x$archive_cmds_need_lc" in 11743x|xyes) 11744 # Assume -lc should be added 11745 archive_cmds_need_lc=yes 11746 11747 if test yes,yes = "$GCC,$enable_shared"; then 11748 case $archive_cmds in 11749 *'~'*) 11750 # FIXME: we may have to deal with multi-command sequences. 11751 ;; 11752 '$CC '*) 11753 # Test whether the compiler implicitly links with -lc since on some 11754 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11755 # to ld, don't add -lc before -lgcc. 11756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11757printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11758if test ${lt_cv_archive_cmds_need_lc+y} 11759then : 11760 printf %s "(cached) " >&6 11761else case e in #( 11762 e) $RM conftest* 11763 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11764 11765 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11766 (eval $ac_compile) 2>&5 11767 ac_status=$? 11768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11769 test $ac_status = 0; } 2>conftest.err; then 11770 soname=conftest 11771 lib=conftest 11772 libobjs=conftest.$ac_objext 11773 deplibs= 11774 wl=$lt_prog_compiler_wl 11775 pic_flag=$lt_prog_compiler_pic 11776 compiler_flags=-v 11777 linker_flags=-v 11778 verstring= 11779 output_objdir=. 11780 libname=conftest 11781 lt_save_allow_undefined_flag=$allow_undefined_flag 11782 allow_undefined_flag= 11783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11784 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11785 ac_status=$? 11786 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11787 test $ac_status = 0; } 11788 then 11789 lt_cv_archive_cmds_need_lc=no 11790 else 11791 lt_cv_archive_cmds_need_lc=yes 11792 fi 11793 allow_undefined_flag=$lt_save_allow_undefined_flag 11794 else 11795 cat conftest.err 1>&5 11796 fi 11797 $RM conftest* 11798 ;; 11799esac 11800fi 11801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11802printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11803 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11804 ;; 11805 esac 11806 fi 11807 ;; 11808esac 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11962printf %s "checking dynamic linker characteristics... " >&6; } 11963 11964if test yes = "$GCC"; then 11965 case $host_os in 11966 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11967 *) lt_awk_arg='/^libraries:/' ;; 11968 esac 11969 case $host_os in 11970 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11971 *) lt_sed_strip_eq='s|=/|/|g' ;; 11972 esac 11973 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11974 case $lt_search_path_spec in 11975 *\;*) 11976 # if the path contains ";" then we assume it to be the separator 11977 # otherwise default to the standard path separator (i.e. ":") - it is 11978 # assumed that no part of a normal pathname contains ";" but that should 11979 # okay in the real world where ";" in dirpaths is itself problematic. 11980 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11981 ;; 11982 *) 11983 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11984 ;; 11985 esac 11986 # Ok, now we have the path, separated by spaces, we can step through it 11987 # and add multilib dir if necessary... 11988 lt_tmp_lt_search_path_spec= 11989 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11990 # ...but if some path component already ends with the multilib dir we assume 11991 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11992 case "$lt_multi_os_dir; $lt_search_path_spec " in 11993 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11994 lt_multi_os_dir= 11995 ;; 11996 esac 11997 for lt_sys_path in $lt_search_path_spec; do 11998 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11999 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 12000 elif test -n "$lt_multi_os_dir"; then 12001 test -d "$lt_sys_path" && \ 12002 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12003 fi 12004 done 12005 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12006BEGIN {RS = " "; FS = "/|\n";} { 12007 lt_foo = ""; 12008 lt_count = 0; 12009 for (lt_i = NF; lt_i > 0; lt_i--) { 12010 if ($lt_i != "" && $lt_i != ".") { 12011 if ($lt_i == "..") { 12012 lt_count++; 12013 } else { 12014 if (lt_count == 0) { 12015 lt_foo = "/" $lt_i lt_foo; 12016 } else { 12017 lt_count--; 12018 } 12019 } 12020 } 12021 } 12022 if (lt_foo != "") { lt_freq[lt_foo]++; } 12023 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12024}'` 12025 # AWK program above erroneously prepends '/' to C:/dos/paths 12026 # for these hosts. 12027 case $host_os in 12028 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12029 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 12030 esac 12031 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12032else 12033 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12034fi 12035library_names_spec= 12036libname_spec='lib$name' 12037soname_spec= 12038shrext_cmds=.so 12039postinstall_cmds= 12040postuninstall_cmds= 12041finish_cmds= 12042finish_eval= 12043shlibpath_var= 12044shlibpath_overrides_runpath=unknown 12045version_type=none 12046dynamic_linker="$host_os ld.so" 12047sys_lib_dlsearch_path_spec="/lib /usr/lib" 12048need_lib_prefix=unknown 12049hardcode_into_libs=no 12050 12051# when you set need_version to no, make sure it does not cause -set_version 12052# flags to be left without arguments 12053need_version=unknown 12054 12055 12056 12057case $host_os in 12058aix3*) 12059 version_type=linux # correct to gnu/linux during the next big refactor 12060 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 12061 shlibpath_var=LIBPATH 12062 12063 # AIX 3 has no versioning support, so we append a major version to the name. 12064 soname_spec='$libname$release$shared_ext$major' 12065 ;; 12066 12067aix[4-9]*) 12068 version_type=linux # correct to gnu/linux during the next big refactor 12069 need_lib_prefix=no 12070 need_version=no 12071 hardcode_into_libs=yes 12072 if test ia64 = "$host_cpu"; then 12073 # AIX 5 supports IA64 12074 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 12075 shlibpath_var=LD_LIBRARY_PATH 12076 else 12077 # With GCC up to 2.95.x, collect2 would create an import file 12078 # for dependence libraries. The import file would start with 12079 # the line '#! .'. This would cause the generated library to 12080 # depend on '.', always an invalid library. This was fixed in 12081 # development snapshots of GCC prior to 3.0. 12082 case $host_os in 12083 aix4 | aix4.[01] | aix4.[01].*) 12084 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12085 echo ' yes ' 12086 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 12087 : 12088 else 12089 can_build_shared=no 12090 fi 12091 ;; 12092 esac 12093 # Using Import Files as archive members, it is possible to support 12094 # filename-based versioning of shared library archives on AIX. While 12095 # this would work for both with and without runtime linking, it will 12096 # prevent static linking of such archives. So we do filename-based 12097 # shared library versioning with .so extension only, which is used 12098 # when both runtime linking and shared linking is enabled. 12099 # Unfortunately, runtime linking may impact performance, so we do 12100 # not want this to be the default eventually. Also, we use the 12101 # versioned .so libs for executables only if there is the -brtl 12102 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only. 12103 # To allow for filename-based versioning support, we need to create 12104 # libNAME.so.V as an archive file, containing: 12105 # *) an Import File, referring to the versioned filename of the 12106 # archive as well as the shared archive member, telling the 12107 # bitwidth (32 or 64) of that shared object, and providing the 12108 # list of exported symbols of that shared object, eventually 12109 # decorated with the 'weak' keyword 12110 # *) the shared object with the F_LOADONLY flag set, to really avoid 12111 # it being seen by the linker. 12112 # At run time we better use the real file rather than another symlink, 12113 # but for link time we create the symlink libNAME.so -> libNAME.so.V 12114 12115 case $with_aix_soname,$aix_use_runtimelinking in 12116 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 12117 # soname into executable. Probably we can add versioning support to 12118 # collect2, so additional links can be useful in future. 12119 aix,yes) # traditional libtool 12120 dynamic_linker='AIX unversionable lib.so' 12121 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12122 # instead of lib<name>.a to let people know that these are not 12123 # typical AIX shared libraries. 12124 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12125 ;; 12126 aix,no) # traditional AIX only 12127 dynamic_linker='AIX lib.a(lib.so.V)' 12128 # We preserve .a as extension for shared libraries through AIX4.2 12129 # and later when we are not doing run time linking. 12130 library_names_spec='$libname$release.a $libname.a' 12131 soname_spec='$libname$release$shared_ext$major' 12132 ;; 12133 svr4,*) # full svr4 only 12134 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 12135 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12136 # We do not specify a path in Import Files, so LIBPATH fires. 12137 shlibpath_overrides_runpath=yes 12138 ;; 12139 *,yes) # both, prefer svr4 12140 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 12141 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12142 # unpreferred sharedlib libNAME.a needs extra handling 12143 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 12144 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 12145 # We do not specify a path in Import Files, so LIBPATH fires. 12146 shlibpath_overrides_runpath=yes 12147 ;; 12148 *,no) # both, prefer aix 12149 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 12150 library_names_spec='$libname$release.a $libname.a' 12151 soname_spec='$libname$release$shared_ext$major' 12152 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 12153 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 12154 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 12155 ;; 12156 esac 12157 shlibpath_var=LIBPATH 12158 fi 12159 ;; 12160 12161amigaos*) 12162 case $host_cpu in 12163 powerpc) 12164 # Since July 2007 AmigaOS4 officially supports .so libraries. 12165 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12166 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12167 ;; 12168 m68k) 12169 library_names_spec='$libname.ixlibrary $libname.a' 12170 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12171 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 12172 ;; 12173 esac 12174 ;; 12175 12176beos*) 12177 library_names_spec='$libname$shared_ext' 12178 dynamic_linker="$host_os ld.so" 12179 shlibpath_var=LIBRARY_PATH 12180 ;; 12181 12182bsdi[45]*) 12183 version_type=linux # correct to gnu/linux during the next big refactor 12184 need_version=no 12185 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12186 soname_spec='$libname$release$shared_ext$major' 12187 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12188 shlibpath_var=LD_LIBRARY_PATH 12189 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12190 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12191 # the default ld.so.conf also contains /usr/contrib/lib and 12192 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12193 # libtool to hard-code these into programs 12194 ;; 12195 12196cygwin* | mingw* | windows* | pw32* | cegcc*) 12197 version_type=windows 12198 shrext_cmds=.dll 12199 need_version=no 12200 need_lib_prefix=no 12201 12202 case $GCC,$cc_basename in 12203 yes,*) 12204 # gcc 12205 library_names_spec='$libname.dll.a' 12206 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12207 # If user builds GCC with multilib enabled, 12208 # it should just install on $(libdir) 12209 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones. 12210 if test xyes = x"$multilib"; then 12211 postinstall_cmds='base_file=`basename \$file`~ 12212 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12213 dldir=$destdir/`dirname \$dlpath`~ 12214 $install_prog $dir/$dlname $destdir/$dlname~ 12215 chmod a+x $destdir/$dlname~ 12216 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12217 eval '\''$striplib $destdir/$dlname'\'' || exit \$?; 12218 fi' 12219 else 12220 postinstall_cmds='base_file=`basename \$file`~ 12221 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12222 dldir=$destdir/`dirname \$dlpath`~ 12223 test -d \$dldir || mkdir -p \$dldir~ 12224 $install_prog $dir/$dlname \$dldir/$dlname~ 12225 chmod a+x \$dldir/$dlname~ 12226 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12227 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12228 fi' 12229 fi 12230 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12231 dlpath=$dir/\$dldll~ 12232 $RM \$dlpath' 12233 shlibpath_overrides_runpath=yes 12234 12235 case $host_os in 12236 cygwin*) 12237 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12238 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12239 12240 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12241 ;; 12242 mingw* | windows* | cegcc*) 12243 # MinGW DLLs use traditional 'lib' prefix 12244 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12245 ;; 12246 pw32*) 12247 # pw32 DLLs use 'pw' prefix rather than 'lib' 12248 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12249 ;; 12250 esac 12251 dynamic_linker='Win32 ld.exe' 12252 ;; 12253 12254 *,cl* | *,icl*) 12255 # Native MSVC or ICC 12256 libname_spec='$name' 12257 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12258 library_names_spec='$libname.dll.lib' 12259 12260 case $build_os in 12261 mingw* | windows*) 12262 sys_lib_search_path_spec= 12263 lt_save_ifs=$IFS 12264 IFS=';' 12265 for lt_path in $LIB 12266 do 12267 IFS=$lt_save_ifs 12268 # Let DOS variable expansion print the short 8.3 style file name. 12269 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12270 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12271 done 12272 IFS=$lt_save_ifs 12273 # Convert to MSYS style. 12274 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12275 ;; 12276 cygwin*) 12277 # Convert to unix form, then to dos form, then back to unix form 12278 # but this time dos style (no spaces!) so that the unix form looks 12279 # like /cygdrive/c/PROGRA~1:/cygdr... 12280 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12281 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12282 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12283 ;; 12284 *) 12285 sys_lib_search_path_spec=$LIB 12286 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12287 # It is most probably a Windows format PATH. 12288 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12289 else 12290 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12291 fi 12292 # FIXME: find the short name or the path components, as spaces are 12293 # common. (e.g. "Program Files" -> "PROGRA~1") 12294 ;; 12295 esac 12296 12297 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12298 postinstall_cmds='base_file=`basename \$file`~ 12299 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12300 dldir=$destdir/`dirname \$dlpath`~ 12301 test -d \$dldir || mkdir -p \$dldir~ 12302 $install_prog $dir/$dlname \$dldir/$dlname' 12303 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12304 dlpath=$dir/\$dldll~ 12305 $RM \$dlpath' 12306 shlibpath_overrides_runpath=yes 12307 dynamic_linker='Win32 link.exe' 12308 ;; 12309 12310 *) 12311 # Assume MSVC and ICC wrapper 12312 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12313 dynamic_linker='Win32 ld.exe' 12314 ;; 12315 esac 12316 # FIXME: first we should search . and the directory the executable is in 12317 shlibpath_var=PATH 12318 ;; 12319 12320darwin* | rhapsody*) 12321 dynamic_linker="$host_os dyld" 12322 version_type=darwin 12323 need_lib_prefix=no 12324 need_version=no 12325 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12326 soname_spec='$libname$release$major$shared_ext' 12327 shlibpath_overrides_runpath=yes 12328 shlibpath_var=DYLD_LIBRARY_PATH 12329 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12330 12331 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12332 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12333 ;; 12334 12335dgux*) 12336 version_type=linux # correct to gnu/linux during the next big refactor 12337 need_lib_prefix=no 12338 need_version=no 12339 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12340 soname_spec='$libname$release$shared_ext$major' 12341 shlibpath_var=LD_LIBRARY_PATH 12342 ;; 12343 12344freebsd* | dragonfly* | midnightbsd*) 12345 # DragonFly does not have aout. When/if they implement a new 12346 # versioning mechanism, adjust this. 12347 if test -x /usr/bin/objformat; then 12348 objformat=`/usr/bin/objformat` 12349 else 12350 case $host_os in 12351 freebsd[23].*) objformat=aout ;; 12352 *) objformat=elf ;; 12353 esac 12354 fi 12355 version_type=freebsd-$objformat 12356 case $version_type in 12357 freebsd-elf*) 12358 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12359 soname_spec='$libname$release$shared_ext$major' 12360 need_version=no 12361 need_lib_prefix=no 12362 ;; 12363 freebsd-*) 12364 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12365 need_version=yes 12366 ;; 12367 esac 12368 case $host_cpu in 12369 powerpc64) 12370 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit 12371 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>. 12372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12373/* end confdefs.h. */ 12374int test_pointer_size[sizeof (void *) - 5]; 12375 12376_ACEOF 12377if ac_fn_c_try_compile "$LINENO" 12378then : 12379 shlibpath_var=LD_LIBRARY_PATH 12380else case e in #( 12381 e) shlibpath_var=LD_32_LIBRARY_PATH ;; 12382esac 12383fi 12384rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12385 ;; 12386 *) 12387 shlibpath_var=LD_LIBRARY_PATH 12388 ;; 12389 esac 12390 case $host_os in 12391 freebsd2.*) 12392 shlibpath_overrides_runpath=yes 12393 ;; 12394 freebsd3.[01]* | freebsdelf3.[01]*) 12395 shlibpath_overrides_runpath=yes 12396 hardcode_into_libs=yes 12397 ;; 12398 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12399 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12400 shlibpath_overrides_runpath=no 12401 hardcode_into_libs=yes 12402 ;; 12403 *) # from 4.6 on, and DragonFly 12404 shlibpath_overrides_runpath=yes 12405 hardcode_into_libs=yes 12406 ;; 12407 esac 12408 ;; 12409 12410haiku*) 12411 version_type=linux # correct to gnu/linux during the next big refactor 12412 need_lib_prefix=no 12413 need_version=no 12414 dynamic_linker="$host_os runtime_loader" 12415 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12416 soname_spec='$libname$release$shared_ext$major' 12417 shlibpath_var=LIBRARY_PATH 12418 shlibpath_overrides_runpath=no 12419 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib' 12420 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib' 12421 hardcode_into_libs=no 12422 ;; 12423 12424hpux9* | hpux10* | hpux11*) 12425 # Give a soname corresponding to the major version so that dld.sl refuses to 12426 # link against other versions. 12427 version_type=sunos 12428 need_lib_prefix=no 12429 need_version=no 12430 case $host_cpu in 12431 ia64*) 12432 shrext_cmds='.so' 12433 hardcode_into_libs=yes 12434 dynamic_linker="$host_os dld.so" 12435 shlibpath_var=LD_LIBRARY_PATH 12436 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12437 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12438 soname_spec='$libname$release$shared_ext$major' 12439 if test 32 = "$HPUX_IA64_MODE"; then 12440 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12441 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12442 else 12443 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12444 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12445 fi 12446 ;; 12447 hppa*64*) 12448 shrext_cmds='.sl' 12449 hardcode_into_libs=yes 12450 dynamic_linker="$host_os dld.sl" 12451 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12452 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12453 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12454 soname_spec='$libname$release$shared_ext$major' 12455 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12456 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12457 ;; 12458 *) 12459 shrext_cmds='.sl' 12460 dynamic_linker="$host_os dld.sl" 12461 shlibpath_var=SHLIB_PATH 12462 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12463 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12464 soname_spec='$libname$release$shared_ext$major' 12465 ;; 12466 esac 12467 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12468 postinstall_cmds='chmod 555 $lib' 12469 # or fails outright, so override atomically: 12470 install_override_mode=555 12471 ;; 12472 12473interix[3-9]*) 12474 version_type=linux # correct to gnu/linux during the next big refactor 12475 need_lib_prefix=no 12476 need_version=no 12477 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12478 soname_spec='$libname$release$shared_ext$major' 12479 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12480 shlibpath_var=LD_LIBRARY_PATH 12481 shlibpath_overrides_runpath=no 12482 hardcode_into_libs=yes 12483 ;; 12484 12485irix5* | irix6* | nonstopux*) 12486 case $host_os in 12487 nonstopux*) version_type=nonstopux ;; 12488 *) 12489 if test yes = "$lt_cv_prog_gnu_ld"; then 12490 version_type=linux # correct to gnu/linux during the next big refactor 12491 else 12492 version_type=irix 12493 fi ;; 12494 esac 12495 need_lib_prefix=no 12496 need_version=no 12497 soname_spec='$libname$release$shared_ext$major' 12498 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12499 case $host_os in 12500 irix5* | nonstopux*) 12501 libsuff= shlibsuff= 12502 ;; 12503 *) 12504 case $LD in # libtool.m4 will add one of these switches to LD 12505 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12506 libsuff= shlibsuff= libmagic=32-bit;; 12507 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12508 libsuff=32 shlibsuff=N32 libmagic=N32;; 12509 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12510 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12511 *) libsuff= shlibsuff= libmagic=never-match;; 12512 esac 12513 ;; 12514 esac 12515 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12516 shlibpath_overrides_runpath=no 12517 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12518 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12519 hardcode_into_libs=yes 12520 ;; 12521 12522# No shared lib support for Linux oldld, aout, or coff. 12523linux*oldld* | linux*aout* | linux*coff*) 12524 dynamic_linker=no 12525 ;; 12526 12527linux*android*) 12528 version_type=none # Android doesn't support versioned libraries. 12529 need_lib_prefix=no 12530 need_version=no 12531 library_names_spec='$libname$release$shared_ext $libname$shared_ext' 12532 soname_spec='$libname$release$shared_ext' 12533 finish_cmds= 12534 shlibpath_var=LD_LIBRARY_PATH 12535 shlibpath_overrides_runpath=yes 12536 12537 # This implies no fast_install, which is unacceptable. 12538 # Some rework will be needed to allow for fast_install 12539 # before this can be enabled. 12540 hardcode_into_libs=yes 12541 12542 dynamic_linker='Android linker' 12543 # -rpath works at least for libraries that are not overridden by 12544 # libraries installed in system locations. 12545 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12546 ;; 12547 12548# This must be glibc/ELF. 12549linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12550 version_type=linux # correct to gnu/linux during the next big refactor 12551 need_lib_prefix=no 12552 need_version=no 12553 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12554 soname_spec='$libname$release$shared_ext$major' 12555 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12556 shlibpath_var=LD_LIBRARY_PATH 12557 shlibpath_overrides_runpath=no 12558 12559 # Some binutils ld are patched to set DT_RUNPATH 12560 if test ${lt_cv_shlibpath_overrides_runpath+y} 12561then : 12562 printf %s "(cached) " >&6 12563else case e in #( 12564 e) lt_cv_shlibpath_overrides_runpath=no 12565 save_LDFLAGS=$LDFLAGS 12566 save_libdir=$libdir 12567 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12568 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12570/* end confdefs.h. */ 12571 12572int 12573main (void) 12574{ 12575 12576 ; 12577 return 0; 12578} 12579_ACEOF 12580if ac_fn_c_try_link "$LINENO" 12581then : 12582 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 12583then : 12584 lt_cv_shlibpath_overrides_runpath=yes 12585fi 12586fi 12587rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12588 conftest$ac_exeext conftest.$ac_ext 12589 LDFLAGS=$save_LDFLAGS 12590 libdir=$save_libdir 12591 ;; 12592esac 12593fi 12594 12595 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12596 12597 # This implies no fast_install, which is unacceptable. 12598 # Some rework will be needed to allow for fast_install 12599 # before this can be enabled. 12600 hardcode_into_libs=yes 12601 12602 # Ideally, we could use ldconfig to report *all* directories which are 12603 # searched for libraries, however this is still not possible. Aside from not 12604 # being certain /sbin/ldconfig is available, command 12605 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12606 # even though it is searched at run-time. Try to do the best guess by 12607 # appending ld.so.conf contents (and includes) to the search path. 12608 if test -f /etc/ld.so.conf; then 12609 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' ' '` 12610 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12611 fi 12612 12613 # We used to test for /lib/ld.so.1 and disable shared libraries on 12614 # powerpc, because MkLinux only supported shared libraries with the 12615 # GNU dynamic linker. Since this was broken with cross compilers, 12616 # most powerpc-linux boxes support dynamic linking these days and 12617 # people can always --disable-shared, the test was removed, and we 12618 # assume the GNU/Linux dynamic linker is in use. 12619 dynamic_linker='GNU/Linux ld.so' 12620 ;; 12621 12622netbsdelf*-gnu) 12623 version_type=linux 12624 need_lib_prefix=no 12625 need_version=no 12626 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12627 soname_spec='$libname$release$shared_ext$major' 12628 shlibpath_var=LD_LIBRARY_PATH 12629 shlibpath_overrides_runpath=no 12630 hardcode_into_libs=yes 12631 dynamic_linker='NetBSD ld.elf_so' 12632 ;; 12633 12634netbsd*) 12635 version_type=sunos 12636 need_lib_prefix=no 12637 need_version=no 12638 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12639 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12640 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12641 dynamic_linker='NetBSD (a.out) ld.so' 12642 else 12643 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12644 soname_spec='$libname$release$shared_ext$major' 12645 dynamic_linker='NetBSD ld.elf_so' 12646 fi 12647 shlibpath_var=LD_LIBRARY_PATH 12648 shlibpath_overrides_runpath=yes 12649 hardcode_into_libs=yes 12650 ;; 12651 12652*-mlibc) 12653 version_type=linux # correct to gnu/linux during the next big refactor 12654 need_lib_prefix=no 12655 need_version=no 12656 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12657 soname_spec='$libname$release$shared_ext$major' 12658 dynamic_linker='mlibc ld.so' 12659 shlibpath_var=LD_LIBRARY_PATH 12660 shlibpath_overrides_runpath=no 12661 hardcode_into_libs=yes 12662 ;; 12663 12664newsos6) 12665 version_type=linux # correct to gnu/linux during the next big refactor 12666 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12667 shlibpath_var=LD_LIBRARY_PATH 12668 shlibpath_overrides_runpath=yes 12669 ;; 12670 12671*nto* | *qnx*) 12672 version_type=qnx 12673 need_lib_prefix=no 12674 need_version=no 12675 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12676 soname_spec='$libname$release$shared_ext$major' 12677 shlibpath_var=LD_LIBRARY_PATH 12678 shlibpath_overrides_runpath=no 12679 hardcode_into_libs=yes 12680 dynamic_linker='ldqnx.so' 12681 ;; 12682 12683openbsd*) 12684 version_type=sunos 12685 sys_lib_dlsearch_path_spec=/usr/lib 12686 need_lib_prefix=no 12687 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12688 need_version=no 12689 else 12690 need_version=yes 12691 fi 12692 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12693 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12694 shlibpath_var=LD_LIBRARY_PATH 12695 shlibpath_overrides_runpath=yes 12696 ;; 12697 12698os2*) 12699 libname_spec='$name' 12700 version_type=windows 12701 shrext_cmds=.dll 12702 need_version=no 12703 need_lib_prefix=no 12704 # OS/2 can only load a DLL with a base name of 8 characters or less. 12705 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12706 v=$($ECHO $release$versuffix | tr -d .-); 12707 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12708 $ECHO $n$v`$shared_ext' 12709 library_names_spec='${libname}_dll.$libext' 12710 dynamic_linker='OS/2 ld.exe' 12711 shlibpath_var=BEGINLIBPATH 12712 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12713 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12714 postinstall_cmds='base_file=`basename \$file`~ 12715 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12716 dldir=$destdir/`dirname \$dlpath`~ 12717 test -d \$dldir || mkdir -p \$dldir~ 12718 $install_prog $dir/$dlname \$dldir/$dlname~ 12719 chmod a+x \$dldir/$dlname~ 12720 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12721 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12722 fi' 12723 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12724 dlpath=$dir/\$dldll~ 12725 $RM \$dlpath' 12726 ;; 12727 12728osf3* | osf4* | osf5*) 12729 version_type=osf 12730 need_lib_prefix=no 12731 need_version=no 12732 soname_spec='$libname$release$shared_ext$major' 12733 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12734 shlibpath_var=LD_LIBRARY_PATH 12735 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12736 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12737 ;; 12738 12739rdos*) 12740 dynamic_linker=no 12741 ;; 12742 12743serenity*) 12744 version_type=linux # correct to gnu/linux during the next big refactor 12745 need_lib_prefix=no 12746 need_version=no 12747 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12748 soname_spec='$libname$release$shared_ext$major' 12749 shlibpath_var=LD_LIBRARY_PATH 12750 shlibpath_overrides_runpath=no 12751 dynamic_linker='SerenityOS LibELF' 12752 ;; 12753 12754solaris*) 12755 version_type=linux # correct to gnu/linux during the next big refactor 12756 need_lib_prefix=no 12757 need_version=no 12758 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12759 soname_spec='$libname$release$shared_ext$major' 12760 shlibpath_var=LD_LIBRARY_PATH 12761 shlibpath_overrides_runpath=yes 12762 hardcode_into_libs=yes 12763 # ldd complains unless libraries are executable 12764 postinstall_cmds='chmod +x $lib' 12765 ;; 12766 12767sunos4*) 12768 version_type=sunos 12769 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12770 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12771 shlibpath_var=LD_LIBRARY_PATH 12772 shlibpath_overrides_runpath=yes 12773 if test yes = "$with_gnu_ld"; then 12774 need_lib_prefix=no 12775 fi 12776 need_version=yes 12777 ;; 12778 12779sysv4 | sysv4.3*) 12780 version_type=linux # correct to gnu/linux during the next big refactor 12781 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12782 soname_spec='$libname$release$shared_ext$major' 12783 shlibpath_var=LD_LIBRARY_PATH 12784 case $host_vendor in 12785 sni) 12786 shlibpath_overrides_runpath=no 12787 need_lib_prefix=no 12788 runpath_var=LD_RUN_PATH 12789 ;; 12790 siemens) 12791 need_lib_prefix=no 12792 ;; 12793 motorola) 12794 need_lib_prefix=no 12795 need_version=no 12796 shlibpath_overrides_runpath=no 12797 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12798 ;; 12799 esac 12800 ;; 12801 12802sysv4*MP*) 12803 if test -d /usr/nec; then 12804 version_type=linux # correct to gnu/linux during the next big refactor 12805 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12806 soname_spec='$libname$shared_ext.$major' 12807 shlibpath_var=LD_LIBRARY_PATH 12808 fi 12809 ;; 12810 12811sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12812 version_type=sco 12813 need_lib_prefix=no 12814 need_version=no 12815 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12816 soname_spec='$libname$release$shared_ext$major' 12817 shlibpath_var=LD_LIBRARY_PATH 12818 shlibpath_overrides_runpath=yes 12819 hardcode_into_libs=yes 12820 if test yes = "$with_gnu_ld"; then 12821 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12822 else 12823 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12824 case $host_os in 12825 sco3.2v5*) 12826 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12827 ;; 12828 esac 12829 fi 12830 sys_lib_dlsearch_path_spec='/usr/lib' 12831 ;; 12832 12833tpf*) 12834 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12835 version_type=linux # correct to gnu/linux during the next big refactor 12836 need_lib_prefix=no 12837 need_version=no 12838 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12839 shlibpath_var=LD_LIBRARY_PATH 12840 shlibpath_overrides_runpath=no 12841 hardcode_into_libs=yes 12842 ;; 12843 12844uts4*) 12845 version_type=linux # correct to gnu/linux during the next big refactor 12846 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12847 soname_spec='$libname$release$shared_ext$major' 12848 shlibpath_var=LD_LIBRARY_PATH 12849 ;; 12850 12851emscripten*) 12852 version_type=none 12853 need_lib_prefix=no 12854 need_version=no 12855 library_names_spec='$libname$release$shared_ext' 12856 soname_spec='$libname$release$shared_ext' 12857 finish_cmds= 12858 dynamic_linker="Emscripten linker" 12859 lt_prog_compiler_wl= 12860lt_prog_compiler_pic= 12861lt_prog_compiler_static= 12862 12863 12864 if test yes = "$GCC"; then 12865 lt_prog_compiler_wl='-Wl,' 12866 lt_prog_compiler_static='-static' 12867 12868 case $host_os in 12869 aix*) 12870 # All AIX code is PIC. 12871 if test ia64 = "$host_cpu"; then 12872 # AIX 5 now supports IA64 processor 12873 lt_prog_compiler_static='-Bstatic' 12874 fi 12875 lt_prog_compiler_pic='-fPIC' 12876 ;; 12877 12878 amigaos*) 12879 case $host_cpu in 12880 powerpc) 12881 # see comment about AmigaOS4 .so support 12882 lt_prog_compiler_pic='-fPIC' 12883 ;; 12884 m68k) 12885 # FIXME: we need at least 68020 code to build shared libraries, but 12886 # adding the '-m68020' flag to GCC prevents building anything better, 12887 # like '-m68040'. 12888 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 12889 ;; 12890 esac 12891 ;; 12892 12893 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12894 # PIC is the default for these OSes. 12895 ;; 12896 12897 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 12898 # This hack is so that the source file can tell whether it is being 12899 # built for inclusion in a dll (and should export symbols for example). 12900 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12901 # (--disable-auto-import) libraries 12902 lt_prog_compiler_pic='-DDLL_EXPORT' 12903 case $host_os in 12904 os2*) 12905 lt_prog_compiler_static='$wl-static' 12906 ;; 12907 esac 12908 ;; 12909 12910 darwin* | rhapsody*) 12911 # PIC is the default on this platform 12912 # Common symbols not allowed in MH_DYLIB files 12913 lt_prog_compiler_pic='-fno-common' 12914 ;; 12915 12916 haiku*) 12917 # PIC is the default for Haiku. 12918 # The "-static" flag exists, but is broken. 12919 lt_prog_compiler_static= 12920 ;; 12921 12922 hpux*) 12923 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 12924 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 12925 # sets the default TLS model and affects inlining. 12926 case $host_cpu in 12927 hppa*64*) 12928 # +Z the default 12929 ;; 12930 *) 12931 lt_prog_compiler_pic='-fPIC' 12932 ;; 12933 esac 12934 ;; 12935 12936 interix[3-9]*) 12937 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12938 # Instead, we relocate shared libraries at runtime. 12939 ;; 12940 12941 msdosdjgpp*) 12942 # Just because we use GCC doesn't mean we suddenly get shared libraries 12943 # on systems that don't support them. 12944 lt_prog_compiler_can_build_shared=no 12945 enable_shared=no 12946 ;; 12947 12948 *nto* | *qnx*) 12949 # QNX uses GNU C++, but need to define -shared option too, otherwise 12950 # it will coredump. 12951 lt_prog_compiler_pic='-fPIC -shared' 12952 ;; 12953 12954 sysv4*MP*) 12955 if test -d /usr/nec; then 12956 lt_prog_compiler_pic=-Kconform_pic 12957 fi 12958 ;; 12959 12960 *) 12961 lt_prog_compiler_pic='-fPIC' 12962 ;; 12963 esac 12964 12965 case $cc_basename in 12966 nvcc*) # Cuda Compiler Driver 2.2 12967 lt_prog_compiler_wl='-Xlinker ' 12968 if test -n "$lt_prog_compiler_pic"; then 12969 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 12970 fi 12971 ;; 12972 esac 12973 else 12974 # PORTME Check for flag to pass linker flags through the system compiler. 12975 case $host_os in 12976 aix*) 12977 lt_prog_compiler_wl='-Wl,' 12978 if test ia64 = "$host_cpu"; then 12979 # AIX 5 now supports IA64 processor 12980 lt_prog_compiler_static='-Bstatic' 12981 else 12982 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 12983 fi 12984 ;; 12985 12986 darwin* | rhapsody*) 12987 # PIC is the default on this platform 12988 # Common symbols not allowed in MH_DYLIB files 12989 lt_prog_compiler_pic='-fno-common' 12990 case $cc_basename in 12991 nagfor*) 12992 # NAG Fortran compiler 12993 lt_prog_compiler_wl='-Wl,-Wl,,' 12994 lt_prog_compiler_pic='-PIC' 12995 lt_prog_compiler_static='-Bstatic' 12996 ;; 12997 esac 12998 ;; 12999 13000 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 13001 # This hack is so that the source file can tell whether it is being 13002 # built for inclusion in a dll (and should export symbols for example). 13003 lt_prog_compiler_pic='-DDLL_EXPORT' 13004 case $host_os in 13005 os2*) 13006 lt_prog_compiler_static='$wl-static' 13007 ;; 13008 esac 13009 ;; 13010 13011 hpux9* | hpux10* | hpux11*) 13012 lt_prog_compiler_wl='-Wl,' 13013 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13014 # not for PA HP-UX. 13015 case $host_cpu in 13016 hppa*64*|ia64*) 13017 # +Z the default 13018 ;; 13019 *) 13020 lt_prog_compiler_pic='+Z' 13021 ;; 13022 esac 13023 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13024 lt_prog_compiler_static='$wl-a ${wl}archive' 13025 ;; 13026 13027 irix5* | irix6* | nonstopux*) 13028 lt_prog_compiler_wl='-Wl,' 13029 # PIC (with -KPIC) is the default. 13030 lt_prog_compiler_static='-non_shared' 13031 ;; 13032 13033 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13034 case $cc_basename in 13035 # old Intel for x86_64, which still supported -KPIC. 13036 ecc*) 13037 lt_prog_compiler_wl='-Wl,' 13038 lt_prog_compiler_pic='-KPIC' 13039 lt_prog_compiler_static='-static' 13040 ;; 13041 *flang* | ftn | f18* | f95*) 13042 # Flang compiler. 13043 lt_prog_compiler_wl='-Wl,' 13044 lt_prog_compiler_pic='-fPIC' 13045 lt_prog_compiler_static='-static' 13046 ;; 13047 # icc used to be incompatible with GCC. 13048 # ICC 10 doesn't accept -KPIC any more. 13049 icc* | ifort*) 13050 lt_prog_compiler_wl='-Wl,' 13051 lt_prog_compiler_pic='-fPIC' 13052 lt_prog_compiler_static='-static' 13053 ;; 13054 # Lahey Fortran 8.1. 13055 lf95*) 13056 lt_prog_compiler_wl='-Wl,' 13057 lt_prog_compiler_pic='--shared' 13058 lt_prog_compiler_static='--static' 13059 ;; 13060 nagfor*) 13061 # NAG Fortran compiler 13062 lt_prog_compiler_wl='-Wl,-Wl,,' 13063 lt_prog_compiler_pic='-PIC' 13064 lt_prog_compiler_static='-Bstatic' 13065 ;; 13066 tcc*) 13067 # Fabrice Bellard et al's Tiny C Compiler 13068 lt_prog_compiler_wl='-Wl,' 13069 lt_prog_compiler_pic='-fPIC' 13070 lt_prog_compiler_static='-static' 13071 ;; 13072 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 13073 # Portland Group compilers (*not* the Pentium gcc compiler, 13074 # which looks to be a dead project) 13075 lt_prog_compiler_wl='-Wl,' 13076 lt_prog_compiler_pic='-fpic' 13077 lt_prog_compiler_static='-Bstatic' 13078 ;; 13079 ccc*) 13080 lt_prog_compiler_wl='-Wl,' 13081 # All Alpha code is PIC. 13082 lt_prog_compiler_static='-non_shared' 13083 ;; 13084 xl* | bgxl* | bgf* | mpixl*) 13085 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 13086 lt_prog_compiler_wl='-Wl,' 13087 lt_prog_compiler_pic='-qpic' 13088 lt_prog_compiler_static='-qstaticlink' 13089 ;; 13090 *) 13091 case `$CC -V 2>&1 | $SED 5q` in 13092 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 13093 # Sun Fortran 8.3 passes all unrecognized flags to the linker 13094 lt_prog_compiler_pic='-KPIC' 13095 lt_prog_compiler_static='-Bstatic' 13096 lt_prog_compiler_wl='' 13097 ;; 13098 *Sun\ F* | *Sun*Fortran*) 13099 lt_prog_compiler_pic='-KPIC' 13100 lt_prog_compiler_static='-Bstatic' 13101 lt_prog_compiler_wl='-Qoption ld ' 13102 ;; 13103 *Sun\ C*) 13104 # Sun C 5.9 13105 lt_prog_compiler_pic='-KPIC' 13106 lt_prog_compiler_static='-Bstatic' 13107 lt_prog_compiler_wl='-Wl,' 13108 ;; 13109 *Intel*\ [CF]*Compiler*) 13110 lt_prog_compiler_wl='-Wl,' 13111 lt_prog_compiler_pic='-fPIC' 13112 lt_prog_compiler_static='-static' 13113 ;; 13114 *Portland\ Group*) 13115 lt_prog_compiler_wl='-Wl,' 13116 lt_prog_compiler_pic='-fpic' 13117 lt_prog_compiler_static='-Bstatic' 13118 ;; 13119 esac 13120 ;; 13121 esac 13122 ;; 13123 13124 newsos6) 13125 lt_prog_compiler_pic='-KPIC' 13126 lt_prog_compiler_static='-Bstatic' 13127 ;; 13128 13129 *-mlibc) 13130 lt_prog_compiler_wl='-Wl,' 13131 lt_prog_compiler_pic='-fPIC' 13132 lt_prog_compiler_static='-static' 13133 ;; 13134 13135 *nto* | *qnx*) 13136 # QNX uses GNU C++, but need to define -shared option too, otherwise 13137 # it will coredump. 13138 lt_prog_compiler_pic='-fPIC -shared' 13139 ;; 13140 13141 osf3* | osf4* | osf5*) 13142 lt_prog_compiler_wl='-Wl,' 13143 # All OSF/1 code is PIC. 13144 lt_prog_compiler_static='-non_shared' 13145 ;; 13146 13147 rdos*) 13148 lt_prog_compiler_static='-non_shared' 13149 ;; 13150 13151 serenity*) 13152 ;; 13153 13154 solaris*) 13155 lt_prog_compiler_pic='-KPIC' 13156 lt_prog_compiler_static='-Bstatic' 13157 case $cc_basename in 13158 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 13159 lt_prog_compiler_wl='-Qoption ld ';; 13160 *) 13161 lt_prog_compiler_wl='-Wl,';; 13162 esac 13163 ;; 13164 13165 sunos4*) 13166 lt_prog_compiler_wl='-Qoption ld ' 13167 lt_prog_compiler_pic='-PIC' 13168 lt_prog_compiler_static='-Bstatic' 13169 ;; 13170 13171 sysv4 | sysv4.2uw2* | sysv4.3*) 13172 lt_prog_compiler_wl='-Wl,' 13173 lt_prog_compiler_pic='-KPIC' 13174 lt_prog_compiler_static='-Bstatic' 13175 ;; 13176 13177 sysv4*MP*) 13178 if test -d /usr/nec; then 13179 lt_prog_compiler_pic='-Kconform_pic' 13180 lt_prog_compiler_static='-Bstatic' 13181 fi 13182 ;; 13183 13184 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13185 lt_prog_compiler_wl='-Wl,' 13186 lt_prog_compiler_pic='-KPIC' 13187 lt_prog_compiler_static='-Bstatic' 13188 ;; 13189 13190 unicos*) 13191 lt_prog_compiler_wl='-Wl,' 13192 lt_prog_compiler_can_build_shared=no 13193 ;; 13194 13195 uts4*) 13196 lt_prog_compiler_pic='-pic' 13197 lt_prog_compiler_static='-Bstatic' 13198 ;; 13199 13200 *) 13201 lt_prog_compiler_can_build_shared=no 13202 ;; 13203 esac 13204 fi 13205 13206case $host_os in 13207 # For platforms that do not support PIC, -DPIC is meaningless: 13208 *djgpp*) 13209 lt_prog_compiler_pic= 13210 ;; 13211 *) 13212 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 13213 ;; 13214esac 13215 13216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 13217printf %s "checking for $compiler option to produce PIC... " >&6; } 13218if test ${lt_cv_prog_compiler_pic+y} 13219then : 13220 printf %s "(cached) " >&6 13221else case e in #( 13222 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 13223esac 13224fi 13225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 13226printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 13227lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 13228 13229# 13230# Check to make sure the PIC flag actually works. 13231# 13232if test -n "$lt_prog_compiler_pic"; then 13233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 13234printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 13235if test ${lt_cv_prog_compiler_pic_works+y} 13236then : 13237 printf %s "(cached) " >&6 13238else case e in #( 13239 e) lt_cv_prog_compiler_pic_works=no 13240 ac_outfile=conftest.$ac_objext 13241 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13242 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 13243 # Insert the option either (1) after the last *FLAGS variable, or 13244 # (2) before a word containing "conftest.", or (3) at the end. 13245 # Note that $ac_compile itself does not contain backslashes and begins 13246 # with a dollar sign (not a hyphen), so the echo should work correctly. 13247 # The option is referenced via a variable to avoid confusing sed. 13248 lt_compile=`echo "$ac_compile" | $SED \ 13249 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13250 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13251 -e 's:$: $lt_compiler_flag:'` 13252 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13253 (eval "$lt_compile" 2>conftest.err) 13254 ac_status=$? 13255 cat conftest.err >&5 13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13257 if (exit $ac_status) && test -s "$ac_outfile"; then 13258 # The compiler can only warn and ignore the option if not recognized 13259 # So say no if there are warnings other than the usual output. 13260 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13261 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13262 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13263 lt_cv_prog_compiler_pic_works=yes 13264 fi 13265 fi 13266 $RM conftest* 13267 ;; 13268esac 13269fi 13270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 13271printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 13272 13273if test yes = "$lt_cv_prog_compiler_pic_works"; then 13274 case $lt_prog_compiler_pic in 13275 "" | " "*) ;; 13276 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 13277 esac 13278else 13279 lt_prog_compiler_pic= 13280 lt_prog_compiler_can_build_shared=no 13281fi 13282 13283fi 13284 13285 13286 13287 13288 13289# 13290# Check to make sure the static flag actually works. 13291# 13292wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 13293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13294printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13295if test ${lt_cv_prog_compiler_static_works+y} 13296then : 13297 printf %s "(cached) " >&6 13298else case e in #( 13299 e) lt_cv_prog_compiler_static_works=no 13300 save_LDFLAGS=$LDFLAGS 13301 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13302 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13303 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13304 # The linker can only warn and ignore the option if not recognized 13305 # So say no if there are warnings 13306 if test -s conftest.err; then 13307 # Append any errors to the config.log. 13308 cat conftest.err 1>&5 13309 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13310 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13311 if diff conftest.exp conftest.er2 >/dev/null; then 13312 lt_cv_prog_compiler_static_works=yes 13313 fi 13314 else 13315 lt_cv_prog_compiler_static_works=yes 13316 fi 13317 fi 13318 $RM -r conftest* 13319 LDFLAGS=$save_LDFLAGS 13320 ;; 13321esac 13322fi 13323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 13324printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 13325 13326if test yes = "$lt_cv_prog_compiler_static_works"; then 13327 : 13328else 13329 lt_prog_compiler_static= 13330fi 13331 13332 13333 13334='-fPIC' 13335 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib' 13336 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym' 13337 archive_cmds_need_lc=no 13338 no_undefined_flag= 13339 ;; 13340 13341*) 13342 dynamic_linker=no 13343 ;; 13344esac 13345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13346printf "%s\n" "$dynamic_linker" >&6; } 13347test no = "$dynamic_linker" && can_build_shared=no 13348 13349variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13350if test yes = "$GCC"; then 13351 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13352fi 13353 13354if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 13355 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 13356fi 13357 13358if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 13359 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 13360fi 13361 13362# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 13363configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 13364 13365# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 13366func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 13367 13368# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 13369configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 13370 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384 13385 13386 13387 13388 13389 13390 13391 13392 13393 13394 13395 13396 13397 13398 13399 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416 13417 13418 13419 13420 13421 13422 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439 13440 13441 13442 13443 13444 13445 13446 13447 13448 13449 13450 13451 13452 13453 13454 13455 13456 13457 13458 13459 13460 13461 13462 13463 13464 13465 13466 13467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13468printf %s "checking how to hardcode library paths into programs... " >&6; } 13469hardcode_action= 13470if test -n "$hardcode_libdir_flag_spec" || 13471 test -n "$runpath_var" || 13472 test yes = "$hardcode_automatic"; then 13473 13474 # We can hardcode non-existent directories. 13475 if test no != "$hardcode_direct" && 13476 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13477 # have to relink, otherwise we might link with an installed library 13478 # when we should be linking with a yet-to-be-installed one 13479 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 13480 test no != "$hardcode_minus_L"; then 13481 # Linking always hardcodes the temporary library directory. 13482 hardcode_action=relink 13483 else 13484 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13485 hardcode_action=immediate 13486 fi 13487else 13488 # We cannot hardcode anything, or else we can only hardcode existing 13489 # directories. 13490 hardcode_action=unsupported 13491fi 13492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13493printf "%s\n" "$hardcode_action" >&6; } 13494 13495if test relink = "$hardcode_action" || 13496 test yes = "$inherit_rpath"; then 13497 # Fast installation is not supported 13498 enable_fast_install=no 13499elif test yes = "$shlibpath_overrides_runpath" || 13500 test no = "$enable_shared"; then 13501 # Fast installation is not necessary 13502 enable_fast_install=needless 13503fi 13504 13505 13506 13507 13508 13509 13510 if test yes != "$enable_dlopen"; then 13511 enable_dlopen=unknown 13512 enable_dlopen_self=unknown 13513 enable_dlopen_self_static=unknown 13514else 13515 lt_cv_dlopen=no 13516 lt_cv_dlopen_libs= 13517 13518 case $host_os in 13519 beos*) 13520 lt_cv_dlopen=load_add_on 13521 lt_cv_dlopen_libs= 13522 lt_cv_dlopen_self=yes 13523 ;; 13524 13525 mingw* | windows* | pw32* | cegcc*) 13526 lt_cv_dlopen=LoadLibrary 13527 lt_cv_dlopen_libs= 13528 ;; 13529 13530 cygwin*) 13531 lt_cv_dlopen=dlopen 13532 lt_cv_dlopen_libs= 13533 ;; 13534 13535 darwin*) 13536 # if libdl is installed we need to link against it 13537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13538printf %s "checking for dlopen in -ldl... " >&6; } 13539if test ${ac_cv_lib_dl_dlopen+y} 13540then : 13541 printf %s "(cached) " >&6 13542else case e in #( 13543 e) ac_check_lib_save_LIBS=$LIBS 13544LIBS="-ldl $LIBS" 13545cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13546/* end confdefs.h. */ 13547 13548/* Override any GCC internal prototype to avoid an error. 13549 Use char because int might match the return type of a GCC 13550 builtin and then its argument prototype would still apply. 13551 The 'extern "C"' is for builds by C++ compilers; 13552 although this is not generally supported in C code supporting it here 13553 has little cost and some practical benefit (sr 110532). */ 13554#ifdef __cplusplus 13555extern "C" 13556#endif 13557char dlopen (void); 13558int 13559main (void) 13560{ 13561return dlopen (); 13562 ; 13563 return 0; 13564} 13565_ACEOF 13566if ac_fn_c_try_link "$LINENO" 13567then : 13568 ac_cv_lib_dl_dlopen=yes 13569else case e in #( 13570 e) ac_cv_lib_dl_dlopen=no ;; 13571esac 13572fi 13573rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13574 conftest$ac_exeext conftest.$ac_ext 13575LIBS=$ac_check_lib_save_LIBS ;; 13576esac 13577fi 13578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13579printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13580if test "x$ac_cv_lib_dl_dlopen" = xyes 13581then : 13582 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13583else case e in #( 13584 e) 13585 lt_cv_dlopen=dyld 13586 lt_cv_dlopen_libs= 13587 lt_cv_dlopen_self=yes 13588 ;; 13589esac 13590fi 13591 13592 ;; 13593 13594 tpf*) 13595 # Don't try to run any link tests for TPF. We know it's impossible 13596 # because TPF is a cross-compiler, and we know how we open DSOs. 13597 lt_cv_dlopen=dlopen 13598 lt_cv_dlopen_libs= 13599 lt_cv_dlopen_self=no 13600 ;; 13601 13602 *) 13603 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13604if test "x$ac_cv_func_shl_load" = xyes 13605then : 13606 lt_cv_dlopen=shl_load 13607else case e in #( 13608 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13609printf %s "checking for shl_load in -ldld... " >&6; } 13610if test ${ac_cv_lib_dld_shl_load+y} 13611then : 13612 printf %s "(cached) " >&6 13613else case e in #( 13614 e) ac_check_lib_save_LIBS=$LIBS 13615LIBS="-ldld $LIBS" 13616cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13617/* end confdefs.h. */ 13618 13619/* Override any GCC internal prototype to avoid an error. 13620 Use char because int might match the return type of a GCC 13621 builtin and then its argument prototype would still apply. 13622 The 'extern "C"' is for builds by C++ compilers; 13623 although this is not generally supported in C code supporting it here 13624 has little cost and some practical benefit (sr 110532). */ 13625#ifdef __cplusplus 13626extern "C" 13627#endif 13628char shl_load (void); 13629int 13630main (void) 13631{ 13632return shl_load (); 13633 ; 13634 return 0; 13635} 13636_ACEOF 13637if ac_fn_c_try_link "$LINENO" 13638then : 13639 ac_cv_lib_dld_shl_load=yes 13640else case e in #( 13641 e) ac_cv_lib_dld_shl_load=no ;; 13642esac 13643fi 13644rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13645 conftest$ac_exeext conftest.$ac_ext 13646LIBS=$ac_check_lib_save_LIBS ;; 13647esac 13648fi 13649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13650printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 13651if test "x$ac_cv_lib_dld_shl_load" = xyes 13652then : 13653 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 13654else case e in #( 13655 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13656if test "x$ac_cv_func_dlopen" = xyes 13657then : 13658 lt_cv_dlopen=dlopen 13659else case e in #( 13660 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13661printf %s "checking for dlopen in -ldl... " >&6; } 13662if test ${ac_cv_lib_dl_dlopen+y} 13663then : 13664 printf %s "(cached) " >&6 13665else case e in #( 13666 e) ac_check_lib_save_LIBS=$LIBS 13667LIBS="-ldl $LIBS" 13668cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13669/* end confdefs.h. */ 13670 13671/* Override any GCC internal prototype to avoid an error. 13672 Use char because int might match the return type of a GCC 13673 builtin and then its argument prototype would still apply. 13674 The 'extern "C"' is for builds by C++ compilers; 13675 although this is not generally supported in C code supporting it here 13676 has little cost and some practical benefit (sr 110532). */ 13677#ifdef __cplusplus 13678extern "C" 13679#endif 13680char dlopen (void); 13681int 13682main (void) 13683{ 13684return dlopen (); 13685 ; 13686 return 0; 13687} 13688_ACEOF 13689if ac_fn_c_try_link "$LINENO" 13690then : 13691 ac_cv_lib_dl_dlopen=yes 13692else case e in #( 13693 e) ac_cv_lib_dl_dlopen=no ;; 13694esac 13695fi 13696rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13697 conftest$ac_exeext conftest.$ac_ext 13698LIBS=$ac_check_lib_save_LIBS ;; 13699esac 13700fi 13701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13702printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13703if test "x$ac_cv_lib_dl_dlopen" = xyes 13704then : 13705 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13706else case e in #( 13707 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13708printf %s "checking for dlopen in -lsvld... " >&6; } 13709if test ${ac_cv_lib_svld_dlopen+y} 13710then : 13711 printf %s "(cached) " >&6 13712else case e in #( 13713 e) ac_check_lib_save_LIBS=$LIBS 13714LIBS="-lsvld $LIBS" 13715cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13716/* end confdefs.h. */ 13717 13718/* Override any GCC internal prototype to avoid an error. 13719 Use char because int might match the return type of a GCC 13720 builtin and then its argument prototype would still apply. 13721 The 'extern "C"' is for builds by C++ compilers; 13722 although this is not generally supported in C code supporting it here 13723 has little cost and some practical benefit (sr 110532). */ 13724#ifdef __cplusplus 13725extern "C" 13726#endif 13727char dlopen (void); 13728int 13729main (void) 13730{ 13731return dlopen (); 13732 ; 13733 return 0; 13734} 13735_ACEOF 13736if ac_fn_c_try_link "$LINENO" 13737then : 13738 ac_cv_lib_svld_dlopen=yes 13739else case e in #( 13740 e) ac_cv_lib_svld_dlopen=no ;; 13741esac 13742fi 13743rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13744 conftest$ac_exeext conftest.$ac_ext 13745LIBS=$ac_check_lib_save_LIBS ;; 13746esac 13747fi 13748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13749printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 13750if test "x$ac_cv_lib_svld_dlopen" = xyes 13751then : 13752 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13753else case e in #( 13754 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13755printf %s "checking for dld_link in -ldld... " >&6; } 13756if test ${ac_cv_lib_dld_dld_link+y} 13757then : 13758 printf %s "(cached) " >&6 13759else case e in #( 13760 e) ac_check_lib_save_LIBS=$LIBS 13761LIBS="-ldld $LIBS" 13762cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13763/* end confdefs.h. */ 13764 13765/* Override any GCC internal prototype to avoid an error. 13766 Use char because int might match the return type of a GCC 13767 builtin and then its argument prototype would still apply. 13768 The 'extern "C"' is for builds by C++ compilers; 13769 although this is not generally supported in C code supporting it here 13770 has little cost and some practical benefit (sr 110532). */ 13771#ifdef __cplusplus 13772extern "C" 13773#endif 13774char dld_link (void); 13775int 13776main (void) 13777{ 13778return dld_link (); 13779 ; 13780 return 0; 13781} 13782_ACEOF 13783if ac_fn_c_try_link "$LINENO" 13784then : 13785 ac_cv_lib_dld_dld_link=yes 13786else case e in #( 13787 e) ac_cv_lib_dld_dld_link=no ;; 13788esac 13789fi 13790rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13791 conftest$ac_exeext conftest.$ac_ext 13792LIBS=$ac_check_lib_save_LIBS ;; 13793esac 13794fi 13795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13796printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 13797if test "x$ac_cv_lib_dld_dld_link" = xyes 13798then : 13799 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13800fi 13801 13802 ;; 13803esac 13804fi 13805 13806 ;; 13807esac 13808fi 13809 13810 ;; 13811esac 13812fi 13813 13814 ;; 13815esac 13816fi 13817 13818 ;; 13819esac 13820fi 13821 13822 ;; 13823 esac 13824 13825 if test no = "$lt_cv_dlopen"; then 13826 enable_dlopen=no 13827 else 13828 enable_dlopen=yes 13829 fi 13830 13831 case $lt_cv_dlopen in 13832 dlopen) 13833 save_CPPFLAGS=$CPPFLAGS 13834 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13835 13836 save_LDFLAGS=$LDFLAGS 13837 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13838 13839 save_LIBS=$LIBS 13840 LIBS="$lt_cv_dlopen_libs $LIBS" 13841 13842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13843printf %s "checking whether a program can dlopen itself... " >&6; } 13844if test ${lt_cv_dlopen_self+y} 13845then : 13846 printf %s "(cached) " >&6 13847else case e in #( 13848 e) if test yes = "$cross_compiling"; then : 13849 lt_cv_dlopen_self=cross 13850else 13851 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13852 lt_status=$lt_dlunknown 13853 cat > conftest.$ac_ext <<_LT_EOF 13854#line $LINENO "configure" 13855#include "confdefs.h" 13856 13857#if HAVE_DLFCN_H 13858#include <dlfcn.h> 13859#endif 13860 13861#include <stdio.h> 13862 13863#ifdef RTLD_GLOBAL 13864# define LT_DLGLOBAL RTLD_GLOBAL 13865#else 13866# ifdef DL_GLOBAL 13867# define LT_DLGLOBAL DL_GLOBAL 13868# else 13869# define LT_DLGLOBAL 0 13870# endif 13871#endif 13872 13873/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13874 find out it does not work in some platform. */ 13875#ifndef LT_DLLAZY_OR_NOW 13876# ifdef RTLD_LAZY 13877# define LT_DLLAZY_OR_NOW RTLD_LAZY 13878# else 13879# ifdef DL_LAZY 13880# define LT_DLLAZY_OR_NOW DL_LAZY 13881# else 13882# ifdef RTLD_NOW 13883# define LT_DLLAZY_OR_NOW RTLD_NOW 13884# else 13885# ifdef DL_NOW 13886# define LT_DLLAZY_OR_NOW DL_NOW 13887# else 13888# define LT_DLLAZY_OR_NOW 0 13889# endif 13890# endif 13891# endif 13892# endif 13893#endif 13894 13895/* When -fvisibility=hidden is used, assume the code has been annotated 13896 correspondingly for the symbols needed. */ 13897#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13898int fnord (void) __attribute__((visibility("default"))); 13899#endif 13900 13901int fnord (void) { return 42; } 13902int main (void) 13903{ 13904 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13905 int status = $lt_dlunknown; 13906 13907 if (self) 13908 { 13909 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13910 else 13911 { 13912 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13913 else puts (dlerror ()); 13914 } 13915 /* dlclose (self); */ 13916 } 13917 else 13918 puts (dlerror ()); 13919 13920 return status; 13921} 13922_LT_EOF 13923 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13924 (eval $ac_link) 2>&5 13925 ac_status=$? 13926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13927 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13928 (./conftest; exit; ) >&5 2>/dev/null 13929 lt_status=$? 13930 case x$lt_status in 13931 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13932 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13933 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13934 esac 13935 else : 13936 # compilation failed 13937 lt_cv_dlopen_self=no 13938 fi 13939fi 13940rm -fr conftest* 13941 13942 ;; 13943esac 13944fi 13945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13946printf "%s\n" "$lt_cv_dlopen_self" >&6; } 13947 13948 if test yes = "$lt_cv_dlopen_self"; then 13949 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13951printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 13952if test ${lt_cv_dlopen_self_static+y} 13953then : 13954 printf %s "(cached) " >&6 13955else case e in #( 13956 e) if test yes = "$cross_compiling"; then : 13957 lt_cv_dlopen_self_static=cross 13958else 13959 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13960 lt_status=$lt_dlunknown 13961 cat > conftest.$ac_ext <<_LT_EOF 13962#line $LINENO "configure" 13963#include "confdefs.h" 13964 13965#if HAVE_DLFCN_H 13966#include <dlfcn.h> 13967#endif 13968 13969#include <stdio.h> 13970 13971#ifdef RTLD_GLOBAL 13972# define LT_DLGLOBAL RTLD_GLOBAL 13973#else 13974# ifdef DL_GLOBAL 13975# define LT_DLGLOBAL DL_GLOBAL 13976# else 13977# define LT_DLGLOBAL 0 13978# endif 13979#endif 13980 13981/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13982 find out it does not work in some platform. */ 13983#ifndef LT_DLLAZY_OR_NOW 13984# ifdef RTLD_LAZY 13985# define LT_DLLAZY_OR_NOW RTLD_LAZY 13986# else 13987# ifdef DL_LAZY 13988# define LT_DLLAZY_OR_NOW DL_LAZY 13989# else 13990# ifdef RTLD_NOW 13991# define LT_DLLAZY_OR_NOW RTLD_NOW 13992# else 13993# ifdef DL_NOW 13994# define LT_DLLAZY_OR_NOW DL_NOW 13995# else 13996# define LT_DLLAZY_OR_NOW 0 13997# endif 13998# endif 13999# endif 14000# endif 14001#endif 14002 14003/* When -fvisibility=hidden is used, assume the code has been annotated 14004 correspondingly for the symbols needed. */ 14005#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14006int fnord (void) __attribute__((visibility("default"))); 14007#endif 14008 14009int fnord (void) { return 42; } 14010int main (void) 14011{ 14012 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14013 int status = $lt_dlunknown; 14014 14015 if (self) 14016 { 14017 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14018 else 14019 { 14020 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14021 else puts (dlerror ()); 14022 } 14023 /* dlclose (self); */ 14024 } 14025 else 14026 puts (dlerror ()); 14027 14028 return status; 14029} 14030_LT_EOF 14031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14032 (eval $ac_link) 2>&5 14033 ac_status=$? 14034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14035 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 14036 (./conftest; exit; ) >&5 2>/dev/null 14037 lt_status=$? 14038 case x$lt_status in 14039 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 14040 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 14041 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 14042 esac 14043 else : 14044 # compilation failed 14045 lt_cv_dlopen_self_static=no 14046 fi 14047fi 14048rm -fr conftest* 14049 14050 ;; 14051esac 14052fi 14053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 14054printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 14055 fi 14056 14057 CPPFLAGS=$save_CPPFLAGS 14058 LDFLAGS=$save_LDFLAGS 14059 LIBS=$save_LIBS 14060 ;; 14061 esac 14062 14063 case $lt_cv_dlopen_self in 14064 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 14065 *) enable_dlopen_self=unknown ;; 14066 esac 14067 14068 case $lt_cv_dlopen_self_static in 14069 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 14070 *) enable_dlopen_self_static=unknown ;; 14071 esac 14072fi 14073 14074 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087 14088 14089 14090striplib= 14091old_striplib= 14092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 14093printf %s "checking whether stripping libraries is possible... " >&6; } 14094if test -z "$STRIP"; then 14095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14096printf "%s\n" "no" >&6; } 14097else 14098 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 14099 old_striplib="$STRIP --strip-debug" 14100 striplib="$STRIP --strip-unneeded" 14101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14102printf "%s\n" "yes" >&6; } 14103 else 14104 case $host_os in 14105 darwin*) 14106 # FIXME - insert some real tests, host_os isn't really good enough 14107 striplib="$STRIP -x" 14108 old_striplib="$STRIP -S" 14109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14110printf "%s\n" "yes" >&6; } 14111 ;; 14112 freebsd*) 14113 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 14114 old_striplib="$STRIP --strip-debug" 14115 striplib="$STRIP --strip-unneeded" 14116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14117printf "%s\n" "yes" >&6; } 14118 else 14119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14120printf "%s\n" "no" >&6; } 14121 fi 14122 ;; 14123 *) 14124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14125printf "%s\n" "no" >&6; } 14126 ;; 14127 esac 14128 fi 14129fi 14130 14131 14132 14133 14134 14135 14136 14137 14138 14139 14140 14141 14142 # Report what library types will actually be built 14143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 14144printf %s "checking if libtool supports shared libraries... " >&6; } 14145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 14146printf "%s\n" "$can_build_shared" >&6; } 14147 14148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 14149printf %s "checking whether to build shared libraries... " >&6; } 14150 test no = "$can_build_shared" && enable_shared=no 14151 14152 # On AIX, shared libraries and static libraries use the same namespace, and 14153 # are all built from PIC. 14154 case $host_os in 14155 aix3*) 14156 test yes = "$enable_shared" && enable_static=no 14157 if test -n "$RANLIB"; then 14158 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14159 postinstall_cmds='$RANLIB $lib' 14160 fi 14161 ;; 14162 14163 aix[4-9]*) 14164 if test ia64 != "$host_cpu"; then 14165 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 14166 yes,aix,yes) ;; # shared object as lib.so file only 14167 yes,svr4,*) ;; # shared object as lib.so archive member only 14168 yes,*) enable_static=no ;; # shared object in lib.a archive as well 14169 esac 14170 fi 14171 ;; 14172 esac 14173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 14174printf "%s\n" "$enable_shared" >&6; } 14175 14176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 14177printf %s "checking whether to build static libraries... " >&6; } 14178 # Make sure either enable_shared or enable_static is yes. 14179 test yes = "$enable_shared" || enable_static=yes 14180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 14181printf "%s\n" "$enable_static" >&6; } 14182 14183 14184 14185 14186fi 14187ac_ext=c 14188ac_cpp='$CPP $CPPFLAGS' 14189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14191ac_compiler_gnu=$ac_cv_c_compiler_gnu 14192 14193CC=$lt_save_CC 14194 14195 14196 14197 14198 14199 14200 14201 14202 14203 14204 14205 14206 14207 14208 14209 ac_config_commands="$ac_config_commands libtool" 14210 14211 14212 14213 14214# Only expand once: 14215 14216 14217 14218# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 14219 14220 14221 14222 14223 14224 14225 14226 14227 14228 14229 14230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 14231printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 14232if test ${ac_cv_c_undeclared_builtin_options+y} 14233then : 14234 printf %s "(cached) " >&6 14235else case e in #( 14236 e) ac_save_CFLAGS=$CFLAGS 14237 ac_cv_c_undeclared_builtin_options='cannot detect' 14238 for ac_arg in '' -fno-builtin; do 14239 CFLAGS="$ac_save_CFLAGS $ac_arg" 14240 # This test program should *not* compile successfully. 14241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14242/* end confdefs.h. */ 14243 14244int 14245main (void) 14246{ 14247(void) strchr; 14248 ; 14249 return 0; 14250} 14251_ACEOF 14252if ac_fn_c_try_compile "$LINENO" 14253then : 14254 14255else case e in #( 14256 e) # This test program should compile successfully. 14257 # No library function is consistently available on 14258 # freestanding implementations, so test against a dummy 14259 # declaration. Include always-available headers on the 14260 # off chance that they somehow elicit warnings. 14261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14262/* end confdefs.h. */ 14263#include <float.h> 14264#include <limits.h> 14265#include <stdarg.h> 14266#include <stddef.h> 14267extern void ac_decl (int, char *); 14268 14269int 14270main (void) 14271{ 14272(void) ac_decl (0, (char *) 0); 14273 (void) ac_decl; 14274 14275 ; 14276 return 0; 14277} 14278_ACEOF 14279if ac_fn_c_try_compile "$LINENO" 14280then : 14281 if test x"$ac_arg" = x 14282then : 14283 ac_cv_c_undeclared_builtin_options='none needed' 14284else case e in #( 14285 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 14286esac 14287fi 14288 break 14289fi 14290rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14291esac 14292fi 14293rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14294 done 14295 CFLAGS=$ac_save_CFLAGS 14296 ;; 14297esac 14298fi 14299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 14300printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 14301 case $ac_cv_c_undeclared_builtin_options in #( 14302 'cannot detect') : 14303 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 14304printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 14305as_fn_error $? "cannot make $CC report undeclared builtins 14306See 'config.log' for more details" "$LINENO" 5; } ;; #( 14307 'none needed') : 14308 ac_c_undeclared_builtin_options='' ;; #( 14309 *) : 14310 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 14311esac 14312 14313 14314 14315 14316 14317ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 14318if test "x$ac_cv_have_decl___clang__" = xyes 14319then : 14320 CLANGCC="yes" 14321else case e in #( 14322 e) CLANGCC="no" ;; 14323esac 14324fi 14325ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 14326if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 14327then : 14328 INTELCC="yes" 14329else case e in #( 14330 e) INTELCC="no" ;; 14331esac 14332fi 14333ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 14334if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 14335then : 14336 SUNCC="yes" 14337else case e in #( 14338 e) SUNCC="no" ;; 14339esac 14340fi 14341 14342 14343 14344 14345 14346 14347 14348 14349if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 14350 if test -n "$ac_tool_prefix"; then 14351 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 14352set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 14353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14354printf %s "checking for $ac_word... " >&6; } 14355if test ${ac_cv_path_PKG_CONFIG+y} 14356then : 14357 printf %s "(cached) " >&6 14358else case e in #( 14359 e) case $PKG_CONFIG in 14360 [\\/]* | ?:[\\/]*) 14361 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 14362 ;; 14363 *) 14364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14365for as_dir in $PATH 14366do 14367 IFS=$as_save_IFS 14368 case $as_dir in #((( 14369 '') as_dir=./ ;; 14370 */) ;; 14371 *) as_dir=$as_dir/ ;; 14372 esac 14373 for ac_exec_ext in '' $ac_executable_extensions; do 14374 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14375 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 14376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14377 break 2 14378 fi 14379done 14380 done 14381IFS=$as_save_IFS 14382 14383 ;; 14384esac ;; 14385esac 14386fi 14387PKG_CONFIG=$ac_cv_path_PKG_CONFIG 14388if test -n "$PKG_CONFIG"; then 14389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 14390printf "%s\n" "$PKG_CONFIG" >&6; } 14391else 14392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14393printf "%s\n" "no" >&6; } 14394fi 14395 14396 14397fi 14398if test -z "$ac_cv_path_PKG_CONFIG"; then 14399 ac_pt_PKG_CONFIG=$PKG_CONFIG 14400 # Extract the first word of "pkg-config", so it can be a program name with args. 14401set dummy pkg-config; ac_word=$2 14402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14403printf %s "checking for $ac_word... " >&6; } 14404if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 14405then : 14406 printf %s "(cached) " >&6 14407else case e in #( 14408 e) case $ac_pt_PKG_CONFIG in 14409 [\\/]* | ?:[\\/]*) 14410 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 14411 ;; 14412 *) 14413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14414for as_dir in $PATH 14415do 14416 IFS=$as_save_IFS 14417 case $as_dir in #((( 14418 '') as_dir=./ ;; 14419 */) ;; 14420 *) as_dir=$as_dir/ ;; 14421 esac 14422 for ac_exec_ext in '' $ac_executable_extensions; do 14423 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14424 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 14425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14426 break 2 14427 fi 14428done 14429 done 14430IFS=$as_save_IFS 14431 14432 ;; 14433esac ;; 14434esac 14435fi 14436ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 14437if test -n "$ac_pt_PKG_CONFIG"; then 14438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 14439printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 14440else 14441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14442printf "%s\n" "no" >&6; } 14443fi 14444 14445 if test "x$ac_pt_PKG_CONFIG" = x; then 14446 PKG_CONFIG="" 14447 else 14448 case $cross_compiling:$ac_tool_warned in 14449yes:) 14450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14451printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14452ac_tool_warned=yes ;; 14453esac 14454 PKG_CONFIG=$ac_pt_PKG_CONFIG 14455 fi 14456else 14457 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 14458fi 14459 14460fi 14461if test -n "$PKG_CONFIG"; then 14462 _pkg_min_version=0.9.0 14463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 14464printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 14465 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 14466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14467printf "%s\n" "yes" >&6; } 14468 else 14469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14470printf "%s\n" "no" >&6; } 14471 PKG_CONFIG="" 14472 fi 14473fi 14474 14475 14476 14477 14478 14479# Check whether --enable-selective-werror was given. 14480if test ${enable_selective_werror+y} 14481then : 14482 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 14483else case e in #( 14484 e) SELECTIVE_WERROR=yes ;; 14485esac 14486fi 14487 14488 14489 14490 14491 14492# -v is too short to test reliably with XORG_TESTSET_CFLAG 14493if test "x$SUNCC" = "xyes"; then 14494 BASE_CFLAGS="-v" 14495else 14496 BASE_CFLAGS="" 14497fi 14498 14499# This chunk of warnings were those that existed in the legacy CWARNFLAGS 14500 14501 14502 14503 14504 14505 14506 14507 14508 14509 14510 14511 14512 14513xorg_testset_save_CFLAGS="$CFLAGS" 14514 14515if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14518printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14519if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14520then : 14521 printf %s "(cached) " >&6 14522else case e in #( 14523 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14524/* end confdefs.h. */ 14525int i; 14526_ACEOF 14527if ac_fn_c_try_compile "$LINENO" 14528then : 14529 xorg_cv_cc_flag_unknown_warning_option=yes 14530else case e in #( 14531 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14532esac 14533fi 14534rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14535esac 14536fi 14537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14538printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14539 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14540 CFLAGS="$xorg_testset_save_CFLAGS" 14541fi 14542 14543if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14544 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14545 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14546 fi 14547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14549printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14550if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14551then : 14552 printf %s "(cached) " >&6 14553else case e in #( 14554 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14555/* end confdefs.h. */ 14556int i; 14557_ACEOF 14558if ac_fn_c_try_compile "$LINENO" 14559then : 14560 xorg_cv_cc_flag_unused_command_line_argument=yes 14561else case e in #( 14562 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14563esac 14564fi 14565rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14566esac 14567fi 14568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14569printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14570 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14571 CFLAGS="$xorg_testset_save_CFLAGS" 14572fi 14573 14574found="no" 14575 14576 if test $found = "no" ; then 14577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14578 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14579 fi 14580 14581 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14583 fi 14584 14585 CFLAGS="$CFLAGS -Wall" 14586 14587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 14588printf %s "checking if $CC supports -Wall... " >&6; } 14589 cacheid=xorg_cv_cc_flag__Wall 14590 if eval test \${$cacheid+y} 14591then : 14592 printf %s "(cached) " >&6 14593else case e in #( 14594 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14595/* end confdefs.h. */ 14596int i; 14597int 14598main (void) 14599{ 14600 14601 ; 14602 return 0; 14603} 14604_ACEOF 14605if ac_fn_c_try_link "$LINENO" 14606then : 14607 eval $cacheid=yes 14608else case e in #( 14609 e) eval $cacheid=no ;; 14610esac 14611fi 14612rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14613 conftest$ac_exeext conftest.$ac_ext ;; 14614esac 14615fi 14616 14617 14618 CFLAGS="$xorg_testset_save_CFLAGS" 14619 14620 eval supported=\$$cacheid 14621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14622printf "%s\n" "$supported" >&6; } 14623 if test "$supported" = "yes" ; then 14624 BASE_CFLAGS="$BASE_CFLAGS -Wall" 14625 found="yes" 14626 fi 14627 fi 14628 14629 14630 14631 14632 14633 14634 14635 14636 14637 14638 14639 14640 14641 14642 14643xorg_testset_save_CFLAGS="$CFLAGS" 14644 14645if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14648printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14649if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14650then : 14651 printf %s "(cached) " >&6 14652else case e in #( 14653 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14654/* end confdefs.h. */ 14655int i; 14656_ACEOF 14657if ac_fn_c_try_compile "$LINENO" 14658then : 14659 xorg_cv_cc_flag_unknown_warning_option=yes 14660else case e in #( 14661 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14662esac 14663fi 14664rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14665esac 14666fi 14667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14668printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14669 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14670 CFLAGS="$xorg_testset_save_CFLAGS" 14671fi 14672 14673if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14676 fi 14677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14679printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14680if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14681then : 14682 printf %s "(cached) " >&6 14683else case e in #( 14684 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14685/* end confdefs.h. */ 14686int i; 14687_ACEOF 14688if ac_fn_c_try_compile "$LINENO" 14689then : 14690 xorg_cv_cc_flag_unused_command_line_argument=yes 14691else case e in #( 14692 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14693esac 14694fi 14695rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14696esac 14697fi 14698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14699printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14700 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14701 CFLAGS="$xorg_testset_save_CFLAGS" 14702fi 14703 14704found="no" 14705 14706 if test $found = "no" ; then 14707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14709 fi 14710 14711 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14712 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14713 fi 14714 14715 CFLAGS="$CFLAGS -Wpointer-arith" 14716 14717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 14718printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 14719 cacheid=xorg_cv_cc_flag__Wpointer_arith 14720 if eval test \${$cacheid+y} 14721then : 14722 printf %s "(cached) " >&6 14723else case e in #( 14724 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14725/* end confdefs.h. */ 14726int i; 14727int 14728main (void) 14729{ 14730 14731 ; 14732 return 0; 14733} 14734_ACEOF 14735if ac_fn_c_try_link "$LINENO" 14736then : 14737 eval $cacheid=yes 14738else case e in #( 14739 e) eval $cacheid=no ;; 14740esac 14741fi 14742rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14743 conftest$ac_exeext conftest.$ac_ext ;; 14744esac 14745fi 14746 14747 14748 CFLAGS="$xorg_testset_save_CFLAGS" 14749 14750 eval supported=\$$cacheid 14751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14752printf "%s\n" "$supported" >&6; } 14753 if test "$supported" = "yes" ; then 14754 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 14755 found="yes" 14756 fi 14757 fi 14758 14759 14760 14761 14762 14763 14764 14765 14766 14767 14768 14769 14770 14771 14772 14773xorg_testset_save_CFLAGS="$CFLAGS" 14774 14775if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14778printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14779if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14780then : 14781 printf %s "(cached) " >&6 14782else case e in #( 14783 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14784/* end confdefs.h. */ 14785int i; 14786_ACEOF 14787if ac_fn_c_try_compile "$LINENO" 14788then : 14789 xorg_cv_cc_flag_unknown_warning_option=yes 14790else case e in #( 14791 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14792esac 14793fi 14794rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14795esac 14796fi 14797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14798printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14799 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14800 CFLAGS="$xorg_testset_save_CFLAGS" 14801fi 14802 14803if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14806 fi 14807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14809printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14810if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14811then : 14812 printf %s "(cached) " >&6 14813else case e in #( 14814 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14815/* end confdefs.h. */ 14816int i; 14817_ACEOF 14818if ac_fn_c_try_compile "$LINENO" 14819then : 14820 xorg_cv_cc_flag_unused_command_line_argument=yes 14821else case e in #( 14822 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14823esac 14824fi 14825rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14826esac 14827fi 14828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14829printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14830 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14831 CFLAGS="$xorg_testset_save_CFLAGS" 14832fi 14833 14834found="no" 14835 14836 if test $found = "no" ; then 14837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14839 fi 14840 14841 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14843 fi 14844 14845 CFLAGS="$CFLAGS -Wmissing-declarations" 14846 14847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 14848printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 14849 cacheid=xorg_cv_cc_flag__Wmissing_declarations 14850 if eval test \${$cacheid+y} 14851then : 14852 printf %s "(cached) " >&6 14853else case e in #( 14854 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14855/* end confdefs.h. */ 14856int i; 14857int 14858main (void) 14859{ 14860 14861 ; 14862 return 0; 14863} 14864_ACEOF 14865if ac_fn_c_try_link "$LINENO" 14866then : 14867 eval $cacheid=yes 14868else case e in #( 14869 e) eval $cacheid=no ;; 14870esac 14871fi 14872rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14873 conftest$ac_exeext conftest.$ac_ext ;; 14874esac 14875fi 14876 14877 14878 CFLAGS="$xorg_testset_save_CFLAGS" 14879 14880 eval supported=\$$cacheid 14881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14882printf "%s\n" "$supported" >&6; } 14883 if test "$supported" = "yes" ; then 14884 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 14885 found="yes" 14886 fi 14887 fi 14888 14889 14890 14891 14892 14893 14894 14895 14896 14897 14898 14899 14900 14901 14902 14903xorg_testset_save_CFLAGS="$CFLAGS" 14904 14905if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14908printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14909if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14910then : 14911 printf %s "(cached) " >&6 14912else case e in #( 14913 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14914/* end confdefs.h. */ 14915int i; 14916_ACEOF 14917if ac_fn_c_try_compile "$LINENO" 14918then : 14919 xorg_cv_cc_flag_unknown_warning_option=yes 14920else case e in #( 14921 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14922esac 14923fi 14924rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14925esac 14926fi 14927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14928printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14929 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14930 CFLAGS="$xorg_testset_save_CFLAGS" 14931fi 14932 14933if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14936 fi 14937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14939printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14940if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14941then : 14942 printf %s "(cached) " >&6 14943else case e in #( 14944 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14945/* end confdefs.h. */ 14946int i; 14947_ACEOF 14948if ac_fn_c_try_compile "$LINENO" 14949then : 14950 xorg_cv_cc_flag_unused_command_line_argument=yes 14951else case e in #( 14952 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14953esac 14954fi 14955rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14956esac 14957fi 14958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14959printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14960 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14961 CFLAGS="$xorg_testset_save_CFLAGS" 14962fi 14963 14964found="no" 14965 14966 if test $found = "no" ; then 14967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14969 fi 14970 14971 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14973 fi 14974 14975 CFLAGS="$CFLAGS -Wformat=2" 14976 14977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 14978printf %s "checking if $CC supports -Wformat=2... " >&6; } 14979 cacheid=xorg_cv_cc_flag__Wformat_2 14980 if eval test \${$cacheid+y} 14981then : 14982 printf %s "(cached) " >&6 14983else case e in #( 14984 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14985/* end confdefs.h. */ 14986int i; 14987int 14988main (void) 14989{ 14990 14991 ; 14992 return 0; 14993} 14994_ACEOF 14995if ac_fn_c_try_link "$LINENO" 14996then : 14997 eval $cacheid=yes 14998else case e in #( 14999 e) eval $cacheid=no ;; 15000esac 15001fi 15002rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15003 conftest$ac_exeext conftest.$ac_ext ;; 15004esac 15005fi 15006 15007 15008 CFLAGS="$xorg_testset_save_CFLAGS" 15009 15010 eval supported=\$$cacheid 15011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15012printf "%s\n" "$supported" >&6; } 15013 if test "$supported" = "yes" ; then 15014 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 15015 found="yes" 15016 fi 15017 fi 15018 15019 if test $found = "no" ; then 15020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15022 fi 15023 15024 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15026 fi 15027 15028 CFLAGS="$CFLAGS -Wformat" 15029 15030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 15031printf %s "checking if $CC supports -Wformat... " >&6; } 15032 cacheid=xorg_cv_cc_flag__Wformat 15033 if eval test \${$cacheid+y} 15034then : 15035 printf %s "(cached) " >&6 15036else case e in #( 15037 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15038/* end confdefs.h. */ 15039int i; 15040int 15041main (void) 15042{ 15043 15044 ; 15045 return 0; 15046} 15047_ACEOF 15048if ac_fn_c_try_link "$LINENO" 15049then : 15050 eval $cacheid=yes 15051else case e in #( 15052 e) eval $cacheid=no ;; 15053esac 15054fi 15055rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15056 conftest$ac_exeext conftest.$ac_ext ;; 15057esac 15058fi 15059 15060 15061 CFLAGS="$xorg_testset_save_CFLAGS" 15062 15063 eval supported=\$$cacheid 15064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15065printf "%s\n" "$supported" >&6; } 15066 if test "$supported" = "yes" ; then 15067 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 15068 found="yes" 15069 fi 15070 fi 15071 15072 15073 15074 15075 15076 15077 15078 15079 15080 15081 15082 15083 15084 15085 15086 15087 15088xorg_testset_save_CFLAGS="$CFLAGS" 15089 15090if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15093printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15094if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15095then : 15096 printf %s "(cached) " >&6 15097else case e in #( 15098 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15099/* end confdefs.h. */ 15100int i; 15101_ACEOF 15102if ac_fn_c_try_compile "$LINENO" 15103then : 15104 xorg_cv_cc_flag_unknown_warning_option=yes 15105else case e in #( 15106 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15107esac 15108fi 15109rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15110esac 15111fi 15112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15113printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15114 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15115 CFLAGS="$xorg_testset_save_CFLAGS" 15116fi 15117 15118if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15121 fi 15122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15124printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15125if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15126then : 15127 printf %s "(cached) " >&6 15128else case e in #( 15129 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15130/* end confdefs.h. */ 15131int i; 15132_ACEOF 15133if ac_fn_c_try_compile "$LINENO" 15134then : 15135 xorg_cv_cc_flag_unused_command_line_argument=yes 15136else case e in #( 15137 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15138esac 15139fi 15140rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15141esac 15142fi 15143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15144printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15145 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15146 CFLAGS="$xorg_testset_save_CFLAGS" 15147fi 15148 15149found="no" 15150 15151 if test $found = "no" ; then 15152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15154 fi 15155 15156 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15158 fi 15159 15160 CFLAGS="$CFLAGS -Wstrict-prototypes" 15161 15162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 15163printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 15164 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 15165 if eval test \${$cacheid+y} 15166then : 15167 printf %s "(cached) " >&6 15168else case e in #( 15169 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15170/* end confdefs.h. */ 15171int i; 15172int 15173main (void) 15174{ 15175 15176 ; 15177 return 0; 15178} 15179_ACEOF 15180if ac_fn_c_try_link "$LINENO" 15181then : 15182 eval $cacheid=yes 15183else case e in #( 15184 e) eval $cacheid=no ;; 15185esac 15186fi 15187rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15188 conftest$ac_exeext conftest.$ac_ext ;; 15189esac 15190fi 15191 15192 15193 CFLAGS="$xorg_testset_save_CFLAGS" 15194 15195 eval supported=\$$cacheid 15196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15197printf "%s\n" "$supported" >&6; } 15198 if test "$supported" = "yes" ; then 15199 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 15200 found="yes" 15201 fi 15202 fi 15203 15204 15205 15206 15207 15208 15209 15210 15211 15212 15213 15214 15215 15216 15217 15218xorg_testset_save_CFLAGS="$CFLAGS" 15219 15220if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15223printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15224if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15225then : 15226 printf %s "(cached) " >&6 15227else case e in #( 15228 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15229/* end confdefs.h. */ 15230int i; 15231_ACEOF 15232if ac_fn_c_try_compile "$LINENO" 15233then : 15234 xorg_cv_cc_flag_unknown_warning_option=yes 15235else case e in #( 15236 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15237esac 15238fi 15239rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15240esac 15241fi 15242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15243printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15244 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15245 CFLAGS="$xorg_testset_save_CFLAGS" 15246fi 15247 15248if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15250 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15251 fi 15252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15254printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15255if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15256then : 15257 printf %s "(cached) " >&6 15258else case e in #( 15259 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15260/* end confdefs.h. */ 15261int i; 15262_ACEOF 15263if ac_fn_c_try_compile "$LINENO" 15264then : 15265 xorg_cv_cc_flag_unused_command_line_argument=yes 15266else case e in #( 15267 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15268esac 15269fi 15270rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15271esac 15272fi 15273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15274printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15275 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15276 CFLAGS="$xorg_testset_save_CFLAGS" 15277fi 15278 15279found="no" 15280 15281 if test $found = "no" ; then 15282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15283 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15284 fi 15285 15286 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15288 fi 15289 15290 CFLAGS="$CFLAGS -Wmissing-prototypes" 15291 15292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 15293printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 15294 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 15295 if eval test \${$cacheid+y} 15296then : 15297 printf %s "(cached) " >&6 15298else case e in #( 15299 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15300/* end confdefs.h. */ 15301int i; 15302int 15303main (void) 15304{ 15305 15306 ; 15307 return 0; 15308} 15309_ACEOF 15310if ac_fn_c_try_link "$LINENO" 15311then : 15312 eval $cacheid=yes 15313else case e in #( 15314 e) eval $cacheid=no ;; 15315esac 15316fi 15317rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15318 conftest$ac_exeext conftest.$ac_ext ;; 15319esac 15320fi 15321 15322 15323 CFLAGS="$xorg_testset_save_CFLAGS" 15324 15325 eval supported=\$$cacheid 15326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15327printf "%s\n" "$supported" >&6; } 15328 if test "$supported" = "yes" ; then 15329 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 15330 found="yes" 15331 fi 15332 fi 15333 15334 15335 15336 15337 15338 15339 15340 15341 15342 15343 15344 15345 15346 15347 15348xorg_testset_save_CFLAGS="$CFLAGS" 15349 15350if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15353printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15354if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15355then : 15356 printf %s "(cached) " >&6 15357else case e in #( 15358 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15359/* end confdefs.h. */ 15360int i; 15361_ACEOF 15362if ac_fn_c_try_compile "$LINENO" 15363then : 15364 xorg_cv_cc_flag_unknown_warning_option=yes 15365else case e in #( 15366 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15367esac 15368fi 15369rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15370esac 15371fi 15372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15373printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15374 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15375 CFLAGS="$xorg_testset_save_CFLAGS" 15376fi 15377 15378if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15381 fi 15382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15384printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15385if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15386then : 15387 printf %s "(cached) " >&6 15388else case e in #( 15389 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15390/* end confdefs.h. */ 15391int i; 15392_ACEOF 15393if ac_fn_c_try_compile "$LINENO" 15394then : 15395 xorg_cv_cc_flag_unused_command_line_argument=yes 15396else case e in #( 15397 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15398esac 15399fi 15400rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15401esac 15402fi 15403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15404printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15405 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15406 CFLAGS="$xorg_testset_save_CFLAGS" 15407fi 15408 15409found="no" 15410 15411 if test $found = "no" ; then 15412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15414 fi 15415 15416 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15418 fi 15419 15420 CFLAGS="$CFLAGS -Wnested-externs" 15421 15422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 15423printf %s "checking if $CC supports -Wnested-externs... " >&6; } 15424 cacheid=xorg_cv_cc_flag__Wnested_externs 15425 if eval test \${$cacheid+y} 15426then : 15427 printf %s "(cached) " >&6 15428else case e in #( 15429 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15430/* end confdefs.h. */ 15431int i; 15432int 15433main (void) 15434{ 15435 15436 ; 15437 return 0; 15438} 15439_ACEOF 15440if ac_fn_c_try_link "$LINENO" 15441then : 15442 eval $cacheid=yes 15443else case e in #( 15444 e) eval $cacheid=no ;; 15445esac 15446fi 15447rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15448 conftest$ac_exeext conftest.$ac_ext ;; 15449esac 15450fi 15451 15452 15453 CFLAGS="$xorg_testset_save_CFLAGS" 15454 15455 eval supported=\$$cacheid 15456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15457printf "%s\n" "$supported" >&6; } 15458 if test "$supported" = "yes" ; then 15459 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 15460 found="yes" 15461 fi 15462 fi 15463 15464 15465 15466 15467 15468 15469 15470 15471 15472 15473 15474 15475 15476 15477 15478xorg_testset_save_CFLAGS="$CFLAGS" 15479 15480if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15481 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15483printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15484if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15485then : 15486 printf %s "(cached) " >&6 15487else case e in #( 15488 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15489/* end confdefs.h. */ 15490int i; 15491_ACEOF 15492if ac_fn_c_try_compile "$LINENO" 15493then : 15494 xorg_cv_cc_flag_unknown_warning_option=yes 15495else case e in #( 15496 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15497esac 15498fi 15499rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15500esac 15501fi 15502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15503printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15504 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15505 CFLAGS="$xorg_testset_save_CFLAGS" 15506fi 15507 15508if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15509 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15510 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15511 fi 15512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15514printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15515if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15516then : 15517 printf %s "(cached) " >&6 15518else case e in #( 15519 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15520/* end confdefs.h. */ 15521int i; 15522_ACEOF 15523if ac_fn_c_try_compile "$LINENO" 15524then : 15525 xorg_cv_cc_flag_unused_command_line_argument=yes 15526else case e in #( 15527 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15528esac 15529fi 15530rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15531esac 15532fi 15533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15534printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15535 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15536 CFLAGS="$xorg_testset_save_CFLAGS" 15537fi 15538 15539found="no" 15540 15541 if test $found = "no" ; then 15542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15544 fi 15545 15546 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15548 fi 15549 15550 CFLAGS="$CFLAGS -Wbad-function-cast" 15551 15552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 15553printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 15554 cacheid=xorg_cv_cc_flag__Wbad_function_cast 15555 if eval test \${$cacheid+y} 15556then : 15557 printf %s "(cached) " >&6 15558else case e in #( 15559 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15560/* end confdefs.h. */ 15561int i; 15562int 15563main (void) 15564{ 15565 15566 ; 15567 return 0; 15568} 15569_ACEOF 15570if ac_fn_c_try_link "$LINENO" 15571then : 15572 eval $cacheid=yes 15573else case e in #( 15574 e) eval $cacheid=no ;; 15575esac 15576fi 15577rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15578 conftest$ac_exeext conftest.$ac_ext ;; 15579esac 15580fi 15581 15582 15583 CFLAGS="$xorg_testset_save_CFLAGS" 15584 15585 eval supported=\$$cacheid 15586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15587printf "%s\n" "$supported" >&6; } 15588 if test "$supported" = "yes" ; then 15589 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 15590 found="yes" 15591 fi 15592 fi 15593 15594 15595 15596 15597 15598 15599 15600 15601 15602 15603 15604 15605 15606 15607 15608xorg_testset_save_CFLAGS="$CFLAGS" 15609 15610if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15611 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15613printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15614if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15615then : 15616 printf %s "(cached) " >&6 15617else case e in #( 15618 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15619/* end confdefs.h. */ 15620int i; 15621_ACEOF 15622if ac_fn_c_try_compile "$LINENO" 15623then : 15624 xorg_cv_cc_flag_unknown_warning_option=yes 15625else case e in #( 15626 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15627esac 15628fi 15629rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15630esac 15631fi 15632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15633printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15634 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15635 CFLAGS="$xorg_testset_save_CFLAGS" 15636fi 15637 15638if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15641 fi 15642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15644printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15645if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15646then : 15647 printf %s "(cached) " >&6 15648else case e in #( 15649 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15650/* end confdefs.h. */ 15651int i; 15652_ACEOF 15653if ac_fn_c_try_compile "$LINENO" 15654then : 15655 xorg_cv_cc_flag_unused_command_line_argument=yes 15656else case e in #( 15657 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15658esac 15659fi 15660rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15661esac 15662fi 15663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15664printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15665 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15666 CFLAGS="$xorg_testset_save_CFLAGS" 15667fi 15668 15669found="no" 15670 15671 if test $found = "no" ; then 15672 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15673 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15674 fi 15675 15676 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15678 fi 15679 15680 CFLAGS="$CFLAGS -Wold-style-definition" 15681 15682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 15683printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 15684 cacheid=xorg_cv_cc_flag__Wold_style_definition 15685 if eval test \${$cacheid+y} 15686then : 15687 printf %s "(cached) " >&6 15688else case e in #( 15689 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15690/* end confdefs.h. */ 15691int i; 15692int 15693main (void) 15694{ 15695 15696 ; 15697 return 0; 15698} 15699_ACEOF 15700if ac_fn_c_try_link "$LINENO" 15701then : 15702 eval $cacheid=yes 15703else case e in #( 15704 e) eval $cacheid=no ;; 15705esac 15706fi 15707rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15708 conftest$ac_exeext conftest.$ac_ext ;; 15709esac 15710fi 15711 15712 15713 CFLAGS="$xorg_testset_save_CFLAGS" 15714 15715 eval supported=\$$cacheid 15716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15717printf "%s\n" "$supported" >&6; } 15718 if test "$supported" = "yes" ; then 15719 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 15720 found="yes" 15721 fi 15722 fi 15723 15724 if test $found = "no" ; then 15725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15726 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15727 fi 15728 15729 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15731 fi 15732 15733 CFLAGS="$CFLAGS -fd" 15734 15735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 15736printf %s "checking if $CC supports -fd... " >&6; } 15737 cacheid=xorg_cv_cc_flag__fd 15738 if eval test \${$cacheid+y} 15739then : 15740 printf %s "(cached) " >&6 15741else case e in #( 15742 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15743/* end confdefs.h. */ 15744int i; 15745int 15746main (void) 15747{ 15748 15749 ; 15750 return 0; 15751} 15752_ACEOF 15753if ac_fn_c_try_link "$LINENO" 15754then : 15755 eval $cacheid=yes 15756else case e in #( 15757 e) eval $cacheid=no ;; 15758esac 15759fi 15760rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15761 conftest$ac_exeext conftest.$ac_ext ;; 15762esac 15763fi 15764 15765 15766 CFLAGS="$xorg_testset_save_CFLAGS" 15767 15768 eval supported=\$$cacheid 15769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15770printf "%s\n" "$supported" >&6; } 15771 if test "$supported" = "yes" ; then 15772 BASE_CFLAGS="$BASE_CFLAGS -fd" 15773 found="yes" 15774 fi 15775 fi 15776 15777 15778 15779 15780 15781# This chunk adds additional warnings that could catch undesired effects. 15782 15783 15784 15785 15786 15787 15788 15789 15790 15791 15792 15793 15794 15795xorg_testset_save_CFLAGS="$CFLAGS" 15796 15797if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15800printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15801if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15802then : 15803 printf %s "(cached) " >&6 15804else case e in #( 15805 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15806/* end confdefs.h. */ 15807int i; 15808_ACEOF 15809if ac_fn_c_try_compile "$LINENO" 15810then : 15811 xorg_cv_cc_flag_unknown_warning_option=yes 15812else case e in #( 15813 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15814esac 15815fi 15816rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15817esac 15818fi 15819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15820printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15821 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15822 CFLAGS="$xorg_testset_save_CFLAGS" 15823fi 15824 15825if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15828 fi 15829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15831printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15832if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15833then : 15834 printf %s "(cached) " >&6 15835else case e in #( 15836 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15837/* end confdefs.h. */ 15838int i; 15839_ACEOF 15840if ac_fn_c_try_compile "$LINENO" 15841then : 15842 xorg_cv_cc_flag_unused_command_line_argument=yes 15843else case e in #( 15844 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15845esac 15846fi 15847rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15848esac 15849fi 15850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15851printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15852 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15853 CFLAGS="$xorg_testset_save_CFLAGS" 15854fi 15855 15856found="no" 15857 15858 if test $found = "no" ; then 15859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15860 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15861 fi 15862 15863 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15865 fi 15866 15867 CFLAGS="$CFLAGS -Wunused" 15868 15869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 15870printf %s "checking if $CC supports -Wunused... " >&6; } 15871 cacheid=xorg_cv_cc_flag__Wunused 15872 if eval test \${$cacheid+y} 15873then : 15874 printf %s "(cached) " >&6 15875else case e in #( 15876 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15877/* end confdefs.h. */ 15878int i; 15879int 15880main (void) 15881{ 15882 15883 ; 15884 return 0; 15885} 15886_ACEOF 15887if ac_fn_c_try_link "$LINENO" 15888then : 15889 eval $cacheid=yes 15890else case e in #( 15891 e) eval $cacheid=no ;; 15892esac 15893fi 15894rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15895 conftest$ac_exeext conftest.$ac_ext ;; 15896esac 15897fi 15898 15899 15900 CFLAGS="$xorg_testset_save_CFLAGS" 15901 15902 eval supported=\$$cacheid 15903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15904printf "%s\n" "$supported" >&6; } 15905 if test "$supported" = "yes" ; then 15906 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 15907 found="yes" 15908 fi 15909 fi 15910 15911 15912 15913 15914 15915 15916 15917 15918 15919 15920 15921 15922 15923 15924 15925xorg_testset_save_CFLAGS="$CFLAGS" 15926 15927if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15930printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15931if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15932then : 15933 printf %s "(cached) " >&6 15934else case e in #( 15935 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15936/* end confdefs.h. */ 15937int i; 15938_ACEOF 15939if ac_fn_c_try_compile "$LINENO" 15940then : 15941 xorg_cv_cc_flag_unknown_warning_option=yes 15942else case e in #( 15943 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15944esac 15945fi 15946rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15947esac 15948fi 15949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15950printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15951 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15952 CFLAGS="$xorg_testset_save_CFLAGS" 15953fi 15954 15955if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15958 fi 15959 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15961printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15962if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15963then : 15964 printf %s "(cached) " >&6 15965else case e in #( 15966 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15967/* end confdefs.h. */ 15968int i; 15969_ACEOF 15970if ac_fn_c_try_compile "$LINENO" 15971then : 15972 xorg_cv_cc_flag_unused_command_line_argument=yes 15973else case e in #( 15974 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15975esac 15976fi 15977rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15978esac 15979fi 15980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15981printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15982 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15983 CFLAGS="$xorg_testset_save_CFLAGS" 15984fi 15985 15986found="no" 15987 15988 if test $found = "no" ; then 15989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15991 fi 15992 15993 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15995 fi 15996 15997 CFLAGS="$CFLAGS -Wuninitialized" 15998 15999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 16000printf %s "checking if $CC supports -Wuninitialized... " >&6; } 16001 cacheid=xorg_cv_cc_flag__Wuninitialized 16002 if eval test \${$cacheid+y} 16003then : 16004 printf %s "(cached) " >&6 16005else case e in #( 16006 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16007/* end confdefs.h. */ 16008int i; 16009int 16010main (void) 16011{ 16012 16013 ; 16014 return 0; 16015} 16016_ACEOF 16017if ac_fn_c_try_link "$LINENO" 16018then : 16019 eval $cacheid=yes 16020else case e in #( 16021 e) eval $cacheid=no ;; 16022esac 16023fi 16024rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16025 conftest$ac_exeext conftest.$ac_ext ;; 16026esac 16027fi 16028 16029 16030 CFLAGS="$xorg_testset_save_CFLAGS" 16031 16032 eval supported=\$$cacheid 16033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16034printf "%s\n" "$supported" >&6; } 16035 if test "$supported" = "yes" ; then 16036 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 16037 found="yes" 16038 fi 16039 fi 16040 16041 16042 16043 16044 16045 16046 16047 16048 16049 16050 16051 16052 16053 16054 16055xorg_testset_save_CFLAGS="$CFLAGS" 16056 16057if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16060printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16061if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16062then : 16063 printf %s "(cached) " >&6 16064else case e in #( 16065 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16066/* end confdefs.h. */ 16067int i; 16068_ACEOF 16069if ac_fn_c_try_compile "$LINENO" 16070then : 16071 xorg_cv_cc_flag_unknown_warning_option=yes 16072else case e in #( 16073 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16074esac 16075fi 16076rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16077esac 16078fi 16079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16080printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16081 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16082 CFLAGS="$xorg_testset_save_CFLAGS" 16083fi 16084 16085if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16086 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16088 fi 16089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16091printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16092if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16093then : 16094 printf %s "(cached) " >&6 16095else case e in #( 16096 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16097/* end confdefs.h. */ 16098int i; 16099_ACEOF 16100if ac_fn_c_try_compile "$LINENO" 16101then : 16102 xorg_cv_cc_flag_unused_command_line_argument=yes 16103else case e in #( 16104 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16105esac 16106fi 16107rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16108esac 16109fi 16110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16111printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16112 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16113 CFLAGS="$xorg_testset_save_CFLAGS" 16114fi 16115 16116found="no" 16117 16118 if test $found = "no" ; then 16119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16121 fi 16122 16123 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16125 fi 16126 16127 CFLAGS="$CFLAGS -Wshadow" 16128 16129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 16130printf %s "checking if $CC supports -Wshadow... " >&6; } 16131 cacheid=xorg_cv_cc_flag__Wshadow 16132 if eval test \${$cacheid+y} 16133then : 16134 printf %s "(cached) " >&6 16135else case e in #( 16136 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16137/* end confdefs.h. */ 16138int i; 16139int 16140main (void) 16141{ 16142 16143 ; 16144 return 0; 16145} 16146_ACEOF 16147if ac_fn_c_try_link "$LINENO" 16148then : 16149 eval $cacheid=yes 16150else case e in #( 16151 e) eval $cacheid=no ;; 16152esac 16153fi 16154rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16155 conftest$ac_exeext conftest.$ac_ext ;; 16156esac 16157fi 16158 16159 16160 CFLAGS="$xorg_testset_save_CFLAGS" 16161 16162 eval supported=\$$cacheid 16163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16164printf "%s\n" "$supported" >&6; } 16165 if test "$supported" = "yes" ; then 16166 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 16167 found="yes" 16168 fi 16169 fi 16170 16171 16172 16173 16174 16175 16176 16177 16178 16179 16180 16181 16182 16183 16184 16185xorg_testset_save_CFLAGS="$CFLAGS" 16186 16187if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16190printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16191if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16192then : 16193 printf %s "(cached) " >&6 16194else case e in #( 16195 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16196/* end confdefs.h. */ 16197int i; 16198_ACEOF 16199if ac_fn_c_try_compile "$LINENO" 16200then : 16201 xorg_cv_cc_flag_unknown_warning_option=yes 16202else case e in #( 16203 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16204esac 16205fi 16206rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16207esac 16208fi 16209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16210printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16211 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16212 CFLAGS="$xorg_testset_save_CFLAGS" 16213fi 16214 16215if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16218 fi 16219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16221printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16222if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16223then : 16224 printf %s "(cached) " >&6 16225else case e in #( 16226 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16227/* end confdefs.h. */ 16228int i; 16229_ACEOF 16230if ac_fn_c_try_compile "$LINENO" 16231then : 16232 xorg_cv_cc_flag_unused_command_line_argument=yes 16233else case e in #( 16234 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16235esac 16236fi 16237rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16238esac 16239fi 16240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16241printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16242 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16243 CFLAGS="$xorg_testset_save_CFLAGS" 16244fi 16245 16246found="no" 16247 16248 if test $found = "no" ; then 16249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16250 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16251 fi 16252 16253 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16255 fi 16256 16257 CFLAGS="$CFLAGS -Wmissing-noreturn" 16258 16259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 16260printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 16261 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 16262 if eval test \${$cacheid+y} 16263then : 16264 printf %s "(cached) " >&6 16265else case e in #( 16266 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16267/* end confdefs.h. */ 16268int i; 16269int 16270main (void) 16271{ 16272 16273 ; 16274 return 0; 16275} 16276_ACEOF 16277if ac_fn_c_try_link "$LINENO" 16278then : 16279 eval $cacheid=yes 16280else case e in #( 16281 e) eval $cacheid=no ;; 16282esac 16283fi 16284rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16285 conftest$ac_exeext conftest.$ac_ext ;; 16286esac 16287fi 16288 16289 16290 CFLAGS="$xorg_testset_save_CFLAGS" 16291 16292 eval supported=\$$cacheid 16293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16294printf "%s\n" "$supported" >&6; } 16295 if test "$supported" = "yes" ; then 16296 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 16297 found="yes" 16298 fi 16299 fi 16300 16301 16302 16303 16304 16305 16306 16307 16308 16309 16310 16311 16312 16313 16314 16315xorg_testset_save_CFLAGS="$CFLAGS" 16316 16317if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16320printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16321if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16322then : 16323 printf %s "(cached) " >&6 16324else case e in #( 16325 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16326/* end confdefs.h. */ 16327int i; 16328_ACEOF 16329if ac_fn_c_try_compile "$LINENO" 16330then : 16331 xorg_cv_cc_flag_unknown_warning_option=yes 16332else case e in #( 16333 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16334esac 16335fi 16336rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16337esac 16338fi 16339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16340printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16341 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16342 CFLAGS="$xorg_testset_save_CFLAGS" 16343fi 16344 16345if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16348 fi 16349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16351printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16352if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16353then : 16354 printf %s "(cached) " >&6 16355else case e in #( 16356 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16357/* end confdefs.h. */ 16358int i; 16359_ACEOF 16360if ac_fn_c_try_compile "$LINENO" 16361then : 16362 xorg_cv_cc_flag_unused_command_line_argument=yes 16363else case e in #( 16364 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16365esac 16366fi 16367rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16368esac 16369fi 16370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16371printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16372 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16373 CFLAGS="$xorg_testset_save_CFLAGS" 16374fi 16375 16376found="no" 16377 16378 if test $found = "no" ; then 16379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16381 fi 16382 16383 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16385 fi 16386 16387 CFLAGS="$CFLAGS -Wmissing-format-attribute" 16388 16389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 16390printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 16391 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 16392 if eval test \${$cacheid+y} 16393then : 16394 printf %s "(cached) " >&6 16395else case e in #( 16396 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16397/* end confdefs.h. */ 16398int i; 16399int 16400main (void) 16401{ 16402 16403 ; 16404 return 0; 16405} 16406_ACEOF 16407if ac_fn_c_try_link "$LINENO" 16408then : 16409 eval $cacheid=yes 16410else case e in #( 16411 e) eval $cacheid=no ;; 16412esac 16413fi 16414rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16415 conftest$ac_exeext conftest.$ac_ext ;; 16416esac 16417fi 16418 16419 16420 CFLAGS="$xorg_testset_save_CFLAGS" 16421 16422 eval supported=\$$cacheid 16423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16424printf "%s\n" "$supported" >&6; } 16425 if test "$supported" = "yes" ; then 16426 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 16427 found="yes" 16428 fi 16429 fi 16430 16431 16432 16433 16434 16435 16436 16437 16438 16439 16440 16441 16442 16443 16444 16445xorg_testset_save_CFLAGS="$CFLAGS" 16446 16447if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16448 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16450printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16451if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16452then : 16453 printf %s "(cached) " >&6 16454else case e in #( 16455 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16456/* end confdefs.h. */ 16457int i; 16458_ACEOF 16459if ac_fn_c_try_compile "$LINENO" 16460then : 16461 xorg_cv_cc_flag_unknown_warning_option=yes 16462else case e in #( 16463 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16464esac 16465fi 16466rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16467esac 16468fi 16469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16470printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16471 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16472 CFLAGS="$xorg_testset_save_CFLAGS" 16473fi 16474 16475if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16476 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16477 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16478 fi 16479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16481printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16482if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16483then : 16484 printf %s "(cached) " >&6 16485else case e in #( 16486 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16487/* end confdefs.h. */ 16488int i; 16489_ACEOF 16490if ac_fn_c_try_compile "$LINENO" 16491then : 16492 xorg_cv_cc_flag_unused_command_line_argument=yes 16493else case e in #( 16494 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16495esac 16496fi 16497rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16498esac 16499fi 16500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16501printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16502 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16503 CFLAGS="$xorg_testset_save_CFLAGS" 16504fi 16505 16506found="no" 16507 16508 if test $found = "no" ; then 16509 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16510 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16511 fi 16512 16513 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16515 fi 16516 16517 CFLAGS="$CFLAGS -Wredundant-decls" 16518 16519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 16520printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 16521 cacheid=xorg_cv_cc_flag__Wredundant_decls 16522 if eval test \${$cacheid+y} 16523then : 16524 printf %s "(cached) " >&6 16525else case e in #( 16526 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16527/* end confdefs.h. */ 16528int i; 16529int 16530main (void) 16531{ 16532 16533 ; 16534 return 0; 16535} 16536_ACEOF 16537if ac_fn_c_try_link "$LINENO" 16538then : 16539 eval $cacheid=yes 16540else case e in #( 16541 e) eval $cacheid=no ;; 16542esac 16543fi 16544rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16545 conftest$ac_exeext conftest.$ac_ext ;; 16546esac 16547fi 16548 16549 16550 CFLAGS="$xorg_testset_save_CFLAGS" 16551 16552 eval supported=\$$cacheid 16553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16554printf "%s\n" "$supported" >&6; } 16555 if test "$supported" = "yes" ; then 16556 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 16557 found="yes" 16558 fi 16559 fi 16560 16561 16562 16563 16564 16565 16566 16567 16568 16569 16570 16571 16572 16573 16574 16575xorg_testset_save_CFLAGS="$CFLAGS" 16576 16577if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16578 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16580printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16581if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16582then : 16583 printf %s "(cached) " >&6 16584else case e in #( 16585 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16586/* end confdefs.h. */ 16587int i; 16588_ACEOF 16589if ac_fn_c_try_compile "$LINENO" 16590then : 16591 xorg_cv_cc_flag_unknown_warning_option=yes 16592else case e in #( 16593 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16594esac 16595fi 16596rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16597esac 16598fi 16599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16600printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16601 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16602 CFLAGS="$xorg_testset_save_CFLAGS" 16603fi 16604 16605if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16607 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16608 fi 16609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16611printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16612if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16613then : 16614 printf %s "(cached) " >&6 16615else case e in #( 16616 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16617/* end confdefs.h. */ 16618int i; 16619_ACEOF 16620if ac_fn_c_try_compile "$LINENO" 16621then : 16622 xorg_cv_cc_flag_unused_command_line_argument=yes 16623else case e in #( 16624 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16625esac 16626fi 16627rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16628esac 16629fi 16630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16631printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16632 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16633 CFLAGS="$xorg_testset_save_CFLAGS" 16634fi 16635 16636found="no" 16637 16638 if test $found = "no" ; then 16639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16641 fi 16642 16643 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16645 fi 16646 16647 CFLAGS="$CFLAGS -Wlogical-op" 16648 16649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 16650printf %s "checking if $CC supports -Wlogical-op... " >&6; } 16651 cacheid=xorg_cv_cc_flag__Wlogical_op 16652 if eval test \${$cacheid+y} 16653then : 16654 printf %s "(cached) " >&6 16655else case e in #( 16656 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16657/* end confdefs.h. */ 16658int i; 16659int 16660main (void) 16661{ 16662 16663 ; 16664 return 0; 16665} 16666_ACEOF 16667if ac_fn_c_try_link "$LINENO" 16668then : 16669 eval $cacheid=yes 16670else case e in #( 16671 e) eval $cacheid=no ;; 16672esac 16673fi 16674rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16675 conftest$ac_exeext conftest.$ac_ext ;; 16676esac 16677fi 16678 16679 16680 CFLAGS="$xorg_testset_save_CFLAGS" 16681 16682 eval supported=\$$cacheid 16683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16684printf "%s\n" "$supported" >&6; } 16685 if test "$supported" = "yes" ; then 16686 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 16687 found="yes" 16688 fi 16689 fi 16690 16691 16692 16693# These are currently disabled because they are noisy. They will be enabled 16694# in the future once the codebase is sufficiently modernized to silence 16695# them. For now, I don't want them to drown out the other warnings. 16696# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 16697# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 16698# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 16699 16700# Turn some warnings into errors, so we don't accidentally get successful builds 16701# when there are problems that should be fixed. 16702 16703if test "x$SELECTIVE_WERROR" = "xyes" ; then 16704 16705 16706 16707 16708 16709 16710 16711 16712 16713 16714 16715 16716 16717xorg_testset_save_CFLAGS="$CFLAGS" 16718 16719if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16722printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16723if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16724then : 16725 printf %s "(cached) " >&6 16726else case e in #( 16727 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16728/* end confdefs.h. */ 16729int i; 16730_ACEOF 16731if ac_fn_c_try_compile "$LINENO" 16732then : 16733 xorg_cv_cc_flag_unknown_warning_option=yes 16734else case e in #( 16735 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16736esac 16737fi 16738rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16739esac 16740fi 16741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16742printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16743 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16744 CFLAGS="$xorg_testset_save_CFLAGS" 16745fi 16746 16747if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16750 fi 16751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16753printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16754if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16755then : 16756 printf %s "(cached) " >&6 16757else case e in #( 16758 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16759/* end confdefs.h. */ 16760int i; 16761_ACEOF 16762if ac_fn_c_try_compile "$LINENO" 16763then : 16764 xorg_cv_cc_flag_unused_command_line_argument=yes 16765else case e in #( 16766 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16767esac 16768fi 16769rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16770esac 16771fi 16772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16773printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16774 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16775 CFLAGS="$xorg_testset_save_CFLAGS" 16776fi 16777 16778found="no" 16779 16780 if test $found = "no" ; then 16781 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16782 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16783 fi 16784 16785 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16787 fi 16788 16789 CFLAGS="$CFLAGS -Werror=implicit" 16790 16791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 16792printf %s "checking if $CC supports -Werror=implicit... " >&6; } 16793 cacheid=xorg_cv_cc_flag__Werror_implicit 16794 if eval test \${$cacheid+y} 16795then : 16796 printf %s "(cached) " >&6 16797else case e in #( 16798 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16799/* end confdefs.h. */ 16800int i; 16801int 16802main (void) 16803{ 16804 16805 ; 16806 return 0; 16807} 16808_ACEOF 16809if ac_fn_c_try_link "$LINENO" 16810then : 16811 eval $cacheid=yes 16812else case e in #( 16813 e) eval $cacheid=no ;; 16814esac 16815fi 16816rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16817 conftest$ac_exeext conftest.$ac_ext ;; 16818esac 16819fi 16820 16821 16822 CFLAGS="$xorg_testset_save_CFLAGS" 16823 16824 eval supported=\$$cacheid 16825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16826printf "%s\n" "$supported" >&6; } 16827 if test "$supported" = "yes" ; then 16828 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 16829 found="yes" 16830 fi 16831 fi 16832 16833 if test $found = "no" ; then 16834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16836 fi 16837 16838 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16840 fi 16841 16842 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16843 16844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 16845printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 16846 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 16847 if eval test \${$cacheid+y} 16848then : 16849 printf %s "(cached) " >&6 16850else case e in #( 16851 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16852/* end confdefs.h. */ 16853int i; 16854int 16855main (void) 16856{ 16857 16858 ; 16859 return 0; 16860} 16861_ACEOF 16862if ac_fn_c_try_link "$LINENO" 16863then : 16864 eval $cacheid=yes 16865else case e in #( 16866 e) eval $cacheid=no ;; 16867esac 16868fi 16869rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16870 conftest$ac_exeext conftest.$ac_ext ;; 16871esac 16872fi 16873 16874 16875 CFLAGS="$xorg_testset_save_CFLAGS" 16876 16877 eval supported=\$$cacheid 16878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16879printf "%s\n" "$supported" >&6; } 16880 if test "$supported" = "yes" ; then 16881 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16882 found="yes" 16883 fi 16884 fi 16885 16886 16887 16888 16889 16890 16891 16892 16893 16894 16895 16896 16897 16898 16899 16900xorg_testset_save_CFLAGS="$CFLAGS" 16901 16902if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16905printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16906if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16907then : 16908 printf %s "(cached) " >&6 16909else case e in #( 16910 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16911/* end confdefs.h. */ 16912int i; 16913_ACEOF 16914if ac_fn_c_try_compile "$LINENO" 16915then : 16916 xorg_cv_cc_flag_unknown_warning_option=yes 16917else case e in #( 16918 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16919esac 16920fi 16921rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16922esac 16923fi 16924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16925printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16926 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16927 CFLAGS="$xorg_testset_save_CFLAGS" 16928fi 16929 16930if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16931 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16932 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16933 fi 16934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16936printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16937if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16938then : 16939 printf %s "(cached) " >&6 16940else case e in #( 16941 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16942/* end confdefs.h. */ 16943int i; 16944_ACEOF 16945if ac_fn_c_try_compile "$LINENO" 16946then : 16947 xorg_cv_cc_flag_unused_command_line_argument=yes 16948else case e in #( 16949 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16950esac 16951fi 16952rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16953esac 16954fi 16955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16956printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16957 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16958 CFLAGS="$xorg_testset_save_CFLAGS" 16959fi 16960 16961found="no" 16962 16963 if test $found = "no" ; then 16964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16966 fi 16967 16968 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16970 fi 16971 16972 CFLAGS="$CFLAGS -Werror=nonnull" 16973 16974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 16975printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 16976 cacheid=xorg_cv_cc_flag__Werror_nonnull 16977 if eval test \${$cacheid+y} 16978then : 16979 printf %s "(cached) " >&6 16980else case e in #( 16981 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16982/* end confdefs.h. */ 16983int i; 16984int 16985main (void) 16986{ 16987 16988 ; 16989 return 0; 16990} 16991_ACEOF 16992if ac_fn_c_try_link "$LINENO" 16993then : 16994 eval $cacheid=yes 16995else case e in #( 16996 e) eval $cacheid=no ;; 16997esac 16998fi 16999rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17000 conftest$ac_exeext conftest.$ac_ext ;; 17001esac 17002fi 17003 17004 17005 CFLAGS="$xorg_testset_save_CFLAGS" 17006 17007 eval supported=\$$cacheid 17008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17009printf "%s\n" "$supported" >&6; } 17010 if test "$supported" = "yes" ; then 17011 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 17012 found="yes" 17013 fi 17014 fi 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030xorg_testset_save_CFLAGS="$CFLAGS" 17031 17032if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17035printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17036if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17037then : 17038 printf %s "(cached) " >&6 17039else case e in #( 17040 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17041/* end confdefs.h. */ 17042int i; 17043_ACEOF 17044if ac_fn_c_try_compile "$LINENO" 17045then : 17046 xorg_cv_cc_flag_unknown_warning_option=yes 17047else case e in #( 17048 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17049esac 17050fi 17051rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17052esac 17053fi 17054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17055printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17056 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17057 CFLAGS="$xorg_testset_save_CFLAGS" 17058fi 17059 17060if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17063 fi 17064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17066printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17067if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17068then : 17069 printf %s "(cached) " >&6 17070else case e in #( 17071 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17072/* end confdefs.h. */ 17073int i; 17074_ACEOF 17075if ac_fn_c_try_compile "$LINENO" 17076then : 17077 xorg_cv_cc_flag_unused_command_line_argument=yes 17078else case e in #( 17079 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17080esac 17081fi 17082rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17083esac 17084fi 17085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17086printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17087 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17088 CFLAGS="$xorg_testset_save_CFLAGS" 17089fi 17090 17091found="no" 17092 17093 if test $found = "no" ; then 17094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17095 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17096 fi 17097 17098 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17100 fi 17101 17102 CFLAGS="$CFLAGS -Werror=init-self" 17103 17104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 17105printf %s "checking if $CC supports -Werror=init-self... " >&6; } 17106 cacheid=xorg_cv_cc_flag__Werror_init_self 17107 if eval test \${$cacheid+y} 17108then : 17109 printf %s "(cached) " >&6 17110else case e in #( 17111 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17112/* end confdefs.h. */ 17113int i; 17114int 17115main (void) 17116{ 17117 17118 ; 17119 return 0; 17120} 17121_ACEOF 17122if ac_fn_c_try_link "$LINENO" 17123then : 17124 eval $cacheid=yes 17125else case e in #( 17126 e) eval $cacheid=no ;; 17127esac 17128fi 17129rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17130 conftest$ac_exeext conftest.$ac_ext ;; 17131esac 17132fi 17133 17134 17135 CFLAGS="$xorg_testset_save_CFLAGS" 17136 17137 eval supported=\$$cacheid 17138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17139printf "%s\n" "$supported" >&6; } 17140 if test "$supported" = "yes" ; then 17141 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 17142 found="yes" 17143 fi 17144 fi 17145 17146 17147 17148 17149 17150 17151 17152 17153 17154 17155 17156 17157 17158 17159 17160xorg_testset_save_CFLAGS="$CFLAGS" 17161 17162if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17165printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17166if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17167then : 17168 printf %s "(cached) " >&6 17169else case e in #( 17170 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17171/* end confdefs.h. */ 17172int i; 17173_ACEOF 17174if ac_fn_c_try_compile "$LINENO" 17175then : 17176 xorg_cv_cc_flag_unknown_warning_option=yes 17177else case e in #( 17178 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17179esac 17180fi 17181rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17182esac 17183fi 17184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17185printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17186 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17187 CFLAGS="$xorg_testset_save_CFLAGS" 17188fi 17189 17190if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17191 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17192 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17193 fi 17194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17196printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17197if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17198then : 17199 printf %s "(cached) " >&6 17200else case e in #( 17201 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17202/* end confdefs.h. */ 17203int i; 17204_ACEOF 17205if ac_fn_c_try_compile "$LINENO" 17206then : 17207 xorg_cv_cc_flag_unused_command_line_argument=yes 17208else case e in #( 17209 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17210esac 17211fi 17212rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17213esac 17214fi 17215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17216printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17217 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17218 CFLAGS="$xorg_testset_save_CFLAGS" 17219fi 17220 17221found="no" 17222 17223 if test $found = "no" ; then 17224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17226 fi 17227 17228 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17230 fi 17231 17232 CFLAGS="$CFLAGS -Werror=main" 17233 17234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 17235printf %s "checking if $CC supports -Werror=main... " >&6; } 17236 cacheid=xorg_cv_cc_flag__Werror_main 17237 if eval test \${$cacheid+y} 17238then : 17239 printf %s "(cached) " >&6 17240else case e in #( 17241 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17242/* end confdefs.h. */ 17243int i; 17244int 17245main (void) 17246{ 17247 17248 ; 17249 return 0; 17250} 17251_ACEOF 17252if ac_fn_c_try_link "$LINENO" 17253then : 17254 eval $cacheid=yes 17255else case e in #( 17256 e) eval $cacheid=no ;; 17257esac 17258fi 17259rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17260 conftest$ac_exeext conftest.$ac_ext ;; 17261esac 17262fi 17263 17264 17265 CFLAGS="$xorg_testset_save_CFLAGS" 17266 17267 eval supported=\$$cacheid 17268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17269printf "%s\n" "$supported" >&6; } 17270 if test "$supported" = "yes" ; then 17271 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 17272 found="yes" 17273 fi 17274 fi 17275 17276 17277 17278 17279 17280 17281 17282 17283 17284 17285 17286 17287 17288 17289 17290xorg_testset_save_CFLAGS="$CFLAGS" 17291 17292if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17295printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17296if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17297then : 17298 printf %s "(cached) " >&6 17299else case e in #( 17300 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17301/* end confdefs.h. */ 17302int i; 17303_ACEOF 17304if ac_fn_c_try_compile "$LINENO" 17305then : 17306 xorg_cv_cc_flag_unknown_warning_option=yes 17307else case e in #( 17308 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17309esac 17310fi 17311rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17312esac 17313fi 17314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17315printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17316 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17317 CFLAGS="$xorg_testset_save_CFLAGS" 17318fi 17319 17320if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17323 fi 17324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17326printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17327if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17328then : 17329 printf %s "(cached) " >&6 17330else case e in #( 17331 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17332/* end confdefs.h. */ 17333int i; 17334_ACEOF 17335if ac_fn_c_try_compile "$LINENO" 17336then : 17337 xorg_cv_cc_flag_unused_command_line_argument=yes 17338else case e in #( 17339 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17340esac 17341fi 17342rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17343esac 17344fi 17345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17346printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17347 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17348 CFLAGS="$xorg_testset_save_CFLAGS" 17349fi 17350 17351found="no" 17352 17353 if test $found = "no" ; then 17354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17356 fi 17357 17358 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17360 fi 17361 17362 CFLAGS="$CFLAGS -Werror=missing-braces" 17363 17364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 17365printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 17366 cacheid=xorg_cv_cc_flag__Werror_missing_braces 17367 if eval test \${$cacheid+y} 17368then : 17369 printf %s "(cached) " >&6 17370else case e in #( 17371 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17372/* end confdefs.h. */ 17373int i; 17374int 17375main (void) 17376{ 17377 17378 ; 17379 return 0; 17380} 17381_ACEOF 17382if ac_fn_c_try_link "$LINENO" 17383then : 17384 eval $cacheid=yes 17385else case e in #( 17386 e) eval $cacheid=no ;; 17387esac 17388fi 17389rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17390 conftest$ac_exeext conftest.$ac_ext ;; 17391esac 17392fi 17393 17394 17395 CFLAGS="$xorg_testset_save_CFLAGS" 17396 17397 eval supported=\$$cacheid 17398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17399printf "%s\n" "$supported" >&6; } 17400 if test "$supported" = "yes" ; then 17401 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 17402 found="yes" 17403 fi 17404 fi 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420xorg_testset_save_CFLAGS="$CFLAGS" 17421 17422if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17425printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17426if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17427then : 17428 printf %s "(cached) " >&6 17429else case e in #( 17430 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17431/* end confdefs.h. */ 17432int i; 17433_ACEOF 17434if ac_fn_c_try_compile "$LINENO" 17435then : 17436 xorg_cv_cc_flag_unknown_warning_option=yes 17437else case e in #( 17438 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17439esac 17440fi 17441rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17442esac 17443fi 17444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17445printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17446 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17447 CFLAGS="$xorg_testset_save_CFLAGS" 17448fi 17449 17450if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17451 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17452 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17453 fi 17454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17456printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17457if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17458then : 17459 printf %s "(cached) " >&6 17460else case e in #( 17461 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17462/* end confdefs.h. */ 17463int i; 17464_ACEOF 17465if ac_fn_c_try_compile "$LINENO" 17466then : 17467 xorg_cv_cc_flag_unused_command_line_argument=yes 17468else case e in #( 17469 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17470esac 17471fi 17472rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17473esac 17474fi 17475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17476printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17477 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17478 CFLAGS="$xorg_testset_save_CFLAGS" 17479fi 17480 17481found="no" 17482 17483 if test $found = "no" ; then 17484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17486 fi 17487 17488 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17490 fi 17491 17492 CFLAGS="$CFLAGS -Werror=sequence-point" 17493 17494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 17495printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 17496 cacheid=xorg_cv_cc_flag__Werror_sequence_point 17497 if eval test \${$cacheid+y} 17498then : 17499 printf %s "(cached) " >&6 17500else case e in #( 17501 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17502/* end confdefs.h. */ 17503int i; 17504int 17505main (void) 17506{ 17507 17508 ; 17509 return 0; 17510} 17511_ACEOF 17512if ac_fn_c_try_link "$LINENO" 17513then : 17514 eval $cacheid=yes 17515else case e in #( 17516 e) eval $cacheid=no ;; 17517esac 17518fi 17519rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17520 conftest$ac_exeext conftest.$ac_ext ;; 17521esac 17522fi 17523 17524 17525 CFLAGS="$xorg_testset_save_CFLAGS" 17526 17527 eval supported=\$$cacheid 17528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17529printf "%s\n" "$supported" >&6; } 17530 if test "$supported" = "yes" ; then 17531 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 17532 found="yes" 17533 fi 17534 fi 17535 17536 17537 17538 17539 17540 17541 17542 17543 17544 17545 17546 17547 17548 17549 17550xorg_testset_save_CFLAGS="$CFLAGS" 17551 17552if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17555printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17556if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17557then : 17558 printf %s "(cached) " >&6 17559else case e in #( 17560 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17561/* end confdefs.h. */ 17562int i; 17563_ACEOF 17564if ac_fn_c_try_compile "$LINENO" 17565then : 17566 xorg_cv_cc_flag_unknown_warning_option=yes 17567else case e in #( 17568 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17569esac 17570fi 17571rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17572esac 17573fi 17574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17575printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17576 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17577 CFLAGS="$xorg_testset_save_CFLAGS" 17578fi 17579 17580if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17583 fi 17584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17586printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17587if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17588then : 17589 printf %s "(cached) " >&6 17590else case e in #( 17591 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17592/* end confdefs.h. */ 17593int i; 17594_ACEOF 17595if ac_fn_c_try_compile "$LINENO" 17596then : 17597 xorg_cv_cc_flag_unused_command_line_argument=yes 17598else case e in #( 17599 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17600esac 17601fi 17602rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17603esac 17604fi 17605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17606printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17607 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17608 CFLAGS="$xorg_testset_save_CFLAGS" 17609fi 17610 17611found="no" 17612 17613 if test $found = "no" ; then 17614 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17616 fi 17617 17618 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17620 fi 17621 17622 CFLAGS="$CFLAGS -Werror=return-type" 17623 17624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 17625printf %s "checking if $CC supports -Werror=return-type... " >&6; } 17626 cacheid=xorg_cv_cc_flag__Werror_return_type 17627 if eval test \${$cacheid+y} 17628then : 17629 printf %s "(cached) " >&6 17630else case e in #( 17631 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17632/* end confdefs.h. */ 17633int i; 17634int 17635main (void) 17636{ 17637 17638 ; 17639 return 0; 17640} 17641_ACEOF 17642if ac_fn_c_try_link "$LINENO" 17643then : 17644 eval $cacheid=yes 17645else case e in #( 17646 e) eval $cacheid=no ;; 17647esac 17648fi 17649rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17650 conftest$ac_exeext conftest.$ac_ext ;; 17651esac 17652fi 17653 17654 17655 CFLAGS="$xorg_testset_save_CFLAGS" 17656 17657 eval supported=\$$cacheid 17658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17659printf "%s\n" "$supported" >&6; } 17660 if test "$supported" = "yes" ; then 17661 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 17662 found="yes" 17663 fi 17664 fi 17665 17666 if test $found = "no" ; then 17667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17668 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17669 fi 17670 17671 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17673 fi 17674 17675 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 17676 17677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 17678printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 17679 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 17680 if eval test \${$cacheid+y} 17681then : 17682 printf %s "(cached) " >&6 17683else case e in #( 17684 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17685/* end confdefs.h. */ 17686int i; 17687int 17688main (void) 17689{ 17690 17691 ; 17692 return 0; 17693} 17694_ACEOF 17695if ac_fn_c_try_link "$LINENO" 17696then : 17697 eval $cacheid=yes 17698else case e in #( 17699 e) eval $cacheid=no ;; 17700esac 17701fi 17702rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17703 conftest$ac_exeext conftest.$ac_ext ;; 17704esac 17705fi 17706 17707 17708 CFLAGS="$xorg_testset_save_CFLAGS" 17709 17710 eval supported=\$$cacheid 17711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17712printf "%s\n" "$supported" >&6; } 17713 if test "$supported" = "yes" ; then 17714 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 17715 found="yes" 17716 fi 17717 fi 17718 17719 17720 17721 17722 17723 17724 17725 17726 17727 17728 17729 17730 17731 17732 17733xorg_testset_save_CFLAGS="$CFLAGS" 17734 17735if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17736 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17738printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17739if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17740then : 17741 printf %s "(cached) " >&6 17742else case e in #( 17743 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17744/* end confdefs.h. */ 17745int i; 17746_ACEOF 17747if ac_fn_c_try_compile "$LINENO" 17748then : 17749 xorg_cv_cc_flag_unknown_warning_option=yes 17750else case e in #( 17751 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17752esac 17753fi 17754rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17755esac 17756fi 17757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17758printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17759 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17760 CFLAGS="$xorg_testset_save_CFLAGS" 17761fi 17762 17763if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17765 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17766 fi 17767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17769printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17770if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17771then : 17772 printf %s "(cached) " >&6 17773else case e in #( 17774 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17775/* end confdefs.h. */ 17776int i; 17777_ACEOF 17778if ac_fn_c_try_compile "$LINENO" 17779then : 17780 xorg_cv_cc_flag_unused_command_line_argument=yes 17781else case e in #( 17782 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17783esac 17784fi 17785rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17786esac 17787fi 17788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17789printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17790 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17791 CFLAGS="$xorg_testset_save_CFLAGS" 17792fi 17793 17794found="no" 17795 17796 if test $found = "no" ; then 17797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17799 fi 17800 17801 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17803 fi 17804 17805 CFLAGS="$CFLAGS -Werror=trigraphs" 17806 17807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 17808printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 17809 cacheid=xorg_cv_cc_flag__Werror_trigraphs 17810 if eval test \${$cacheid+y} 17811then : 17812 printf %s "(cached) " >&6 17813else case e in #( 17814 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17815/* end confdefs.h. */ 17816int i; 17817int 17818main (void) 17819{ 17820 17821 ; 17822 return 0; 17823} 17824_ACEOF 17825if ac_fn_c_try_link "$LINENO" 17826then : 17827 eval $cacheid=yes 17828else case e in #( 17829 e) eval $cacheid=no ;; 17830esac 17831fi 17832rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17833 conftest$ac_exeext conftest.$ac_ext ;; 17834esac 17835fi 17836 17837 17838 CFLAGS="$xorg_testset_save_CFLAGS" 17839 17840 eval supported=\$$cacheid 17841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17842printf "%s\n" "$supported" >&6; } 17843 if test "$supported" = "yes" ; then 17844 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 17845 found="yes" 17846 fi 17847 fi 17848 17849 17850 17851 17852 17853 17854 17855 17856 17857 17858 17859 17860 17861 17862 17863xorg_testset_save_CFLAGS="$CFLAGS" 17864 17865if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17866 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17868printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17869if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17870then : 17871 printf %s "(cached) " >&6 17872else case e in #( 17873 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17874/* end confdefs.h. */ 17875int i; 17876_ACEOF 17877if ac_fn_c_try_compile "$LINENO" 17878then : 17879 xorg_cv_cc_flag_unknown_warning_option=yes 17880else case e in #( 17881 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17882esac 17883fi 17884rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17885esac 17886fi 17887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17888printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17889 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17890 CFLAGS="$xorg_testset_save_CFLAGS" 17891fi 17892 17893if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17896 fi 17897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17899printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17900if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17901then : 17902 printf %s "(cached) " >&6 17903else case e in #( 17904 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17905/* end confdefs.h. */ 17906int i; 17907_ACEOF 17908if ac_fn_c_try_compile "$LINENO" 17909then : 17910 xorg_cv_cc_flag_unused_command_line_argument=yes 17911else case e in #( 17912 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17913esac 17914fi 17915rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17916esac 17917fi 17918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17919printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17920 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17921 CFLAGS="$xorg_testset_save_CFLAGS" 17922fi 17923 17924found="no" 17925 17926 if test $found = "no" ; then 17927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17929 fi 17930 17931 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17933 fi 17934 17935 CFLAGS="$CFLAGS -Werror=array-bounds" 17936 17937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 17938printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 17939 cacheid=xorg_cv_cc_flag__Werror_array_bounds 17940 if eval test \${$cacheid+y} 17941then : 17942 printf %s "(cached) " >&6 17943else case e in #( 17944 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17945/* end confdefs.h. */ 17946int i; 17947int 17948main (void) 17949{ 17950 17951 ; 17952 return 0; 17953} 17954_ACEOF 17955if ac_fn_c_try_link "$LINENO" 17956then : 17957 eval $cacheid=yes 17958else case e in #( 17959 e) eval $cacheid=no ;; 17960esac 17961fi 17962rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17963 conftest$ac_exeext conftest.$ac_ext ;; 17964esac 17965fi 17966 17967 17968 CFLAGS="$xorg_testset_save_CFLAGS" 17969 17970 eval supported=\$$cacheid 17971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17972printf "%s\n" "$supported" >&6; } 17973 if test "$supported" = "yes" ; then 17974 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 17975 found="yes" 17976 fi 17977 fi 17978 17979 17980 17981 17982 17983 17984 17985 17986 17987 17988 17989 17990 17991 17992 17993xorg_testset_save_CFLAGS="$CFLAGS" 17994 17995if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17998printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17999if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18000then : 18001 printf %s "(cached) " >&6 18002else case e in #( 18003 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18004/* end confdefs.h. */ 18005int i; 18006_ACEOF 18007if ac_fn_c_try_compile "$LINENO" 18008then : 18009 xorg_cv_cc_flag_unknown_warning_option=yes 18010else case e in #( 18011 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18012esac 18013fi 18014rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18015esac 18016fi 18017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18018printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18019 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18020 CFLAGS="$xorg_testset_save_CFLAGS" 18021fi 18022 18023if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18026 fi 18027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18029printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18030if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18031then : 18032 printf %s "(cached) " >&6 18033else case e in #( 18034 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18035/* end confdefs.h. */ 18036int i; 18037_ACEOF 18038if ac_fn_c_try_compile "$LINENO" 18039then : 18040 xorg_cv_cc_flag_unused_command_line_argument=yes 18041else case e in #( 18042 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18043esac 18044fi 18045rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18046esac 18047fi 18048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18049printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18050 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18051 CFLAGS="$xorg_testset_save_CFLAGS" 18052fi 18053 18054found="no" 18055 18056 if test $found = "no" ; then 18057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18059 fi 18060 18061 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18063 fi 18064 18065 CFLAGS="$CFLAGS -Werror=write-strings" 18066 18067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 18068printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 18069 cacheid=xorg_cv_cc_flag__Werror_write_strings 18070 if eval test \${$cacheid+y} 18071then : 18072 printf %s "(cached) " >&6 18073else case e in #( 18074 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18075/* end confdefs.h. */ 18076int i; 18077int 18078main (void) 18079{ 18080 18081 ; 18082 return 0; 18083} 18084_ACEOF 18085if ac_fn_c_try_link "$LINENO" 18086then : 18087 eval $cacheid=yes 18088else case e in #( 18089 e) eval $cacheid=no ;; 18090esac 18091fi 18092rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18093 conftest$ac_exeext conftest.$ac_ext ;; 18094esac 18095fi 18096 18097 18098 CFLAGS="$xorg_testset_save_CFLAGS" 18099 18100 eval supported=\$$cacheid 18101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18102printf "%s\n" "$supported" >&6; } 18103 if test "$supported" = "yes" ; then 18104 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 18105 found="yes" 18106 fi 18107 fi 18108 18109 18110 18111 18112 18113 18114 18115 18116 18117 18118 18119 18120 18121 18122 18123xorg_testset_save_CFLAGS="$CFLAGS" 18124 18125if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18126 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18128printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18129if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18130then : 18131 printf %s "(cached) " >&6 18132else case e in #( 18133 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18134/* end confdefs.h. */ 18135int i; 18136_ACEOF 18137if ac_fn_c_try_compile "$LINENO" 18138then : 18139 xorg_cv_cc_flag_unknown_warning_option=yes 18140else case e in #( 18141 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18142esac 18143fi 18144rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18145esac 18146fi 18147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18148printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18149 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18150 CFLAGS="$xorg_testset_save_CFLAGS" 18151fi 18152 18153if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18156 fi 18157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18159printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18160if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18161then : 18162 printf %s "(cached) " >&6 18163else case e in #( 18164 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18165/* end confdefs.h. */ 18166int i; 18167_ACEOF 18168if ac_fn_c_try_compile "$LINENO" 18169then : 18170 xorg_cv_cc_flag_unused_command_line_argument=yes 18171else case e in #( 18172 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18173esac 18174fi 18175rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18176esac 18177fi 18178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18179printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18180 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18181 CFLAGS="$xorg_testset_save_CFLAGS" 18182fi 18183 18184found="no" 18185 18186 if test $found = "no" ; then 18187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18189 fi 18190 18191 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18193 fi 18194 18195 CFLAGS="$CFLAGS -Werror=address" 18196 18197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 18198printf %s "checking if $CC supports -Werror=address... " >&6; } 18199 cacheid=xorg_cv_cc_flag__Werror_address 18200 if eval test \${$cacheid+y} 18201then : 18202 printf %s "(cached) " >&6 18203else case e in #( 18204 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18205/* end confdefs.h. */ 18206int i; 18207int 18208main (void) 18209{ 18210 18211 ; 18212 return 0; 18213} 18214_ACEOF 18215if ac_fn_c_try_link "$LINENO" 18216then : 18217 eval $cacheid=yes 18218else case e in #( 18219 e) eval $cacheid=no ;; 18220esac 18221fi 18222rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18223 conftest$ac_exeext conftest.$ac_ext ;; 18224esac 18225fi 18226 18227 18228 CFLAGS="$xorg_testset_save_CFLAGS" 18229 18230 eval supported=\$$cacheid 18231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18232printf "%s\n" "$supported" >&6; } 18233 if test "$supported" = "yes" ; then 18234 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 18235 found="yes" 18236 fi 18237 fi 18238 18239 18240 18241 18242 18243 18244 18245 18246 18247 18248 18249 18250 18251 18252 18253xorg_testset_save_CFLAGS="$CFLAGS" 18254 18255if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18258printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18259if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18260then : 18261 printf %s "(cached) " >&6 18262else case e in #( 18263 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18264/* end confdefs.h. */ 18265int i; 18266_ACEOF 18267if ac_fn_c_try_compile "$LINENO" 18268then : 18269 xorg_cv_cc_flag_unknown_warning_option=yes 18270else case e in #( 18271 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18272esac 18273fi 18274rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18275esac 18276fi 18277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18278printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18279 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18280 CFLAGS="$xorg_testset_save_CFLAGS" 18281fi 18282 18283if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18286 fi 18287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18289printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18290if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18291then : 18292 printf %s "(cached) " >&6 18293else case e in #( 18294 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18295/* end confdefs.h. */ 18296int i; 18297_ACEOF 18298if ac_fn_c_try_compile "$LINENO" 18299then : 18300 xorg_cv_cc_flag_unused_command_line_argument=yes 18301else case e in #( 18302 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18303esac 18304fi 18305rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18306esac 18307fi 18308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18309printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18310 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18311 CFLAGS="$xorg_testset_save_CFLAGS" 18312fi 18313 18314found="no" 18315 18316 if test $found = "no" ; then 18317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18319 fi 18320 18321 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18323 fi 18324 18325 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 18326 18327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 18328printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 18329 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 18330 if eval test \${$cacheid+y} 18331then : 18332 printf %s "(cached) " >&6 18333else case e in #( 18334 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18335/* end confdefs.h. */ 18336int i; 18337int 18338main (void) 18339{ 18340 18341 ; 18342 return 0; 18343} 18344_ACEOF 18345if ac_fn_c_try_link "$LINENO" 18346then : 18347 eval $cacheid=yes 18348else case e in #( 18349 e) eval $cacheid=no ;; 18350esac 18351fi 18352rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18353 conftest$ac_exeext conftest.$ac_ext ;; 18354esac 18355fi 18356 18357 18358 CFLAGS="$xorg_testset_save_CFLAGS" 18359 18360 eval supported=\$$cacheid 18361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18362printf "%s\n" "$supported" >&6; } 18363 if test "$supported" = "yes" ; then 18364 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 18365 found="yes" 18366 fi 18367 fi 18368 18369 if test $found = "no" ; then 18370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18372 fi 18373 18374 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18376 fi 18377 18378 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 18379 18380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 18381printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 18382 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 18383 if eval test \${$cacheid+y} 18384then : 18385 printf %s "(cached) " >&6 18386else case e in #( 18387 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18388/* end confdefs.h. */ 18389int i; 18390int 18391main (void) 18392{ 18393 18394 ; 18395 return 0; 18396} 18397_ACEOF 18398if ac_fn_c_try_link "$LINENO" 18399then : 18400 eval $cacheid=yes 18401else case e in #( 18402 e) eval $cacheid=no ;; 18403esac 18404fi 18405rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18406 conftest$ac_exeext conftest.$ac_ext ;; 18407esac 18408fi 18409 18410 18411 CFLAGS="$xorg_testset_save_CFLAGS" 18412 18413 eval supported=\$$cacheid 18414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18415printf "%s\n" "$supported" >&6; } 18416 if test "$supported" = "yes" ; then 18417 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 18418 found="yes" 18419 fi 18420 fi 18421 18422 18423 18424 18425 18426 18427 18428 18429 18430 18431 18432 18433 18434 18435 18436xorg_testset_save_CFLAGS="$CFLAGS" 18437 18438if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18441printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18442if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18443then : 18444 printf %s "(cached) " >&6 18445else case e in #( 18446 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18447/* end confdefs.h. */ 18448int i; 18449_ACEOF 18450if ac_fn_c_try_compile "$LINENO" 18451then : 18452 xorg_cv_cc_flag_unknown_warning_option=yes 18453else case e in #( 18454 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18455esac 18456fi 18457rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18458esac 18459fi 18460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18461printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18462 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18463 CFLAGS="$xorg_testset_save_CFLAGS" 18464fi 18465 18466if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18469 fi 18470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18472printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18473if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18474then : 18475 printf %s "(cached) " >&6 18476else case e in #( 18477 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18478/* end confdefs.h. */ 18479int i; 18480_ACEOF 18481if ac_fn_c_try_compile "$LINENO" 18482then : 18483 xorg_cv_cc_flag_unused_command_line_argument=yes 18484else case e in #( 18485 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18486esac 18487fi 18488rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18489esac 18490fi 18491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18492printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18493 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18494 CFLAGS="$xorg_testset_save_CFLAGS" 18495fi 18496 18497found="no" 18498 18499 if test $found = "no" ; then 18500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18502 fi 18503 18504 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18506 fi 18507 18508 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 18509 18510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 18511printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 18512 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 18513 if eval test \${$cacheid+y} 18514then : 18515 printf %s "(cached) " >&6 18516else case e in #( 18517 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18518/* end confdefs.h. */ 18519int i; 18520int 18521main (void) 18522{ 18523 18524 ; 18525 return 0; 18526} 18527_ACEOF 18528if ac_fn_c_try_link "$LINENO" 18529then : 18530 eval $cacheid=yes 18531else case e in #( 18532 e) eval $cacheid=no ;; 18533esac 18534fi 18535rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18536 conftest$ac_exeext conftest.$ac_ext ;; 18537esac 18538fi 18539 18540 18541 CFLAGS="$xorg_testset_save_CFLAGS" 18542 18543 eval supported=\$$cacheid 18544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18545printf "%s\n" "$supported" >&6; } 18546 if test "$supported" = "yes" ; then 18547 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 18548 found="yes" 18549 fi 18550 fi 18551 18552 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 18553else 18554{ printf "%s\n" "$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 18555printf "%s\n" "$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;} 18556 18557 18558 18559 18560 18561 18562 18563 18564 18565 18566 18567 18568 18569xorg_testset_save_CFLAGS="$CFLAGS" 18570 18571if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18572 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18574printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18575if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18576then : 18577 printf %s "(cached) " >&6 18578else case e in #( 18579 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18580/* end confdefs.h. */ 18581int i; 18582_ACEOF 18583if ac_fn_c_try_compile "$LINENO" 18584then : 18585 xorg_cv_cc_flag_unknown_warning_option=yes 18586else case e in #( 18587 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18588esac 18589fi 18590rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18591esac 18592fi 18593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18594printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18595 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18596 CFLAGS="$xorg_testset_save_CFLAGS" 18597fi 18598 18599if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18600 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18601 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18602 fi 18603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18605printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18606if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18607then : 18608 printf %s "(cached) " >&6 18609else case e in #( 18610 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18611/* end confdefs.h. */ 18612int i; 18613_ACEOF 18614if ac_fn_c_try_compile "$LINENO" 18615then : 18616 xorg_cv_cc_flag_unused_command_line_argument=yes 18617else case e in #( 18618 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18619esac 18620fi 18621rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18622esac 18623fi 18624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18625printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18626 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18627 CFLAGS="$xorg_testset_save_CFLAGS" 18628fi 18629 18630found="no" 18631 18632 if test $found = "no" ; then 18633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18634 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18635 fi 18636 18637 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18639 fi 18640 18641 CFLAGS="$CFLAGS -Wimplicit" 18642 18643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 18644printf %s "checking if $CC supports -Wimplicit... " >&6; } 18645 cacheid=xorg_cv_cc_flag__Wimplicit 18646 if eval test \${$cacheid+y} 18647then : 18648 printf %s "(cached) " >&6 18649else case e in #( 18650 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18651/* end confdefs.h. */ 18652int i; 18653int 18654main (void) 18655{ 18656 18657 ; 18658 return 0; 18659} 18660_ACEOF 18661if ac_fn_c_try_link "$LINENO" 18662then : 18663 eval $cacheid=yes 18664else case e in #( 18665 e) eval $cacheid=no ;; 18666esac 18667fi 18668rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18669 conftest$ac_exeext conftest.$ac_ext ;; 18670esac 18671fi 18672 18673 18674 CFLAGS="$xorg_testset_save_CFLAGS" 18675 18676 eval supported=\$$cacheid 18677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18678printf "%s\n" "$supported" >&6; } 18679 if test "$supported" = "yes" ; then 18680 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 18681 found="yes" 18682 fi 18683 fi 18684 18685 18686 18687 18688 18689 18690 18691 18692 18693 18694 18695 18696 18697 18698 18699xorg_testset_save_CFLAGS="$CFLAGS" 18700 18701if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18704printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18705if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18706then : 18707 printf %s "(cached) " >&6 18708else case e in #( 18709 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18710/* end confdefs.h. */ 18711int i; 18712_ACEOF 18713if ac_fn_c_try_compile "$LINENO" 18714then : 18715 xorg_cv_cc_flag_unknown_warning_option=yes 18716else case e in #( 18717 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18718esac 18719fi 18720rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18721esac 18722fi 18723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18724printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18725 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18726 CFLAGS="$xorg_testset_save_CFLAGS" 18727fi 18728 18729if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18731 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18732 fi 18733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18735printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18736if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18737then : 18738 printf %s "(cached) " >&6 18739else case e in #( 18740 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18741/* end confdefs.h. */ 18742int i; 18743_ACEOF 18744if ac_fn_c_try_compile "$LINENO" 18745then : 18746 xorg_cv_cc_flag_unused_command_line_argument=yes 18747else case e in #( 18748 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18749esac 18750fi 18751rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18752esac 18753fi 18754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18755printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18756 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18757 CFLAGS="$xorg_testset_save_CFLAGS" 18758fi 18759 18760found="no" 18761 18762 if test $found = "no" ; then 18763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18764 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18765 fi 18766 18767 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18769 fi 18770 18771 CFLAGS="$CFLAGS -Wnonnull" 18772 18773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 18774printf %s "checking if $CC supports -Wnonnull... " >&6; } 18775 cacheid=xorg_cv_cc_flag__Wnonnull 18776 if eval test \${$cacheid+y} 18777then : 18778 printf %s "(cached) " >&6 18779else case e in #( 18780 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18781/* end confdefs.h. */ 18782int i; 18783int 18784main (void) 18785{ 18786 18787 ; 18788 return 0; 18789} 18790_ACEOF 18791if ac_fn_c_try_link "$LINENO" 18792then : 18793 eval $cacheid=yes 18794else case e in #( 18795 e) eval $cacheid=no ;; 18796esac 18797fi 18798rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18799 conftest$ac_exeext conftest.$ac_ext ;; 18800esac 18801fi 18802 18803 18804 CFLAGS="$xorg_testset_save_CFLAGS" 18805 18806 eval supported=\$$cacheid 18807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18808printf "%s\n" "$supported" >&6; } 18809 if test "$supported" = "yes" ; then 18810 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 18811 found="yes" 18812 fi 18813 fi 18814 18815 18816 18817 18818 18819 18820 18821 18822 18823 18824 18825 18826 18827 18828 18829xorg_testset_save_CFLAGS="$CFLAGS" 18830 18831if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18834printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18835if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18836then : 18837 printf %s "(cached) " >&6 18838else case e in #( 18839 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18840/* end confdefs.h. */ 18841int i; 18842_ACEOF 18843if ac_fn_c_try_compile "$LINENO" 18844then : 18845 xorg_cv_cc_flag_unknown_warning_option=yes 18846else case e in #( 18847 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18848esac 18849fi 18850rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18851esac 18852fi 18853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18854printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18855 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18856 CFLAGS="$xorg_testset_save_CFLAGS" 18857fi 18858 18859if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18862 fi 18863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18865printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18866if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18867then : 18868 printf %s "(cached) " >&6 18869else case e in #( 18870 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18871/* end confdefs.h. */ 18872int i; 18873_ACEOF 18874if ac_fn_c_try_compile "$LINENO" 18875then : 18876 xorg_cv_cc_flag_unused_command_line_argument=yes 18877else case e in #( 18878 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18879esac 18880fi 18881rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18882esac 18883fi 18884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18885printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18886 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18887 CFLAGS="$xorg_testset_save_CFLAGS" 18888fi 18889 18890found="no" 18891 18892 if test $found = "no" ; then 18893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18894 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18895 fi 18896 18897 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18899 fi 18900 18901 CFLAGS="$CFLAGS -Winit-self" 18902 18903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 18904printf %s "checking if $CC supports -Winit-self... " >&6; } 18905 cacheid=xorg_cv_cc_flag__Winit_self 18906 if eval test \${$cacheid+y} 18907then : 18908 printf %s "(cached) " >&6 18909else case e in #( 18910 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18911/* end confdefs.h. */ 18912int i; 18913int 18914main (void) 18915{ 18916 18917 ; 18918 return 0; 18919} 18920_ACEOF 18921if ac_fn_c_try_link "$LINENO" 18922then : 18923 eval $cacheid=yes 18924else case e in #( 18925 e) eval $cacheid=no ;; 18926esac 18927fi 18928rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18929 conftest$ac_exeext conftest.$ac_ext ;; 18930esac 18931fi 18932 18933 18934 CFLAGS="$xorg_testset_save_CFLAGS" 18935 18936 eval supported=\$$cacheid 18937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18938printf "%s\n" "$supported" >&6; } 18939 if test "$supported" = "yes" ; then 18940 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 18941 found="yes" 18942 fi 18943 fi 18944 18945 18946 18947 18948 18949 18950 18951 18952 18953 18954 18955 18956 18957 18958 18959xorg_testset_save_CFLAGS="$CFLAGS" 18960 18961if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18964printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18965if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18966then : 18967 printf %s "(cached) " >&6 18968else case e in #( 18969 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18970/* end confdefs.h. */ 18971int i; 18972_ACEOF 18973if ac_fn_c_try_compile "$LINENO" 18974then : 18975 xorg_cv_cc_flag_unknown_warning_option=yes 18976else case e in #( 18977 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18978esac 18979fi 18980rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18981esac 18982fi 18983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18984printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18985 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18986 CFLAGS="$xorg_testset_save_CFLAGS" 18987fi 18988 18989if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18991 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18992 fi 18993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18995printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18996if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18997then : 18998 printf %s "(cached) " >&6 18999else case e in #( 19000 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19001/* end confdefs.h. */ 19002int i; 19003_ACEOF 19004if ac_fn_c_try_compile "$LINENO" 19005then : 19006 xorg_cv_cc_flag_unused_command_line_argument=yes 19007else case e in #( 19008 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19009esac 19010fi 19011rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19012esac 19013fi 19014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19015printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19016 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19017 CFLAGS="$xorg_testset_save_CFLAGS" 19018fi 19019 19020found="no" 19021 19022 if test $found = "no" ; then 19023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19025 fi 19026 19027 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19029 fi 19030 19031 CFLAGS="$CFLAGS -Wmain" 19032 19033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 19034printf %s "checking if $CC supports -Wmain... " >&6; } 19035 cacheid=xorg_cv_cc_flag__Wmain 19036 if eval test \${$cacheid+y} 19037then : 19038 printf %s "(cached) " >&6 19039else case e in #( 19040 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19041/* end confdefs.h. */ 19042int i; 19043int 19044main (void) 19045{ 19046 19047 ; 19048 return 0; 19049} 19050_ACEOF 19051if ac_fn_c_try_link "$LINENO" 19052then : 19053 eval $cacheid=yes 19054else case e in #( 19055 e) eval $cacheid=no ;; 19056esac 19057fi 19058rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19059 conftest$ac_exeext conftest.$ac_ext ;; 19060esac 19061fi 19062 19063 19064 CFLAGS="$xorg_testset_save_CFLAGS" 19065 19066 eval supported=\$$cacheid 19067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19068printf "%s\n" "$supported" >&6; } 19069 if test "$supported" = "yes" ; then 19070 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 19071 found="yes" 19072 fi 19073 fi 19074 19075 19076 19077 19078 19079 19080 19081 19082 19083 19084 19085 19086 19087 19088 19089xorg_testset_save_CFLAGS="$CFLAGS" 19090 19091if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19094printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19095if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19096then : 19097 printf %s "(cached) " >&6 19098else case e in #( 19099 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19100/* end confdefs.h. */ 19101int i; 19102_ACEOF 19103if ac_fn_c_try_compile "$LINENO" 19104then : 19105 xorg_cv_cc_flag_unknown_warning_option=yes 19106else case e in #( 19107 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19108esac 19109fi 19110rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19111esac 19112fi 19113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19114printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19115 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19116 CFLAGS="$xorg_testset_save_CFLAGS" 19117fi 19118 19119if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19122 fi 19123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19125printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19126if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19127then : 19128 printf %s "(cached) " >&6 19129else case e in #( 19130 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19131/* end confdefs.h. */ 19132int i; 19133_ACEOF 19134if ac_fn_c_try_compile "$LINENO" 19135then : 19136 xorg_cv_cc_flag_unused_command_line_argument=yes 19137else case e in #( 19138 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19139esac 19140fi 19141rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19142esac 19143fi 19144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19145printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19146 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19147 CFLAGS="$xorg_testset_save_CFLAGS" 19148fi 19149 19150found="no" 19151 19152 if test $found = "no" ; then 19153 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19154 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19155 fi 19156 19157 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19158 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19159 fi 19160 19161 CFLAGS="$CFLAGS -Wmissing-braces" 19162 19163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 19164printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 19165 cacheid=xorg_cv_cc_flag__Wmissing_braces 19166 if eval test \${$cacheid+y} 19167then : 19168 printf %s "(cached) " >&6 19169else case e in #( 19170 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19171/* end confdefs.h. */ 19172int i; 19173int 19174main (void) 19175{ 19176 19177 ; 19178 return 0; 19179} 19180_ACEOF 19181if ac_fn_c_try_link "$LINENO" 19182then : 19183 eval $cacheid=yes 19184else case e in #( 19185 e) eval $cacheid=no ;; 19186esac 19187fi 19188rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19189 conftest$ac_exeext conftest.$ac_ext ;; 19190esac 19191fi 19192 19193 19194 CFLAGS="$xorg_testset_save_CFLAGS" 19195 19196 eval supported=\$$cacheid 19197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19198printf "%s\n" "$supported" >&6; } 19199 if test "$supported" = "yes" ; then 19200 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 19201 found="yes" 19202 fi 19203 fi 19204 19205 19206 19207 19208 19209 19210 19211 19212 19213 19214 19215 19216 19217 19218 19219xorg_testset_save_CFLAGS="$CFLAGS" 19220 19221if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19224printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19225if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19226then : 19227 printf %s "(cached) " >&6 19228else case e in #( 19229 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19230/* end confdefs.h. */ 19231int i; 19232_ACEOF 19233if ac_fn_c_try_compile "$LINENO" 19234then : 19235 xorg_cv_cc_flag_unknown_warning_option=yes 19236else case e in #( 19237 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19238esac 19239fi 19240rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19241esac 19242fi 19243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19244printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19245 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19246 CFLAGS="$xorg_testset_save_CFLAGS" 19247fi 19248 19249if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19250 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19251 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19252 fi 19253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19255printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19256if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19257then : 19258 printf %s "(cached) " >&6 19259else case e in #( 19260 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19261/* end confdefs.h. */ 19262int i; 19263_ACEOF 19264if ac_fn_c_try_compile "$LINENO" 19265then : 19266 xorg_cv_cc_flag_unused_command_line_argument=yes 19267else case e in #( 19268 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19269esac 19270fi 19271rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19272esac 19273fi 19274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19275printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19276 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19277 CFLAGS="$xorg_testset_save_CFLAGS" 19278fi 19279 19280found="no" 19281 19282 if test $found = "no" ; then 19283 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19284 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19285 fi 19286 19287 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19289 fi 19290 19291 CFLAGS="$CFLAGS -Wsequence-point" 19292 19293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 19294printf %s "checking if $CC supports -Wsequence-point... " >&6; } 19295 cacheid=xorg_cv_cc_flag__Wsequence_point 19296 if eval test \${$cacheid+y} 19297then : 19298 printf %s "(cached) " >&6 19299else case e in #( 19300 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19301/* end confdefs.h. */ 19302int i; 19303int 19304main (void) 19305{ 19306 19307 ; 19308 return 0; 19309} 19310_ACEOF 19311if ac_fn_c_try_link "$LINENO" 19312then : 19313 eval $cacheid=yes 19314else case e in #( 19315 e) eval $cacheid=no ;; 19316esac 19317fi 19318rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19319 conftest$ac_exeext conftest.$ac_ext ;; 19320esac 19321fi 19322 19323 19324 CFLAGS="$xorg_testset_save_CFLAGS" 19325 19326 eval supported=\$$cacheid 19327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19328printf "%s\n" "$supported" >&6; } 19329 if test "$supported" = "yes" ; then 19330 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 19331 found="yes" 19332 fi 19333 fi 19334 19335 19336 19337 19338 19339 19340 19341 19342 19343 19344 19345 19346 19347 19348 19349xorg_testset_save_CFLAGS="$CFLAGS" 19350 19351if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19354printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19355if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19356then : 19357 printf %s "(cached) " >&6 19358else case e in #( 19359 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19360/* end confdefs.h. */ 19361int i; 19362_ACEOF 19363if ac_fn_c_try_compile "$LINENO" 19364then : 19365 xorg_cv_cc_flag_unknown_warning_option=yes 19366else case e in #( 19367 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19368esac 19369fi 19370rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19371esac 19372fi 19373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19374printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19375 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19376 CFLAGS="$xorg_testset_save_CFLAGS" 19377fi 19378 19379if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19382 fi 19383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19385printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19386if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19387then : 19388 printf %s "(cached) " >&6 19389else case e in #( 19390 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19391/* end confdefs.h. */ 19392int i; 19393_ACEOF 19394if ac_fn_c_try_compile "$LINENO" 19395then : 19396 xorg_cv_cc_flag_unused_command_line_argument=yes 19397else case e in #( 19398 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19399esac 19400fi 19401rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19402esac 19403fi 19404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19405printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19406 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19407 CFLAGS="$xorg_testset_save_CFLAGS" 19408fi 19409 19410found="no" 19411 19412 if test $found = "no" ; then 19413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19415 fi 19416 19417 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19419 fi 19420 19421 CFLAGS="$CFLAGS -Wreturn-type" 19422 19423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 19424printf %s "checking if $CC supports -Wreturn-type... " >&6; } 19425 cacheid=xorg_cv_cc_flag__Wreturn_type 19426 if eval test \${$cacheid+y} 19427then : 19428 printf %s "(cached) " >&6 19429else case e in #( 19430 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19431/* end confdefs.h. */ 19432int i; 19433int 19434main (void) 19435{ 19436 19437 ; 19438 return 0; 19439} 19440_ACEOF 19441if ac_fn_c_try_link "$LINENO" 19442then : 19443 eval $cacheid=yes 19444else case e in #( 19445 e) eval $cacheid=no ;; 19446esac 19447fi 19448rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19449 conftest$ac_exeext conftest.$ac_ext ;; 19450esac 19451fi 19452 19453 19454 CFLAGS="$xorg_testset_save_CFLAGS" 19455 19456 eval supported=\$$cacheid 19457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19458printf "%s\n" "$supported" >&6; } 19459 if test "$supported" = "yes" ; then 19460 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 19461 found="yes" 19462 fi 19463 fi 19464 19465 19466 19467 19468 19469 19470 19471 19472 19473 19474 19475 19476 19477 19478 19479xorg_testset_save_CFLAGS="$CFLAGS" 19480 19481if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19484printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19485if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19486then : 19487 printf %s "(cached) " >&6 19488else case e in #( 19489 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19490/* end confdefs.h. */ 19491int i; 19492_ACEOF 19493if ac_fn_c_try_compile "$LINENO" 19494then : 19495 xorg_cv_cc_flag_unknown_warning_option=yes 19496else case e in #( 19497 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19498esac 19499fi 19500rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19501esac 19502fi 19503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19504printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19505 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19506 CFLAGS="$xorg_testset_save_CFLAGS" 19507fi 19508 19509if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19512 fi 19513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19515printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19516if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19517then : 19518 printf %s "(cached) " >&6 19519else case e in #( 19520 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19521/* end confdefs.h. */ 19522int i; 19523_ACEOF 19524if ac_fn_c_try_compile "$LINENO" 19525then : 19526 xorg_cv_cc_flag_unused_command_line_argument=yes 19527else case e in #( 19528 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19529esac 19530fi 19531rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19532esac 19533fi 19534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19535printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19536 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19537 CFLAGS="$xorg_testset_save_CFLAGS" 19538fi 19539 19540found="no" 19541 19542 if test $found = "no" ; then 19543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19544 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19545 fi 19546 19547 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19549 fi 19550 19551 CFLAGS="$CFLAGS -Wtrigraphs" 19552 19553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 19554printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 19555 cacheid=xorg_cv_cc_flag__Wtrigraphs 19556 if eval test \${$cacheid+y} 19557then : 19558 printf %s "(cached) " >&6 19559else case e in #( 19560 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19561/* end confdefs.h. */ 19562int i; 19563int 19564main (void) 19565{ 19566 19567 ; 19568 return 0; 19569} 19570_ACEOF 19571if ac_fn_c_try_link "$LINENO" 19572then : 19573 eval $cacheid=yes 19574else case e in #( 19575 e) eval $cacheid=no ;; 19576esac 19577fi 19578rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19579 conftest$ac_exeext conftest.$ac_ext ;; 19580esac 19581fi 19582 19583 19584 CFLAGS="$xorg_testset_save_CFLAGS" 19585 19586 eval supported=\$$cacheid 19587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19588printf "%s\n" "$supported" >&6; } 19589 if test "$supported" = "yes" ; then 19590 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 19591 found="yes" 19592 fi 19593 fi 19594 19595 19596 19597 19598 19599 19600 19601 19602 19603 19604 19605 19606 19607 19608 19609xorg_testset_save_CFLAGS="$CFLAGS" 19610 19611if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19612 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19614printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19615if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19616then : 19617 printf %s "(cached) " >&6 19618else case e in #( 19619 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19620/* end confdefs.h. */ 19621int i; 19622_ACEOF 19623if ac_fn_c_try_compile "$LINENO" 19624then : 19625 xorg_cv_cc_flag_unknown_warning_option=yes 19626else case e in #( 19627 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19628esac 19629fi 19630rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19631esac 19632fi 19633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19634printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19635 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19636 CFLAGS="$xorg_testset_save_CFLAGS" 19637fi 19638 19639if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19640 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19642 fi 19643 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19645printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19646if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19647then : 19648 printf %s "(cached) " >&6 19649else case e in #( 19650 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19651/* end confdefs.h. */ 19652int i; 19653_ACEOF 19654if ac_fn_c_try_compile "$LINENO" 19655then : 19656 xorg_cv_cc_flag_unused_command_line_argument=yes 19657else case e in #( 19658 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19659esac 19660fi 19661rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19662esac 19663fi 19664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19665printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19666 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19667 CFLAGS="$xorg_testset_save_CFLAGS" 19668fi 19669 19670found="no" 19671 19672 if test $found = "no" ; then 19673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19675 fi 19676 19677 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19679 fi 19680 19681 CFLAGS="$CFLAGS -Warray-bounds" 19682 19683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 19684printf %s "checking if $CC supports -Warray-bounds... " >&6; } 19685 cacheid=xorg_cv_cc_flag__Warray_bounds 19686 if eval test \${$cacheid+y} 19687then : 19688 printf %s "(cached) " >&6 19689else case e in #( 19690 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19691/* end confdefs.h. */ 19692int i; 19693int 19694main (void) 19695{ 19696 19697 ; 19698 return 0; 19699} 19700_ACEOF 19701if ac_fn_c_try_link "$LINENO" 19702then : 19703 eval $cacheid=yes 19704else case e in #( 19705 e) eval $cacheid=no ;; 19706esac 19707fi 19708rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19709 conftest$ac_exeext conftest.$ac_ext ;; 19710esac 19711fi 19712 19713 19714 CFLAGS="$xorg_testset_save_CFLAGS" 19715 19716 eval supported=\$$cacheid 19717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19718printf "%s\n" "$supported" >&6; } 19719 if test "$supported" = "yes" ; then 19720 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 19721 found="yes" 19722 fi 19723 fi 19724 19725 19726 19727 19728 19729 19730 19731 19732 19733 19734 19735 19736 19737 19738 19739xorg_testset_save_CFLAGS="$CFLAGS" 19740 19741if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19744printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19745if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19746then : 19747 printf %s "(cached) " >&6 19748else case e in #( 19749 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19750/* end confdefs.h. */ 19751int i; 19752_ACEOF 19753if ac_fn_c_try_compile "$LINENO" 19754then : 19755 xorg_cv_cc_flag_unknown_warning_option=yes 19756else case e in #( 19757 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19758esac 19759fi 19760rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19761esac 19762fi 19763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19764printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19765 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19766 CFLAGS="$xorg_testset_save_CFLAGS" 19767fi 19768 19769if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19771 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19772 fi 19773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19775printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19776if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19777then : 19778 printf %s "(cached) " >&6 19779else case e in #( 19780 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19781/* end confdefs.h. */ 19782int i; 19783_ACEOF 19784if ac_fn_c_try_compile "$LINENO" 19785then : 19786 xorg_cv_cc_flag_unused_command_line_argument=yes 19787else case e in #( 19788 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19789esac 19790fi 19791rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19792esac 19793fi 19794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19795printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19796 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19797 CFLAGS="$xorg_testset_save_CFLAGS" 19798fi 19799 19800found="no" 19801 19802 if test $found = "no" ; then 19803 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19804 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19805 fi 19806 19807 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19809 fi 19810 19811 CFLAGS="$CFLAGS -Wwrite-strings" 19812 19813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 19814printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 19815 cacheid=xorg_cv_cc_flag__Wwrite_strings 19816 if eval test \${$cacheid+y} 19817then : 19818 printf %s "(cached) " >&6 19819else case e in #( 19820 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19821/* end confdefs.h. */ 19822int i; 19823int 19824main (void) 19825{ 19826 19827 ; 19828 return 0; 19829} 19830_ACEOF 19831if ac_fn_c_try_link "$LINENO" 19832then : 19833 eval $cacheid=yes 19834else case e in #( 19835 e) eval $cacheid=no ;; 19836esac 19837fi 19838rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19839 conftest$ac_exeext conftest.$ac_ext ;; 19840esac 19841fi 19842 19843 19844 CFLAGS="$xorg_testset_save_CFLAGS" 19845 19846 eval supported=\$$cacheid 19847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19848printf "%s\n" "$supported" >&6; } 19849 if test "$supported" = "yes" ; then 19850 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 19851 found="yes" 19852 fi 19853 fi 19854 19855 19856 19857 19858 19859 19860 19861 19862 19863 19864 19865 19866 19867 19868 19869xorg_testset_save_CFLAGS="$CFLAGS" 19870 19871if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19874printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19875if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19876then : 19877 printf %s "(cached) " >&6 19878else case e in #( 19879 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19880/* end confdefs.h. */ 19881int i; 19882_ACEOF 19883if ac_fn_c_try_compile "$LINENO" 19884then : 19885 xorg_cv_cc_flag_unknown_warning_option=yes 19886else case e in #( 19887 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19888esac 19889fi 19890rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19891esac 19892fi 19893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19894printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19895 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19896 CFLAGS="$xorg_testset_save_CFLAGS" 19897fi 19898 19899if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19902 fi 19903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19905printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19906if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19907then : 19908 printf %s "(cached) " >&6 19909else case e in #( 19910 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19911/* end confdefs.h. */ 19912int i; 19913_ACEOF 19914if ac_fn_c_try_compile "$LINENO" 19915then : 19916 xorg_cv_cc_flag_unused_command_line_argument=yes 19917else case e in #( 19918 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19919esac 19920fi 19921rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19922esac 19923fi 19924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19925printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19926 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19927 CFLAGS="$xorg_testset_save_CFLAGS" 19928fi 19929 19930found="no" 19931 19932 if test $found = "no" ; then 19933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19935 fi 19936 19937 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19939 fi 19940 19941 CFLAGS="$CFLAGS -Waddress" 19942 19943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 19944printf %s "checking if $CC supports -Waddress... " >&6; } 19945 cacheid=xorg_cv_cc_flag__Waddress 19946 if eval test \${$cacheid+y} 19947then : 19948 printf %s "(cached) " >&6 19949else case e in #( 19950 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19951/* end confdefs.h. */ 19952int i; 19953int 19954main (void) 19955{ 19956 19957 ; 19958 return 0; 19959} 19960_ACEOF 19961if ac_fn_c_try_link "$LINENO" 19962then : 19963 eval $cacheid=yes 19964else case e in #( 19965 e) eval $cacheid=no ;; 19966esac 19967fi 19968rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19969 conftest$ac_exeext conftest.$ac_ext ;; 19970esac 19971fi 19972 19973 19974 CFLAGS="$xorg_testset_save_CFLAGS" 19975 19976 eval supported=\$$cacheid 19977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19978printf "%s\n" "$supported" >&6; } 19979 if test "$supported" = "yes" ; then 19980 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 19981 found="yes" 19982 fi 19983 fi 19984 19985 19986 19987 19988 19989 19990 19991 19992 19993 19994 19995 19996 19997 19998 19999xorg_testset_save_CFLAGS="$CFLAGS" 20000 20001if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 20002 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 20004printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 20005if test ${xorg_cv_cc_flag_unknown_warning_option+y} 20006then : 20007 printf %s "(cached) " >&6 20008else case e in #( 20009 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20010/* end confdefs.h. */ 20011int i; 20012_ACEOF 20013if ac_fn_c_try_compile "$LINENO" 20014then : 20015 xorg_cv_cc_flag_unknown_warning_option=yes 20016else case e in #( 20017 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 20018esac 20019fi 20020rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20021esac 20022fi 20023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 20024printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 20025 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 20026 CFLAGS="$xorg_testset_save_CFLAGS" 20027fi 20028 20029if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 20030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20032 fi 20033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 20035printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 20036if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 20037then : 20038 printf %s "(cached) " >&6 20039else case e in #( 20040 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20041/* end confdefs.h. */ 20042int i; 20043_ACEOF 20044if ac_fn_c_try_compile "$LINENO" 20045then : 20046 xorg_cv_cc_flag_unused_command_line_argument=yes 20047else case e in #( 20048 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 20049esac 20050fi 20051rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20052esac 20053fi 20054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 20055printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 20056 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 20057 CFLAGS="$xorg_testset_save_CFLAGS" 20058fi 20059 20060found="no" 20061 20062 if test $found = "no" ; then 20063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20065 fi 20066 20067 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20069 fi 20070 20071 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 20072 20073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 20074printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 20075 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 20076 if eval test \${$cacheid+y} 20077then : 20078 printf %s "(cached) " >&6 20079else case e in #( 20080 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20081/* end confdefs.h. */ 20082int i; 20083int 20084main (void) 20085{ 20086 20087 ; 20088 return 0; 20089} 20090_ACEOF 20091if ac_fn_c_try_link "$LINENO" 20092then : 20093 eval $cacheid=yes 20094else case e in #( 20095 e) eval $cacheid=no ;; 20096esac 20097fi 20098rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20099 conftest$ac_exeext conftest.$ac_ext ;; 20100esac 20101fi 20102 20103 20104 CFLAGS="$xorg_testset_save_CFLAGS" 20105 20106 eval supported=\$$cacheid 20107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20108printf "%s\n" "$supported" >&6; } 20109 if test "$supported" = "yes" ; then 20110 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 20111 found="yes" 20112 fi 20113 fi 20114 20115 20116 20117 20118 20119 20120 20121 20122 20123 20124 20125 20126 20127 20128 20129xorg_testset_save_CFLAGS="$CFLAGS" 20130 20131if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 20132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 20134printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 20135if test ${xorg_cv_cc_flag_unknown_warning_option+y} 20136then : 20137 printf %s "(cached) " >&6 20138else case e in #( 20139 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20140/* end confdefs.h. */ 20141int i; 20142_ACEOF 20143if ac_fn_c_try_compile "$LINENO" 20144then : 20145 xorg_cv_cc_flag_unknown_warning_option=yes 20146else case e in #( 20147 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 20148esac 20149fi 20150rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20151esac 20152fi 20153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 20154printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 20155 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 20156 CFLAGS="$xorg_testset_save_CFLAGS" 20157fi 20158 20159if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 20160 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20161 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20162 fi 20163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 20165printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 20166if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 20167then : 20168 printf %s "(cached) " >&6 20169else case e in #( 20170 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20171/* end confdefs.h. */ 20172int i; 20173_ACEOF 20174if ac_fn_c_try_compile "$LINENO" 20175then : 20176 xorg_cv_cc_flag_unused_command_line_argument=yes 20177else case e in #( 20178 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 20179esac 20180fi 20181rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20182esac 20183fi 20184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 20185printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 20186 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 20187 CFLAGS="$xorg_testset_save_CFLAGS" 20188fi 20189 20190found="no" 20191 20192 if test $found = "no" ; then 20193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20194 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20195 fi 20196 20197 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20199 fi 20200 20201 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 20202 20203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 20204printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 20205 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 20206 if eval test \${$cacheid+y} 20207then : 20208 printf %s "(cached) " >&6 20209else case e in #( 20210 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20211/* end confdefs.h. */ 20212int i; 20213int 20214main (void) 20215{ 20216 20217 ; 20218 return 0; 20219} 20220_ACEOF 20221if ac_fn_c_try_link "$LINENO" 20222then : 20223 eval $cacheid=yes 20224else case e in #( 20225 e) eval $cacheid=no ;; 20226esac 20227fi 20228rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20229 conftest$ac_exeext conftest.$ac_ext ;; 20230esac 20231fi 20232 20233 20234 CFLAGS="$xorg_testset_save_CFLAGS" 20235 20236 eval supported=\$$cacheid 20237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20238printf "%s\n" "$supported" >&6; } 20239 if test "$supported" = "yes" ; then 20240 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 20241 found="yes" 20242 fi 20243 fi 20244 20245 20246fi 20247 20248 20249 20250 20251 20252 20253 20254 CWARNFLAGS="$BASE_CFLAGS" 20255 if test "x$GCC" = xyes ; then 20256 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 20257 fi 20258 20259 20260 20261 20262 20263 20264 20265 20266# Check whether --enable-strict-compilation was given. 20267if test ${enable_strict_compilation+y} 20268then : 20269 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 20270else case e in #( 20271 e) STRICT_COMPILE=no ;; 20272esac 20273fi 20274 20275 20276 20277 20278 20279 20280STRICT_CFLAGS="" 20281 20282 20283 20284 20285 20286 20287 20288 20289 20290 20291 20292 20293 20294xorg_testset_save_CFLAGS="$CFLAGS" 20295 20296if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 20297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 20299printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 20300if test ${xorg_cv_cc_flag_unknown_warning_option+y} 20301then : 20302 printf %s "(cached) " >&6 20303else case e in #( 20304 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20305/* end confdefs.h. */ 20306int i; 20307_ACEOF 20308if ac_fn_c_try_compile "$LINENO" 20309then : 20310 xorg_cv_cc_flag_unknown_warning_option=yes 20311else case e in #( 20312 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 20313esac 20314fi 20315rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20316esac 20317fi 20318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 20319printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 20320 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 20321 CFLAGS="$xorg_testset_save_CFLAGS" 20322fi 20323 20324if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 20325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20327 fi 20328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 20330printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 20331if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 20332then : 20333 printf %s "(cached) " >&6 20334else case e in #( 20335 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20336/* end confdefs.h. */ 20337int i; 20338_ACEOF 20339if ac_fn_c_try_compile "$LINENO" 20340then : 20341 xorg_cv_cc_flag_unused_command_line_argument=yes 20342else case e in #( 20343 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 20344esac 20345fi 20346rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20347esac 20348fi 20349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 20350printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 20351 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 20352 CFLAGS="$xorg_testset_save_CFLAGS" 20353fi 20354 20355found="no" 20356 20357 if test $found = "no" ; then 20358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20360 fi 20361 20362 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20364 fi 20365 20366 CFLAGS="$CFLAGS -pedantic" 20367 20368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 20369printf %s "checking if $CC supports -pedantic... " >&6; } 20370 cacheid=xorg_cv_cc_flag__pedantic 20371 if eval test \${$cacheid+y} 20372then : 20373 printf %s "(cached) " >&6 20374else case e in #( 20375 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20376/* end confdefs.h. */ 20377int i; 20378int 20379main (void) 20380{ 20381 20382 ; 20383 return 0; 20384} 20385_ACEOF 20386if ac_fn_c_try_link "$LINENO" 20387then : 20388 eval $cacheid=yes 20389else case e in #( 20390 e) eval $cacheid=no ;; 20391esac 20392fi 20393rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20394 conftest$ac_exeext conftest.$ac_ext ;; 20395esac 20396fi 20397 20398 20399 CFLAGS="$xorg_testset_save_CFLAGS" 20400 20401 eval supported=\$$cacheid 20402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20403printf "%s\n" "$supported" >&6; } 20404 if test "$supported" = "yes" ; then 20405 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 20406 found="yes" 20407 fi 20408 fi 20409 20410 20411 20412 20413 20414 20415 20416 20417 20418 20419 20420 20421 20422 20423 20424xorg_testset_save_CFLAGS="$CFLAGS" 20425 20426if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 20427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 20429printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 20430if test ${xorg_cv_cc_flag_unknown_warning_option+y} 20431then : 20432 printf %s "(cached) " >&6 20433else case e in #( 20434 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20435/* end confdefs.h. */ 20436int i; 20437_ACEOF 20438if ac_fn_c_try_compile "$LINENO" 20439then : 20440 xorg_cv_cc_flag_unknown_warning_option=yes 20441else case e in #( 20442 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 20443esac 20444fi 20445rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20446esac 20447fi 20448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 20449printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 20450 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 20451 CFLAGS="$xorg_testset_save_CFLAGS" 20452fi 20453 20454if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 20455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20456 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20457 fi 20458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 20460printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 20461if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 20462then : 20463 printf %s "(cached) " >&6 20464else case e in #( 20465 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20466/* end confdefs.h. */ 20467int i; 20468_ACEOF 20469if ac_fn_c_try_compile "$LINENO" 20470then : 20471 xorg_cv_cc_flag_unused_command_line_argument=yes 20472else case e in #( 20473 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 20474esac 20475fi 20476rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20477esac 20478fi 20479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 20480printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 20481 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 20482 CFLAGS="$xorg_testset_save_CFLAGS" 20483fi 20484 20485found="no" 20486 20487 if test $found = "no" ; then 20488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20490 fi 20491 20492 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20494 fi 20495 20496 CFLAGS="$CFLAGS -Werror" 20497 20498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 20499printf %s "checking if $CC supports -Werror... " >&6; } 20500 cacheid=xorg_cv_cc_flag__Werror 20501 if eval test \${$cacheid+y} 20502then : 20503 printf %s "(cached) " >&6 20504else case e in #( 20505 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20506/* end confdefs.h. */ 20507int i; 20508int 20509main (void) 20510{ 20511 20512 ; 20513 return 0; 20514} 20515_ACEOF 20516if ac_fn_c_try_link "$LINENO" 20517then : 20518 eval $cacheid=yes 20519else case e in #( 20520 e) eval $cacheid=no ;; 20521esac 20522fi 20523rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20524 conftest$ac_exeext conftest.$ac_ext ;; 20525esac 20526fi 20527 20528 20529 CFLAGS="$xorg_testset_save_CFLAGS" 20530 20531 eval supported=\$$cacheid 20532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20533printf "%s\n" "$supported" >&6; } 20534 if test "$supported" = "yes" ; then 20535 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 20536 found="yes" 20537 fi 20538 fi 20539 20540 if test $found = "no" ; then 20541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20543 fi 20544 20545 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20547 fi 20548 20549 CFLAGS="$CFLAGS -errwarn" 20550 20551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 20552printf %s "checking if $CC supports -errwarn... " >&6; } 20553 cacheid=xorg_cv_cc_flag__errwarn 20554 if eval test \${$cacheid+y} 20555then : 20556 printf %s "(cached) " >&6 20557else case e in #( 20558 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20559/* end confdefs.h. */ 20560int i; 20561int 20562main (void) 20563{ 20564 20565 ; 20566 return 0; 20567} 20568_ACEOF 20569if ac_fn_c_try_link "$LINENO" 20570then : 20571 eval $cacheid=yes 20572else case e in #( 20573 e) eval $cacheid=no ;; 20574esac 20575fi 20576rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20577 conftest$ac_exeext conftest.$ac_ext ;; 20578esac 20579fi 20580 20581 20582 CFLAGS="$xorg_testset_save_CFLAGS" 20583 20584 eval supported=\$$cacheid 20585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20586printf "%s\n" "$supported" >&6; } 20587 if test "$supported" = "yes" ; then 20588 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 20589 found="yes" 20590 fi 20591 fi 20592 20593 20594 20595# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 20596# activate it with -Werror, so we add it here explicitly. 20597 20598 20599 20600 20601 20602 20603 20604 20605 20606 20607 20608 20609 20610xorg_testset_save_CFLAGS="$CFLAGS" 20611 20612if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 20613 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 20615printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 20616if test ${xorg_cv_cc_flag_unknown_warning_option+y} 20617then : 20618 printf %s "(cached) " >&6 20619else case e in #( 20620 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20621/* end confdefs.h. */ 20622int i; 20623_ACEOF 20624if ac_fn_c_try_compile "$LINENO" 20625then : 20626 xorg_cv_cc_flag_unknown_warning_option=yes 20627else case e in #( 20628 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 20629esac 20630fi 20631rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20632esac 20633fi 20634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 20635printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 20636 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 20637 CFLAGS="$xorg_testset_save_CFLAGS" 20638fi 20639 20640if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 20641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20643 fi 20644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 20646printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 20647if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 20648then : 20649 printf %s "(cached) " >&6 20650else case e in #( 20651 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20652/* end confdefs.h. */ 20653int i; 20654_ACEOF 20655if ac_fn_c_try_compile "$LINENO" 20656then : 20657 xorg_cv_cc_flag_unused_command_line_argument=yes 20658else case e in #( 20659 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 20660esac 20661fi 20662rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20663esac 20664fi 20665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 20666printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 20667 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 20668 CFLAGS="$xorg_testset_save_CFLAGS" 20669fi 20670 20671found="no" 20672 20673 if test $found = "no" ; then 20674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20676 fi 20677 20678 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20680 fi 20681 20682 CFLAGS="$CFLAGS -Werror=attributes" 20683 20684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 20685printf %s "checking if $CC supports -Werror=attributes... " >&6; } 20686 cacheid=xorg_cv_cc_flag__Werror_attributes 20687 if eval test \${$cacheid+y} 20688then : 20689 printf %s "(cached) " >&6 20690else case e in #( 20691 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20692/* end confdefs.h. */ 20693int i; 20694int 20695main (void) 20696{ 20697 20698 ; 20699 return 0; 20700} 20701_ACEOF 20702if ac_fn_c_try_link "$LINENO" 20703then : 20704 eval $cacheid=yes 20705else case e in #( 20706 e) eval $cacheid=no ;; 20707esac 20708fi 20709rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20710 conftest$ac_exeext conftest.$ac_ext ;; 20711esac 20712fi 20713 20714 20715 CFLAGS="$xorg_testset_save_CFLAGS" 20716 20717 eval supported=\$$cacheid 20718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20719printf "%s\n" "$supported" >&6; } 20720 if test "$supported" = "yes" ; then 20721 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 20722 found="yes" 20723 fi 20724 fi 20725 20726 20727 20728if test "x$STRICT_COMPILE" = "xyes"; then 20729 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 20730 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 20731fi 20732 20733 20734 20735 20736 20737 20738 20739 20740cat >>confdefs.h <<_ACEOF 20741#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 20742_ACEOF 20743 20744 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 20745 if test "x$PVM" = "x"; then 20746 PVM="0" 20747 fi 20748 20749printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 20750 20751 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 20752 if test "x$PVP" = "x"; then 20753 PVP="0" 20754 fi 20755 20756printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 20757 20758 20759 20760CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 20761mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 20762|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 20763touch \$(top_srcdir)/ChangeLog; \ 20764echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 20765 20766 20767 20768 20769macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 20770INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 20771mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 20772|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 20773touch \$(top_srcdir)/INSTALL; \ 20774echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 20775 20776 20777 20778 20779 20780 20781case $host_os in 20782 solaris*) 20783 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 20784 # check for a man page file found in later versions that use 20785 # traditional section numbers instead 20786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 20787printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 20788if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 20789then : 20790 printf %s "(cached) " >&6 20791else case e in #( 20792 e) test "$cross_compiling" = yes && 20793 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 20794if test -r "/usr/share/man/man7/attributes.7"; then 20795 ac_cv_file__usr_share_man_man7_attributes_7=yes 20796else 20797 ac_cv_file__usr_share_man_man7_attributes_7=no 20798fi ;; 20799esac 20800fi 20801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 20802printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 20803if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 20804then : 20805 SYSV_MAN_SECTIONS=false 20806else case e in #( 20807 e) SYSV_MAN_SECTIONS=true ;; 20808esac 20809fi 20810 20811 ;; 20812 *) SYSV_MAN_SECTIONS=false ;; 20813esac 20814 20815if test x$APP_MAN_SUFFIX = x ; then 20816 APP_MAN_SUFFIX=1 20817fi 20818if test x$APP_MAN_DIR = x ; then 20819 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 20820fi 20821 20822if test x$LIB_MAN_SUFFIX = x ; then 20823 LIB_MAN_SUFFIX=3 20824fi 20825if test x$LIB_MAN_DIR = x ; then 20826 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 20827fi 20828 20829if test x$FILE_MAN_SUFFIX = x ; then 20830 case $SYSV_MAN_SECTIONS in 20831 true) FILE_MAN_SUFFIX=4 ;; 20832 *) FILE_MAN_SUFFIX=5 ;; 20833 esac 20834fi 20835if test x$FILE_MAN_DIR = x ; then 20836 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 20837fi 20838 20839if test x$MISC_MAN_SUFFIX = x ; then 20840 case $SYSV_MAN_SECTIONS in 20841 true) MISC_MAN_SUFFIX=5 ;; 20842 *) MISC_MAN_SUFFIX=7 ;; 20843 esac 20844fi 20845if test x$MISC_MAN_DIR = x ; then 20846 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 20847fi 20848 20849if test x$DRIVER_MAN_SUFFIX = x ; then 20850 case $SYSV_MAN_SECTIONS in 20851 true) DRIVER_MAN_SUFFIX=7 ;; 20852 *) DRIVER_MAN_SUFFIX=4 ;; 20853 esac 20854fi 20855if test x$DRIVER_MAN_DIR = x ; then 20856 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 20857fi 20858 20859if test x$ADMIN_MAN_SUFFIX = x ; then 20860 case $SYSV_MAN_SECTIONS in 20861 true) ADMIN_MAN_SUFFIX=1m ;; 20862 *) ADMIN_MAN_SUFFIX=8 ;; 20863 esac 20864fi 20865if test x$ADMIN_MAN_DIR = x ; then 20866 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 20867fi 20868 20869 20870 20871 20872 20873 20874 20875 20876 20877 20878 20879 20880 20881 20882 20883XORG_MAN_PAGE="X Version 11" 20884 20885MAN_SUBSTS="\ 20886 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20887 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20888 -e 's|__xservername__|Xorg|g' \ 20889 -e 's|__xconfigfile__|xorg.conf|g' \ 20890 -e 's|__projectroot__|\$(prefix)|g' \ 20891 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 20892 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 20893 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 20894 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 20895 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 20896 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 20897 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 20898 20899 20900 20901 20902AM_DEFAULT_VERBOSITY=0 20903 20904 20905ac_ext=c 20906ac_cpp='$CPP $CPPFLAGS' 20907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20909ac_compiler_gnu=$ac_cv_c_compiler_gnu 20910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 20911printf %s "checking how to run the C preprocessor... " >&6; } 20912# On Suns, sometimes $CPP names a directory. 20913if test -n "$CPP" && test -d "$CPP"; then 20914 CPP= 20915fi 20916if test -z "$CPP"; then 20917 if test ${ac_cv_prog_CPP+y} 20918then : 20919 printf %s "(cached) " >&6 20920else case e in #( 20921 e) # Double quotes because $CC needs to be expanded 20922 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 20923 do 20924 ac_preproc_ok=false 20925for ac_c_preproc_warn_flag in '' yes 20926do 20927 # Use a header file that comes with gcc, so configuring glibc 20928 # with a fresh cross-compiler works. 20929 # On the NeXT, cc -E runs the code through the compiler's parser, 20930 # not just through cpp. "Syntax error" is here to catch this case. 20931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20932/* end confdefs.h. */ 20933#include <limits.h> 20934 Syntax error 20935_ACEOF 20936if ac_fn_c_try_cpp "$LINENO" 20937then : 20938 20939else case e in #( 20940 e) # Broken: fails on valid input. 20941continue ;; 20942esac 20943fi 20944rm -f conftest.err conftest.i conftest.$ac_ext 20945 20946 # OK, works on sane cases. Now check whether nonexistent headers 20947 # can be detected and how. 20948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20949/* end confdefs.h. */ 20950#include <ac_nonexistent.h> 20951_ACEOF 20952if ac_fn_c_try_cpp "$LINENO" 20953then : 20954 # Broken: success on invalid input. 20955continue 20956else case e in #( 20957 e) # Passes both tests. 20958ac_preproc_ok=: 20959break ;; 20960esac 20961fi 20962rm -f conftest.err conftest.i conftest.$ac_ext 20963 20964done 20965# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. 20966rm -f conftest.i conftest.err conftest.$ac_ext 20967if $ac_preproc_ok 20968then : 20969 break 20970fi 20971 20972 done 20973 ac_cv_prog_CPP=$CPP 20974 ;; 20975esac 20976fi 20977 CPP=$ac_cv_prog_CPP 20978else 20979 ac_cv_prog_CPP=$CPP 20980fi 20981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 20982printf "%s\n" "$CPP" >&6; } 20983ac_preproc_ok=false 20984for ac_c_preproc_warn_flag in '' yes 20985do 20986 # Use a header file that comes with gcc, so configuring glibc 20987 # with a fresh cross-compiler works. 20988 # On the NeXT, cc -E runs the code through the compiler's parser, 20989 # not just through cpp. "Syntax error" is here to catch this case. 20990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20991/* end confdefs.h. */ 20992#include <limits.h> 20993 Syntax error 20994_ACEOF 20995if ac_fn_c_try_cpp "$LINENO" 20996then : 20997 20998else case e in #( 20999 e) # Broken: fails on valid input. 21000continue ;; 21001esac 21002fi 21003rm -f conftest.err conftest.i conftest.$ac_ext 21004 21005 # OK, works on sane cases. Now check whether nonexistent headers 21006 # can be detected and how. 21007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21008/* end confdefs.h. */ 21009#include <ac_nonexistent.h> 21010_ACEOF 21011if ac_fn_c_try_cpp "$LINENO" 21012then : 21013 # Broken: success on invalid input. 21014continue 21015else case e in #( 21016 e) # Passes both tests. 21017ac_preproc_ok=: 21018break ;; 21019esac 21020fi 21021rm -f conftest.err conftest.i conftest.$ac_ext 21022 21023done 21024# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. 21025rm -f conftest.i conftest.err conftest.$ac_ext 21026if $ac_preproc_ok 21027then : 21028 21029else case e in #( 21030 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 21031printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 21032as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 21033See 'config.log' for more details" "$LINENO" 5; } ;; 21034esac 21035fi 21036 21037ac_ext=c 21038ac_cpp='$CPP $CPPFLAGS' 21039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21041ac_compiler_gnu=$ac_cv_c_compiler_gnu 21042 21043 21044 21045if test -n "$ac_tool_prefix"; then 21046 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args. 21047set dummy ${ac_tool_prefix}cpp; ac_word=$2 21048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21049printf %s "checking for $ac_word... " >&6; } 21050if test ${ac_cv_path_RAWCPP+y} 21051then : 21052 printf %s "(cached) " >&6 21053else case e in #( 21054 e) case $RAWCPP in 21055 [\\/]* | ?:[\\/]*) 21056 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path. 21057 ;; 21058 *) 21059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21060as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 21061for as_dir in $as_dummy 21062do 21063 IFS=$as_save_IFS 21064 case $as_dir in #((( 21065 '') as_dir=./ ;; 21066 */) ;; 21067 *) as_dir=$as_dir/ ;; 21068 esac 21069 for ac_exec_ext in '' $ac_executable_extensions; do 21070 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21071 ac_cv_path_RAWCPP="$as_dir$ac_word$ac_exec_ext" 21072 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21073 break 2 21074 fi 21075done 21076 done 21077IFS=$as_save_IFS 21078 21079 ;; 21080esac ;; 21081esac 21082fi 21083RAWCPP=$ac_cv_path_RAWCPP 21084if test -n "$RAWCPP"; then 21085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5 21086printf "%s\n" "$RAWCPP" >&6; } 21087else 21088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21089printf "%s\n" "no" >&6; } 21090fi 21091 21092 21093fi 21094if test -z "$ac_cv_path_RAWCPP"; then 21095 ac_pt_RAWCPP=$RAWCPP 21096 # Extract the first word of "cpp", so it can be a program name with args. 21097set dummy cpp; ac_word=$2 21098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21099printf %s "checking for $ac_word... " >&6; } 21100if test ${ac_cv_path_ac_pt_RAWCPP+y} 21101then : 21102 printf %s "(cached) " >&6 21103else case e in #( 21104 e) case $ac_pt_RAWCPP in 21105 [\\/]* | ?:[\\/]*) 21106 ac_cv_path_ac_pt_RAWCPP="$ac_pt_RAWCPP" # Let the user override the test with a path. 21107 ;; 21108 *) 21109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21110as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 21111for as_dir in $as_dummy 21112do 21113 IFS=$as_save_IFS 21114 case $as_dir in #((( 21115 '') as_dir=./ ;; 21116 */) ;; 21117 *) as_dir=$as_dir/ ;; 21118 esac 21119 for ac_exec_ext in '' $ac_executable_extensions; do 21120 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21121 ac_cv_path_ac_pt_RAWCPP="$as_dir$ac_word$ac_exec_ext" 21122 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21123 break 2 21124 fi 21125done 21126 done 21127IFS=$as_save_IFS 21128 21129 ;; 21130esac ;; 21131esac 21132fi 21133ac_pt_RAWCPP=$ac_cv_path_ac_pt_RAWCPP 21134if test -n "$ac_pt_RAWCPP"; then 21135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RAWCPP" >&5 21136printf "%s\n" "$ac_pt_RAWCPP" >&6; } 21137else 21138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21139printf "%s\n" "no" >&6; } 21140fi 21141 21142 if test "x$ac_pt_RAWCPP" = x; then 21143 RAWCPP="${CPP}" 21144 else 21145 case $cross_compiling:$ac_tool_warned in 21146yes:) 21147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 21148printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 21149ac_tool_warned=yes ;; 21150esac 21151 RAWCPP=$ac_pt_RAWCPP 21152 fi 21153else 21154 RAWCPP="$ac_cv_path_RAWCPP" 21155fi 21156 21157 21158# Check for flag to avoid builtin definitions - assumes unix is predefined, 21159# which is not the best choice for supporting other OS'es, but covers most 21160# of the ones we need for now. 21161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5 21162printf %s "checking if $RAWCPP requires -undef... " >&6; } 21163cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21164/* end confdefs.h. */ 21165Does cpp redefine unix ? 21166_ACEOF 21167if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 21168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21169printf "%s\n" "no" >&6; } 21170else 21171 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 21172 RAWCPPFLAGS=-undef 21173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21174printf "%s\n" "yes" >&6; } 21175 # under Cygwin unix is still defined even with -undef 21176 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 21177 RAWCPPFLAGS="-undef -ansi" 21178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5 21179printf "%s\n" "yes, with -ansi" >&6; } 21180 else 21181 as_fn_error $? "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5 21182 fi 21183fi 21184rm -f conftest.$ac_ext 21185 21186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5 21187printf %s "checking if $RAWCPP requires -traditional... " >&6; } 21188cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21189/* end confdefs.h. */ 21190Does cpp preserve "whitespace"? 21191_ACEOF 21192if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve "'` -eq 1 ; then 21193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21194printf "%s\n" "no" >&6; } 21195else 21196 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve "'` -eq 1 ; then 21197 TRADITIONALCPPFLAGS="-traditional" 21198 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 21199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21200printf "%s\n" "yes" >&6; } 21201 else 21202 as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5 21203 fi 21204fi 21205rm -f conftest.$ac_ext 21206 21207 21208 21209 21210 21211 21212 21213 21214# Check whether --with-lint was given. 21215if test ${with_lint+y} 21216then : 21217 withval=$with_lint; use_lint=$withval 21218else case e in #( 21219 e) use_lint=no ;; 21220esac 21221fi 21222 21223 21224# Obtain platform specific info like program name and options 21225# The lint program on FreeBSD and NetBSD is different from the one on Solaris 21226case $host_os in 21227 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 21228 lint_name=splint 21229 lint_options="-badflag" 21230 ;; 21231 *freebsd* | *netbsd*) 21232 lint_name=lint 21233 lint_options="-u -b" 21234 ;; 21235 *solaris*) 21236 lint_name=lint 21237 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 21238 ;; 21239esac 21240 21241# Test for the presence of the program (either guessed by the code or spelled out by the user) 21242if test "x$use_lint" = x"yes" ; then 21243 # Extract the first word of "$lint_name", so it can be a program name with args. 21244set dummy $lint_name; ac_word=$2 21245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21246printf %s "checking for $ac_word... " >&6; } 21247if test ${ac_cv_path_LINT+y} 21248then : 21249 printf %s "(cached) " >&6 21250else case e in #( 21251 e) case $LINT in 21252 [\\/]* | ?:[\\/]*) 21253 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 21254 ;; 21255 *) 21256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21257for as_dir in $PATH 21258do 21259 IFS=$as_save_IFS 21260 case $as_dir in #((( 21261 '') as_dir=./ ;; 21262 */) ;; 21263 *) as_dir=$as_dir/ ;; 21264 esac 21265 for ac_exec_ext in '' $ac_executable_extensions; do 21266 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21267 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext" 21268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21269 break 2 21270 fi 21271done 21272 done 21273IFS=$as_save_IFS 21274 21275 ;; 21276esac ;; 21277esac 21278fi 21279LINT=$ac_cv_path_LINT 21280if test -n "$LINT"; then 21281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 21282printf "%s\n" "$LINT" >&6; } 21283else 21284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21285printf "%s\n" "no" >&6; } 21286fi 21287 21288 21289 if test "x$LINT" = "x"; then 21290 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 21291 fi 21292elif test "x$use_lint" = x"no" ; then 21293 if test "x$LINT" != "x"; then 21294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 21295printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 21296 fi 21297else 21298 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 21299fi 21300 21301# User supplied flags override default flags 21302if test "x$LINT_FLAGS" != "x"; then 21303 lint_options=$LINT_FLAGS 21304fi 21305 21306LINT_FLAGS=$lint_options 21307 21308 if test "x$LINT" != x; then 21309 LINT_TRUE= 21310 LINT_FALSE='#' 21311else 21312 LINT_TRUE='#' 21313 LINT_FALSE= 21314fi 21315 21316 21317 21318 21319# Checks for programs. 21320# Check for mktemp to prevent security issue noted in Xorg bug #5898 21321# See https://bugs.freedesktop.org/show_bug.cgi?id=5898 for details. 21322# Extract the first word of "mktemp", so it can be a program name with args. 21323set dummy mktemp; ac_word=$2 21324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21325printf %s "checking for $ac_word... " >&6; } 21326if test ${ac_cv_path_MKTEMP_COMMAND+y} 21327then : 21328 printf %s "(cached) " >&6 21329else case e in #( 21330 e) case $MKTEMP_COMMAND in 21331 [\\/]* | ?:[\\/]*) 21332 ac_cv_path_MKTEMP_COMMAND="$MKTEMP_COMMAND" # Let the user override the test with a path. 21333 ;; 21334 *) 21335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21336for as_dir in $PATH 21337do 21338 IFS=$as_save_IFS 21339 case $as_dir in #((( 21340 '') as_dir=./ ;; 21341 */) ;; 21342 *) as_dir=$as_dir/ ;; 21343 esac 21344 for ac_exec_ext in '' $ac_executable_extensions; do 21345 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21346 ac_cv_path_MKTEMP_COMMAND="$as_dir$ac_word$ac_exec_ext" 21347 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21348 break 2 21349 fi 21350done 21351 done 21352IFS=$as_save_IFS 21353 21354 ;; 21355esac ;; 21356esac 21357fi 21358MKTEMP_COMMAND=$ac_cv_path_MKTEMP_COMMAND 21359if test -n "$MKTEMP_COMMAND"; then 21360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKTEMP_COMMAND" >&5 21361printf "%s\n" "$MKTEMP_COMMAND" >&6; } 21362else 21363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21364printf "%s\n" "no" >&6; } 21365fi 21366 21367 21368 if test x$MKTEMP_COMMAND != x; then 21369 HAVE_MKTEMP_COMMAND_TRUE= 21370 HAVE_MKTEMP_COMMAND_FALSE='#' 21371else 21372 HAVE_MKTEMP_COMMAND_TRUE='#' 21373 HAVE_MKTEMP_COMMAND_FALSE= 21374fi 21375 21376 21377#------------------------------------------------------------------------------ 21378# Check for system libraries 21379# 21380# AC_SEARCH_LIBS: tests using $LIBS and tests again with each listed library. 21381# pre-pends the found library to $LIBS. 21382# 21383#------------------------------------------------------------------------------ 21384 21385 21386pkg_failed=no 21387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XDM" >&5 21388printf %s "checking for XDM... " >&6; } 21389 21390if test -n "$XDM_CFLAGS"; then 21391 pkg_cv_XDM_CFLAGS="$XDM_CFLAGS" 21392 elif test -n "$PKG_CONFIG"; then 21393 if test -n "$PKG_CONFIG" && \ 21394 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmu x11 xau xproto >= 7.0.17\""; } >&5 21395 ($PKG_CONFIG --exists --print-errors "xmu x11 xau xproto >= 7.0.17") 2>&5 21396 ac_status=$? 21397 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21398 test $ac_status = 0; }; then 21399 pkg_cv_XDM_CFLAGS=`$PKG_CONFIG --cflags "xmu x11 xau xproto >= 7.0.17" 2>/dev/null` 21400 test "x$?" != "x0" && pkg_failed=yes 21401else 21402 pkg_failed=yes 21403fi 21404 else 21405 pkg_failed=untried 21406fi 21407if test -n "$XDM_LIBS"; then 21408 pkg_cv_XDM_LIBS="$XDM_LIBS" 21409 elif test -n "$PKG_CONFIG"; then 21410 if test -n "$PKG_CONFIG" && \ 21411 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmu x11 xau xproto >= 7.0.17\""; } >&5 21412 ($PKG_CONFIG --exists --print-errors "xmu x11 xau xproto >= 7.0.17") 2>&5 21413 ac_status=$? 21414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21415 test $ac_status = 0; }; then 21416 pkg_cv_XDM_LIBS=`$PKG_CONFIG --libs "xmu x11 xau xproto >= 7.0.17" 2>/dev/null` 21417 test "x$?" != "x0" && pkg_failed=yes 21418else 21419 pkg_failed=yes 21420fi 21421 else 21422 pkg_failed=untried 21423fi 21424 21425 21426 21427if test $pkg_failed = yes; then 21428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21429printf "%s\n" "no" >&6; } 21430 21431if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21432 _pkg_short_errors_supported=yes 21433else 21434 _pkg_short_errors_supported=no 21435fi 21436 if test $_pkg_short_errors_supported = yes; then 21437 XDM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xmu x11 xau xproto >= 7.0.17" 2>&1` 21438 else 21439 XDM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xmu x11 xau xproto >= 7.0.17" 2>&1` 21440 fi 21441 # Put the nasty error message in config.log where it belongs 21442 echo "$XDM_PKG_ERRORS" >&5 21443 21444 as_fn_error $? "Package requirements (xmu x11 xau xproto >= 7.0.17) were not met: 21445 21446$XDM_PKG_ERRORS 21447 21448Consider adjusting the PKG_CONFIG_PATH environment variable if you 21449installed software in a non-standard prefix. 21450 21451Alternatively, you may set the environment variables XDM_CFLAGS 21452and XDM_LIBS to avoid the need to call pkg-config. 21453See the pkg-config man page for more details." "$LINENO" 5 21454elif test $pkg_failed = untried; then 21455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21456printf "%s\n" "no" >&6; } 21457 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 21458printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 21459as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 21460is in your PATH or set the PKG_CONFIG environment variable to the full 21461path to pkg-config. 21462 21463Alternatively, you may set the environment variables XDM_CFLAGS 21464and XDM_LIBS to avoid the need to call pkg-config. 21465See the pkg-config man page for more details. 21466 21467To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21468See 'config.log' for more details" "$LINENO" 5; } 21469else 21470 XDM_CFLAGS=$pkg_cv_XDM_CFLAGS 21471 XDM_LIBS=$pkg_cv_XDM_LIBS 21472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21473printf "%s\n" "yes" >&6; } 21474 21475fi 21476 21477pkg_failed=no 21478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBBSD" >&5 21479printf %s "checking for LIBBSD... " >&6; } 21480 21481if test -n "$LIBBSD_CFLAGS"; then 21482 pkg_cv_LIBBSD_CFLAGS="$LIBBSD_CFLAGS" 21483 elif test -n "$PKG_CONFIG"; then 21484 if test -n "$PKG_CONFIG" && \ 21485 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay\""; } >&5 21486 ($PKG_CONFIG --exists --print-errors "libbsd-overlay") 2>&5 21487 ac_status=$? 21488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21489 test $ac_status = 0; }; then 21490 pkg_cv_LIBBSD_CFLAGS=`$PKG_CONFIG --cflags "libbsd-overlay" 2>/dev/null` 21491 test "x$?" != "x0" && pkg_failed=yes 21492else 21493 pkg_failed=yes 21494fi 21495 else 21496 pkg_failed=untried 21497fi 21498if test -n "$LIBBSD_LIBS"; then 21499 pkg_cv_LIBBSD_LIBS="$LIBBSD_LIBS" 21500 elif test -n "$PKG_CONFIG"; then 21501 if test -n "$PKG_CONFIG" && \ 21502 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay\""; } >&5 21503 ($PKG_CONFIG --exists --print-errors "libbsd-overlay") 2>&5 21504 ac_status=$? 21505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21506 test $ac_status = 0; }; then 21507 pkg_cv_LIBBSD_LIBS=`$PKG_CONFIG --libs "libbsd-overlay" 2>/dev/null` 21508 test "x$?" != "x0" && pkg_failed=yes 21509else 21510 pkg_failed=yes 21511fi 21512 else 21513 pkg_failed=untried 21514fi 21515 21516 21517 21518if test $pkg_failed = yes; then 21519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21520printf "%s\n" "no" >&6; } 21521 21522if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21523 _pkg_short_errors_supported=yes 21524else 21525 _pkg_short_errors_supported=no 21526fi 21527 if test $_pkg_short_errors_supported = yes; then 21528 LIBBSD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libbsd-overlay" 2>&1` 21529 else 21530 LIBBSD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libbsd-overlay" 2>&1` 21531 fi 21532 # Put the nasty error message in config.log where it belongs 21533 echo "$LIBBSD_PKG_ERRORS" >&5 21534 21535 : 21536elif test $pkg_failed = untried; then 21537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21538printf "%s\n" "no" >&6; } 21539 : 21540else 21541 LIBBSD_CFLAGS=$pkg_cv_LIBBSD_CFLAGS 21542 LIBBSD_LIBS=$pkg_cv_LIBBSD_LIBS 21543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21544printf "%s\n" "yes" >&6; } 21545 : 21546fi 21547 21548 21549 21550# Function getifaddrs() comes from the C library, Solaris 11 -lsocket, or 21551# the -lnsl name service library 21552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5 21553printf %s "checking for library containing getifaddrs... " >&6; } 21554if test ${ac_cv_search_getifaddrs+y} 21555then : 21556 printf %s "(cached) " >&6 21557else case e in #( 21558 e) ac_func_search_save_LIBS=$LIBS 21559cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21560/* end confdefs.h. */ 21561 21562/* Override any GCC internal prototype to avoid an error. 21563 Use char because int might match the return type of a GCC 21564 builtin and then its argument prototype would still apply. 21565 The 'extern "C"' is for builds by C++ compilers; 21566 although this is not generally supported in C code supporting it here 21567 has little cost and some practical benefit (sr 110532). */ 21568#ifdef __cplusplus 21569extern "C" 21570#endif 21571char getifaddrs (void); 21572int 21573main (void) 21574{ 21575return getifaddrs (); 21576 ; 21577 return 0; 21578} 21579_ACEOF 21580for ac_lib in '' socket nsl 21581do 21582 if test -z "$ac_lib"; then 21583 ac_res="none required" 21584 else 21585 ac_res=-l$ac_lib 21586 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21587 fi 21588 if ac_fn_c_try_link "$LINENO" 21589then : 21590 ac_cv_search_getifaddrs=$ac_res 21591fi 21592rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21593 conftest$ac_exeext 21594 if test ${ac_cv_search_getifaddrs+y} 21595then : 21596 break 21597fi 21598done 21599if test ${ac_cv_search_getifaddrs+y} 21600then : 21601 21602else case e in #( 21603 e) ac_cv_search_getifaddrs=no ;; 21604esac 21605fi 21606rm conftest.$ac_ext 21607LIBS=$ac_func_search_save_LIBS ;; 21608esac 21609fi 21610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5 21611printf "%s\n" "$ac_cv_search_getifaddrs" >&6; } 21612ac_res=$ac_cv_search_getifaddrs 21613if test "$ac_res" != no 21614then : 21615 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21616 21617fi 21618 21619 21620# Function getspnam() comes from the C library, System V -lsec, UnixWare 7 -lgen 21621# or Old Linux versions -lshadow 21622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getspnam" >&5 21623printf %s "checking for library containing getspnam... " >&6; } 21624if test ${ac_cv_search_getspnam+y} 21625then : 21626 printf %s "(cached) " >&6 21627else case e in #( 21628 e) ac_func_search_save_LIBS=$LIBS 21629cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21630/* end confdefs.h. */ 21631 21632/* Override any GCC internal prototype to avoid an error. 21633 Use char because int might match the return type of a GCC 21634 builtin and then its argument prototype would still apply. 21635 The 'extern "C"' is for builds by C++ compilers; 21636 although this is not generally supported in C code supporting it here 21637 has little cost and some practical benefit (sr 110532). */ 21638#ifdef __cplusplus 21639extern "C" 21640#endif 21641char getspnam (void); 21642int 21643main (void) 21644{ 21645return getspnam (); 21646 ; 21647 return 0; 21648} 21649_ACEOF 21650for ac_lib in '' sec gen shadow 21651do 21652 if test -z "$ac_lib"; then 21653 ac_res="none required" 21654 else 21655 ac_res=-l$ac_lib 21656 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21657 fi 21658 if ac_fn_c_try_link "$LINENO" 21659then : 21660 ac_cv_search_getspnam=$ac_res 21661fi 21662rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21663 conftest$ac_exeext 21664 if test ${ac_cv_search_getspnam+y} 21665then : 21666 break 21667fi 21668done 21669if test ${ac_cv_search_getspnam+y} 21670then : 21671 21672else case e in #( 21673 e) ac_cv_search_getspnam=no ;; 21674esac 21675fi 21676rm conftest.$ac_ext 21677LIBS=$ac_func_search_save_LIBS ;; 21678esac 21679fi 21680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspnam" >&5 21681printf "%s\n" "$ac_cv_search_getspnam" >&6; } 21682ac_res=$ac_cv_search_getspnam 21683if test "$ac_res" != no 21684then : 21685 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21686 21687fi 21688 21689 21690# Function setproctitle() is in BSD -lutil or GNU systems -lbsd but N/A on Solaris 21691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setproctitle" >&5 21692printf %s "checking for library containing setproctitle... " >&6; } 21693if test ${ac_cv_search_setproctitle+y} 21694then : 21695 printf %s "(cached) " >&6 21696else case e in #( 21697 e) ac_func_search_save_LIBS=$LIBS 21698cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21699/* end confdefs.h. */ 21700 21701/* Override any GCC internal prototype to avoid an error. 21702 Use char because int might match the return type of a GCC 21703 builtin and then its argument prototype would still apply. 21704 The 'extern "C"' is for builds by C++ compilers; 21705 although this is not generally supported in C code supporting it here 21706 has little cost and some practical benefit (sr 110532). */ 21707#ifdef __cplusplus 21708extern "C" 21709#endif 21710char setproctitle (void); 21711int 21712main (void) 21713{ 21714return setproctitle (); 21715 ; 21716 return 0; 21717} 21718_ACEOF 21719for ac_lib in '' util 21720do 21721 if test -z "$ac_lib"; then 21722 ac_res="none required" 21723 else 21724 ac_res=-l$ac_lib 21725 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21726 fi 21727 if ac_fn_c_try_link "$LINENO" 21728then : 21729 ac_cv_search_setproctitle=$ac_res 21730fi 21731rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21732 conftest$ac_exeext 21733 if test ${ac_cv_search_setproctitle+y} 21734then : 21735 break 21736fi 21737done 21738if test ${ac_cv_search_setproctitle+y} 21739then : 21740 21741else case e in #( 21742 e) ac_cv_search_setproctitle=no ;; 21743esac 21744fi 21745rm conftest.$ac_ext 21746LIBS=$ac_func_search_save_LIBS ;; 21747esac 21748fi 21749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setproctitle" >&5 21750printf "%s\n" "$ac_cv_search_setproctitle" >&6; } 21751ac_res=$ac_cv_search_setproctitle 21752if test "$ac_res" != no 21753then : 21754 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21755 21756fi 21757 21758 21759if test "x$ac_cv_search_setproctitle" = "xno"; then 21760 if test "x$LIBBSD_LIBS" != "x"; then 21761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setproctitle in libbsd" >&5 21762printf %s "checking for setproctitle in libbsd... " >&6; } 21763 xdm_save_LIBS="$LIBS" 21764 LIBS="$LIBS $XDM_LIBS $LIBBSD_LIBS" 21765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21766/* end confdefs.h. */ 21767 21768/* Override any GCC internal prototype to avoid an error. 21769 Use char because int might match the return type of a GCC 21770 builtin and then its argument prototype would still apply. 21771 The 'extern "C"' is for builds by C++ compilers; 21772 although this is not generally supported in C code supporting it here 21773 has little cost and some practical benefit (sr 110532). */ 21774#ifdef __cplusplus 21775extern "C" 21776#endif 21777char setproctitle (void); 21778int 21779main (void) 21780{ 21781return setproctitle (); 21782 ; 21783 return 0; 21784} 21785_ACEOF 21786if ac_fn_c_try_link "$LINENO" 21787then : 21788 xdm_res="yes" 21789else case e in #( 21790 e) xdm_res="no" ;; 21791esac 21792fi 21793rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21794 conftest$ac_exeext conftest.$ac_ext 21795 LIBS="$xdm_save_LIBS" 21796 if test "x$xdm_res" = "xyes" 21797then : 21798 21799 XDM_CFLAGS="$XDM_CFLAGS $LIBBSD_CFLAGS" 21800 XDM_LIBS="$XDM_LIBS $LIBBSD_LIBS" 21801 21802fi 21803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xdm_res" >&5 21804printf "%s\n" "$xdm_res" >&6; } 21805 fi 21806fi 21807 21808# Function setusercontext() is in BSD -lutil but N/A on Solaris or GNU systems 21809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5 21810printf %s "checking for library containing setusercontext... " >&6; } 21811if test ${ac_cv_search_setusercontext+y} 21812then : 21813 printf %s "(cached) " >&6 21814else case e in #( 21815 e) ac_func_search_save_LIBS=$LIBS 21816cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21817/* end confdefs.h. */ 21818 21819/* Override any GCC internal prototype to avoid an error. 21820 Use char because int might match the return type of a GCC 21821 builtin and then its argument prototype would still apply. 21822 The 'extern "C"' is for builds by C++ compilers; 21823 although this is not generally supported in C code supporting it here 21824 has little cost and some practical benefit (sr 110532). */ 21825#ifdef __cplusplus 21826extern "C" 21827#endif 21828char setusercontext (void); 21829int 21830main (void) 21831{ 21832return setusercontext (); 21833 ; 21834 return 0; 21835} 21836_ACEOF 21837for ac_lib in '' util 21838do 21839 if test -z "$ac_lib"; then 21840 ac_res="none required" 21841 else 21842 ac_res=-l$ac_lib 21843 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21844 fi 21845 if ac_fn_c_try_link "$LINENO" 21846then : 21847 ac_cv_search_setusercontext=$ac_res 21848fi 21849rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21850 conftest$ac_exeext 21851 if test ${ac_cv_search_setusercontext+y} 21852then : 21853 break 21854fi 21855done 21856if test ${ac_cv_search_setusercontext+y} 21857then : 21858 21859else case e in #( 21860 e) ac_cv_search_setusercontext=no ;; 21861esac 21862fi 21863rm conftest.$ac_ext 21864LIBS=$ac_func_search_save_LIBS ;; 21865esac 21866fi 21867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5 21868printf "%s\n" "$ac_cv_search_setusercontext" >&6; } 21869ac_res=$ac_cv_search_setusercontext 21870if test "$ac_res" != no 21871then : 21872 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21873 21874fi 21875 21876 21877# Function arc4random() is in BSD standard C, glibc 2.36+, or GNU systems -lbsd 21878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing arc4random" >&5 21879printf %s "checking for library containing arc4random... " >&6; } 21880if test ${ac_cv_search_arc4random+y} 21881then : 21882 printf %s "(cached) " >&6 21883else case e in #( 21884 e) ac_func_search_save_LIBS=$LIBS 21885cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21886/* end confdefs.h. */ 21887 21888/* Override any GCC internal prototype to avoid an error. 21889 Use char because int might match the return type of a GCC 21890 builtin and then its argument prototype would still apply. 21891 The 'extern "C"' is for builds by C++ compilers; 21892 although this is not generally supported in C code supporting it here 21893 has little cost and some practical benefit (sr 110532). */ 21894#ifdef __cplusplus 21895extern "C" 21896#endif 21897char arc4random (void); 21898int 21899main (void) 21900{ 21901return arc4random (); 21902 ; 21903 return 0; 21904} 21905_ACEOF 21906for ac_lib in '' 21907do 21908 if test -z "$ac_lib"; then 21909 ac_res="none required" 21910 else 21911 ac_res=-l$ac_lib 21912 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21913 fi 21914 if ac_fn_c_try_link "$LINENO" 21915then : 21916 ac_cv_search_arc4random=$ac_res 21917fi 21918rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21919 conftest$ac_exeext 21920 if test ${ac_cv_search_arc4random+y} 21921then : 21922 break 21923fi 21924done 21925if test ${ac_cv_search_arc4random+y} 21926then : 21927 21928else case e in #( 21929 e) ac_cv_search_arc4random=no ;; 21930esac 21931fi 21932rm conftest.$ac_ext 21933LIBS=$ac_func_search_save_LIBS ;; 21934esac 21935fi 21936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_arc4random" >&5 21937printf "%s\n" "$ac_cv_search_arc4random" >&6; } 21938ac_res=$ac_cv_search_arc4random 21939if test "$ac_res" != no 21940then : 21941 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21942 HAVE_ARC4RANDOM="yes" 21943fi 21944 21945 21946if test "x$ac_cv_search_arc4random" = "xno"; then 21947 if test "x$LIBBSD_LIBS" != "x"; then 21948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for arc4random in libbsd" >&5 21949printf %s "checking for arc4random in libbsd... " >&6; } 21950 xdm_save_LIBS="$LIBS" 21951 LIBS="$LIBS $XDM_LIBS $LIBBSD_LIBS" 21952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21953/* end confdefs.h. */ 21954 21955/* Override any GCC internal prototype to avoid an error. 21956 Use char because int might match the return type of a GCC 21957 builtin and then its argument prototype would still apply. 21958 The 'extern "C"' is for builds by C++ compilers; 21959 although this is not generally supported in C code supporting it here 21960 has little cost and some practical benefit (sr 110532). */ 21961#ifdef __cplusplus 21962extern "C" 21963#endif 21964char arc4random (void); 21965int 21966main (void) 21967{ 21968return arc4random (); 21969 ; 21970 return 0; 21971} 21972_ACEOF 21973if ac_fn_c_try_link "$LINENO" 21974then : 21975 xdm_res="yes" 21976else case e in #( 21977 e) xdm_res="no" ;; 21978esac 21979fi 21980rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21981 conftest$ac_exeext conftest.$ac_ext 21982 LIBS="$xdm_save_LIBS" 21983 if test "x$xdm_res" = "xyes" 21984then : 21985 21986 XDM_CFLAGS="$XDM_CFLAGS $LIBBSD_CFLAGS" 21987 XDM_LIBS="$XDM_LIBS $LIBBSD_LIBS" 21988 HAVE_ARC4RANDOM="yes" 21989fi 21990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xdm_res" >&5 21991printf "%s\n" "$xdm_res" >&6; } 21992 fi 21993fi 21994 21995 if test x$HAVE_ARC4RANDOM = xyes; then 21996 HAVE_ARC4RANDOM_TRUE= 21997 HAVE_ARC4RANDOM_FALSE='#' 21998else 21999 HAVE_ARC4RANDOM_TRUE='#' 22000 HAVE_ARC4RANDOM_FALSE= 22001fi 22002 22003 22004# Function crypt() comes from the C library or the -lcrypt data encryption library 22005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 22006printf %s "checking for library containing crypt... " >&6; } 22007if test ${ac_cv_search_crypt+y} 22008then : 22009 printf %s "(cached) " >&6 22010else case e in #( 22011 e) ac_func_search_save_LIBS=$LIBS 22012cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22013/* end confdefs.h. */ 22014 22015/* Override any GCC internal prototype to avoid an error. 22016 Use char because int might match the return type of a GCC 22017 builtin and then its argument prototype would still apply. 22018 The 'extern "C"' is for builds by C++ compilers; 22019 although this is not generally supported in C code supporting it here 22020 has little cost and some practical benefit (sr 110532). */ 22021#ifdef __cplusplus 22022extern "C" 22023#endif 22024char crypt (void); 22025int 22026main (void) 22027{ 22028return crypt (); 22029 ; 22030 return 0; 22031} 22032_ACEOF 22033for ac_lib in '' crypt 22034do 22035 if test -z "$ac_lib"; then 22036 ac_res="none required" 22037 else 22038 ac_res=-l$ac_lib 22039 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22040 fi 22041 if ac_fn_c_try_link "$LINENO" 22042then : 22043 ac_cv_search_crypt=$ac_res 22044fi 22045rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22046 conftest$ac_exeext 22047 if test ${ac_cv_search_crypt+y} 22048then : 22049 break 22050fi 22051done 22052if test ${ac_cv_search_crypt+y} 22053then : 22054 22055else case e in #( 22056 e) ac_cv_search_crypt=no ;; 22057esac 22058fi 22059rm conftest.$ac_ext 22060LIBS=$ac_func_search_save_LIBS ;; 22061esac 22062fi 22063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 22064printf "%s\n" "$ac_cv_search_crypt" >&6; } 22065ac_res=$ac_cv_search_crypt 22066if test "$ac_res" != no 22067then : 22068 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22069 22070fi 22071 22072 22073# Function dl() comes from the C library or -ldl 22074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 22075printf %s "checking for library containing dlopen... " >&6; } 22076if test ${ac_cv_search_dlopen+y} 22077then : 22078 printf %s "(cached) " >&6 22079else case e in #( 22080 e) ac_func_search_save_LIBS=$LIBS 22081cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22082/* end confdefs.h. */ 22083 22084/* Override any GCC internal prototype to avoid an error. 22085 Use char because int might match the return type of a GCC 22086 builtin and then its argument prototype would still apply. 22087 The 'extern "C"' is for builds by C++ compilers; 22088 although this is not generally supported in C code supporting it here 22089 has little cost and some practical benefit (sr 110532). */ 22090#ifdef __cplusplus 22091extern "C" 22092#endif 22093char dlopen (void); 22094int 22095main (void) 22096{ 22097return dlopen (); 22098 ; 22099 return 0; 22100} 22101_ACEOF 22102for ac_lib in '' dl 22103do 22104 if test -z "$ac_lib"; then 22105 ac_res="none required" 22106 else 22107 ac_res=-l$ac_lib 22108 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22109 fi 22110 if ac_fn_c_try_link "$LINENO" 22111then : 22112 ac_cv_search_dlopen=$ac_res 22113fi 22114rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22115 conftest$ac_exeext 22116 if test ${ac_cv_search_dlopen+y} 22117then : 22118 break 22119fi 22120done 22121if test ${ac_cv_search_dlopen+y} 22122then : 22123 22124else case e in #( 22125 e) ac_cv_search_dlopen=no ;; 22126esac 22127fi 22128rm conftest.$ac_ext 22129LIBS=$ac_func_search_save_LIBS ;; 22130esac 22131fi 22132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 22133printf "%s\n" "$ac_cv_search_dlopen" >&6; } 22134ac_res=$ac_cv_search_dlopen 22135if test "$ac_res" != no 22136then : 22137 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22138 22139fi 22140 22141 22142# Find needed libraries for TCP sockets (pre-pended in $LIBS) 22143 22144 22145 case $host_os in 22146 mingw*) unixdef="no" ;; 22147 *) unixdef="yes" ;; 22148 esac 22149 # Check whether --enable-unix-transport was given. 22150if test ${enable_unix_transport+y} 22151then : 22152 enableval=$enable_unix_transport; UNIXCONN=$enableval 22153else case e in #( 22154 e) UNIXCONN=$unixdef ;; 22155esac 22156fi 22157 22158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 22159printf %s "checking if Xtrans should support UNIX socket connections... " >&6; } 22160 if test "$UNIXCONN" = "yes"; then 22161 22162printf "%s\n" "#define UNIXCONN 1" >>confdefs.h 22163 22164 fi 22165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 22166printf "%s\n" "$UNIXCONN" >&6; } 22167 # Check whether --enable-tcp-transport was given. 22168if test ${enable_tcp_transport+y} 22169then : 22170 enableval=$enable_tcp_transport; TCPCONN=$enableval 22171else case e in #( 22172 e) TCPCONN=yes ;; 22173esac 22174fi 22175 22176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 22177printf %s "checking if Xtrans should support TCP socket connections... " >&6; } 22178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 22179printf "%s\n" "$TCPCONN" >&6; } 22180 if test "$TCPCONN" = "yes"; then 22181 22182printf "%s\n" "#define TCPCONN 1" >>confdefs.h 22183 22184 22185 # SVR4 hides these in libraries other than libc 22186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 22187printf %s "checking for library containing socket... " >&6; } 22188if test ${ac_cv_search_socket+y} 22189then : 22190 printf %s "(cached) " >&6 22191else case e in #( 22192 e) ac_func_search_save_LIBS=$LIBS 22193cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22194/* end confdefs.h. */ 22195 22196/* Override any GCC internal prototype to avoid an error. 22197 Use char because int might match the return type of a GCC 22198 builtin and then its argument prototype would still apply. 22199 The 'extern "C"' is for builds by C++ compilers; 22200 although this is not generally supported in C code supporting it here 22201 has little cost and some practical benefit (sr 110532). */ 22202#ifdef __cplusplus 22203extern "C" 22204#endif 22205char socket (void); 22206int 22207main (void) 22208{ 22209return socket (); 22210 ; 22211 return 0; 22212} 22213_ACEOF 22214for ac_lib in '' socket 22215do 22216 if test -z "$ac_lib"; then 22217 ac_res="none required" 22218 else 22219 ac_res=-l$ac_lib 22220 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22221 fi 22222 if ac_fn_c_try_link "$LINENO" 22223then : 22224 ac_cv_search_socket=$ac_res 22225fi 22226rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22227 conftest$ac_exeext 22228 if test ${ac_cv_search_socket+y} 22229then : 22230 break 22231fi 22232done 22233if test ${ac_cv_search_socket+y} 22234then : 22235 22236else case e in #( 22237 e) ac_cv_search_socket=no ;; 22238esac 22239fi 22240rm conftest.$ac_ext 22241LIBS=$ac_func_search_save_LIBS ;; 22242esac 22243fi 22244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 22245printf "%s\n" "$ac_cv_search_socket" >&6; } 22246ac_res=$ac_cv_search_socket 22247if test "$ac_res" != no 22248then : 22249 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22250 22251fi 22252 22253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 22254printf %s "checking for library containing gethostbyname... " >&6; } 22255if test ${ac_cv_search_gethostbyname+y} 22256then : 22257 printf %s "(cached) " >&6 22258else case e in #( 22259 e) ac_func_search_save_LIBS=$LIBS 22260cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22261/* end confdefs.h. */ 22262 22263/* Override any GCC internal prototype to avoid an error. 22264 Use char because int might match the return type of a GCC 22265 builtin and then its argument prototype would still apply. 22266 The 'extern "C"' is for builds by C++ compilers; 22267 although this is not generally supported in C code supporting it here 22268 has little cost and some practical benefit (sr 110532). */ 22269#ifdef __cplusplus 22270extern "C" 22271#endif 22272char gethostbyname (void); 22273int 22274main (void) 22275{ 22276return gethostbyname (); 22277 ; 22278 return 0; 22279} 22280_ACEOF 22281for ac_lib in '' nsl 22282do 22283 if test -z "$ac_lib"; then 22284 ac_res="none required" 22285 else 22286 ac_res=-l$ac_lib 22287 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22288 fi 22289 if ac_fn_c_try_link "$LINENO" 22290then : 22291 ac_cv_search_gethostbyname=$ac_res 22292fi 22293rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22294 conftest$ac_exeext 22295 if test ${ac_cv_search_gethostbyname+y} 22296then : 22297 break 22298fi 22299done 22300if test ${ac_cv_search_gethostbyname+y} 22301then : 22302 22303else case e in #( 22304 e) ac_cv_search_gethostbyname=no ;; 22305esac 22306fi 22307rm conftest.$ac_ext 22308LIBS=$ac_func_search_save_LIBS ;; 22309esac 22310fi 22311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 22312printf "%s\n" "$ac_cv_search_gethostbyname" >&6; } 22313ac_res=$ac_cv_search_gethostbyname 22314if test "$ac_res" != no 22315then : 22316 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22317 22318fi 22319 22320 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 22321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 22322printf %s "checking for main in -lws2_32... " >&6; } 22323if test ${ac_cv_lib_ws2_32_main+y} 22324then : 22325 printf %s "(cached) " >&6 22326else case e in #( 22327 e) ac_check_lib_save_LIBS=$LIBS 22328LIBS="-lws2_32 $LIBS" 22329cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22330/* end confdefs.h. */ 22331 22332 22333int 22334main (void) 22335{ 22336return main (); 22337 ; 22338 return 0; 22339} 22340_ACEOF 22341if ac_fn_c_try_link "$LINENO" 22342then : 22343 ac_cv_lib_ws2_32_main=yes 22344else case e in #( 22345 e) ac_cv_lib_ws2_32_main=no ;; 22346esac 22347fi 22348rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22349 conftest$ac_exeext conftest.$ac_ext 22350LIBS=$ac_check_lib_save_LIBS ;; 22351esac 22352fi 22353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 22354printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; } 22355if test "x$ac_cv_lib_ws2_32_main" = xyes 22356then : 22357 printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h 22358 22359 LIBS="-lws2_32 $LIBS" 22360 22361fi 22362 22363 fi 22364 22365 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 22366 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 22367if test "x$ac_cv_func_getaddrinfo" = xyes 22368then : 22369 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h 22370 22371fi 22372ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 22373if test "x$ac_cv_func_inet_ntop" = xyes 22374then : 22375 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h 22376 22377fi 22378 22379 22380 # Check whether --enable-ipv6 was given. 22381if test ${enable_ipv6+y} 22382then : 22383 enableval=$enable_ipv6; IPV6CONN=$enableval 22384else case e in #( 22385 e) IPV6CONN=$ac_cv_func_getaddrinfo ;; 22386esac 22387fi 22388 22389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 22390printf %s "checking if IPv6 support should be built... " >&6; } 22391 if test "$IPV6CONN" = "yes"; then 22392 22393printf "%s\n" "#define IPv6 1" >>confdefs.h 22394 22395 fi 22396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 22397printf "%s\n" "$IPV6CONN" >&6; } 22398 22399 # 4.3BSD-Reno added a new member to struct sockaddr_in 22400 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 22401#include <sys/types.h> 22402#include <sys/socket.h> 22403#include <netinet/in.h> 22404 22405" 22406if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes 22407then : 22408 22409printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h 22410 22411fi 22412 22413 22414 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 22415 # and added a type defined to be large enough to hold any sockaddr format. 22416 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 22417$ac_includes_default 22418#include <sys/socket.h> 22419 22420" 22421if test "x$ac_cv_type_socklen_t" = xyes 22422then : 22423 22424printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h 22425 22426 22427fi 22428ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" " 22429$ac_includes_default 22430#include <sys/socket.h> 22431 22432" 22433if test "x$ac_cv_type_struct_sockaddr_storage" = xyes 22434then : 22435 22436printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h 22437 22438 22439fi 22440 22441 22442 # XPG4v2/UNIX95 added msg_control - check to see if we need to define 22443 # _XOPEN_SOURCE to get it (such as on Solaris) 22444 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 22445$ac_includes_default 22446#include <sys/socket.h> 22447 22448" 22449if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 22450then : 22451 22452fi 22453 22454 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 22455 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 22456 unset ac_cv_member_struct_msghdr_msg_control 22457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 22458printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} 22459 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 22460#define _XOPEN_SOURCE 600 22461$ac_includes_default 22462#include <sys/socket.h> 22463 22464" 22465if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 22466then : 22467 22468printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h 22469 22470 22471fi 22472 22473 fi 22474 # If that didn't work, fall back to XPG5/UNIX98 with C89 22475 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 22476 unset ac_cv_member_struct_msghdr_msg_control 22477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 22478printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} 22479 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 22480#define _XOPEN_SOURCE 500 22481$ac_includes_default 22482#include <sys/socket.h> 22483 22484" 22485if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 22486then : 22487 22488printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 22489 22490 22491fi 22492 22493 fi 22494 22495 22496 22497 fi 22498 case $host_os in 22499 solaris*) localdef="yes" ;; 22500 *) localdef="no" ;; 22501 esac 22502 # Check whether --enable-local-transport was given. 22503if test ${enable_local_transport+y} 22504then : 22505 enableval=$enable_local_transport; LOCALCONN=$enableval 22506else case e in #( 22507 e) LOCALCONN=$localdef ;; 22508esac 22509fi 22510 22511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 22512printf %s "checking if Xtrans should support os-specific local connections... " >&6; } 22513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 22514printf "%s\n" "$LOCALCONN" >&6; } 22515 if test "$LOCALCONN" = "yes"; then 22516 22517printf "%s\n" "#define LOCALCONN 1" >>confdefs.h 22518 22519 fi 22520 22521 # Other functions Xtrans may need 22522 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 22523if test "x$ac_cv_func_strcasecmp" = xyes 22524then : 22525 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 22526 22527fi 22528ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 22529if test "x$ac_cv_func_strlcpy" = xyes 22530then : 22531 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 22532 22533fi 22534 22535 22536 22537 22538# Sets $SECURE_RPC to "yes" or "no" using libraries found above from $LIBS 22539 22540 # Check whether --enable-secure-rpc was given. 22541if test ${enable_secure_rpc+y} 22542then : 22543 enableval=$enable_secure_rpc; SECURE_RPC=$enableval 22544else case e in #( 22545 e) SECURE_RPC="try" ;; 22546esac 22547fi 22548 22549 22550 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then 22551 FOUND_SECURE_RPC="no" 22552 22553 for ac_func in authdes_seccreate authdes_create 22554do : 22555 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"` 22556ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 22557if eval test \"x\$"$as_ac_var"\" = x"yes" 22558then : 22559 cat >>confdefs.h <<_ACEOF 22560#define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1 22561_ACEOF 22562 FOUND_SECURE_RPC="yes" 22563fi 22564 22565done 22566 if test "x$FOUND_SECURE_RPC" = "xno" ; then 22567 if test "x$SECURE_RPC" = "xyes" ; then 22568 as_fn_error $? "Secure RPC requested, but required functions not found" "$LINENO" 5 22569 fi 22570 SECURE_RPC="no" 22571 else 22572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5 22573printf %s "checking for library containing getsecretkey... " >&6; } 22574if test ${ac_cv_search_getsecretkey+y} 22575then : 22576 printf %s "(cached) " >&6 22577else case e in #( 22578 e) ac_func_search_save_LIBS=$LIBS 22579cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22580/* end confdefs.h. */ 22581 22582/* Override any GCC internal prototype to avoid an error. 22583 Use char because int might match the return type of a GCC 22584 builtin and then its argument prototype would still apply. 22585 The 'extern "C"' is for builds by C++ compilers; 22586 although this is not generally supported in C code supporting it here 22587 has little cost and some practical benefit (sr 110532). */ 22588#ifdef __cplusplus 22589extern "C" 22590#endif 22591char getsecretkey (void); 22592int 22593main (void) 22594{ 22595return getsecretkey (); 22596 ; 22597 return 0; 22598} 22599_ACEOF 22600for ac_lib in '' rpcsvc 22601do 22602 if test -z "$ac_lib"; then 22603 ac_res="none required" 22604 else 22605 ac_res=-l$ac_lib 22606 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22607 fi 22608 if ac_fn_c_try_link "$LINENO" 22609then : 22610 ac_cv_search_getsecretkey=$ac_res 22611fi 22612rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22613 conftest$ac_exeext 22614 if test ${ac_cv_search_getsecretkey+y} 22615then : 22616 break 22617fi 22618done 22619if test ${ac_cv_search_getsecretkey+y} 22620then : 22621 22622else case e in #( 22623 e) ac_cv_search_getsecretkey=no ;; 22624esac 22625fi 22626rm conftest.$ac_ext 22627LIBS=$ac_func_search_save_LIBS ;; 22628esac 22629fi 22630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5 22631printf "%s\n" "$ac_cv_search_getsecretkey" >&6; } 22632ac_res=$ac_cv_search_getsecretkey 22633if test "$ac_res" != no 22634then : 22635 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22636 22637fi 22638 22639 SECURE_RPC="yes" 22640 fi 22641 fi 22642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5 22643printf %s "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; } 22644 if test "x$SECURE_RPC" = "xyes" ; then 22645 22646printf "%s\n" "#define SECURE_RPC 1" >>confdefs.h 22647 22648 fi 22649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5 22650printf "%s\n" "$SECURE_RPC" >&6; } 22651 22652 if test x$SECURE_RPC = xyes; then 22653 HAS_SECURE_RPC_TRUE= 22654 HAS_SECURE_RPC_FALSE='#' 22655else 22656 HAS_SECURE_RPC_TRUE='#' 22657 HAS_SECURE_RPC_FALSE= 22658fi 22659 22660 22661#------------------------------------------------------------------------------ 22662 22663# Checks for header files. 22664ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default" 22665if test "x$ac_cv_header_grp_h" = xyes 22666then : 22667 printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h 22668 22669fi 22670ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default" 22671if test "x$ac_cv_header_syslog_h" = xyes 22672then : 22673 printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h 22674 22675fi 22676ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" 22677if test "x$ac_cv_header_sys_param_h" = xyes 22678then : 22679 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h 22680 22681fi 22682 22683ac_fn_check_decl "$LINENO" "key_setnet" "ac_cv_have_decl_key_setnet" " 22684#include <rpc/rpc.h> 22685#include <rpc/key_prot.h> 22686 22687" "$ac_c_undeclared_builtin_options" "CFLAGS" 22688if test "x$ac_cv_have_decl_key_setnet" = xyes 22689then : 22690 22691printf "%s\n" "#define HAVE_DECL_KEY_SETNET 1" >>confdefs.h 22692 22693fi 22694 22695ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" " 22696$ac_includes_default 22697#include <sys/socket.h> 22698 22699" 22700if test "x$ac_cv_type_struct_sockaddr_storage" = xyes 22701then : 22702 22703printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h 22704 22705 22706fi 22707 22708 22709# Check for system library functions 22710# Required system libraries have been searched for and are listed in $LIBS 22711 22712 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default 22713" 22714if test "x$ac_cv_type_pid_t" = xyes 22715then : 22716 22717else case e in #( 22718 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22719/* end confdefs.h. */ 22720 22721 #if defined _WIN64 && !defined __CYGWIN__ 22722 LLP64 22723 #endif 22724 22725int 22726main (void) 22727{ 22728 22729 ; 22730 return 0; 22731} 22732 22733_ACEOF 22734if ac_fn_c_try_compile "$LINENO" 22735then : 22736 ac_pid_type='int' 22737else case e in #( 22738 e) ac_pid_type='__int64' ;; 22739esac 22740fi 22741rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22742 22743printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h 22744 22745 ;; 22746esac 22747fi 22748 22749 22750 22751ac_func= 22752for ac_item in $ac_func_c_list 22753do 22754 if test $ac_func; then 22755 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func 22756 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then 22757 echo "#define $ac_item 1" >> confdefs.h 22758 fi 22759 ac_func= 22760 else 22761 ac_func=$ac_item 22762 fi 22763done 22764 22765 22766 22767if test "x$ac_cv_func_fork" = xyes; then 22768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 22769printf %s "checking for working fork... " >&6; } 22770if test ${ac_cv_func_fork_works+y} 22771then : 22772 printf %s "(cached) " >&6 22773else case e in #( 22774 e) if test "$cross_compiling" = yes 22775then : 22776 ac_cv_func_fork_works=cross 22777else case e in #( 22778 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22779/* end confdefs.h. */ 22780$ac_includes_default 22781int 22782main (void) 22783{ 22784 22785 /* By R. Kuhlmann. */ 22786 return fork () < 0; 22787 22788 ; 22789 return 0; 22790} 22791_ACEOF 22792if ac_fn_c_try_run "$LINENO" 22793then : 22794 ac_cv_func_fork_works=yes 22795else case e in #( 22796 e) ac_cv_func_fork_works=no ;; 22797esac 22798fi 22799rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22800 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 22801esac 22802fi 22803 ;; 22804esac 22805fi 22806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 22807printf "%s\n" "$ac_cv_func_fork_works" >&6; } 22808 22809else 22810 ac_cv_func_fork_works=$ac_cv_func_fork 22811fi 22812if test "x$ac_cv_func_fork_works" = xcross; then 22813 case $host in 22814 *-*-amigaos* | *-*-msdosdjgpp*) 22815 # Override, as these systems have only a dummy fork() stub 22816 ac_cv_func_fork_works=no 22817 ;; 22818 *) 22819 ac_cv_func_fork_works=yes 22820 ;; 22821 esac 22822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 22823printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 22824fi 22825ac_cv_func_vfork_works=$ac_cv_func_vfork 22826if test "x$ac_cv_func_vfork" = xyes; then 22827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 22828printf %s "checking for working vfork... " >&6; } 22829if test ${ac_cv_func_vfork_works+y} 22830then : 22831 printf %s "(cached) " >&6 22832else case e in #( 22833 e) if test "$cross_compiling" = yes 22834then : 22835 ac_cv_func_vfork_works=cross 22836else case e in #( 22837 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22838/* end confdefs.h. */ 22839/* Thanks to Paul Eggert for this test. */ 22840$ac_includes_default 22841#include <signal.h> 22842#include <sys/wait.h> 22843#ifdef HAVE_VFORK_H 22844# include <vfork.h> 22845#endif 22846 22847static void 22848do_nothing (int sig) 22849{ 22850 (void) sig; 22851} 22852 22853/* On some sparc systems, changes by the child to local and incoming 22854 argument registers are propagated back to the parent. The compiler 22855 is told about this with #include <vfork.h>, but some compilers 22856 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 22857 static variable whose address is put into a register that is 22858 clobbered by the vfork. */ 22859static void 22860sparc_address_test (int arg) 22861{ 22862 static pid_t child; 22863 if (!child) { 22864 child = vfork (); 22865 if (child < 0) { 22866 perror ("vfork"); 22867 _exit(2); 22868 } 22869 if (!child) { 22870 arg = getpid(); 22871 write(-1, "", 0); 22872 _exit (arg); 22873 } 22874 } 22875} 22876 22877int 22878main (void) 22879{ 22880 pid_t parent = getpid (); 22881 pid_t child; 22882 22883 sparc_address_test (0); 22884 22885 /* On Solaris 2.4, changes by the child to the signal handler 22886 also munge signal handlers in the parent. To detect this, 22887 start by putting the parent's handler in a known state. */ 22888 signal (SIGTERM, SIG_DFL); 22889 22890 child = vfork (); 22891 22892 if (child == 0) { 22893 /* Here is another test for sparc vfork register problems. This 22894 test uses lots of local variables, at least as many local 22895 variables as main has allocated so far including compiler 22896 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 22897 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 22898 reuse the register of parent for one of the local variables, 22899 since it will think that parent can't possibly be used any more 22900 in this routine. Assigning to the local variable will thus 22901 munge parent in the parent process. */ 22902 pid_t 22903 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 22904 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 22905 /* Convince the compiler that p..p7 are live; otherwise, it might 22906 use the same hardware register for all 8 local variables. */ 22907 if (p != p1 || p != p2 || p != p3 || p != p4 22908 || p != p5 || p != p6 || p != p7) 22909 _exit(1); 22910 22911 /* Alter the child's signal handler. */ 22912 if (signal (SIGTERM, do_nothing) != SIG_DFL) 22913 _exit(1); 22914 22915 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 22916 from child file descriptors. If the child closes a descriptor 22917 before it execs or exits, this munges the parent's descriptor 22918 as well. Test for this by closing stdout in the child. */ 22919 _exit(close(fileno(stdout)) != 0); 22920 } else { 22921 int status; 22922 struct stat st; 22923 22924 while (wait(&status) != child) 22925 ; 22926 return ( 22927 /* Was there some problem with vforking? */ 22928 child < 0 22929 22930 /* Did the child munge the parent's signal handler? */ 22931 || signal (SIGTERM, SIG_DFL) != SIG_DFL 22932 22933 /* Did the child fail? (This shouldn't happen.) */ 22934 || status 22935 22936 /* Did the vfork/compiler bug occur? */ 22937 || parent != getpid() 22938 22939 /* Did the file descriptor bug occur? */ 22940 || fstat(fileno(stdout), &st) != 0 22941 ); 22942 } 22943} 22944_ACEOF 22945if ac_fn_c_try_run "$LINENO" 22946then : 22947 ac_cv_func_vfork_works=yes 22948else case e in #( 22949 e) ac_cv_func_vfork_works=no ;; 22950esac 22951fi 22952rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22953 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 22954esac 22955fi 22956 ;; 22957esac 22958fi 22959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 22960printf "%s\n" "$ac_cv_func_vfork_works" >&6; } 22961 22962fi; 22963if test "x$ac_cv_func_fork_works" = xcross; then 22964 ac_cv_func_vfork_works=$ac_cv_func_vfork 22965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 22966printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 22967fi 22968 22969if test "x$ac_cv_func_vfork_works" = xyes; then 22970 22971printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h 22972 22973else 22974 22975printf "%s\n" "#define vfork fork" >>confdefs.h 22976 22977fi 22978if test "x$ac_cv_func_fork_works" = xyes; then 22979 22980printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h 22981 22982fi 22983 22984xdm_save_LIBS="$LIBS" 22985LIBS="$LIBS $XDM_LIBS" 22986ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" 22987if test "x$ac_cv_func_daemon" = xyes 22988then : 22989 printf "%s\n" "#define HAVE_DAEMON 1" >>confdefs.h 22990 22991fi 22992ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" 22993if test "x$ac_cv_func_sigaction" = xyes 22994then : 22995 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h 22996 22997fi 22998ac_fn_c_check_func "$LINENO" "openlog" "ac_cv_func_openlog" 22999if test "x$ac_cv_func_openlog" = xyes 23000then : 23001 printf "%s\n" "#define HAVE_OPENLOG 1" >>confdefs.h 23002 23003fi 23004ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 23005if test "x$ac_cv_func_asprintf" = xyes 23006then : 23007 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h 23008 23009fi 23010ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle" 23011if test "x$ac_cv_func_setproctitle" = xyes 23012then : 23013 printf "%s\n" "#define HAVE_SETPROCTITLE 1" >>confdefs.h 23014 23015fi 23016ac_fn_c_check_func "$LINENO" "setusercontext" "ac_cv_func_setusercontext" 23017if test "x$ac_cv_func_setusercontext" = xyes 23018then : 23019 printf "%s\n" "#define HAVE_SETUSERCONTEXT 1" >>confdefs.h 23020 23021fi 23022ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 23023if test "x$ac_cv_func_mkstemp" = xyes 23024then : 23025 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h 23026 23027fi 23028ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 23029if test "x$ac_cv_func_getifaddrs" = xyes 23030then : 23031 printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h 23032 23033fi 23034ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam" 23035if test "x$ac_cv_func_getspnam" = xyes 23036then : 23037 printf "%s\n" "#define HAVE_GETSPNAM 1" >>confdefs.h 23038 23039fi 23040ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random" 23041if test "x$ac_cv_func_arc4random" = xyes 23042then : 23043 printf "%s\n" "#define HAVE_ARC4RANDOM 1" >>confdefs.h 23044 23045fi 23046ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 23047if test "x$ac_cv_func_getaddrinfo" = xyes 23048then : 23049 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h 23050 23051fi 23052ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 23053if test "x$ac_cv_func_inet_ntop" = xyes 23054then : 23055 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h 23056 23057fi 23058 23059LIBS="$xdm_save_LIBS" 23060 23061# Check for pluggable authentication modules (PAM) support 23062 23063# Check whether --with-pam was given. 23064if test ${with_pam+y} 23065then : 23066 withval=$with_pam; USE_PAM=$withval 23067else case e in #( 23068 e) USE_PAM=auto ;; 23069esac 23070fi 23071 23072if test "x$USE_PAM" != "xno" ; then 23073 for ac_header in security/pam_appl.h pam/pam_appl.h 23074do : 23075 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"` 23076ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 23077if eval test \"x\$"$as_ac_Header"\" = x"yes" 23078then : 23079 cat >>confdefs.h <<_ACEOF 23080#define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1 23081_ACEOF 23082 found=yes ; break ; 23083else case e in #( 23084 e) found=no ;; 23085esac 23086fi 23087 23088done 23089 if test "x$USE_PAM" = "xyes" -a "x$found" = "xno" 23090then : 23091 as_fn_error $? "PAM support requested, but we could not find the pam headers." "$LINENO" 5 23092fi 23093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pam_open_session" >&5 23094printf %s "checking for library containing pam_open_session... " >&6; } 23095if test ${ac_cv_search_pam_open_session+y} 23096then : 23097 printf %s "(cached) " >&6 23098else case e in #( 23099 e) ac_func_search_save_LIBS=$LIBS 23100cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23101/* end confdefs.h. */ 23102 23103/* Override any GCC internal prototype to avoid an error. 23104 Use char because int might match the return type of a GCC 23105 builtin and then its argument prototype would still apply. 23106 The 'extern "C"' is for builds by C++ compilers; 23107 although this is not generally supported in C code supporting it here 23108 has little cost and some practical benefit (sr 110532). */ 23109#ifdef __cplusplus 23110extern "C" 23111#endif 23112char pam_open_session (void); 23113int 23114main (void) 23115{ 23116return pam_open_session (); 23117 ; 23118 return 0; 23119} 23120_ACEOF 23121for ac_lib in '' pam 23122do 23123 if test -z "$ac_lib"; then 23124 ac_res="none required" 23125 else 23126 ac_res=-l$ac_lib 23127 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 23128 fi 23129 if ac_fn_c_try_link "$LINENO" 23130then : 23131 ac_cv_search_pam_open_session=$ac_res 23132fi 23133rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23134 conftest$ac_exeext 23135 if test ${ac_cv_search_pam_open_session+y} 23136then : 23137 break 23138fi 23139done 23140if test ${ac_cv_search_pam_open_session+y} 23141then : 23142 23143else case e in #( 23144 e) ac_cv_search_pam_open_session=no ;; 23145esac 23146fi 23147rm conftest.$ac_ext 23148LIBS=$ac_func_search_save_LIBS ;; 23149esac 23150fi 23151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pam_open_session" >&5 23152printf "%s\n" "$ac_cv_search_pam_open_session" >&6; } 23153ac_res=$ac_cv_search_pam_open_session 23154if test "$ac_res" != no 23155then : 23156 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23157 ac_fn_c_check_func "$LINENO" "pam_open_session" "ac_cv_func_pam_open_session" 23158if test "x$ac_cv_func_pam_open_session" = xyes 23159then : 23160 23161printf "%s\n" "#define USE_PAM 1" >>confdefs.h 23162 23163 23164fi 23165 23166else case e in #( 23167 e) if test "x$USE_PAM" = "xyes" 23168then : 23169 as_fn_error $? "PAM support requested, but pam_open_session not found." "$LINENO" 5 23170 23171fi 23172 ;; 23173esac 23174fi 23175 23176fi 23177 23178# Check for Security-Enhanced Linux (SELinux) support 23179 23180# Check whether --with-selinux was given. 23181if test ${with_selinux+y} 23182then : 23183 withval=$with_selinux; USE_SELINUX=$withval 23184else case e in #( 23185 e) USE_SELINUX=no ;; 23186esac 23187fi 23188 23189if test "x$USE_SELINUX" != "xno" ; then 23190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing is_selinux_enabled" >&5 23191printf %s "checking for library containing is_selinux_enabled... " >&6; } 23192if test ${ac_cv_search_is_selinux_enabled+y} 23193then : 23194 printf %s "(cached) " >&6 23195else case e in #( 23196 e) ac_func_search_save_LIBS=$LIBS 23197cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23198/* end confdefs.h. */ 23199 23200/* Override any GCC internal prototype to avoid an error. 23201 Use char because int might match the return type of a GCC 23202 builtin and then its argument prototype would still apply. 23203 The 'extern "C"' is for builds by C++ compilers; 23204 although this is not generally supported in C code supporting it here 23205 has little cost and some practical benefit (sr 110532). */ 23206#ifdef __cplusplus 23207extern "C" 23208#endif 23209char is_selinux_enabled (void); 23210int 23211main (void) 23212{ 23213return is_selinux_enabled (); 23214 ; 23215 return 0; 23216} 23217_ACEOF 23218for ac_lib in '' selinux 23219do 23220 if test -z "$ac_lib"; then 23221 ac_res="none required" 23222 else 23223 ac_res=-l$ac_lib 23224 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 23225 fi 23226 if ac_fn_c_try_link "$LINENO" 23227then : 23228 ac_cv_search_is_selinux_enabled=$ac_res 23229fi 23230rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23231 conftest$ac_exeext 23232 if test ${ac_cv_search_is_selinux_enabled+y} 23233then : 23234 break 23235fi 23236done 23237if test ${ac_cv_search_is_selinux_enabled+y} 23238then : 23239 23240else case e in #( 23241 e) ac_cv_search_is_selinux_enabled=no ;; 23242esac 23243fi 23244rm conftest.$ac_ext 23245LIBS=$ac_func_search_save_LIBS ;; 23246esac 23247fi 23248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_is_selinux_enabled" >&5 23249printf "%s\n" "$ac_cv_search_is_selinux_enabled" >&6; } 23250ac_res=$ac_cv_search_is_selinux_enabled 23251if test "$ac_res" != no 23252then : 23253 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23254 ac_fn_c_check_func "$LINENO" "is_selinux_enabled" "ac_cv_func_is_selinux_enabled" 23255if test "x$ac_cv_func_is_selinux_enabled" = xyes 23256then : 23257 23258printf "%s\n" "#define USE_SELINUX 1" >>confdefs.h 23259 23260 23261fi 23262 23263else case e in #( 23264 e) if test "x$USE_SELINUX" = "xyes" 23265then : 23266 as_fn_error $? "SELinux support requested, but is_selinux_enabled not found." "$LINENO" 5 23267 23268fi 23269 ;; 23270esac 23271fi 23272 23273fi 23274 23275# Check whether to install systemd unit files, as suggested in daemon(7). 23276# When a full path is specified, this does not require systemd installed. 23277 23278# Check whether --with-systemdsystemunitdir was given. 23279if test ${with_systemdsystemunitdir+y} 23280then : 23281 withval=$with_systemdsystemunitdir; 23282else case e in #( 23283 e) with_systemdsystemunitdir=auto ;; 23284esac 23285fi 23286 23287if test "x$with_systemdsystemunitdir" = "xyes" -o "x$with_systemdsystemunitdir" = "xauto" 23288then : 23289 23290 def_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd) 23291 23292 if test "x$def_systemdsystemunitdir" = "x" 23293then : 23294 23295 if test "x$with_systemdsystemunitdir" = "xyes" 23296then : 23297 23298 as_fn_error $? "systemd support requested but pkg-config unable to query systemd package" "$LINENO" 5 23299 23300fi 23301 with_systemdsystemunitdir=no 23302 23303else case e in #( 23304 e) 23305 with_systemdsystemunitdir=$def_systemdsystemunitdir 23306 ;; 23307esac 23308fi 23309 23310fi 23311if test "x$with_systemdsystemunitdir" != "xno" 23312then : 23313 23314 systemdsystemunitdir=$with_systemdsystemunitdir 23315 23316 23317fi 23318 if test "x$with_systemdsystemunitdir" != "xno"; then 23319 HAVE_SYSTEMD_TRUE= 23320 HAVE_SYSTEMD_FALSE='#' 23321else 23322 HAVE_SYSTEMD_TRUE='#' 23323 HAVE_SYSTEMD_FALSE= 23324fi 23325 23326 23327# Check whether to enable systemd startup notification. 23328# This requires libsystemd. 23329 23330# Check whether --with-systemd-daemon was given. 23331if test ${with_systemd_daemon+y} 23332then : 23333 withval=$with_systemd_daemon; USE_SYSTEMD_DAEMON=$withval 23334else case e in #( 23335 e) if test -n "$PKG_CONFIG" && \ 23336 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 23337 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 23338 ac_status=$? 23339 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23340 test $ac_status = 0; }; then 23341 USE_SYSTEMD_DAEMON="yes" 23342else 23343 USE_SYSTEMD_DAEMON="no" 23344fi ;; 23345esac 23346fi 23347 23348if test "x$USE_SYSTEMD_DAEMON" != "xno" 23349then : 23350 23351 23352pkg_failed=no 23353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5 23354printf %s "checking for SYSTEMD_DAEMON... " >&6; } 23355 23356if test -n "$SYSTEMD_DAEMON_CFLAGS"; then 23357 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS" 23358 elif test -n "$PKG_CONFIG"; then 23359 if test -n "$PKG_CONFIG" && \ 23360 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 23361 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 23362 ac_status=$? 23363 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23364 test $ac_status = 0; }; then 23365 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null` 23366 test "x$?" != "x0" && pkg_failed=yes 23367else 23368 pkg_failed=yes 23369fi 23370 else 23371 pkg_failed=untried 23372fi 23373if test -n "$SYSTEMD_DAEMON_LIBS"; then 23374 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS" 23375 elif test -n "$PKG_CONFIG"; then 23376 if test -n "$PKG_CONFIG" && \ 23377 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 23378 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 23379 ac_status=$? 23380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23381 test $ac_status = 0; }; then 23382 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null` 23383 test "x$?" != "x0" && pkg_failed=yes 23384else 23385 pkg_failed=yes 23386fi 23387 else 23388 pkg_failed=untried 23389fi 23390 23391 23392 23393if test $pkg_failed = yes; then 23394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23395printf "%s\n" "no" >&6; } 23396 23397if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 23398 _pkg_short_errors_supported=yes 23399else 23400 _pkg_short_errors_supported=no 23401fi 23402 if test $_pkg_short_errors_supported = yes; then 23403 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1` 23404 else 23405 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1` 23406 fi 23407 # Put the nasty error message in config.log where it belongs 23408 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5 23409 23410 if test "x$USE_SYSTEMD_DAEMON" = "xyes" 23411then : 23412 as_fn_error $? "systemd startup notification support requested, but libsystemd not found." "$LINENO" 5 23413 23414fi 23415 23416elif test $pkg_failed = untried; then 23417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23418printf "%s\n" "no" >&6; } 23419 if test "x$USE_SYSTEMD_DAEMON" = "xyes" 23420then : 23421 as_fn_error $? "systemd startup notification support requested, but libsystemd not found." "$LINENO" 5 23422 23423fi 23424 23425else 23426 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS 23427 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS 23428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23429printf "%s\n" "yes" >&6; } 23430 23431printf "%s\n" "#define USE_SYSTEMD_DAEMON 1 " >>confdefs.h 23432 23433fi 23434 23435fi 23436 if test "x$USE_SYSTEMD_DAEMON" = "xyes"; then 23437 USE_SYSTEMD_DAEMON_TRUE= 23438 USE_SYSTEMD_DAEMON_FALSE='#' 23439else 23440 USE_SYSTEMD_DAEMON_TRUE='#' 23441 USE_SYSTEMD_DAEMON_FALSE= 23442fi 23443 23444 23445# FIXME: Find better test for which OS'es use su -m - for now, just try to 23446# mirror the Imakefile setting of: 23447# if defined(OpenBSDArchitecture) || defined(NetBSDArchitecture) || defined(FreeBSDArchitecture) || defined(DarwinArchitecture) 23448 23449 23450case $host_os in 23451 linux*|gnu*|*-gnu) 23452 SU="su" 23453 ;; 23454 darwin*) 23455 SU="su -m" 23456 ;; 23457 *bsd*|dragonfly*) 23458 SU="su -m" 23459 ;; 23460 solaris*|sysv4*) 23461 SU="su" 23462 ;; 23463 *) 23464 SU="su" 23465 ;; 23466esac 23467 23468 23469# Define a configure option to locate a special file (/dev/random or /dev/urandom) 23470# that serves as a random or a pseudorandom number generator 23471 23472# Check whether --with-random-device was given. 23473if test ${with_random_device+y} 23474then : 23475 withval=$with_random_device; USE_DEVICE="$withval" 23476else case e in #( 23477 e) USE_DEVICE="auto" ;; 23478esac 23479fi 23480 23481if test x$USE_DEVICE != xno ; then 23482 if test x$USE_DEVICE = xyes -o x$USE_DEVICE = xauto ; then 23483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5 23484printf %s "checking for /dev/urandom... " >&6; } 23485if test ${ac_cv_file__dev_urandom+y} 23486then : 23487 printf %s "(cached) " >&6 23488else case e in #( 23489 e) test "$cross_compiling" = yes && 23490 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 23491if test -r "/dev/urandom"; then 23492 ac_cv_file__dev_urandom=yes 23493else 23494 ac_cv_file__dev_urandom=no 23495fi ;; 23496esac 23497fi 23498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5 23499printf "%s\n" "$ac_cv_file__dev_urandom" >&6; } 23500if test "x$ac_cv_file__dev_urandom" = xyes 23501then : 23502 DEV_RANDOM=/dev/urandom 23503else case e in #( 23504 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/random" >&5 23505printf %s "checking for /dev/random... " >&6; } 23506if test ${ac_cv_file__dev_random+y} 23507then : 23508 printf %s "(cached) " >&6 23509else case e in #( 23510 e) test "$cross_compiling" = yes && 23511 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 23512if test -r "/dev/random"; then 23513 ac_cv_file__dev_random=yes 23514else 23515 ac_cv_file__dev_random=no 23516fi ;; 23517esac 23518fi 23519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_random" >&5 23520printf "%s\n" "$ac_cv_file__dev_random" >&6; } 23521if test "x$ac_cv_file__dev_random" = xyes 23522then : 23523 DEV_RANDOM=/dev/random 23524else case e in #( 23525 e) if test "x$USE_DEVICE" = "xyes" 23526then : 23527 as_fn_error $? "random device support requested, but no random device was found." "$LINENO" 5 23528 23529fi 23530 ;; 23531esac 23532fi 23533 23534 ;; 23535esac 23536fi 23537 23538 else 23539 # assume the user input is a valid path to a random number generator 23540 DEV_RANDOM=$USE_DEVICE 23541 fi 23542 if test x$DEV_RANDOM != x ; then 23543 23544printf "%s\n" "#define DEV_RANDOM \"$DEV_RANDOM\"" >>confdefs.h 23545 23546 fi 23547fi 23548 23549 23550# FIXME: find out how to check for these things. Note that Kerberos was 23551# turned off everywhere but on OpenBSD. 23552 if false; then 23553 HAS_KERBEROS_FIVE_TRUE= 23554 HAS_KERBEROS_FIVE_FALSE='#' 23555else 23556 HAS_KERBEROS_FIVE_TRUE='#' 23557 HAS_KERBEROS_FIVE_FALSE= 23558fi 23559 23560 23561 23562# Figure out where everything goes in the filesystem 23563 23564 23565# Check whether --with-xdmlibdir was given. 23566if test ${with_xdmlibdir+y} 23567then : 23568 withval=$with_xdmlibdir; XDMLIBDIR="$withval" 23569else case e in #( 23570 e) XDMLIBDIR="${libdir}/X11/xdm" ;; 23571esac 23572fi 23573 23574 23575 23576 23577# Check whether --with-xdmconfigdir was given. 23578if test ${with_xdmconfigdir+y} 23579then : 23580 withval=$with_xdmconfigdir; XDMCONFIGDIR="$withval" 23581else case e in #( 23582 e) XDMCONFIGDIR="${XDMLIBDIR}" ;; 23583esac 23584fi 23585 23586 23587 23588 23589# Check whether --with-xdmscriptdir was given. 23590if test ${with_xdmscriptdir+y} 23591then : 23592 withval=$with_xdmscriptdir; XDMSCRIPTDIR="$withval" 23593else case e in #( 23594 e) XDMSCRIPTDIR="${XDMLIBDIR}" ;; 23595esac 23596fi 23597 23598 23599 23600 23601# Check whether --with-logdir was given. 23602if test ${with_logdir+y} 23603then : 23604 withval=$with_logdir; XDMLOGDIR="$withval" 23605else case e in #( 23606 e) XDMLOGDIR="/var/log" ;; 23607esac 23608fi 23609 23610 23611 23612 23613# Check whether --with-piddir was given. 23614if test ${with_piddir+y} 23615then : 23616 withval=$with_piddir; XDMPIDDIR="$withval" 23617else case e in #( 23618 e) XDMPIDDIR="/var/run" ;; 23619esac 23620fi 23621 23622 23623 23624 23625# Check whether --with-default-vt was given. 23626if test ${with_default_vt+y} 23627then : 23628 withval=$with_default_vt; DEFAULTVT="$withval" 23629else case e in #( 23630 e) DEFAULTVT="" ;; 23631esac 23632fi 23633 23634 23635 23636 23637# Check whether --with-config-type was given. 23638if test ${with_config_type+y} 23639then : 23640 withval=$with_config_type; SERVERSTYPE="$withval" 23641else case e in #( 23642 e) SERVERSTYPE="ws" ;; 23643esac 23644fi 23645 23646 23647 23648 23649# Check whether --with-utmp_file was given. 23650if test ${with_utmp_file+y} 23651then : 23652 withval=$with_utmp_file; UTMP_FILE="$withval" 23653fi 23654 23655if test "x$UTMP_FILE" = "xyes" ; then 23656 UTMP_FILE="" 23657elif test "x$UTMP_FILE" = "xno" ; then 23658 UTMP_FILE="none" 23659fi 23660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for path to file listing current logins for sessreg" >&5 23661printf %s "checking for path to file listing current logins for sessreg... " >&6; } 23662if test "x$UTMP_FILE" = "x" ; then 23663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: use sessreg default" >&5 23664printf "%s\n" "use sessreg default" >&6; } 23665else 23666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UTMP_FILE" >&5 23667printf "%s\n" "$UTMP_FILE" >&6; } 23668fi 23669 if test x$UTMP_FILE != x; then 23670 SET_UTMP_FILE_TRUE= 23671 SET_UTMP_FILE_FALSE='#' 23672else 23673 SET_UTMP_FILE_TRUE='#' 23674 SET_UTMP_FILE_FALSE= 23675fi 23676 23677 23678 23679 23680# Check whether --with-wtmp_file was given. 23681if test ${with_wtmp_file+y} 23682then : 23683 withval=$with_wtmp_file; WTMP_FILE="$withval" 23684fi 23685 23686if test "x$WTMP_FILE" = "xyes" ; then 23687 WTMP_FILE="" 23688elif test "x$WTMP_FILE" = "xno" ; then 23689 WTMP_FILE="none" 23690fi 23691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for path to file listing login history for sessreg" >&5 23692printf %s "checking for path to file listing login history for sessreg... " >&6; } 23693if test "x$WTMP_FILE" = "x" ; then 23694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: use sessreg default" >&5 23695printf "%s\n" "use sessreg default" >&6; } 23696else 23697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WTMP_FILE" >&5 23698printf "%s\n" "$WTMP_FILE" >&6; } 23699fi 23700 if test x$WTMP_FILE != x; then 23701 SET_WTMP_FILE_TRUE= 23702 SET_WTMP_FILE_FALSE='#' 23703else 23704 SET_WTMP_FILE_TRUE='#' 23705 SET_WTMP_FILE_FALSE= 23706fi 23707 23708 23709 23710case $host_os in 23711 *sco*|*solaris*) 23712 SHELL_CMD="/bin/ksh" ;; 23713 *) SHELL_CMD="/bin/sh" ;; 23714esac 23715 23716 23717# Checks for pkg-config packages 23718 23719 23720# Check whether --with-xinerama was given. 23721if test ${with_xinerama+y} 23722then : 23723 withval=$with_xinerama; USE_XINERAMA="$withval" 23724else case e in #( 23725 e) if test -n "$PKG_CONFIG" && \ 23726 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama\""; } >&5 23727 ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5 23728 ac_status=$? 23729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23730 test $ac_status = 0; }; then 23731 USE_XINERAMA="yes" 23732else 23733 USE_XINERAMA="no" 23734fi ;; 23735esac 23736fi 23737 23738 23739if test "x$USE_XINERAMA" = "xyes" ; then 23740 23741printf "%s\n" "#define USE_XINERAMA 1" >>confdefs.h 23742 23743 23744pkg_failed=no 23745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XINERAMA" >&5 23746printf %s "checking for XINERAMA... " >&6; } 23747 23748if test -n "$XINERAMA_CFLAGS"; then 23749 pkg_cv_XINERAMA_CFLAGS="$XINERAMA_CFLAGS" 23750 elif test -n "$PKG_CONFIG"; then 23751 if test -n "$PKG_CONFIG" && \ 23752 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama\""; } >&5 23753 ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5 23754 ac_status=$? 23755 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23756 test $ac_status = 0; }; then 23757 pkg_cv_XINERAMA_CFLAGS=`$PKG_CONFIG --cflags "xinerama" 2>/dev/null` 23758 test "x$?" != "x0" && pkg_failed=yes 23759else 23760 pkg_failed=yes 23761fi 23762 else 23763 pkg_failed=untried 23764fi 23765if test -n "$XINERAMA_LIBS"; then 23766 pkg_cv_XINERAMA_LIBS="$XINERAMA_LIBS" 23767 elif test -n "$PKG_CONFIG"; then 23768 if test -n "$PKG_CONFIG" && \ 23769 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama\""; } >&5 23770 ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5 23771 ac_status=$? 23772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23773 test $ac_status = 0; }; then 23774 pkg_cv_XINERAMA_LIBS=`$PKG_CONFIG --libs "xinerama" 2>/dev/null` 23775 test "x$?" != "x0" && pkg_failed=yes 23776else 23777 pkg_failed=yes 23778fi 23779 else 23780 pkg_failed=untried 23781fi 23782 23783 23784 23785if test $pkg_failed = yes; then 23786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23787printf "%s\n" "no" >&6; } 23788 23789if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 23790 _pkg_short_errors_supported=yes 23791else 23792 _pkg_short_errors_supported=no 23793fi 23794 if test $_pkg_short_errors_supported = yes; then 23795 XINERAMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xinerama" 2>&1` 23796 else 23797 XINERAMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xinerama" 2>&1` 23798 fi 23799 # Put the nasty error message in config.log where it belongs 23800 echo "$XINERAMA_PKG_ERRORS" >&5 23801 23802 as_fn_error $? "Package requirements (xinerama) were not met: 23803 23804$XINERAMA_PKG_ERRORS 23805 23806Consider adjusting the PKG_CONFIG_PATH environment variable if you 23807installed software in a non-standard prefix. 23808 23809Alternatively, you may set the environment variables XINERAMA_CFLAGS 23810and XINERAMA_LIBS to avoid the need to call pkg-config. 23811See the pkg-config man page for more details." "$LINENO" 5 23812elif test $pkg_failed = untried; then 23813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23814printf "%s\n" "no" >&6; } 23815 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 23816printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 23817as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 23818is in your PATH or set the PKG_CONFIG environment variable to the full 23819path to pkg-config. 23820 23821Alternatively, you may set the environment variables XINERAMA_CFLAGS 23822and XINERAMA_LIBS to avoid the need to call pkg-config. 23823See the pkg-config man page for more details. 23824 23825To get pkg-config, see <http://pkg-config.freedesktop.org/>. 23826See 'config.log' for more details" "$LINENO" 5; } 23827else 23828 XINERAMA_CFLAGS=$pkg_cv_XINERAMA_CFLAGS 23829 XINERAMA_LIBS=$pkg_cv_XINERAMA_LIBS 23830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23831printf "%s\n" "yes" >&6; } 23832 23833fi 23834 CHOOSER_CFLAGS="$CHOOSER_CFLAGS $XINERAMA_CFLAGS" 23835 CHOOSER_LIBS="$CHOOSER_LIBS $XINERAMA_LIBS" 23836 GREETER_CFLAGS="$GREETER_CFLAGS $XINERAMA_CFLAGS" 23837 GREETER_LIBS="$GREETER_LIBS $XINERAMA_LIBS" 23838fi 23839 23840# Xft text drawing for the greeter screen 23841 23842# Check whether --with-xft was given. 23843if test ${with_xft+y} 23844then : 23845 withval=$with_xft; USE_XFT="$withval" 23846else case e in #( 23847 e) if test -n "$PKG_CONFIG" && \ 23848 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft xrender\""; } >&5 23849 ($PKG_CONFIG --exists --print-errors "xft xrender") 2>&5 23850 ac_status=$? 23851 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23852 test $ac_status = 0; }; then 23853 USE_XFT="yes" 23854else 23855 USE_XFT="no" 23856fi ;; 23857esac 23858fi 23859 23860 23861if test "x$USE_XFT" = "xyes" ; then 23862 23863pkg_failed=no 23864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFT" >&5 23865printf %s "checking for XFT... " >&6; } 23866 23867if test -n "$XFT_CFLAGS"; then 23868 pkg_cv_XFT_CFLAGS="$XFT_CFLAGS" 23869 elif test -n "$PKG_CONFIG"; then 23870 if test -n "$PKG_CONFIG" && \ 23871 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft xrender\""; } >&5 23872 ($PKG_CONFIG --exists --print-errors "xft xrender") 2>&5 23873 ac_status=$? 23874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23875 test $ac_status = 0; }; then 23876 pkg_cv_XFT_CFLAGS=`$PKG_CONFIG --cflags "xft xrender" 2>/dev/null` 23877 test "x$?" != "x0" && pkg_failed=yes 23878else 23879 pkg_failed=yes 23880fi 23881 else 23882 pkg_failed=untried 23883fi 23884if test -n "$XFT_LIBS"; then 23885 pkg_cv_XFT_LIBS="$XFT_LIBS" 23886 elif test -n "$PKG_CONFIG"; then 23887 if test -n "$PKG_CONFIG" && \ 23888 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft xrender\""; } >&5 23889 ($PKG_CONFIG --exists --print-errors "xft xrender") 2>&5 23890 ac_status=$? 23891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23892 test $ac_status = 0; }; then 23893 pkg_cv_XFT_LIBS=`$PKG_CONFIG --libs "xft xrender" 2>/dev/null` 23894 test "x$?" != "x0" && pkg_failed=yes 23895else 23896 pkg_failed=yes 23897fi 23898 else 23899 pkg_failed=untried 23900fi 23901 23902 23903 23904if test $pkg_failed = yes; then 23905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23906printf "%s\n" "no" >&6; } 23907 23908if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 23909 _pkg_short_errors_supported=yes 23910else 23911 _pkg_short_errors_supported=no 23912fi 23913 if test $_pkg_short_errors_supported = yes; then 23914 XFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xft xrender" 2>&1` 23915 else 23916 XFT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xft xrender" 2>&1` 23917 fi 23918 # Put the nasty error message in config.log where it belongs 23919 echo "$XFT_PKG_ERRORS" >&5 23920 23921 as_fn_error $? "Package requirements (xft xrender) were not met: 23922 23923$XFT_PKG_ERRORS 23924 23925Consider adjusting the PKG_CONFIG_PATH environment variable if you 23926installed software in a non-standard prefix. 23927 23928Alternatively, you may set the environment variables XFT_CFLAGS 23929and XFT_LIBS to avoid the need to call pkg-config. 23930See the pkg-config man page for more details." "$LINENO" 5 23931elif test $pkg_failed = untried; then 23932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23933printf "%s\n" "no" >&6; } 23934 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 23935printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 23936as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 23937is in your PATH or set the PKG_CONFIG environment variable to the full 23938path to pkg-config. 23939 23940Alternatively, you may set the environment variables XFT_CFLAGS 23941and XFT_LIBS to avoid the need to call pkg-config. 23942See the pkg-config man page for more details. 23943 23944To get pkg-config, see <http://pkg-config.freedesktop.org/>. 23945See 'config.log' for more details" "$LINENO" 5; } 23946else 23947 XFT_CFLAGS=$pkg_cv_XFT_CFLAGS 23948 XFT_LIBS=$pkg_cv_XFT_LIBS 23949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23950printf "%s\n" "yes" >&6; } 23951 23952fi 23953 GREETER_CFLAGS="$GREETER_CFLAGS $XFT_CFLAGS" 23954 GREETER_LIBS="$GREETER_LIBS $XFT_LIBS" 23955 23956printf "%s\n" "#define USE_XFT 1" >>confdefs.h 23957 23958fi 23959 23960# XPM logos for the greeter screen 23961# Check whether --enable-xpm-logos was given. 23962if test ${enable_xpm_logos+y} 23963then : 23964 enableval=$enable_xpm_logos; USE_XPM="$enableval" 23965else case e in #( 23966 e) if test -n "$PKG_CONFIG" && \ 23967 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5 23968 ($PKG_CONFIG --exists --print-errors "xpm") 2>&5 23969 ac_status=$? 23970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23971 test $ac_status = 0; }; then 23972 USE_XPM="yes" 23973else 23974 USE_XPM="no" 23975fi ;; 23976esac 23977fi 23978 23979if test "x$USE_XPM" = "xyes" ; then 23980 23981pkg_failed=no 23982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XPM" >&5 23983printf %s "checking for XPM... " >&6; } 23984 23985if test -n "$XPM_CFLAGS"; then 23986 pkg_cv_XPM_CFLAGS="$XPM_CFLAGS" 23987 elif test -n "$PKG_CONFIG"; then 23988 if test -n "$PKG_CONFIG" && \ 23989 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5 23990 ($PKG_CONFIG --exists --print-errors "xpm") 2>&5 23991 ac_status=$? 23992 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23993 test $ac_status = 0; }; then 23994 pkg_cv_XPM_CFLAGS=`$PKG_CONFIG --cflags "xpm" 2>/dev/null` 23995 test "x$?" != "x0" && pkg_failed=yes 23996else 23997 pkg_failed=yes 23998fi 23999 else 24000 pkg_failed=untried 24001fi 24002if test -n "$XPM_LIBS"; then 24003 pkg_cv_XPM_LIBS="$XPM_LIBS" 24004 elif test -n "$PKG_CONFIG"; then 24005 if test -n "$PKG_CONFIG" && \ 24006 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5 24007 ($PKG_CONFIG --exists --print-errors "xpm") 2>&5 24008 ac_status=$? 24009 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24010 test $ac_status = 0; }; then 24011 pkg_cv_XPM_LIBS=`$PKG_CONFIG --libs "xpm" 2>/dev/null` 24012 test "x$?" != "x0" && pkg_failed=yes 24013else 24014 pkg_failed=yes 24015fi 24016 else 24017 pkg_failed=untried 24018fi 24019 24020 24021 24022if test $pkg_failed = yes; then 24023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24024printf "%s\n" "no" >&6; } 24025 24026if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 24027 _pkg_short_errors_supported=yes 24028else 24029 _pkg_short_errors_supported=no 24030fi 24031 if test $_pkg_short_errors_supported = yes; then 24032 XPM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xpm" 2>&1` 24033 else 24034 XPM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xpm" 2>&1` 24035 fi 24036 # Put the nasty error message in config.log where it belongs 24037 echo "$XPM_PKG_ERRORS" >&5 24038 24039 as_fn_error $? "Package requirements (xpm) were not met: 24040 24041$XPM_PKG_ERRORS 24042 24043Consider adjusting the PKG_CONFIG_PATH environment variable if you 24044installed software in a non-standard prefix. 24045 24046Alternatively, you may set the environment variables XPM_CFLAGS 24047and XPM_LIBS to avoid the need to call pkg-config. 24048See the pkg-config man page for more details." "$LINENO" 5 24049elif test $pkg_failed = untried; then 24050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24051printf "%s\n" "no" >&6; } 24052 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 24053printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 24054as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 24055is in your PATH or set the PKG_CONFIG environment variable to the full 24056path to pkg-config. 24057 24058Alternatively, you may set the environment variables XPM_CFLAGS 24059and XPM_LIBS to avoid the need to call pkg-config. 24060See the pkg-config man page for more details. 24061 24062To get pkg-config, see <http://pkg-config.freedesktop.org/>. 24063See 'config.log' for more details" "$LINENO" 5; } 24064else 24065 XPM_CFLAGS=$pkg_cv_XPM_CFLAGS 24066 XPM_LIBS=$pkg_cv_XPM_LIBS 24067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24068printf "%s\n" "yes" >&6; } 24069 24070fi 24071 GREETER_CFLAGS="$GREETER_CFLAGS $XPM_CFLAGS" 24072 GREETER_LIBS="$GREETER_LIBS $XPM_LIBS" 24073 24074printf "%s\n" "#define XPM 1" >>confdefs.h 24075 24076fi 24077 if test "x$USE_XPM" = "xyes"; then 24078 USE_XPM_TRUE= 24079 USE_XPM_FALSE='#' 24080else 24081 USE_XPM_TRUE='#' 24082 USE_XPM_FALSE= 24083fi 24084 24085 24086 24087# Check whether --with-color-pixmap was given. 24088if test ${with_color_pixmap+y} 24089then : 24090 withval=$with_color_pixmap; XDM_PIXMAP="$withval" 24091else case e in #( 24092 e) XDM_PIXMAP="xorg.xpm" ;; 24093esac 24094fi 24095 24096 24097# Check whether --with-bw-pixmap was given. 24098if test ${with_bw_pixmap+y} 24099then : 24100 withval=$with_bw_pixmap; XDM_BWPIXMAP="$withval" 24101else case e in #( 24102 e) XDM_BWPIXMAP="xorg-bw.xpm" ;; 24103esac 24104fi 24105 24106 24107# Check whether --with-pixmapdir was given. 24108if test ${with_pixmapdir+y} 24109then : 24110 withval=$with_pixmapdir; XDM_PIXMAPDIR="$withval" 24111else case e in #( 24112 e) XDM_PIXMAPDIR='${XDMLIBDIR}/pixmaps' ;; 24113esac 24114fi 24115 24116 24117 24118 24119 24120 24121# Packages used by multiple programs 24122 24123 24124pkg_failed=no 24125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XDM_TOOLKIT" >&5 24126printf %s "checking for XDM_TOOLKIT... " >&6; } 24127 24128if test -n "$XDM_TOOLKIT_CFLAGS"; then 24129 pkg_cv_XDM_TOOLKIT_CFLAGS="$XDM_TOOLKIT_CFLAGS" 24130 elif test -n "$PKG_CONFIG"; then 24131 if test -n "$PKG_CONFIG" && \ 24132 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7\""; } >&5 24133 ($PKG_CONFIG --exists --print-errors "xaw7") 2>&5 24134 ac_status=$? 24135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24136 test $ac_status = 0; }; then 24137 pkg_cv_XDM_TOOLKIT_CFLAGS=`$PKG_CONFIG --cflags "xaw7" 2>/dev/null` 24138 test "x$?" != "x0" && pkg_failed=yes 24139else 24140 pkg_failed=yes 24141fi 24142 else 24143 pkg_failed=untried 24144fi 24145if test -n "$XDM_TOOLKIT_LIBS"; then 24146 pkg_cv_XDM_TOOLKIT_LIBS="$XDM_TOOLKIT_LIBS" 24147 elif test -n "$PKG_CONFIG"; then 24148 if test -n "$PKG_CONFIG" && \ 24149 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7\""; } >&5 24150 ($PKG_CONFIG --exists --print-errors "xaw7") 2>&5 24151 ac_status=$? 24152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24153 test $ac_status = 0; }; then 24154 pkg_cv_XDM_TOOLKIT_LIBS=`$PKG_CONFIG --libs "xaw7" 2>/dev/null` 24155 test "x$?" != "x0" && pkg_failed=yes 24156else 24157 pkg_failed=yes 24158fi 24159 else 24160 pkg_failed=untried 24161fi 24162 24163 24164 24165if test $pkg_failed = yes; then 24166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24167printf "%s\n" "no" >&6; } 24168 24169if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 24170 _pkg_short_errors_supported=yes 24171else 24172 _pkg_short_errors_supported=no 24173fi 24174 if test $_pkg_short_errors_supported = yes; then 24175 XDM_TOOLKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7" 2>&1` 24176 else 24177 XDM_TOOLKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7" 2>&1` 24178 fi 24179 # Put the nasty error message in config.log where it belongs 24180 echo "$XDM_TOOLKIT_PKG_ERRORS" >&5 24181 24182 as_fn_error $? "Package requirements (xaw7) were not met: 24183 24184$XDM_TOOLKIT_PKG_ERRORS 24185 24186Consider adjusting the PKG_CONFIG_PATH environment variable if you 24187installed software in a non-standard prefix. 24188 24189Alternatively, you may set the environment variables XDM_TOOLKIT_CFLAGS 24190and XDM_TOOLKIT_LIBS to avoid the need to call pkg-config. 24191See the pkg-config man page for more details." "$LINENO" 5 24192elif test $pkg_failed = untried; then 24193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24194printf "%s\n" "no" >&6; } 24195 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 24196printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 24197as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 24198is in your PATH or set the PKG_CONFIG environment variable to the full 24199path to pkg-config. 24200 24201Alternatively, you may set the environment variables XDM_TOOLKIT_CFLAGS 24202and XDM_TOOLKIT_LIBS to avoid the need to call pkg-config. 24203See the pkg-config man page for more details. 24204 24205To get pkg-config, see <http://pkg-config.freedesktop.org/>. 24206See 'config.log' for more details" "$LINENO" 5; } 24207else 24208 XDM_TOOLKIT_CFLAGS=$pkg_cv_XDM_TOOLKIT_CFLAGS 24209 XDM_TOOLKIT_LIBS=$pkg_cv_XDM_TOOLKIT_LIBS 24210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24211printf "%s\n" "yes" >&6; } 24212 24213fi 24214XDM_TOOLKIT_CFLAGS="$XDM_TOOLKIT_CFLAGS -D_CONST_X_STRING" 24215 24216pkg_failed=no 24217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DMCP" >&5 24218printf %s "checking for DMCP... " >&6; } 24219 24220if test -n "$DMCP_CFLAGS"; then 24221 pkg_cv_DMCP_CFLAGS="$DMCP_CFLAGS" 24222 elif test -n "$PKG_CONFIG"; then 24223 if test -n "$PKG_CONFIG" && \ 24224 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 24225 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 24226 ac_status=$? 24227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24228 test $ac_status = 0; }; then 24229 pkg_cv_DMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null` 24230 test "x$?" != "x0" && pkg_failed=yes 24231else 24232 pkg_failed=yes 24233fi 24234 else 24235 pkg_failed=untried 24236fi 24237if test -n "$DMCP_LIBS"; then 24238 pkg_cv_DMCP_LIBS="$DMCP_LIBS" 24239 elif test -n "$PKG_CONFIG"; then 24240 if test -n "$PKG_CONFIG" && \ 24241 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 24242 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 24243 ac_status=$? 24244 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24245 test $ac_status = 0; }; then 24246 pkg_cv_DMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null` 24247 test "x$?" != "x0" && pkg_failed=yes 24248else 24249 pkg_failed=yes 24250fi 24251 else 24252 pkg_failed=untried 24253fi 24254 24255 24256 24257if test $pkg_failed = yes; then 24258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24259printf "%s\n" "no" >&6; } 24260 24261if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 24262 _pkg_short_errors_supported=yes 24263else 24264 _pkg_short_errors_supported=no 24265fi 24266 if test $_pkg_short_errors_supported = yes; then 24267 DMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xdmcp" 2>&1` 24268 else 24269 DMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xdmcp" 2>&1` 24270 fi 24271 # Put the nasty error message in config.log where it belongs 24272 echo "$DMCP_PKG_ERRORS" >&5 24273 24274 as_fn_error $? "Package requirements (xdmcp) were not met: 24275 24276$DMCP_PKG_ERRORS 24277 24278Consider adjusting the PKG_CONFIG_PATH environment variable if you 24279installed software in a non-standard prefix. 24280 24281Alternatively, you may set the environment variables DMCP_CFLAGS 24282and DMCP_LIBS to avoid the need to call pkg-config. 24283See the pkg-config man page for more details." "$LINENO" 5 24284elif test $pkg_failed = untried; then 24285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24286printf "%s\n" "no" >&6; } 24287 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 24288printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 24289as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 24290is in your PATH or set the PKG_CONFIG environment variable to the full 24291path to pkg-config. 24292 24293Alternatively, you may set the environment variables DMCP_CFLAGS 24294and DMCP_LIBS to avoid the need to call pkg-config. 24295See the pkg-config man page for more details. 24296 24297To get pkg-config, see <http://pkg-config.freedesktop.org/>. 24298See 'config.log' for more details" "$LINENO" 5; } 24299else 24300 DMCP_CFLAGS=$pkg_cv_DMCP_CFLAGS 24301 DMCP_LIBS=$pkg_cv_DMCP_LIBS 24302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24303printf "%s\n" "yes" >&6; } 24304 24305fi 24306 24307pkg_failed=no 24308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XLIB" >&5 24309printf %s "checking for XLIB... " >&6; } 24310 24311if test -n "$XLIB_CFLAGS"; then 24312 pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS" 24313 elif test -n "$PKG_CONFIG"; then 24314 if test -n "$PKG_CONFIG" && \ 24315 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 24316 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 24317 ac_status=$? 24318 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24319 test $ac_status = 0; }; then 24320 pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null` 24321 test "x$?" != "x0" && pkg_failed=yes 24322else 24323 pkg_failed=yes 24324fi 24325 else 24326 pkg_failed=untried 24327fi 24328if test -n "$XLIB_LIBS"; then 24329 pkg_cv_XLIB_LIBS="$XLIB_LIBS" 24330 elif test -n "$PKG_CONFIG"; then 24331 if test -n "$PKG_CONFIG" && \ 24332 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 24333 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 24334 ac_status=$? 24335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24336 test $ac_status = 0; }; then 24337 pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null` 24338 test "x$?" != "x0" && pkg_failed=yes 24339else 24340 pkg_failed=yes 24341fi 24342 else 24343 pkg_failed=untried 24344fi 24345 24346 24347 24348if test $pkg_failed = yes; then 24349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24350printf "%s\n" "no" >&6; } 24351 24352if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 24353 _pkg_short_errors_supported=yes 24354else 24355 _pkg_short_errors_supported=no 24356fi 24357 if test $_pkg_short_errors_supported = yes; then 24358 XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1` 24359 else 24360 XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1` 24361 fi 24362 # Put the nasty error message in config.log where it belongs 24363 echo "$XLIB_PKG_ERRORS" >&5 24364 24365 as_fn_error $? "Package requirements (x11) were not met: 24366 24367$XLIB_PKG_ERRORS 24368 24369Consider adjusting the PKG_CONFIG_PATH environment variable if you 24370installed software in a non-standard prefix. 24371 24372Alternatively, you may set the environment variables XLIB_CFLAGS 24373and XLIB_LIBS to avoid the need to call pkg-config. 24374See the pkg-config man page for more details." "$LINENO" 5 24375elif test $pkg_failed = untried; then 24376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24377printf "%s\n" "no" >&6; } 24378 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 24379printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 24380as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 24381is in your PATH or set the PKG_CONFIG environment variable to the full 24382path to pkg-config. 24383 24384Alternatively, you may set the environment variables XLIB_CFLAGS 24385and XLIB_LIBS to avoid the need to call pkg-config. 24386See the pkg-config man page for more details. 24387 24388To get pkg-config, see <http://pkg-config.freedesktop.org/>. 24389See 'config.log' for more details" "$LINENO" 5; } 24390else 24391 XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS 24392 XLIB_LIBS=$pkg_cv_XLIB_LIBS 24393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24394printf "%s\n" "yes" >&6; } 24395 24396fi 24397 24398pkg_failed=no 24399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AUTH" >&5 24400printf %s "checking for AUTH... " >&6; } 24401 24402if test -n "$AUTH_CFLAGS"; then 24403 pkg_cv_AUTH_CFLAGS="$AUTH_CFLAGS" 24404 elif test -n "$PKG_CONFIG"; then 24405 if test -n "$PKG_CONFIG" && \ 24406 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xau\""; } >&5 24407 ($PKG_CONFIG --exists --print-errors "xau") 2>&5 24408 ac_status=$? 24409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24410 test $ac_status = 0; }; then 24411 pkg_cv_AUTH_CFLAGS=`$PKG_CONFIG --cflags "xau" 2>/dev/null` 24412 test "x$?" != "x0" && pkg_failed=yes 24413else 24414 pkg_failed=yes 24415fi 24416 else 24417 pkg_failed=untried 24418fi 24419if test -n "$AUTH_LIBS"; then 24420 pkg_cv_AUTH_LIBS="$AUTH_LIBS" 24421 elif test -n "$PKG_CONFIG"; then 24422 if test -n "$PKG_CONFIG" && \ 24423 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xau\""; } >&5 24424 ($PKG_CONFIG --exists --print-errors "xau") 2>&5 24425 ac_status=$? 24426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24427 test $ac_status = 0; }; then 24428 pkg_cv_AUTH_LIBS=`$PKG_CONFIG --libs "xau" 2>/dev/null` 24429 test "x$?" != "x0" && pkg_failed=yes 24430else 24431 pkg_failed=yes 24432fi 24433 else 24434 pkg_failed=untried 24435fi 24436 24437 24438 24439if test $pkg_failed = yes; then 24440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24441printf "%s\n" "no" >&6; } 24442 24443if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 24444 _pkg_short_errors_supported=yes 24445else 24446 _pkg_short_errors_supported=no 24447fi 24448 if test $_pkg_short_errors_supported = yes; then 24449 AUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xau" 2>&1` 24450 else 24451 AUTH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xau" 2>&1` 24452 fi 24453 # Put the nasty error message in config.log where it belongs 24454 echo "$AUTH_PKG_ERRORS" >&5 24455 24456 as_fn_error $? "Package requirements (xau) were not met: 24457 24458$AUTH_PKG_ERRORS 24459 24460Consider adjusting the PKG_CONFIG_PATH environment variable if you 24461installed software in a non-standard prefix. 24462 24463Alternatively, you may set the environment variables AUTH_CFLAGS 24464and AUTH_LIBS to avoid the need to call pkg-config. 24465See the pkg-config man page for more details." "$LINENO" 5 24466elif test $pkg_failed = untried; then 24467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24468printf "%s\n" "no" >&6; } 24469 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 24470printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 24471as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 24472is in your PATH or set the PKG_CONFIG environment variable to the full 24473path to pkg-config. 24474 24475Alternatively, you may set the environment variables AUTH_CFLAGS 24476and AUTH_LIBS to avoid the need to call pkg-config. 24477See the pkg-config man page for more details. 24478 24479To get pkg-config, see <http://pkg-config.freedesktop.org/>. 24480See 'config.log' for more details" "$LINENO" 5; } 24481else 24482 AUTH_CFLAGS=$pkg_cv_AUTH_CFLAGS 24483 AUTH_LIBS=$pkg_cv_AUTH_LIBS 24484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24485printf "%s\n" "yes" >&6; } 24486 24487fi 24488 24489# 24490# Greeter 24491# 24492 24493 24494pkg_failed=no 24495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XDMGREET" >&5 24496printf %s "checking for XDMGREET... " >&6; } 24497 24498if test -n "$XDMGREET_CFLAGS"; then 24499 pkg_cv_XDMGREET_CFLAGS="$XDMGREET_CFLAGS" 24500 elif test -n "$PKG_CONFIG"; then 24501 if test -n "$PKG_CONFIG" && \ 24502 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt >= 1.0 x11 xext\""; } >&5 24503 ($PKG_CONFIG --exists --print-errors "xt >= 1.0 x11 xext") 2>&5 24504 ac_status=$? 24505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24506 test $ac_status = 0; }; then 24507 pkg_cv_XDMGREET_CFLAGS=`$PKG_CONFIG --cflags "xt >= 1.0 x11 xext" 2>/dev/null` 24508 test "x$?" != "x0" && pkg_failed=yes 24509else 24510 pkg_failed=yes 24511fi 24512 else 24513 pkg_failed=untried 24514fi 24515if test -n "$XDMGREET_LIBS"; then 24516 pkg_cv_XDMGREET_LIBS="$XDMGREET_LIBS" 24517 elif test -n "$PKG_CONFIG"; then 24518 if test -n "$PKG_CONFIG" && \ 24519 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt >= 1.0 x11 xext\""; } >&5 24520 ($PKG_CONFIG --exists --print-errors "xt >= 1.0 x11 xext") 2>&5 24521 ac_status=$? 24522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24523 test $ac_status = 0; }; then 24524 pkg_cv_XDMGREET_LIBS=`$PKG_CONFIG --libs "xt >= 1.0 x11 xext" 2>/dev/null` 24525 test "x$?" != "x0" && pkg_failed=yes 24526else 24527 pkg_failed=yes 24528fi 24529 else 24530 pkg_failed=untried 24531fi 24532 24533 24534 24535if test $pkg_failed = yes; then 24536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24537printf "%s\n" "no" >&6; } 24538 24539if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 24540 _pkg_short_errors_supported=yes 24541else 24542 _pkg_short_errors_supported=no 24543fi 24544 if test $_pkg_short_errors_supported = yes; then 24545 XDMGREET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt >= 1.0 x11 xext" 2>&1` 24546 else 24547 XDMGREET_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt >= 1.0 x11 xext" 2>&1` 24548 fi 24549 # Put the nasty error message in config.log where it belongs 24550 echo "$XDMGREET_PKG_ERRORS" >&5 24551 24552 as_fn_error $? "Package requirements (xt >= 1.0 x11 xext) were not met: 24553 24554$XDMGREET_PKG_ERRORS 24555 24556Consider adjusting the PKG_CONFIG_PATH environment variable if you 24557installed software in a non-standard prefix. 24558 24559Alternatively, you may set the environment variables XDMGREET_CFLAGS 24560and XDMGREET_LIBS to avoid the need to call pkg-config. 24561See the pkg-config man page for more details." "$LINENO" 5 24562elif test $pkg_failed = untried; then 24563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24564printf "%s\n" "no" >&6; } 24565 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 24566printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 24567as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 24568is in your PATH or set the PKG_CONFIG environment variable to the full 24569path to pkg-config. 24570 24571Alternatively, you may set the environment variables XDMGREET_CFLAGS 24572and XDMGREET_LIBS to avoid the need to call pkg-config. 24573See the pkg-config man page for more details. 24574 24575To get pkg-config, see <http://pkg-config.freedesktop.org/>. 24576See 'config.log' for more details" "$LINENO" 5; } 24577else 24578 XDMGREET_CFLAGS=$pkg_cv_XDMGREET_CFLAGS 24579 XDMGREET_LIBS=$pkg_cv_XDMGREET_LIBS 24580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24581printf "%s\n" "yes" >&6; } 24582 24583fi 24584 24585GREETERLIB="${XDMLIBDIR}/libXdmGreet.so" 24586 24587 prefix_NONE= 24588 exec_prefix_NONE= 24589 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 24590 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 24591 eval ax_define_dir="\"$GREETERLIB\"" 24592 eval ax_define_dir="\"$ax_define_dir\"" 24593 DEF_GREETER_LIB="$ax_define_dir" 24594 24595 24596printf "%s\n" "#define DEF_GREETER_LIB \"$ax_define_dir\"" >>confdefs.h 24597 24598 test "$prefix_NONE" && prefix=NONE 24599 test "$exec_prefix_NONE" && exec_prefix=NONE 24600 24601 24602XDMGREET_CFLAGS="$XDMGREET_CFLAGS $XDM_TOOLKIT_CFLAGS $DMCP_CFLAGS $XLIB_CFLAGS $GREETER_CFLAGS $AUTH_CFLAGS" 24603XDMGREET_LIBS="$XDMGREET_LIBS $XDM_TOOLKIT_LIBS $DMCP_LIBS $GREETER_LIBS" 24604 24605# 24606# XDM 24607# 24608 24609XDM_CFLAGS="$XDM_CFLAGS $DMCP_CFLAGS $XLIB_CFLAGS $AUTH_CFLAGS" 24610XDM_LIBS="$XDM_LIBS $DMCP_LIBS" 24611 24612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XdmcpWrap in -lXdmcp" >&5 24613printf %s "checking for XdmcpWrap in -lXdmcp... " >&6; } 24614if test ${ac_cv_lib_Xdmcp_XdmcpWrap+y} 24615then : 24616 printf %s "(cached) " >&6 24617else case e in #( 24618 e) ac_check_lib_save_LIBS=$LIBS 24619LIBS="-lXdmcp $DMCP_LIBS $LIBS" 24620cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24621/* end confdefs.h. */ 24622 24623/* Override any GCC internal prototype to avoid an error. 24624 Use char because int might match the return type of a GCC 24625 builtin and then its argument prototype would still apply. 24626 The 'extern "C"' is for builds by C++ compilers; 24627 although this is not generally supported in C code supporting it here 24628 has little cost and some practical benefit (sr 110532). */ 24629#ifdef __cplusplus 24630extern "C" 24631#endif 24632char XdmcpWrap (void); 24633int 24634main (void) 24635{ 24636return XdmcpWrap (); 24637 ; 24638 return 0; 24639} 24640_ACEOF 24641if ac_fn_c_try_link "$LINENO" 24642then : 24643 ac_cv_lib_Xdmcp_XdmcpWrap=yes 24644else case e in #( 24645 e) ac_cv_lib_Xdmcp_XdmcpWrap=no ;; 24646esac 24647fi 24648rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24649 conftest$ac_exeext conftest.$ac_ext 24650LIBS=$ac_check_lib_save_LIBS ;; 24651esac 24652fi 24653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5 24654printf "%s\n" "$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; } 24655if test "x$ac_cv_lib_Xdmcp_XdmcpWrap" = xyes 24656then : 24657 xdmauth="yes" 24658else case e in #( 24659 e) xdmauth="no" ;; 24660esac 24661fi 24662 24663 24664# Check whether --enable-xdm-auth was given. 24665if test ${enable_xdm_auth+y} 24666then : 24667 enableval=$enable_xdm_auth; xdmauth_enable="$enableval" 24668else case e in #( 24669 e) xdmauth_enable="auto" ;; 24670esac 24671fi 24672 24673if test "x$xdmauth_enable" = "xyes" -a "x$xdmauth" = "xno" ; then 24674 as_fn_error $? "XDM-AUTH support requested, but XdmcpWrap not found in libXdmcp." "$LINENO" 5 24675fi 24676 24677 if test x$xdmauth = xyes -a x$xdmauth_enable != xno; then 24678 HAS_XDM_AUTH_TRUE= 24679 HAS_XDM_AUTH_FALSE='#' 24680else 24681 HAS_XDM_AUTH_TRUE='#' 24682 HAS_XDM_AUTH_FALSE= 24683fi 24684 24685 24686 24687 24688 24689# 24690# xdmshell 24691# 24692 24693# Check whether --enable-xdmshell was given. 24694if test ${enable_xdmshell+y} 24695then : 24696 enableval=$enable_xdmshell; INSTALL_XDMSHELL="$enableval" 24697else case e in #( 24698 e) INSTALL_XDMSHELL="no" ;; 24699esac 24700fi 24701 24702 if test x$INSTALL_XDMSHELL = xyes; then 24703 INSTALL_XDMSHELL_TRUE= 24704 INSTALL_XDMSHELL_FALSE='#' 24705else 24706 INSTALL_XDMSHELL_TRUE='#' 24707 INSTALL_XDMSHELL_FALSE= 24708fi 24709 24710 24711 24712pkg_failed=no 24713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XT" >&5 24714printf %s "checking for XT... " >&6; } 24715 24716if test -n "$XT_CFLAGS"; then 24717 pkg_cv_XT_CFLAGS="$XT_CFLAGS" 24718 elif test -n "$PKG_CONFIG"; then 24719 if test -n "$PKG_CONFIG" && \ 24720 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 24721 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 24722 ac_status=$? 24723 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24724 test $ac_status = 0; }; then 24725 pkg_cv_XT_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` 24726 test "x$?" != "x0" && pkg_failed=yes 24727else 24728 pkg_failed=yes 24729fi 24730 else 24731 pkg_failed=untried 24732fi 24733if test -n "$XT_LIBS"; then 24734 pkg_cv_XT_LIBS="$XT_LIBS" 24735 elif test -n "$PKG_CONFIG"; then 24736 if test -n "$PKG_CONFIG" && \ 24737 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 24738 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 24739 ac_status=$? 24740 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24741 test $ac_status = 0; }; then 24742 pkg_cv_XT_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` 24743 test "x$?" != "x0" && pkg_failed=yes 24744else 24745 pkg_failed=yes 24746fi 24747 else 24748 pkg_failed=untried 24749fi 24750 24751 24752 24753if test $pkg_failed = yes; then 24754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24755printf "%s\n" "no" >&6; } 24756 24757if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 24758 _pkg_short_errors_supported=yes 24759else 24760 _pkg_short_errors_supported=no 24761fi 24762 if test $_pkg_short_errors_supported = yes; then 24763 XT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1` 24764 else 24765 XT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1` 24766 fi 24767 # Put the nasty error message in config.log where it belongs 24768 echo "$XT_PKG_ERRORS" >&5 24769 24770 as_fn_error $? "Package requirements (xt) were not met: 24771 24772$XT_PKG_ERRORS 24773 24774Consider adjusting the PKG_CONFIG_PATH environment variable if you 24775installed software in a non-standard prefix. 24776 24777Alternatively, you may set the environment variables XT_CFLAGS 24778and XT_LIBS to avoid the need to call pkg-config. 24779See the pkg-config man page for more details." "$LINENO" 5 24780elif test $pkg_failed = untried; then 24781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24782printf "%s\n" "no" >&6; } 24783 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 24784printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 24785as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 24786is in your PATH or set the PKG_CONFIG environment variable to the full 24787path to pkg-config. 24788 24789Alternatively, you may set the environment variables XT_CFLAGS 24790and XT_LIBS to avoid the need to call pkg-config. 24791See the pkg-config man page for more details. 24792 24793To get pkg-config, see <http://pkg-config.freedesktop.org/>. 24794See 'config.log' for more details" "$LINENO" 5; } 24795else 24796 XT_CFLAGS=$pkg_cv_XT_CFLAGS 24797 XT_LIBS=$pkg_cv_XT_LIBS 24798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24799printf "%s\n" "yes" >&6; } 24800 24801fi 24802XDMSHELL_CFLAGS="$XDM_CFLAGS $XDM_TOOLKIT_CFLAGS $AUTH_CFLAGS $DMCP_CFLAGS $XLIB_CFLAGS $XT_CFLAGS" 24803XDMSHELL_LIBS="$XDM_LIBS $XDM_TOOLKIT_LIBS $DMCP_LIBS" 24804 24805 24806 24807 24808# 24809# Chooser 24810# 24811 24812CHOOSER_CFLAGS="$CHOOSER_CFLAGS $XDM_TOOLKIT_CFLAGS $XLIB_CFLAGS $DMCP_CFLAGS $AUTH_CFLAGS" 24813CHOOSER_LIBS="$CHOOSER_LIBS $XDM_TOOLKIT_LIBS $DMCP_LIBS" 24814 24815 24816 24817 24818# Defaults for X session - should probably be configure --with-* flags 24819# Currently just trying to mirror what defaults were set in Imake 24820 24821# -DDEF_SERVER_LINE=":0 local $(DEF_SERVER) :0" 24822if test -z "$DEF_SERVER" ; then 24823 DEF_SERVER="${bindir}/X" 24824fi 24825if test -z "$DEF_SERVER_LINE" ; then 24826 DEF_SERVER_LINE=":0 local ${DEF_SERVER} :0" 24827fi 24828 24829 prefix_NONE= 24830 exec_prefix_NONE= 24831 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 24832 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 24833 eval ax_define_dir="\"$DEF_SERVER_LINE\"" 24834 eval ax_define_dir="\"$ax_define_dir\"" 24835 DEF_SERVER_LINE="$ax_define_dir" 24836 24837 24838printf "%s\n" "#define DEF_SERVER_LINE \"$ax_define_dir\"" >>confdefs.h 24839 24840 test "$prefix_NONE" && prefix=NONE 24841 test "$exec_prefix_NONE" && exec_prefix=NONE 24842 24843 24844# -DXRDB_PROGRAM="$(BINDIR)/xrdb" 24845 24846# Check whether --with-xrdb was given. 24847if test ${with_xrdb+y} 24848then : 24849 withval=$with_xrdb; XRDB=$withval 24850else case e in #( 24851 e) XRDB=${bindir}/xrdb ;; 24852esac 24853fi 24854 24855 24856 prefix_NONE= 24857 exec_prefix_NONE= 24858 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 24859 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 24860 eval ax_define_dir="\"$XRDB\"" 24861 eval ax_define_dir="\"$ax_define_dir\"" 24862 XRDB_PROGRAM="$ax_define_dir" 24863 24864 24865printf "%s\n" "#define XRDB_PROGRAM \"$ax_define_dir\"" >>confdefs.h 24866 24867 test "$prefix_NONE" && prefix=NONE 24868 test "$exec_prefix_NONE" && exec_prefix=NONE 24869 24870 24871# -DDEF_SESSION="$(BINDIR)/xterm -ls" 24872 24873# Check whether --with-default-session was given. 24874if test ${with_default_session+y} 24875then : 24876 withval=$with_default_session; DEF_SESSION=$withval 24877else case e in #( 24878 e) DEF_SESSION="${bindir}/xterm -ls" ;; 24879esac 24880fi 24881 24882 24883 prefix_NONE= 24884 exec_prefix_NONE= 24885 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 24886 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 24887 eval ax_define_dir="\"$DEF_SESSION\"" 24888 eval ax_define_dir="\"$ax_define_dir\"" 24889 DEF_SESSION="$ax_define_dir" 24890 24891 24892printf "%s\n" "#define DEF_SESSION \"$ax_define_dir\"" >>confdefs.h 24893 24894 test "$prefix_NONE" && prefix=NONE 24895 test "$exec_prefix_NONE" && exec_prefix=NONE 24896 24897 24898# -DDEF_USER_PATH="$(DEF_USER_PATH)" 24899# Default values taken from DefaultUserPath setting in the 24900# old Imake *.cf files for each platform 24901if test -z "$DEF_USER_PATH" ; then 24902 case $host_os in 24903 dragonfly*) 24904 DEF_USER_PATH="/bin:/usr/bin:/sbin:/usr/sbin:${bindir}:/usr/local/bin" 24905 ;; 24906 freebsd*) 24907 DEF_USER_PATH="/bin:/usr/bin:/sbin:/usr/sbin:${bindir}:/usr/gnu/bin:/usr/local/bin" 24908 ;; 24909 netbsd*) 24910 DEF_USER_PATH="/bin:/usr/bin:/usr/pkg/bin:/usr/local/bin:${bindir}" 24911 ;; 24912 openbsd*|bsdi*) 24913 DEF_USER_PATH="/bin:/usr/bin:/usr/local/bin:${bindir}" 24914 ;; 24915 solaris*) 24916 DEF_USER_PATH="/usr/bin:${bindir}" 24917 ;; 24918 *) 24919 DEF_USER_PATH="/bin:/usr/bin:${bindir}:/usr/ucb" 24920 ;; 24921 esac 24922fi 24923 24924 prefix_NONE= 24925 exec_prefix_NONE= 24926 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 24927 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 24928 eval ax_define_dir="\"$DEF_USER_PATH\"" 24929 eval ax_define_dir="\"$ax_define_dir\"" 24930 DEF_USER_PATH="$ax_define_dir" 24931 24932 24933printf "%s\n" "#define DEF_USER_PATH \"$ax_define_dir\"" >>confdefs.h 24934 24935 test "$prefix_NONE" && prefix=NONE 24936 test "$exec_prefix_NONE" && exec_prefix=NONE 24937 24938 24939# -DDEF_SYSTEM_PATH="$(DEF_SYSTEM_PATH)" 24940# Default values taken from DefaultSystemPath setting in the 24941# old Imake *.cf files for each platform 24942if test -z "$DEF_SYSTEM_PATH" ; then 24943 case $host_os in 24944 freebsd*|dragonfly*) 24945 DEF_SYSTEM_PATH="/bin:/usr/bin:/sbin:/usr/sbin:${bindir}" 24946 ;; 24947 netbsd*|openbsd*|bsdi*) 24948 DEF_SYSTEM_PATH="/sbin:/usr/sbin:/bin:/usr/bin:${bindir}" 24949 ;; 24950 solaris*) 24951 DEF_SYSTEM_PATH="/sbin:/usr/sbin:/usr/bin:${bindir}" 24952 ;; 24953 *) 24954 DEF_SYSTEM_PATH="/etc:/bin:/usr/bin:${bindir}:/usr/ucb" 24955 ;; 24956 esac 24957fi 24958 24959 prefix_NONE= 24960 exec_prefix_NONE= 24961 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 24962 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 24963 eval ax_define_dir="\"$DEF_SYSTEM_PATH\"" 24964 eval ax_define_dir="\"$ax_define_dir\"" 24965 DEF_SYSTEM_PATH="$ax_define_dir" 24966 24967 24968printf "%s\n" "#define DEF_SYSTEM_PATH \"$ax_define_dir\"" >>confdefs.h 24969 24970 test "$prefix_NONE" && prefix=NONE 24971 test "$exec_prefix_NONE" && exec_prefix=NONE 24972 24973 24974# -DDEF_SYSTEM_SHELL="$(BOURNE_SHELL)" 24975if test -z "$BOURNE_SHELL" ; then 24976 BOURNE_SHELL=/bin/sh 24977fi 24978 24979 prefix_NONE= 24980 exec_prefix_NONE= 24981 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 24982 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 24983 eval ax_define_dir="\"$BOURNE_SHELL\"" 24984 eval ax_define_dir="\"$ax_define_dir\"" 24985 DEF_SYSTEM_SHELL="$ax_define_dir" 24986 24987 24988printf "%s\n" "#define DEF_SYSTEM_SHELL \"$ax_define_dir\"" >>confdefs.h 24989 24990 test "$prefix_NONE" && prefix=NONE 24991 test "$exec_prefix_NONE" && exec_prefix=NONE 24992 24993 24994# -DDEF_FAILSAFE_CLIENT="$(BINDIR)/xterm" 24995 24996 24997 prefix_NONE= 24998 exec_prefix_NONE= 24999 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 25000 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 25001 eval ax_define_dir="\"$bindir/xterm\"" 25002 eval ax_define_dir="\"$ax_define_dir\"" 25003 DEF_FAILSAFE_CLIENT="$ax_define_dir" 25004 25005 25006printf "%s\n" "#define DEF_FAILSAFE_CLIENT \"$ax_define_dir\"" >>confdefs.h 25007 25008 test "$prefix_NONE" && prefix=NONE 25009 test "$exec_prefix_NONE" && exec_prefix=NONE 25010 25011 25012# -DDEF_XDM_CONFIG="$(XDMDIR)/xdm-config" 25013 25014 25015 prefix_NONE= 25016 exec_prefix_NONE= 25017 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 25018 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 25019 eval ax_define_dir="\"$XDMCONFIGDIR/xdm-config\"" 25020 eval ax_define_dir="\"$ax_define_dir\"" 25021 DEF_XDM_CONFIG="$ax_define_dir" 25022 25023 25024printf "%s\n" "#define DEF_XDM_CONFIG \"$ax_define_dir\"" >>confdefs.h 25025 25026 test "$prefix_NONE" && prefix=NONE 25027 test "$exec_prefix_NONE" && exec_prefix=NONE 25028 25029 25030# -DDEF_CHOOSER="$(CHOOSERPATH)" 25031 25032 25033 prefix_NONE= 25034 exec_prefix_NONE= 25035 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 25036 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 25037 eval ax_define_dir="\"$XDMLIBDIR/chooser\"" 25038 eval ax_define_dir="\"$ax_define_dir\"" 25039 DEF_CHOOSER="$ax_define_dir" 25040 25041 25042printf "%s\n" "#define DEF_CHOOSER \"$ax_define_dir\"" >>confdefs.h 25043 25044 test "$prefix_NONE" && prefix=NONE 25045 test "$exec_prefix_NONE" && exec_prefix=NONE 25046 25047 25048# -DDEF_AUTH_DIR="$(XDMDIR)" 25049 25050 25051# Check whether --with-authdir was given. 25052if test ${with_authdir+y} 25053then : 25054 withval=$with_authdir; XDMXAUTHDIR="$withval" 25055else case e in #( 25056 e) XDMXAUTHDIR="/var/lib/xdm" ;; 25057esac 25058fi 25059 25060 25061 25062 25063 prefix_NONE= 25064 exec_prefix_NONE= 25065 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 25066 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 25067 eval ax_define_dir="\"$XDMXAUTHDIR\"" 25068 eval ax_define_dir="\"$ax_define_dir\"" 25069 DEF_AUTH_DIR="$ax_define_dir" 25070 25071 25072printf "%s\n" "#define DEF_AUTH_DIR \"$ax_define_dir\"" >>confdefs.h 25073 25074 test "$prefix_NONE" && prefix=NONE 25075 test "$exec_prefix_NONE" && exec_prefix=NONE 25076 25077 25078# -DDEF_GREETER_LIB="$(XDMDIR)/libXdmGreet.so" 25079 25080 25081 prefix_NONE= 25082 exec_prefix_NONE= 25083 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 25084 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 25085 eval ax_define_dir="\"$XDMLIBDIR/libXdmGreet.so\"" 25086 eval ax_define_dir="\"$ax_define_dir\"" 25087 DEF_GREETER_LIB="$ax_define_dir" 25088 25089 25090printf "%s\n" "#define DEF_GREETER_LIB \"$ax_define_dir\"" >>confdefs.h 25091 25092 test "$prefix_NONE" && prefix=NONE 25093 test "$exec_prefix_NONE" && exec_prefix=NONE 25094 25095 25096 25097pkg_failed=no 25098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5 25099printf %s "checking for APPDEFS... " >&6; } 25100 25101if test -n "$APPDEFS_CFLAGS"; then 25102 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS" 25103 elif test -n "$PKG_CONFIG"; then 25104 if test -n "$PKG_CONFIG" && \ 25105 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 25106 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 25107 ac_status=$? 25108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25109 test $ac_status = 0; }; then 25110 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` 25111 test "x$?" != "x0" && pkg_failed=yes 25112else 25113 pkg_failed=yes 25114fi 25115 else 25116 pkg_failed=untried 25117fi 25118if test -n "$APPDEFS_LIBS"; then 25119 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS" 25120 elif test -n "$PKG_CONFIG"; then 25121 if test -n "$PKG_CONFIG" && \ 25122 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 25123 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 25124 ac_status=$? 25125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25126 test $ac_status = 0; }; then 25127 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` 25128 test "x$?" != "x0" && pkg_failed=yes 25129else 25130 pkg_failed=yes 25131fi 25132 else 25133 pkg_failed=untried 25134fi 25135 25136 25137 25138if test $pkg_failed = yes; then 25139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25140printf "%s\n" "no" >&6; } 25141 25142if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25143 _pkg_short_errors_supported=yes 25144else 25145 _pkg_short_errors_supported=no 25146fi 25147 if test $_pkg_short_errors_supported = yes; then 25148 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1` 25149 else 25150 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1` 25151 fi 25152 # Put the nasty error message in config.log where it belongs 25153 echo "$APPDEFS_PKG_ERRORS" >&5 25154 25155 as_fn_error $? "Package requirements (xt) were not met: 25156 25157$APPDEFS_PKG_ERRORS 25158 25159Consider adjusting the PKG_CONFIG_PATH environment variable if you 25160installed software in a non-standard prefix. 25161 25162Alternatively, you may set the environment variables APPDEFS_CFLAGS 25163and APPDEFS_LIBS to avoid the need to call pkg-config. 25164See the pkg-config man page for more details." "$LINENO" 5 25165elif test $pkg_failed = untried; then 25166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25167printf "%s\n" "no" >&6; } 25168 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 25169printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 25170as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 25171is in your PATH or set the PKG_CONFIG environment variable to the full 25172path to pkg-config. 25173 25174Alternatively, you may set the environment variables APPDEFS_CFLAGS 25175and APPDEFS_LIBS to avoid the need to call pkg-config. 25176See the pkg-config man page for more details. 25177 25178To get pkg-config, see <http://pkg-config.freedesktop.org/>. 25179See 'config.log' for more details" "$LINENO" 5; } 25180else 25181 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS 25182 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS 25183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25184printf "%s\n" "yes" >&6; } 25185 25186fi 25187xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 25188 25189# Check whether --with-appdefaultdir was given. 25190if test ${with_appdefaultdir+y} 25191then : 25192 withval=$with_appdefaultdir; appdefaultdir="$withval" 25193else case e in #( 25194 e) appdefaultdir="${xt_appdefaultdir}" ;; 25195esac 25196fi 25197 25198 25199 25200 25201 25202ac_config_files="$ac_config_files Makefile app-defaults/Makefile chooser/Makefile config/Makefile greeter/Makefile include/Makefile man/Makefile xdm/Makefile xdmshell/Makefile" 25203 25204cat >confcache <<\_ACEOF 25205# This file is a shell script that caches the results of configure 25206# tests run on this system so they can be shared between configure 25207# scripts and configure runs, see configure's option --config-cache. 25208# It is not useful on other systems. If it contains results you don't 25209# want to keep, you may remove or edit it. 25210# 25211# config.status only pays attention to the cache file if you give it 25212# the --recheck option to rerun configure. 25213# 25214# 'ac_cv_env_foo' variables (set or unset) will be overridden when 25215# loading this file, other *unset* 'ac_cv_foo' will be assigned the 25216# following values. 25217 25218_ACEOF 25219 25220# The following way of writing the cache mishandles newlines in values, 25221# but we know of no workaround that is simple, portable, and efficient. 25222# So, we kill variables containing newlines. 25223# Ultrix sh set writes to stderr and can't be redirected directly, 25224# and sets the high bit in the cache file unless we assign to the vars. 25225( 25226 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 25227 eval ac_val=\$$ac_var 25228 case $ac_val in #( 25229 *${as_nl}*) 25230 case $ac_var in #( 25231 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 25232printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 25233 esac 25234 case $ac_var in #( 25235 _ | IFS | as_nl) ;; #( 25236 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 25237 *) { eval $ac_var=; unset $ac_var;} ;; 25238 esac ;; 25239 esac 25240 done 25241 25242 (set) 2>&1 | 25243 case $as_nl`(ac_space=' '; set) 2>&1` in #( 25244 *${as_nl}ac_space=\ *) 25245 # 'set' does not quote correctly, so add quotes: double-quote 25246 # substitution turns \\\\ into \\, and sed turns \\ into \. 25247 sed -n \ 25248 "s/'/'\\\\''/g; 25249 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 25250 ;; #( 25251 *) 25252 # 'set' quotes correctly as required by POSIX, so do not add quotes. 25253 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 25254 ;; 25255 esac | 25256 sort 25257) | 25258 sed ' 25259 /^ac_cv_env_/b end 25260 t clear 25261 :clear 25262 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 25263 t end 25264 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 25265 :end' >>confcache 25266if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 25267 if test -w "$cache_file"; then 25268 if test "x$cache_file" != "x/dev/null"; then 25269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 25270printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 25271 if test ! -f "$cache_file" || test -h "$cache_file"; then 25272 cat confcache >"$cache_file" 25273 else 25274 case $cache_file in #( 25275 */* | ?:*) 25276 mv -f confcache "$cache_file"$$ && 25277 mv -f "$cache_file"$$ "$cache_file" ;; #( 25278 *) 25279 mv -f confcache "$cache_file" ;; 25280 esac 25281 fi 25282 fi 25283 else 25284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 25285printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 25286 fi 25287fi 25288rm -f confcache 25289 25290test "x$prefix" = xNONE && prefix=$ac_default_prefix 25291# Let make expand exec_prefix. 25292test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 25293 25294DEFS=-DHAVE_CONFIG_H 25295 25296ac_libobjs= 25297ac_ltlibobjs= 25298U= 25299for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 25300 # 1. Remove the extension, and $U if already installed. 25301 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 25302 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 25303 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 25304 # will be set to the directory where LIBOBJS objects are built. 25305 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 25306 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 25307done 25308LIBOBJS=$ac_libobjs 25309 25310LTLIBOBJS=$ac_ltlibobjs 25311 25312 25313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 25314printf %s "checking that generated files are newer than configure... " >&6; } 25315 if test -n "$am_sleep_pid"; then 25316 # Hide warnings about reused PIDs. 25317 wait $am_sleep_pid 2>/dev/null 25318 fi 25319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 25320printf "%s\n" "done" >&6; } 25321if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 25322 as_fn_error $? "conditional \"AMDEP\" was never defined. 25323Usually this means the macro was only invoked conditionally." "$LINENO" 5 25324fi 25325if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 25326 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 25327Usually this means the macro was only invoked conditionally." "$LINENO" 5 25328fi 25329case $enable_silent_rules in # ((( 25330 yes) AM_DEFAULT_VERBOSITY=0;; 25331 no) AM_DEFAULT_VERBOSITY=1;; 25332esac 25333if test $am_cv_make_support_nested_variables = yes; then 25334 AM_V='$(V)' 25335 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 25336else 25337 AM_V=$AM_DEFAULT_VERBOSITY 25338 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 25339fi 25340 25341 if test -n "$EXEEXT"; then 25342 am__EXEEXT_TRUE= 25343 am__EXEEXT_FALSE='#' 25344else 25345 am__EXEEXT_TRUE='#' 25346 am__EXEEXT_FALSE= 25347fi 25348 25349if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 25350 as_fn_error $? "conditional \"LINT\" was never defined. 25351Usually this means the macro was only invoked conditionally." "$LINENO" 5 25352fi 25353if test -z "${HAVE_MKTEMP_COMMAND_TRUE}" && test -z "${HAVE_MKTEMP_COMMAND_FALSE}"; then 25354 as_fn_error $? "conditional \"HAVE_MKTEMP_COMMAND\" was never defined. 25355Usually this means the macro was only invoked conditionally." "$LINENO" 5 25356fi 25357if test -z "${HAVE_ARC4RANDOM_TRUE}" && test -z "${HAVE_ARC4RANDOM_FALSE}"; then 25358 as_fn_error $? "conditional \"HAVE_ARC4RANDOM\" was never defined. 25359Usually this means the macro was only invoked conditionally." "$LINENO" 5 25360fi 25361if test -z "${HAS_SECURE_RPC_TRUE}" && test -z "${HAS_SECURE_RPC_FALSE}"; then 25362 as_fn_error $? "conditional \"HAS_SECURE_RPC\" was never defined. 25363Usually this means the macro was only invoked conditionally." "$LINENO" 5 25364fi 25365if test -z "${HAVE_SYSTEMD_TRUE}" && test -z "${HAVE_SYSTEMD_FALSE}"; then 25366 as_fn_error $? "conditional \"HAVE_SYSTEMD\" was never defined. 25367Usually this means the macro was only invoked conditionally." "$LINENO" 5 25368fi 25369if test -z "${USE_SYSTEMD_DAEMON_TRUE}" && test -z "${USE_SYSTEMD_DAEMON_FALSE}"; then 25370 as_fn_error $? "conditional \"USE_SYSTEMD_DAEMON\" was never defined. 25371Usually this means the macro was only invoked conditionally." "$LINENO" 5 25372fi 25373if test -z "${HAS_KERBEROS_FIVE_TRUE}" && test -z "${HAS_KERBEROS_FIVE_FALSE}"; then 25374 as_fn_error $? "conditional \"HAS_KERBEROS_FIVE\" was never defined. 25375Usually this means the macro was only invoked conditionally." "$LINENO" 5 25376fi 25377if test -z "${SET_UTMP_FILE_TRUE}" && test -z "${SET_UTMP_FILE_FALSE}"; then 25378 as_fn_error $? "conditional \"SET_UTMP_FILE\" was never defined. 25379Usually this means the macro was only invoked conditionally." "$LINENO" 5 25380fi 25381if test -z "${SET_WTMP_FILE_TRUE}" && test -z "${SET_WTMP_FILE_FALSE}"; then 25382 as_fn_error $? "conditional \"SET_WTMP_FILE\" was never defined. 25383Usually this means the macro was only invoked conditionally." "$LINENO" 5 25384fi 25385if test -z "${USE_XPM_TRUE}" && test -z "${USE_XPM_FALSE}"; then 25386 as_fn_error $? "conditional \"USE_XPM\" was never defined. 25387Usually this means the macro was only invoked conditionally." "$LINENO" 5 25388fi 25389if test -z "${HAS_XDM_AUTH_TRUE}" && test -z "${HAS_XDM_AUTH_FALSE}"; then 25390 as_fn_error $? "conditional \"HAS_XDM_AUTH\" was never defined. 25391Usually this means the macro was only invoked conditionally." "$LINENO" 5 25392fi 25393if test -z "${INSTALL_XDMSHELL_TRUE}" && test -z "${INSTALL_XDMSHELL_FALSE}"; then 25394 as_fn_error $? "conditional \"INSTALL_XDMSHELL\" was never defined. 25395Usually this means the macro was only invoked conditionally." "$LINENO" 5 25396fi 25397 25398: "${CONFIG_STATUS=./config.status}" 25399ac_write_fail=0 25400ac_clean_files_save=$ac_clean_files 25401ac_clean_files="$ac_clean_files $CONFIG_STATUS" 25402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 25403printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 25404as_write_fail=0 25405cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 25406#! $SHELL 25407# Generated by $as_me. 25408# Run this file to recreate the current configuration. 25409# Compiler output produced by configure, useful for debugging 25410# configure, is in config.log if it exists. 25411 25412debug=false 25413ac_cs_recheck=false 25414ac_cs_silent=false 25415 25416SHELL=\${CONFIG_SHELL-$SHELL} 25417export SHELL 25418_ASEOF 25419cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 25420## -------------------- ## 25421## M4sh Initialization. ## 25422## -------------------- ## 25423 25424# Be more Bourne compatible 25425DUALCASE=1; export DUALCASE # for MKS sh 25426if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 25427then : 25428 emulate sh 25429 NULLCMD=: 25430 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25431 # is contrary to our usage. Disable this feature. 25432 alias -g '${1+"$@"}'='"$@"' 25433 setopt NO_GLOB_SUBST 25434else case e in #( 25435 e) case `(set -o) 2>/dev/null` in #( 25436 *posix*) : 25437 set -o posix ;; #( 25438 *) : 25439 ;; 25440esac ;; 25441esac 25442fi 25443 25444 25445 25446# Reset variables that may have inherited troublesome values from 25447# the environment. 25448 25449# IFS needs to be set, to space, tab, and newline, in precisely that order. 25450# (If _AS_PATH_WALK were called with IFS unset, it would have the 25451# side effect of setting IFS to empty, thus disabling word splitting.) 25452# Quoting is to prevent editors from complaining about space-tab. 25453as_nl=' 25454' 25455export as_nl 25456IFS=" "" $as_nl" 25457 25458PS1='$ ' 25459PS2='> ' 25460PS4='+ ' 25461 25462# Ensure predictable behavior from utilities with locale-dependent output. 25463LC_ALL=C 25464export LC_ALL 25465LANGUAGE=C 25466export LANGUAGE 25467 25468# We cannot yet rely on "unset" to work, but we need these variables 25469# to be unset--not just set to an empty or harmless value--now, to 25470# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 25471# also avoids known problems related to "unset" and subshell syntax 25472# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 25473for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 25474do eval test \${$as_var+y} \ 25475 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 25476done 25477 25478# Ensure that fds 0, 1, and 2 are open. 25479if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 25480if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 25481if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 25482 25483# The user is always right. 25484if ${PATH_SEPARATOR+false} :; then 25485 PATH_SEPARATOR=: 25486 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 25487 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 25488 PATH_SEPARATOR=';' 25489 } 25490fi 25491 25492 25493# Find who we are. Look in the path if we contain no directory separator. 25494as_myself= 25495case $0 in #(( 25496 *[\\/]* ) as_myself=$0 ;; 25497 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25498for as_dir in $PATH 25499do 25500 IFS=$as_save_IFS 25501 case $as_dir in #((( 25502 '') as_dir=./ ;; 25503 */) ;; 25504 *) as_dir=$as_dir/ ;; 25505 esac 25506 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 25507 done 25508IFS=$as_save_IFS 25509 25510 ;; 25511esac 25512# We did not find ourselves, most probably we were run as 'sh COMMAND' 25513# in which case we are not to be found in the path. 25514if test "x$as_myself" = x; then 25515 as_myself=$0 25516fi 25517if test ! -f "$as_myself"; then 25518 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 25519 exit 1 25520fi 25521 25522 25523 25524# as_fn_error STATUS ERROR [LINENO LOG_FD] 25525# ---------------------------------------- 25526# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 25527# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 25528# script with STATUS, using 1 if that was 0. 25529as_fn_error () 25530{ 25531 as_status=$1; test $as_status -eq 0 && as_status=1 25532 if test "$4"; then 25533 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 25534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 25535 fi 25536 printf "%s\n" "$as_me: error: $2" >&2 25537 as_fn_exit $as_status 25538} # as_fn_error 25539 25540 25541# as_fn_set_status STATUS 25542# ----------------------- 25543# Set $? to STATUS, without forking. 25544as_fn_set_status () 25545{ 25546 return $1 25547} # as_fn_set_status 25548 25549# as_fn_exit STATUS 25550# ----------------- 25551# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 25552as_fn_exit () 25553{ 25554 set +e 25555 as_fn_set_status $1 25556 exit $1 25557} # as_fn_exit 25558 25559# as_fn_unset VAR 25560# --------------- 25561# Portably unset VAR. 25562as_fn_unset () 25563{ 25564 { eval $1=; unset $1;} 25565} 25566as_unset=as_fn_unset 25567 25568# as_fn_append VAR VALUE 25569# ---------------------- 25570# Append the text in VALUE to the end of the definition contained in VAR. Take 25571# advantage of any shell optimizations that allow amortized linear growth over 25572# repeated appends, instead of the typical quadratic growth present in naive 25573# implementations. 25574if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 25575then : 25576 eval 'as_fn_append () 25577 { 25578 eval $1+=\$2 25579 }' 25580else case e in #( 25581 e) as_fn_append () 25582 { 25583 eval $1=\$$1\$2 25584 } ;; 25585esac 25586fi # as_fn_append 25587 25588# as_fn_arith ARG... 25589# ------------------ 25590# Perform arithmetic evaluation on the ARGs, and store the result in the 25591# global $as_val. Take advantage of shells that can avoid forks. The arguments 25592# must be portable across $(()) and expr. 25593if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 25594then : 25595 eval 'as_fn_arith () 25596 { 25597 as_val=$(( $* )) 25598 }' 25599else case e in #( 25600 e) as_fn_arith () 25601 { 25602 as_val=`expr "$@" || test $? -eq 1` 25603 } ;; 25604esac 25605fi # as_fn_arith 25606 25607 25608if expr a : '\(a\)' >/dev/null 2>&1 && 25609 test "X`expr 00001 : '.*\(...\)'`" = X001; then 25610 as_expr=expr 25611else 25612 as_expr=false 25613fi 25614 25615if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 25616 as_basename=basename 25617else 25618 as_basename=false 25619fi 25620 25621if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 25622 as_dirname=dirname 25623else 25624 as_dirname=false 25625fi 25626 25627as_me=`$as_basename -- "$0" || 25628$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 25629 X"$0" : 'X\(//\)$' \| \ 25630 X"$0" : 'X\(/\)' \| . 2>/dev/null || 25631printf "%s\n" X/"$0" | 25632 sed '/^.*\/\([^/][^/]*\)\/*$/{ 25633 s//\1/ 25634 q 25635 } 25636 /^X\/\(\/\/\)$/{ 25637 s//\1/ 25638 q 25639 } 25640 /^X\/\(\/\).*/{ 25641 s//\1/ 25642 q 25643 } 25644 s/.*/./; q'` 25645 25646# Avoid depending upon Character Ranges. 25647as_cr_letters='abcdefghijklmnopqrstuvwxyz' 25648as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 25649as_cr_Letters=$as_cr_letters$as_cr_LETTERS 25650as_cr_digits='0123456789' 25651as_cr_alnum=$as_cr_Letters$as_cr_digits 25652 25653 25654# Determine whether it's possible to make 'echo' print without a newline. 25655# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 25656# for compatibility with existing Makefiles. 25657ECHO_C= ECHO_N= ECHO_T= 25658case `echo -n x` in #((((( 25659-n*) 25660 case `echo 'xy\c'` in 25661 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 25662 xy) ECHO_C='\c';; 25663 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 25664 ECHO_T=' ';; 25665 esac;; 25666*) 25667 ECHO_N='-n';; 25668esac 25669 25670# For backward compatibility with old third-party macros, we provide 25671# the shell variables $as_echo and $as_echo_n. New code should use 25672# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 25673as_echo='printf %s\n' 25674as_echo_n='printf %s' 25675 25676rm -f conf$$ conf$$.exe conf$$.file 25677if test -d conf$$.dir; then 25678 rm -f conf$$.dir/conf$$.file 25679else 25680 rm -f conf$$.dir 25681 mkdir conf$$.dir 2>/dev/null 25682fi 25683if (echo >conf$$.file) 2>/dev/null; then 25684 if ln -s conf$$.file conf$$ 2>/dev/null; then 25685 as_ln_s='ln -s' 25686 # ... but there are two gotchas: 25687 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 25688 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 25689 # In both cases, we have to default to 'cp -pR'. 25690 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 25691 as_ln_s='cp -pR' 25692 elif ln conf$$.file conf$$ 2>/dev/null; then 25693 as_ln_s=ln 25694 else 25695 as_ln_s='cp -pR' 25696 fi 25697else 25698 as_ln_s='cp -pR' 25699fi 25700rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 25701rmdir conf$$.dir 2>/dev/null 25702 25703 25704# as_fn_mkdir_p 25705# ------------- 25706# Create "$as_dir" as a directory, including parents if necessary. 25707as_fn_mkdir_p () 25708{ 25709 25710 case $as_dir in #( 25711 -*) as_dir=./$as_dir;; 25712 esac 25713 test -d "$as_dir" || eval $as_mkdir_p || { 25714 as_dirs= 25715 while :; do 25716 case $as_dir in #( 25717 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 25718 *) as_qdir=$as_dir;; 25719 esac 25720 as_dirs="'$as_qdir' $as_dirs" 25721 as_dir=`$as_dirname -- "$as_dir" || 25722$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25723 X"$as_dir" : 'X\(//\)[^/]' \| \ 25724 X"$as_dir" : 'X\(//\)$' \| \ 25725 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 25726printf "%s\n" X"$as_dir" | 25727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25728 s//\1/ 25729 q 25730 } 25731 /^X\(\/\/\)[^/].*/{ 25732 s//\1/ 25733 q 25734 } 25735 /^X\(\/\/\)$/{ 25736 s//\1/ 25737 q 25738 } 25739 /^X\(\/\).*/{ 25740 s//\1/ 25741 q 25742 } 25743 s/.*/./; q'` 25744 test -d "$as_dir" && break 25745 done 25746 test -z "$as_dirs" || eval "mkdir $as_dirs" 25747 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 25748 25749 25750} # as_fn_mkdir_p 25751if mkdir -p . 2>/dev/null; then 25752 as_mkdir_p='mkdir -p "$as_dir"' 25753else 25754 test -d ./-p && rmdir ./-p 25755 as_mkdir_p=false 25756fi 25757 25758 25759# as_fn_executable_p FILE 25760# ----------------------- 25761# Test if FILE is an executable regular file. 25762as_fn_executable_p () 25763{ 25764 test -f "$1" && test -x "$1" 25765} # as_fn_executable_p 25766as_test_x='test -x' 25767as_executable_p=as_fn_executable_p 25768 25769# Sed expression to map a string onto a valid CPP name. 25770as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 25771as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 25772 25773# Sed expression to map a string onto a valid variable name. 25774as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 25775as_tr_sh="eval sed '$as_sed_sh'" # deprecated 25776 25777 25778exec 6>&1 25779## ----------------------------------- ## 25780## Main body of $CONFIG_STATUS script. ## 25781## ----------------------------------- ## 25782_ASEOF 25783test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 25784 25785cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25786# Save the log message, to keep $0 and so on meaningful, and to 25787# report actual input values of CONFIG_FILES etc. instead of their 25788# values after options handling. 25789ac_log=" 25790This file was extended by xdm $as_me 1.1.17, which was 25791generated by GNU Autoconf 2.72. Invocation command line was 25792 25793 CONFIG_FILES = $CONFIG_FILES 25794 CONFIG_HEADERS = $CONFIG_HEADERS 25795 CONFIG_LINKS = $CONFIG_LINKS 25796 CONFIG_COMMANDS = $CONFIG_COMMANDS 25797 $ $0 $@ 25798 25799on `(hostname || uname -n) 2>/dev/null | sed 1q` 25800" 25801 25802_ACEOF 25803 25804case $ac_config_files in *" 25805"*) set x $ac_config_files; shift; ac_config_files=$*;; 25806esac 25807 25808case $ac_config_headers in *" 25809"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 25810esac 25811 25812 25813cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25814# Files that config.status was made for. 25815config_files="$ac_config_files" 25816config_headers="$ac_config_headers" 25817config_commands="$ac_config_commands" 25818 25819_ACEOF 25820 25821cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25822ac_cs_usage="\ 25823'$as_me' instantiates files and other configuration actions 25824from templates according to the current configuration. Unless the files 25825and actions are specified as TAGs, all are instantiated by default. 25826 25827Usage: $0 [OPTION]... [TAG]... 25828 25829 -h, --help print this help, then exit 25830 -V, --version print version number and configuration settings, then exit 25831 --config print configuration, then exit 25832 -q, --quiet, --silent 25833 do not print progress messages 25834 -d, --debug don't remove temporary files 25835 --recheck update $as_me by reconfiguring in the same conditions 25836 --file=FILE[:TEMPLATE] 25837 instantiate the configuration file FILE 25838 --header=FILE[:TEMPLATE] 25839 instantiate the configuration header FILE 25840 25841Configuration files: 25842$config_files 25843 25844Configuration headers: 25845$config_headers 25846 25847Configuration commands: 25848$config_commands 25849 25850Report bugs to <https://gitlab.freedesktop.org/xorg/app/xdm/-/issues>." 25851 25852_ACEOF 25853ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 25854ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 25855cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25856ac_cs_config='$ac_cs_config_escaped' 25857ac_cs_version="\\ 25858xdm config.status 1.1.17 25859configured by $0, generated by GNU Autoconf 2.72, 25860 with options \\"\$ac_cs_config\\" 25861 25862Copyright (C) 2023 Free Software Foundation, Inc. 25863This config.status script is free software; the Free Software Foundation 25864gives unlimited permission to copy, distribute and modify it." 25865 25866ac_pwd='$ac_pwd' 25867srcdir='$srcdir' 25868INSTALL='$INSTALL' 25869MKDIR_P='$MKDIR_P' 25870AWK='$AWK' 25871test -n "\$AWK" || AWK=awk 25872_ACEOF 25873 25874cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25875# The default lists apply if the user does not specify any file. 25876ac_need_defaults=: 25877while test $# != 0 25878do 25879 case $1 in 25880 --*=?*) 25881 ac_option=`expr "X$1" : 'X\([^=]*\)='` 25882 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 25883 ac_shift=: 25884 ;; 25885 --*=) 25886 ac_option=`expr "X$1" : 'X\([^=]*\)='` 25887 ac_optarg= 25888 ac_shift=: 25889 ;; 25890 *) 25891 ac_option=$1 25892 ac_optarg=$2 25893 ac_shift=shift 25894 ;; 25895 esac 25896 25897 case $ac_option in 25898 # Handling of the options. 25899 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 25900 ac_cs_recheck=: ;; 25901 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 25902 printf "%s\n" "$ac_cs_version"; exit ;; 25903 --config | --confi | --conf | --con | --co | --c ) 25904 printf "%s\n" "$ac_cs_config"; exit ;; 25905 --debug | --debu | --deb | --de | --d | -d ) 25906 debug=: ;; 25907 --file | --fil | --fi | --f ) 25908 $ac_shift 25909 case $ac_optarg in 25910 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 25911 '') as_fn_error $? "missing file argument" ;; 25912 esac 25913 as_fn_append CONFIG_FILES " '$ac_optarg'" 25914 ac_need_defaults=false;; 25915 --header | --heade | --head | --hea ) 25916 $ac_shift 25917 case $ac_optarg in 25918 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 25919 esac 25920 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 25921 ac_need_defaults=false;; 25922 --he | --h) 25923 # Conflict between --help and --header 25924 as_fn_error $? "ambiguous option: '$1' 25925Try '$0 --help' for more information.";; 25926 --help | --hel | -h ) 25927 printf "%s\n" "$ac_cs_usage"; exit ;; 25928 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 25929 | -silent | --silent | --silen | --sile | --sil | --si | --s) 25930 ac_cs_silent=: ;; 25931 25932 # This is an error. 25933 -*) as_fn_error $? "unrecognized option: '$1' 25934Try '$0 --help' for more information." ;; 25935 25936 *) as_fn_append ac_config_targets " $1" 25937 ac_need_defaults=false ;; 25938 25939 esac 25940 shift 25941done 25942 25943ac_configure_extra_args= 25944 25945if $ac_cs_silent; then 25946 exec 6>/dev/null 25947 ac_configure_extra_args="$ac_configure_extra_args --silent" 25948fi 25949 25950_ACEOF 25951cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25952if \$ac_cs_recheck; then 25953 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 25954 shift 25955 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 25956 CONFIG_SHELL='$SHELL' 25957 export CONFIG_SHELL 25958 exec "\$@" 25959fi 25960 25961_ACEOF 25962cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25963exec 5>>config.log 25964{ 25965 echo 25966 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 25967## Running $as_me. ## 25968_ASBOX 25969 printf "%s\n" "$ac_log" 25970} >&5 25971 25972_ACEOF 25973cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25974# 25975# INIT-COMMANDS 25976# 25977AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 25978 25979 25980# The HP-UX ksh and POSIX shell print the target directory to stdout 25981# if CDPATH is set. 25982(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 25983 25984sed_quote_subst='$sed_quote_subst' 25985double_quote_subst='$double_quote_subst' 25986delay_variable_subst='$delay_variable_subst' 25987macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 25988macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 25989enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 25990enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 25991pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 25992enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 25993shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 25994SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 25995ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 25996PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 25997host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 25998host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 25999host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 26000build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 26001build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 26002build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 26003SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 26004Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 26005GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 26006EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 26007FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 26008LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 26009NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 26010LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 26011max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 26012ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 26013exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 26014lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 26015lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 26016lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 26017lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 26018lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 26019reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 26020reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 26021FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 26022OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 26023deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 26024file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 26025file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 26026want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 26027DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 26028sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 26029AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 26030lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 26031AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 26032archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 26033STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 26034RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 26035old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 26036old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 26037old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 26038lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 26039CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 26040CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 26041compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 26042GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 26043lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 26044lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 26045lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 26046lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 26047lt_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"`' 26048lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 26049nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 26050lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 26051lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 26052objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 26053MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 26054lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 26055lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 26056lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 26057lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 26058lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 26059need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 26060MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 26061DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 26062NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 26063LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 26064OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 26065OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 26066libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 26067shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 26068extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 26069archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 26070enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 26071export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 26072whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 26073compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 26074old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 26075old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 26076archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 26077archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 26078module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 26079module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 26080with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 26081allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 26082no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 26083hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 26084hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 26085hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 26086hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 26087hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 26088hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 26089hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 26090inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 26091link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 26092always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 26093export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 26094exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 26095include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 26096prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 26097postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 26098file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 26099variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 26100need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 26101need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 26102version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 26103runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 26104shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 26105shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 26106libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 26107library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 26108soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 26109install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 26110postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 26111postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 26112finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 26113finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 26114hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 26115sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 26116configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 26117configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 26118hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 26119enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 26120enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 26121enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 26122old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 26123striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 26124 26125LTCC='$LTCC' 26126LTCFLAGS='$LTCFLAGS' 26127compiler='$compiler_DEFAULT' 26128 26129# A function that is used when there is no print builtin or printf. 26130func_fallback_echo () 26131{ 26132 eval 'cat <<_LTECHO_EOF 26133\$1 26134_LTECHO_EOF' 26135} 26136 26137# Quote evaled strings. 26138for var in SHELL \ 26139ECHO \ 26140PATH_SEPARATOR \ 26141SED \ 26142GREP \ 26143EGREP \ 26144FGREP \ 26145LD \ 26146NM \ 26147LN_S \ 26148lt_SP2NL \ 26149lt_NL2SP \ 26150reload_flag \ 26151FILECMD \ 26152OBJDUMP \ 26153deplibs_check_method \ 26154file_magic_cmd \ 26155file_magic_glob \ 26156want_nocaseglob \ 26157DLLTOOL \ 26158sharedlib_from_linklib_cmd \ 26159AR \ 26160archiver_list_spec \ 26161STRIP \ 26162RANLIB \ 26163CC \ 26164CFLAGS \ 26165compiler \ 26166lt_cv_sys_global_symbol_pipe \ 26167lt_cv_sys_global_symbol_to_cdecl \ 26168lt_cv_sys_global_symbol_to_import \ 26169lt_cv_sys_global_symbol_to_c_name_address \ 26170lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 26171lt_cv_nm_interface \ 26172nm_file_list_spec \ 26173lt_cv_truncate_bin \ 26174lt_prog_compiler_no_builtin_flag \ 26175lt_prog_compiler_pic \ 26176lt_prog_compiler_wl \ 26177lt_prog_compiler_static \ 26178lt_cv_prog_compiler_c_o \ 26179need_locks \ 26180MANIFEST_TOOL \ 26181DSYMUTIL \ 26182NMEDIT \ 26183LIPO \ 26184OTOOL \ 26185OTOOL64 \ 26186shrext_cmds \ 26187export_dynamic_flag_spec \ 26188whole_archive_flag_spec \ 26189compiler_needs_object \ 26190with_gnu_ld \ 26191allow_undefined_flag \ 26192no_undefined_flag \ 26193hardcode_libdir_flag_spec \ 26194hardcode_libdir_separator \ 26195exclude_expsyms \ 26196include_expsyms \ 26197file_list_spec \ 26198variables_saved_for_relink \ 26199libname_spec \ 26200library_names_spec \ 26201soname_spec \ 26202install_override_mode \ 26203finish_eval \ 26204old_striplib \ 26205striplib; do 26206 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 26207 *[\\\\\\\`\\"\\\$]*) 26208 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 26209 ;; 26210 *) 26211 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 26212 ;; 26213 esac 26214done 26215 26216# Double-quote double-evaled strings. 26217for var in reload_cmds \ 26218old_postinstall_cmds \ 26219old_postuninstall_cmds \ 26220old_archive_cmds \ 26221extract_expsyms_cmds \ 26222old_archive_from_new_cmds \ 26223old_archive_from_expsyms_cmds \ 26224archive_cmds \ 26225archive_expsym_cmds \ 26226module_cmds \ 26227module_expsym_cmds \ 26228export_symbols_cmds \ 26229prelink_cmds \ 26230postlink_cmds \ 26231postinstall_cmds \ 26232postuninstall_cmds \ 26233finish_cmds \ 26234sys_lib_search_path_spec \ 26235configure_time_dlsearch_path \ 26236configure_time_lt_sys_library_path; do 26237 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 26238 *[\\\\\\\`\\"\\\$]*) 26239 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 26240 ;; 26241 *) 26242 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 26243 ;; 26244 esac 26245done 26246 26247ac_aux_dir='$ac_aux_dir' 26248 26249# See if we are running on zsh, and set the options that allow our 26250# commands through without removal of \ escapes INIT. 26251if test -n "\${ZSH_VERSION+set}"; then 26252 setopt NO_GLOB_SUBST 26253fi 26254 26255 26256 PACKAGE='$PACKAGE' 26257 VERSION='$VERSION' 26258 RM='$RM' 26259 ofile='$ofile' 26260 26261 26262 26263 26264_ACEOF 26265 26266cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26267 26268# Handling of arguments. 26269for ac_config_target in $ac_config_targets 26270do 26271 case $ac_config_target in 26272 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 26273 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 26274 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 26275 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 26276 "app-defaults/Makefile") CONFIG_FILES="$CONFIG_FILES app-defaults/Makefile" ;; 26277 "chooser/Makefile") CONFIG_FILES="$CONFIG_FILES chooser/Makefile" ;; 26278 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;; 26279 "greeter/Makefile") CONFIG_FILES="$CONFIG_FILES greeter/Makefile" ;; 26280 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 26281 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 26282 "xdm/Makefile") CONFIG_FILES="$CONFIG_FILES xdm/Makefile" ;; 26283 "xdmshell/Makefile") CONFIG_FILES="$CONFIG_FILES xdmshell/Makefile" ;; 26284 26285 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 26286 esac 26287done 26288 26289 26290# If the user did not use the arguments to specify the items to instantiate, 26291# then the envvar interface is used. Set only those that are not. 26292# We use the long form for the default assignment because of an extremely 26293# bizarre bug on SunOS 4.1.3. 26294if $ac_need_defaults; then 26295 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 26296 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 26297 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 26298fi 26299 26300# Have a temporary directory for convenience. Make it in the build tree 26301# simply because there is no reason against having it here, and in addition, 26302# creating and moving files from /tmp can sometimes cause problems. 26303# Hook for its removal unless debugging. 26304# Note that there is a small window in which the directory will not be cleaned: 26305# after its creation but before its name has been assigned to '$tmp'. 26306$debug || 26307{ 26308 tmp= ac_tmp= 26309 trap 'exit_status=$? 26310 : "${ac_tmp:=$tmp}" 26311 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 26312' 0 26313 trap 'as_fn_exit 1' 1 2 13 15 26314} 26315# Create a (secure) tmp directory for tmp files. 26316 26317{ 26318 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 26319 test -d "$tmp" 26320} || 26321{ 26322 tmp=./conf$$-$RANDOM 26323 (umask 077 && mkdir "$tmp") 26324} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 26325ac_tmp=$tmp 26326 26327# Set up the scripts for CONFIG_FILES section. 26328# No need to generate them if there are no CONFIG_FILES. 26329# This happens for instance with './config.status config.h'. 26330if test -n "$CONFIG_FILES"; then 26331 26332 26333ac_cr=`echo X | tr X '\015'` 26334# On cygwin, bash can eat \r inside `` if the user requested igncr. 26335# But we know of no other shell where ac_cr would be empty at this 26336# point, so we can use a bashism as a fallback. 26337if test "x$ac_cr" = x; then 26338 eval ac_cr=\$\'\\r\' 26339fi 26340ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 26341if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 26342 ac_cs_awk_cr='\\r' 26343else 26344 ac_cs_awk_cr=$ac_cr 26345fi 26346 26347echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 26348_ACEOF 26349 26350 26351{ 26352 echo "cat >conf$$subs.awk <<_ACEOF" && 26353 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 26354 echo "_ACEOF" 26355} >conf$$subs.sh || 26356 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 26357ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 26358ac_delim='%!_!# ' 26359for ac_last_try in false false false false false :; do 26360 . ./conf$$subs.sh || 26361 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 26362 26363 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 26364 if test $ac_delim_n = $ac_delim_num; then 26365 break 26366 elif $ac_last_try; then 26367 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 26368 else 26369 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 26370 fi 26371done 26372rm -f conf$$subs.sh 26373 26374cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26375cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 26376_ACEOF 26377sed -n ' 26378h 26379s/^/S["/; s/!.*/"]=/ 26380p 26381g 26382s/^[^!]*!// 26383:repl 26384t repl 26385s/'"$ac_delim"'$// 26386t delim 26387:nl 26388h 26389s/\(.\{148\}\)..*/\1/ 26390t more1 26391s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 26392p 26393n 26394b repl 26395:more1 26396s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 26397p 26398g 26399s/.\{148\}// 26400t nl 26401:delim 26402h 26403s/\(.\{148\}\)..*/\1/ 26404t more2 26405s/["\\]/\\&/g; s/^/"/; s/$/"/ 26406p 26407b 26408:more2 26409s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 26410p 26411g 26412s/.\{148\}// 26413t delim 26414' <conf$$subs.awk | sed ' 26415/^[^""]/{ 26416 N 26417 s/\n// 26418} 26419' >>$CONFIG_STATUS || ac_write_fail=1 26420rm -f conf$$subs.awk 26421cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26422_ACAWK 26423cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 26424 for (key in S) S_is_set[key] = 1 26425 FS = "" 26426 26427} 26428{ 26429 line = $ 0 26430 nfields = split(line, field, "@") 26431 substed = 0 26432 len = length(field[1]) 26433 for (i = 2; i < nfields; i++) { 26434 key = field[i] 26435 keylen = length(key) 26436 if (S_is_set[key]) { 26437 value = S[key] 26438 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 26439 len += length(value) + length(field[++i]) 26440 substed = 1 26441 } else 26442 len += 1 + keylen 26443 } 26444 26445 print line 26446} 26447 26448_ACAWK 26449_ACEOF 26450cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26451if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 26452 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 26453else 26454 cat 26455fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 26456 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 26457_ACEOF 26458 26459# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 26460# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 26461# trailing colons and then remove the whole line if VPATH becomes empty 26462# (actually we leave an empty line to preserve line numbers). 26463if test "x$srcdir" = x.; then 26464 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 26465h 26466s/// 26467s/^/:/ 26468s/[ ]*$/:/ 26469s/:\$(srcdir):/:/g 26470s/:\${srcdir}:/:/g 26471s/:@srcdir@:/:/g 26472s/^:*// 26473s/:*$// 26474x 26475s/\(=[ ]*\).*/\1/ 26476G 26477s/\n// 26478s/^[^=]*=[ ]*$// 26479}' 26480fi 26481 26482cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26483fi # test -n "$CONFIG_FILES" 26484 26485# Set up the scripts for CONFIG_HEADERS section. 26486# No need to generate them if there are no CONFIG_HEADERS. 26487# This happens for instance with './config.status Makefile'. 26488if test -n "$CONFIG_HEADERS"; then 26489cat >"$ac_tmp/defines.awk" <<\_ACAWK || 26490BEGIN { 26491_ACEOF 26492 26493# Transform confdefs.h into an awk script 'defines.awk', embedded as 26494# here-document in config.status, that substitutes the proper values into 26495# config.h.in to produce config.h. 26496 26497# Create a delimiter string that does not exist in confdefs.h, to ease 26498# handling of long lines. 26499ac_delim='%!_!# ' 26500for ac_last_try in false false :; do 26501 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 26502 if test -z "$ac_tt"; then 26503 break 26504 elif $ac_last_try; then 26505 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 26506 else 26507 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 26508 fi 26509done 26510 26511# For the awk script, D is an array of macro values keyed by name, 26512# likewise P contains macro parameters if any. Preserve backslash 26513# newline sequences. 26514 26515ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 26516sed -n ' 26517s/.\{148\}/&'"$ac_delim"'/g 26518t rset 26519:rset 26520s/^[ ]*#[ ]*define[ ][ ]*/ / 26521t def 26522d 26523:def 26524s/\\$// 26525t bsnl 26526s/["\\]/\\&/g 26527s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 26528D["\1"]=" \3"/p 26529s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 26530d 26531:bsnl 26532s/["\\]/\\&/g 26533s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 26534D["\1"]=" \3\\\\\\n"\\/p 26535t cont 26536s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 26537t cont 26538d 26539:cont 26540n 26541s/.\{148\}/&'"$ac_delim"'/g 26542t clear 26543:clear 26544s/\\$// 26545t bsnlc 26546s/["\\]/\\&/g; s/^/"/; s/$/"/p 26547d 26548:bsnlc 26549s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 26550b cont 26551' <confdefs.h | sed ' 26552s/'"$ac_delim"'/"\\\ 26553"/g' >>$CONFIG_STATUS || ac_write_fail=1 26554 26555cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26556 for (key in D) D_is_set[key] = 1 26557 FS = "" 26558} 26559/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 26560 line = \$ 0 26561 split(line, arg, " ") 26562 if (arg[1] == "#") { 26563 defundef = arg[2] 26564 mac1 = arg[3] 26565 } else { 26566 defundef = substr(arg[1], 2) 26567 mac1 = arg[2] 26568 } 26569 split(mac1, mac2, "(") #) 26570 macro = mac2[1] 26571 prefix = substr(line, 1, index(line, defundef) - 1) 26572 if (D_is_set[macro]) { 26573 # Preserve the white space surrounding the "#". 26574 print prefix "define", macro P[macro] D[macro] 26575 next 26576 } else { 26577 # Replace #undef with comments. This is necessary, for example, 26578 # in the case of _POSIX_SOURCE, which is predefined and required 26579 # on some systems where configure will not decide to define it. 26580 if (defundef == "undef") { 26581 print "/*", prefix defundef, macro, "*/" 26582 next 26583 } 26584 } 26585} 26586{ print } 26587_ACAWK 26588_ACEOF 26589cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26590 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 26591fi # test -n "$CONFIG_HEADERS" 26592 26593 26594eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 26595shift 26596for ac_tag 26597do 26598 case $ac_tag in 26599 :[FHLC]) ac_mode=$ac_tag; continue;; 26600 esac 26601 case $ac_mode$ac_tag in 26602 :[FHL]*:*);; 26603 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 26604 :[FH]-) ac_tag=-:-;; 26605 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 26606 esac 26607 ac_save_IFS=$IFS 26608 IFS=: 26609 set x $ac_tag 26610 IFS=$ac_save_IFS 26611 shift 26612 ac_file=$1 26613 shift 26614 26615 case $ac_mode in 26616 :L) ac_source=$1;; 26617 :[FH]) 26618 ac_file_inputs= 26619 for ac_f 26620 do 26621 case $ac_f in 26622 -) ac_f="$ac_tmp/stdin";; 26623 *) # Look for the file first in the build tree, then in the source tree 26624 # (if the path is not absolute). The absolute path cannot be DOS-style, 26625 # because $ac_f cannot contain ':'. 26626 test -f "$ac_f" || 26627 case $ac_f in 26628 [\\/$]*) false;; 26629 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 26630 esac || 26631 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 26632 esac 26633 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 26634 as_fn_append ac_file_inputs " '$ac_f'" 26635 done 26636 26637 # Let's still pretend it is 'configure' which instantiates (i.e., don't 26638 # use $as_me), people would be surprised to read: 26639 # /* config.h. Generated by config.status. */ 26640 configure_input='Generated from '` 26641 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 26642 `' by configure.' 26643 if test x"$ac_file" != x-; then 26644 configure_input="$ac_file. $configure_input" 26645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 26646printf "%s\n" "$as_me: creating $ac_file" >&6;} 26647 fi 26648 # Neutralize special characters interpreted by sed in replacement strings. 26649 case $configure_input in #( 26650 *\&* | *\|* | *\\* ) 26651 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 26652 sed 's/[\\\\&|]/\\\\&/g'`;; #( 26653 *) ac_sed_conf_input=$configure_input;; 26654 esac 26655 26656 case $ac_tag in 26657 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 26658 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 26659 esac 26660 ;; 26661 esac 26662 26663 ac_dir=`$as_dirname -- "$ac_file" || 26664$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26665 X"$ac_file" : 'X\(//\)[^/]' \| \ 26666 X"$ac_file" : 'X\(//\)$' \| \ 26667 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 26668printf "%s\n" X"$ac_file" | 26669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 26670 s//\1/ 26671 q 26672 } 26673 /^X\(\/\/\)[^/].*/{ 26674 s//\1/ 26675 q 26676 } 26677 /^X\(\/\/\)$/{ 26678 s//\1/ 26679 q 26680 } 26681 /^X\(\/\).*/{ 26682 s//\1/ 26683 q 26684 } 26685 s/.*/./; q'` 26686 as_dir="$ac_dir"; as_fn_mkdir_p 26687 ac_builddir=. 26688 26689case "$ac_dir" in 26690.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 26691*) 26692 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 26693 # A ".." for each directory in $ac_dir_suffix. 26694 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 26695 case $ac_top_builddir_sub in 26696 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 26697 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 26698 esac ;; 26699esac 26700ac_abs_top_builddir=$ac_pwd 26701ac_abs_builddir=$ac_pwd$ac_dir_suffix 26702# for backward compatibility: 26703ac_top_builddir=$ac_top_build_prefix 26704 26705case $srcdir in 26706 .) # We are building in place. 26707 ac_srcdir=. 26708 ac_top_srcdir=$ac_top_builddir_sub 26709 ac_abs_top_srcdir=$ac_pwd ;; 26710 [\\/]* | ?:[\\/]* ) # Absolute name. 26711 ac_srcdir=$srcdir$ac_dir_suffix; 26712 ac_top_srcdir=$srcdir 26713 ac_abs_top_srcdir=$srcdir ;; 26714 *) # Relative name. 26715 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 26716 ac_top_srcdir=$ac_top_build_prefix$srcdir 26717 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 26718esac 26719ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 26720 26721 26722 case $ac_mode in 26723 :F) 26724 # 26725 # CONFIG_FILE 26726 # 26727 26728 case $INSTALL in 26729 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 26730 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 26731 esac 26732 ac_MKDIR_P=$MKDIR_P 26733 case $MKDIR_P in 26734 [\\/$]* | ?:[\\/]* ) ;; 26735 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 26736 esac 26737_ACEOF 26738 26739cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26740# If the template does not know about datarootdir, expand it. 26741# FIXME: This hack should be removed a few years after 2.60. 26742ac_datarootdir_hack=; ac_datarootdir_seen= 26743ac_sed_dataroot=' 26744/datarootdir/ { 26745 p 26746 q 26747} 26748/@datadir@/p 26749/@docdir@/p 26750/@infodir@/p 26751/@localedir@/p 26752/@mandir@/p' 26753case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 26754*datarootdir*) ac_datarootdir_seen=yes;; 26755*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 26756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 26757printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 26758_ACEOF 26759cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26760 ac_datarootdir_hack=' 26761 s&@datadir@&$datadir&g 26762 s&@docdir@&$docdir&g 26763 s&@infodir@&$infodir&g 26764 s&@localedir@&$localedir&g 26765 s&@mandir@&$mandir&g 26766 s&\\\${datarootdir}&$datarootdir&g' ;; 26767esac 26768_ACEOF 26769 26770# Neutralize VPATH when '$srcdir' = '.'. 26771# Shell code in configure.ac might set extrasub. 26772# FIXME: do we really want to maintain this feature? 26773cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26774ac_sed_extra="$ac_vpsub 26775$extrasub 26776_ACEOF 26777cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26778:t 26779/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 26780s|@configure_input@|$ac_sed_conf_input|;t t 26781s&@top_builddir@&$ac_top_builddir_sub&;t t 26782s&@top_build_prefix@&$ac_top_build_prefix&;t t 26783s&@srcdir@&$ac_srcdir&;t t 26784s&@abs_srcdir@&$ac_abs_srcdir&;t t 26785s&@top_srcdir@&$ac_top_srcdir&;t t 26786s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 26787s&@builddir@&$ac_builddir&;t t 26788s&@abs_builddir@&$ac_abs_builddir&;t t 26789s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 26790s&@INSTALL@&$ac_INSTALL&;t t 26791s&@MKDIR_P@&$ac_MKDIR_P&;t t 26792$ac_datarootdir_hack 26793" 26794eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 26795 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26796 26797test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 26798 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 26799 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 26800 "$ac_tmp/out"`; test -z "$ac_out"; } && 26801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 26802which seems to be undefined. Please make sure it is defined" >&5 26803printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 26804which seems to be undefined. Please make sure it is defined" >&2;} 26805 26806 rm -f "$ac_tmp/stdin" 26807 case $ac_file in 26808 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 26809 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 26810 esac \ 26811 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26812 ;; 26813 :H) 26814 # 26815 # CONFIG_HEADER 26816 # 26817 if test x"$ac_file" != x-; then 26818 { 26819 printf "%s\n" "/* $configure_input */" >&1 \ 26820 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 26821 } >"$ac_tmp/config.h" \ 26822 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26823 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 26824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 26825printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 26826 else 26827 rm -f "$ac_file" 26828 mv "$ac_tmp/config.h" "$ac_file" \ 26829 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26830 fi 26831 else 26832 printf "%s\n" "/* $configure_input */" >&1 \ 26833 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 26834 || as_fn_error $? "could not create -" "$LINENO" 5 26835 fi 26836# Compute "$ac_file"'s index in $config_headers. 26837_am_arg="$ac_file" 26838_am_stamp_count=1 26839for _am_header in $config_headers :; do 26840 case $_am_header in 26841 $_am_arg | $_am_arg:* ) 26842 break ;; 26843 * ) 26844 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 26845 esac 26846done 26847echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 26848$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26849 X"$_am_arg" : 'X\(//\)[^/]' \| \ 26850 X"$_am_arg" : 'X\(//\)$' \| \ 26851 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 26852printf "%s\n" X"$_am_arg" | 26853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 26854 s//\1/ 26855 q 26856 } 26857 /^X\(\/\/\)[^/].*/{ 26858 s//\1/ 26859 q 26860 } 26861 /^X\(\/\/\)$/{ 26862 s//\1/ 26863 q 26864 } 26865 /^X\(\/\).*/{ 26866 s//\1/ 26867 q 26868 } 26869 s/.*/./; q'`/stamp-h$_am_stamp_count 26870 ;; 26871 26872 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 26873printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 26874 ;; 26875 esac 26876 26877 26878 case $ac_file$ac_mode in 26879 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 26880 # Older Autoconf quotes --file arguments for eval, but not when files 26881 # are listed without --file. Let's play safe and only enable the eval 26882 # if we detect the quoting. 26883 # TODO: see whether this extra hack can be removed once we start 26884 # requiring Autoconf 2.70 or later. 26885 case $CONFIG_FILES in #( 26886 *\'*) : 26887 eval set x "$CONFIG_FILES" ;; #( 26888 *) : 26889 set x $CONFIG_FILES ;; #( 26890 *) : 26891 ;; 26892esac 26893 shift 26894 # Used to flag and report bootstrapping failures. 26895 am_rc=0 26896 for am_mf 26897 do 26898 # Strip MF so we end up with the name of the file. 26899 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 26900 # Check whether this is an Automake generated Makefile which includes 26901 # dependency-tracking related rules and includes. 26902 # Grep'ing the whole file directly is not great: AIX grep has a line 26903 # limit of 2048, but all sed's we know have understand at least 4000. 26904 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 26905 || continue 26906 am_dirpart=`$as_dirname -- "$am_mf" || 26907$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26908 X"$am_mf" : 'X\(//\)[^/]' \| \ 26909 X"$am_mf" : 'X\(//\)$' \| \ 26910 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 26911printf "%s\n" X"$am_mf" | 26912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 26913 s//\1/ 26914 q 26915 } 26916 /^X\(\/\/\)[^/].*/{ 26917 s//\1/ 26918 q 26919 } 26920 /^X\(\/\/\)$/{ 26921 s//\1/ 26922 q 26923 } 26924 /^X\(\/\).*/{ 26925 s//\1/ 26926 q 26927 } 26928 s/.*/./; q'` 26929 am_filepart=`$as_basename -- "$am_mf" || 26930$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 26931 X"$am_mf" : 'X\(//\)$' \| \ 26932 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 26933printf "%s\n" X/"$am_mf" | 26934 sed '/^.*\/\([^/][^/]*\)\/*$/{ 26935 s//\1/ 26936 q 26937 } 26938 /^X\/\(\/\/\)$/{ 26939 s//\1/ 26940 q 26941 } 26942 /^X\/\(\/\).*/{ 26943 s//\1/ 26944 q 26945 } 26946 s/.*/./; q'` 26947 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 26948 && sed -e '/# am--include-marker/d' "$am_filepart" \ 26949 | $MAKE -f - am--depfiles" >&5 26950 (cd "$am_dirpart" \ 26951 && sed -e '/# am--include-marker/d' "$am_filepart" \ 26952 | $MAKE -f - am--depfiles) >&5 2>&5 26953 ac_status=$? 26954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26955 (exit $ac_status); } || am_rc=$? 26956 done 26957 if test $am_rc -ne 0; then 26958 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 26959printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 26960as_fn_error $? "Something went wrong bootstrapping makefile fragments 26961 for automatic dependency tracking. If GNU make was not used, consider 26962 re-running the configure script with MAKE=\"gmake\" (or whatever is 26963 necessary). You can also try re-running configure with the 26964 '--disable-dependency-tracking' option to at least be able to build 26965 the package (albeit without support for automatic dependency tracking). 26966See 'config.log' for more details" "$LINENO" 5; } 26967 fi 26968 { am_dirpart=; unset am_dirpart;} 26969 { am_filepart=; unset am_filepart;} 26970 { am_mf=; unset am_mf;} 26971 { am_rc=; unset am_rc;} 26972 rm -f conftest-deps.mk 26973} 26974 ;; 26975 "libtool":C) 26976 26977 # See if we are running on zsh, and set the options that allow our 26978 # commands through without removal of \ escapes. 26979 if test -n "${ZSH_VERSION+set}"; then 26980 setopt NO_GLOB_SUBST 26981 fi 26982 26983 cfgfile=${ofile}T 26984 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 26985 $RM "$cfgfile" 26986 26987 cat <<_LT_EOF >> "$cfgfile" 26988#! $SHELL 26989# Generated automatically by $as_me ($PACKAGE) $VERSION 26990# NOTE: Changes made to this file will be lost: look at ltmain.sh. 26991 26992# Provide generalized library-building support services. 26993# Written by Gordon Matzigkeit, 1996 26994 26995# Copyright (C) 2024 Free Software Foundation, Inc. 26996# This is free software; see the source for copying conditions. There is NO 26997# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 26998 26999# GNU Libtool is free software; you can redistribute it and/or modify 27000# it under the terms of the GNU General Public License as published by 27001# the Free Software Foundation; either version 2 of the License, or 27002# (at your option) any later version. 27003# 27004# As a special exception to the GNU General Public License, if you 27005# distribute this file as part of a program or library that is built 27006# using GNU Libtool, you may include this file under the same 27007# distribution terms that you use for the rest of that program. 27008# 27009# GNU Libtool is distributed in the hope that it will be useful, but 27010# WITHOUT ANY WARRANTY; without even the implied warranty of 27011# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 27012# GNU General Public License for more details. 27013# 27014# You should have received a copy of the GNU General Public License 27015# along with this program. If not, see <http://www.gnu.org/licenses/>. 27016 27017 27018# The names of the tagged configurations supported by this script. 27019available_tags='' 27020 27021# Configured defaults for sys_lib_dlsearch_path munging. 27022: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 27023 27024# ### BEGIN LIBTOOL CONFIG 27025 27026# Which release of libtool.m4 was used? 27027macro_version=$macro_version 27028macro_revision=$macro_revision 27029 27030# Whether or not to build static libraries. 27031build_old_libs=$enable_static 27032 27033# Whether or not to build shared libraries. 27034build_libtool_libs=$enable_shared 27035 27036# What type of objects to build. 27037pic_mode=$pic_mode 27038 27039# Whether or not to optimize for fast installation. 27040fast_install=$enable_fast_install 27041 27042# Shared archive member basename,for filename based shared library versioning on AIX. 27043shared_archive_member_spec=$shared_archive_member_spec 27044 27045# Shell to use when invoking shell scripts. 27046SHELL=$lt_SHELL 27047 27048# An echo program that protects backslashes. 27049ECHO=$lt_ECHO 27050 27051# The PATH separator for the build system. 27052PATH_SEPARATOR=$lt_PATH_SEPARATOR 27053 27054# The host system. 27055host_alias=$host_alias 27056host=$host 27057host_os=$host_os 27058 27059# The build system. 27060build_alias=$build_alias 27061build=$build 27062build_os=$build_os 27063 27064# A sed program that does not truncate output. 27065SED=$lt_SED 27066 27067# Sed that helps us avoid accidentally triggering echo(1) options like -n. 27068Xsed="\$SED -e 1s/^X//" 27069 27070# A grep program that handles long lines. 27071GREP=$lt_GREP 27072 27073# An ERE matcher. 27074EGREP=$lt_EGREP 27075 27076# A literal string matcher. 27077FGREP=$lt_FGREP 27078 27079# A BSD- or MS-compatible name lister. 27080NM=$lt_NM 27081 27082# Whether we need soft or hard links. 27083LN_S=$lt_LN_S 27084 27085# What is the maximum length of a command? 27086max_cmd_len=$max_cmd_len 27087 27088# Object file suffix (normally "o"). 27089objext=$ac_objext 27090 27091# Executable file suffix (normally ""). 27092exeext=$exeext 27093 27094# whether the shell understands "unset". 27095lt_unset=$lt_unset 27096 27097# turn spaces into newlines. 27098SP2NL=$lt_lt_SP2NL 27099 27100# turn newlines into spaces. 27101NL2SP=$lt_lt_NL2SP 27102 27103# convert \$build file names to \$host format. 27104to_host_file_cmd=$lt_cv_to_host_file_cmd 27105 27106# convert \$build files to toolchain format. 27107to_tool_file_cmd=$lt_cv_to_tool_file_cmd 27108 27109# A file(cmd) program that detects file types. 27110FILECMD=$lt_FILECMD 27111 27112# An object symbol dumper. 27113OBJDUMP=$lt_OBJDUMP 27114 27115# Method to check whether dependent libraries are shared objects. 27116deplibs_check_method=$lt_deplibs_check_method 27117 27118# Command to use when deplibs_check_method = "file_magic". 27119file_magic_cmd=$lt_file_magic_cmd 27120 27121# How to find potential files when deplibs_check_method = "file_magic". 27122file_magic_glob=$lt_file_magic_glob 27123 27124# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 27125want_nocaseglob=$lt_want_nocaseglob 27126 27127# DLL creation program. 27128DLLTOOL=$lt_DLLTOOL 27129 27130# Command to associate shared and link libraries. 27131sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 27132 27133# The archiver. 27134AR=$lt_AR 27135 27136# Flags to create an archive (by configure). 27137lt_ar_flags=$lt_ar_flags 27138 27139# Flags to create an archive. 27140AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 27141 27142# How to feed a file listing to the archiver. 27143archiver_list_spec=$lt_archiver_list_spec 27144 27145# A symbol stripping program. 27146STRIP=$lt_STRIP 27147 27148# Commands used to install an old-style archive. 27149RANLIB=$lt_RANLIB 27150old_postinstall_cmds=$lt_old_postinstall_cmds 27151old_postuninstall_cmds=$lt_old_postuninstall_cmds 27152 27153# Whether to use a lock for old archive extraction. 27154lock_old_archive_extraction=$lock_old_archive_extraction 27155 27156# A C compiler. 27157LTCC=$lt_CC 27158 27159# LTCC compiler flags. 27160LTCFLAGS=$lt_CFLAGS 27161 27162# Take the output of nm and produce a listing of raw symbols and C names. 27163global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 27164 27165# Transform the output of nm in a proper C declaration. 27166global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 27167 27168# Transform the output of nm into a list of symbols to manually relocate. 27169global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 27170 27171# Transform the output of nm in a C name address pair. 27172global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 27173 27174# Transform the output of nm in a C name address pair when lib prefix is needed. 27175global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 27176 27177# The name lister interface. 27178nm_interface=$lt_lt_cv_nm_interface 27179 27180# Specify filename containing input files for \$NM. 27181nm_file_list_spec=$lt_nm_file_list_spec 27182 27183# The root where to search for dependent libraries,and where our libraries should be installed. 27184lt_sysroot=$lt_sysroot 27185 27186# Command to truncate a binary pipe. 27187lt_truncate_bin=$lt_lt_cv_truncate_bin 27188 27189# The name of the directory that contains temporary libtool files. 27190objdir=$objdir 27191 27192# Used to examine libraries when file_magic_cmd begins with "file". 27193MAGIC_CMD=$MAGIC_CMD 27194 27195# Must we lock files when doing compilation? 27196need_locks=$lt_need_locks 27197 27198# Manifest tool. 27199MANIFEST_TOOL=$lt_MANIFEST_TOOL 27200 27201# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 27202DSYMUTIL=$lt_DSYMUTIL 27203 27204# Tool to change global to local symbols on Mac OS X. 27205NMEDIT=$lt_NMEDIT 27206 27207# Tool to manipulate fat objects and archives on Mac OS X. 27208LIPO=$lt_LIPO 27209 27210# ldd/readelf like tool for Mach-O binaries on Mac OS X. 27211OTOOL=$lt_OTOOL 27212 27213# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 27214OTOOL64=$lt_OTOOL64 27215 27216# Old archive suffix (normally "a"). 27217libext=$libext 27218 27219# Shared library suffix (normally ".so"). 27220shrext_cmds=$lt_shrext_cmds 27221 27222# The commands to extract the exported symbol list from a shared archive. 27223extract_expsyms_cmds=$lt_extract_expsyms_cmds 27224 27225# Variables whose values should be saved in libtool wrapper scripts and 27226# restored at link time. 27227variables_saved_for_relink=$lt_variables_saved_for_relink 27228 27229# Do we need the "lib" prefix for modules? 27230need_lib_prefix=$need_lib_prefix 27231 27232# Do we need a version for libraries? 27233need_version=$need_version 27234 27235# Library versioning type. 27236version_type=$version_type 27237 27238# Shared library runtime path variable. 27239runpath_var=$runpath_var 27240 27241# Shared library path variable. 27242shlibpath_var=$shlibpath_var 27243 27244# Is shlibpath searched before the hard-coded library search path? 27245shlibpath_overrides_runpath=$shlibpath_overrides_runpath 27246 27247# Format of library name prefix. 27248libname_spec=$lt_libname_spec 27249 27250# List of archive names. First name is the real one, the rest are links. 27251# The last name is the one that the linker finds with -lNAME 27252library_names_spec=$lt_library_names_spec 27253 27254# The coded name of the library, if different from the real name. 27255soname_spec=$lt_soname_spec 27256 27257# Permission mode override for installation of shared libraries. 27258install_override_mode=$lt_install_override_mode 27259 27260# Command to use after installation of a shared archive. 27261postinstall_cmds=$lt_postinstall_cmds 27262 27263# Command to use after uninstallation of a shared archive. 27264postuninstall_cmds=$lt_postuninstall_cmds 27265 27266# Commands used to finish a libtool library installation in a directory. 27267finish_cmds=$lt_finish_cmds 27268 27269# As "finish_cmds", except a single script fragment to be evaled but 27270# not shown. 27271finish_eval=$lt_finish_eval 27272 27273# Whether we should hardcode library paths into libraries. 27274hardcode_into_libs=$hardcode_into_libs 27275 27276# Compile-time system search path for libraries. 27277sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 27278 27279# Detected run-time system search path for libraries. 27280sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 27281 27282# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 27283configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 27284 27285# Whether dlopen is supported. 27286dlopen_support=$enable_dlopen 27287 27288# Whether dlopen of programs is supported. 27289dlopen_self=$enable_dlopen_self 27290 27291# Whether dlopen of statically linked programs is supported. 27292dlopen_self_static=$enable_dlopen_self_static 27293 27294# Commands to strip libraries. 27295old_striplib=$lt_old_striplib 27296striplib=$lt_striplib 27297 27298 27299# The linker used to build libraries. 27300LD=$lt_LD 27301 27302# How to create reloadable object files. 27303reload_flag=$lt_reload_flag 27304reload_cmds=$lt_reload_cmds 27305 27306# Commands used to build an old-style archive. 27307old_archive_cmds=$lt_old_archive_cmds 27308 27309# A language specific compiler. 27310CC=$lt_compiler 27311 27312# Is the compiler the GNU compiler? 27313with_gcc=$GCC 27314 27315# Compiler flag to turn off builtin functions. 27316no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 27317 27318# Additional compiler flags for building library objects. 27319pic_flag=$lt_lt_prog_compiler_pic 27320 27321# How to pass a linker flag through the compiler. 27322wl=$lt_lt_prog_compiler_wl 27323 27324# Compiler flag to prevent dynamic linking. 27325link_static_flag=$lt_lt_prog_compiler_static 27326 27327# Does compiler simultaneously support -c and -o options? 27328compiler_c_o=$lt_lt_cv_prog_compiler_c_o 27329 27330# Whether or not to add -lc for building shared libraries. 27331build_libtool_need_lc=$archive_cmds_need_lc 27332 27333# Whether or not to disallow shared libs when runtime libs are static. 27334allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 27335 27336# Compiler flag to allow reflexive dlopens. 27337export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 27338 27339# Compiler flag to generate shared objects directly from archives. 27340whole_archive_flag_spec=$lt_whole_archive_flag_spec 27341 27342# Whether the compiler copes with passing no objects directly. 27343compiler_needs_object=$lt_compiler_needs_object 27344 27345# Create an old-style archive from a shared archive. 27346old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 27347 27348# Create a temporary old-style archive to link instead of a shared archive. 27349old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 27350 27351# Commands used to build a shared archive. 27352archive_cmds=$lt_archive_cmds 27353archive_expsym_cmds=$lt_archive_expsym_cmds 27354 27355# Commands used to build a loadable module if different from building 27356# a shared archive. 27357module_cmds=$lt_module_cmds 27358module_expsym_cmds=$lt_module_expsym_cmds 27359 27360# Whether we are building with GNU ld or not. 27361with_gnu_ld=$lt_with_gnu_ld 27362 27363# Flag that allows shared libraries with undefined symbols to be built. 27364allow_undefined_flag=$lt_allow_undefined_flag 27365 27366# Flag that enforces no undefined symbols. 27367no_undefined_flag=$lt_no_undefined_flag 27368 27369# Flag to hardcode \$libdir into a binary during linking. 27370# This must work even if \$libdir does not exist 27371hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 27372 27373# Whether we need a single "-rpath" flag with a separated argument. 27374hardcode_libdir_separator=$lt_hardcode_libdir_separator 27375 27376# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 27377# DIR into the resulting binary. 27378hardcode_direct=$hardcode_direct 27379 27380# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 27381# DIR into the resulting binary and the resulting library dependency is 27382# "absolute",i.e. impossible to change by setting \$shlibpath_var if the 27383# library is relocated. 27384hardcode_direct_absolute=$hardcode_direct_absolute 27385 27386# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 27387# into the resulting binary. 27388hardcode_minus_L=$hardcode_minus_L 27389 27390# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 27391# into the resulting binary. 27392hardcode_shlibpath_var=$hardcode_shlibpath_var 27393 27394# Set to "yes" if building a shared library automatically hardcodes DIR 27395# into the library and all subsequent libraries and executables linked 27396# against it. 27397hardcode_automatic=$hardcode_automatic 27398 27399# Set to yes if linker adds runtime paths of dependent libraries 27400# to runtime path list. 27401inherit_rpath=$inherit_rpath 27402 27403# Whether libtool must link a program against all its dependency libraries. 27404link_all_deplibs=$link_all_deplibs 27405 27406# Set to "yes" if exported symbols are required. 27407always_export_symbols=$always_export_symbols 27408 27409# The commands to list exported symbols. 27410export_symbols_cmds=$lt_export_symbols_cmds 27411 27412# Symbols that should not be listed in the preloaded symbols. 27413exclude_expsyms=$lt_exclude_expsyms 27414 27415# Symbols that must always be exported. 27416include_expsyms=$lt_include_expsyms 27417 27418# Commands necessary for linking programs (against libraries) with templates. 27419prelink_cmds=$lt_prelink_cmds 27420 27421# Commands necessary for finishing linking programs. 27422postlink_cmds=$lt_postlink_cmds 27423 27424# Specify filename containing input files. 27425file_list_spec=$lt_file_list_spec 27426 27427# How to hardcode a shared library path into an executable. 27428hardcode_action=$hardcode_action 27429 27430# ### END LIBTOOL CONFIG 27431 27432_LT_EOF 27433 27434 cat <<'_LT_EOF' >> "$cfgfile" 27435 27436# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 27437 27438# func_munge_path_list VARIABLE PATH 27439# ----------------------------------- 27440# VARIABLE is name of variable containing _space_ separated list of 27441# directories to be munged by the contents of PATH, which is string 27442# having a format: 27443# "DIR[:DIR]:" 27444# string "DIR[ DIR]" will be prepended to VARIABLE 27445# ":DIR[:DIR]" 27446# string "DIR[ DIR]" will be appended to VARIABLE 27447# "DIRP[:DIRP]::[DIRA:]DIRA" 27448# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 27449# "DIRA[ DIRA]" will be appended to VARIABLE 27450# "DIR[:DIR]" 27451# VARIABLE will be replaced by "DIR[ DIR]" 27452func_munge_path_list () 27453{ 27454 case x$2 in 27455 x) 27456 ;; 27457 *:) 27458 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 27459 ;; 27460 x:*) 27461 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 27462 ;; 27463 *::*) 27464 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 27465 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 27466 ;; 27467 *) 27468 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 27469 ;; 27470 esac 27471} 27472 27473 27474# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 27475func_cc_basename () 27476{ 27477 for cc_temp in $*""; do 27478 case $cc_temp in 27479 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 27480 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 27481 \-*) ;; 27482 *) break;; 27483 esac 27484 done 27485 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 27486} 27487 27488 27489# ### END FUNCTIONS SHARED WITH CONFIGURE 27490 27491_LT_EOF 27492 27493 case $host_os in 27494 aix3*) 27495 cat <<\_LT_EOF >> "$cfgfile" 27496# AIX sometimes has problems with the GCC collect2 program. For some 27497# reason, if we set the COLLECT_NAMES environment variable, the problems 27498# vanish in a puff of smoke. 27499if test set != "${COLLECT_NAMES+set}"; then 27500 COLLECT_NAMES= 27501 export COLLECT_NAMES 27502fi 27503_LT_EOF 27504 ;; 27505 esac 27506 27507 27508 27509ltmain=$ac_aux_dir/ltmain.sh 27510 27511 27512 # We use sed instead of cat because bash on DJGPP gets confused if 27513 # if finds mixed CR/LF and LF-only lines. Since sed operates in 27514 # text mode, it properly converts lines to CR/LF. This bash problem 27515 # is reportedly fixed, but why not run on old versions too? 27516 $SED '$q' "$ltmain" >> "$cfgfile" \ 27517 || (rm -f "$cfgfile"; exit 1) 27518 27519 mv -f "$cfgfile" "$ofile" || 27520 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 27521 chmod +x "$ofile" 27522 27523 ;; 27524 27525 esac 27526done # for ac_tag 27527 27528 27529as_fn_exit 0 27530_ACEOF 27531ac_clean_files=$ac_clean_files_save 27532 27533test $ac_write_fail = 0 || 27534 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 27535 27536 27537# configure is writing to config.log, and then calls config.status. 27538# config.status does its own redirection, appending to config.log. 27539# Unfortunately, on DOS this fails, as config.log is still kept open 27540# by configure, so config.status won't be able to write to it; its 27541# output is simply discarded. So we exec the FD to /dev/null, 27542# effectively closing config.log, so it can be properly (re)opened and 27543# appended to by config.status. When coming back to configure, we 27544# need to make the FD available again. 27545if test "$no_create" != yes; then 27546 ac_cs_success=: 27547 ac_config_status_args= 27548 test "$silent" = yes && 27549 ac_config_status_args="$ac_config_status_args --quiet" 27550 exec 5>/dev/null 27551 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 27552 exec 5>>config.log 27553 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 27554 # would make configure fail if this is the last instruction. 27555 $ac_cs_success || as_fn_exit 1 27556fi 27557if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 27558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 27559printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 27560fi 27561 27562 27563