Atlas - configure

Home / ext / SDL2 Lines: 51 | Size: 825171 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)]
[FILE BEGIN]
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199 200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 PATH=/empty FPATH=/empty; export PATH FPATH 205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 207test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell [email protected] about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} # as_fn_set_status 309 310# as_fn_exit STATUS 311# ----------------- 312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} # as_fn_exit 319 320# as_fn_mkdir_p 321# ------------- 322# Create "$as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} # as_fn_mkdir_p 367 368# as_fn_executable_p FILE 369# ----------------------- 370# Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} # as_fn_executable_p 375# as_fn_append VAR VALUE 376# ---------------------- 377# Append the text in VALUE to the end of the definition contained in VAR. Take 378# advantage of any shell optimizations that allow amortized linear growth over 379# repeated appends, instead of the typical quadratic growth present in naive 380# implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393# as_fn_arith ARG... 394# ------------------ 395# Perform arithmetic evaluation on the ARGs, and store the result in the 396# global $as_val. Take advantage of shells that can avoid forks. The arguments 397# must be portable across $(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411# as_fn_error STATUS ERROR [LINENO LOG_FD] 412# ---------------------------------------- 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415# script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} # as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in #((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME= 589PACKAGE_TARNAME= 590PACKAGE_VERSION= 591PACKAGE_STRING= 592PACKAGE_BUGREPORT= 593PACKAGE_URL= 594 595ac_unique_file="README.txt" 596# Factoring default headers for most tests. 597ac_includes_default="\ 598#include <stdio.h> 599#ifdef HAVE_SYS_TYPES_H 600# include <sys/types.h> 601#endif 602#ifdef HAVE_SYS_STAT_H 603# include <sys/stat.h> 604#endif 605#ifdef STDC_HEADERS 606# include <stdlib.h> 607# include <stddef.h> 608#else 609# ifdef HAVE_STDLIB_H 610# include <stdlib.h> 611# endif 612#endif 613#ifdef HAVE_STRING_H 614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 615# include <memory.h> 616# endif 617# include <string.h> 618#endif 619#ifdef HAVE_STRINGS_H 620# include <strings.h> 621#endif 622#ifdef HAVE_INTTYPES_H 623# include <inttypes.h> 624#endif 625#ifdef HAVE_STDINT_H 626# include <stdint.h> 627#endif 628#ifdef HAVE_UNISTD_H 629# include <unistd.h> 630#endif" 631 632ac_subst_vars='LTLIBOBJS 633WAYLAND_SCANNER 634EXTRA_LDFLAGS 635BUILD_LDFLAGS 636EXTRA_CFLAGS 637BUILD_CFLAGS 638SDLTEST_OBJECTS 639SDLMAIN_OBJECTS 640VERSION_OBJECTS 641GEN_OBJECTS 642GEN_HEADERS 643OBJECTS 644INCLUDE 645ac_aux_dir 646ENABLE_STATIC_FALSE 647ENABLE_STATIC_TRUE 648ENABLE_SHARED_FALSE 649ENABLE_SHARED_TRUE 650SDL_RLD_FLAGS 651SDL_STATIC_LIBS 652SDL_LIBS 653SDL_CFLAGS 654DIRECTFBCONFIG 655X_EXTRA_LIBS 656X_LIBS 657X_PRE_LIBS 658X_CFLAGS 659XMKMF 660ARTSCONFIG 661ESD_LIBS 662ESD_CFLAGS 663ESD_CONFIG 664PKG_CONFIG 665ALSA_LIBS 666ALSA_CFLAGS 667POW_LIB 668LIBOBJS 669ALLOCA 670WINDRES 671SET_MAKE 672INSTALL_DATA 673INSTALL_SCRIPT 674INSTALL_PROGRAM 675CXXCPP 676ac_ct_CXX 677CXXFLAGS 678CXX 679LT_AGE 680LT_REVISION 681LT_CURRENT 682LT_RELEASE 683CPP 684OTOOL64 685OTOOL 686LIPO 687NMEDIT 688DSYMUTIL 689MANIFEST_TOOL 690AWK 691RANLIB 692STRIP 693ac_ct_AR 694AR 695LN_S 696NM 697ac_ct_DUMPBIN 698DUMPBIN 699LD 700FGREP 701EGREP 702GREP 703SED 704OBJEXT 705EXEEXT 706ac_ct_CC 707CPPFLAGS 708LDFLAGS 709CFLAGS 710CC 711host_os 712host_vendor 713host_cpu 714host 715build_os 716build_vendor 717build_cpu 718build 719LIBTOOL 720OBJDUMP 721DLLTOOL 722AS 723SDL_VERSION 724SDL_BINARY_AGE 725SDL_INTERFACE_AGE 726SDL_MICRO_VERSION 727SDL_MINOR_VERSION 728SDL_MAJOR_VERSION 729target_alias 730host_alias 731build_alias 732LIBS 733ECHO_T 734ECHO_N 735ECHO_C 736DEFS 737mandir 738localedir 739libdir 740psdir 741pdfdir 742dvidir 743htmldir 744infodir 745docdir 746oldincludedir 747includedir 748localstatedir 749sharedstatedir 750sysconfdir 751datadir 752datarootdir 753libexecdir 754sbindir 755bindir 756program_transform_name 757prefix 758exec_prefix 759PACKAGE_URL 760PACKAGE_BUGREPORT 761PACKAGE_STRING 762PACKAGE_VERSION 763PACKAGE_TARNAME 764PACKAGE_NAME 765PATH_SEPARATOR 766SHELL' 767ac_subst_files='' 768ac_user_opts=' 769enable_option_checking 770enable_shared 771enable_static 772with_pic 773enable_fast_install 774with_gnu_ld 775with_sysroot 776enable_libtool_lock 777enable_assertions 778enable_dependency_tracking 779enable_libc 780enable_gcc_atomics 781enable_atomic 782enable_audio 783enable_video 784enable_render 785enable_events 786enable_joystick 787enable_haptic 788enable_sensor 789enable_power 790enable_filesystem 791enable_threads 792enable_timers 793enable_file 794enable_loadso 795enable_cpuinfo 796enable_assembly 797enable_ssemath 798enable_mmx 799enable_3dnow 800enable_sse 801enable_sse2 802enable_sse3 803enable_altivec 804enable_oss 805enable_alsa 806with_alsa_prefix 807with_alsa_inc_prefix 808enable_alsatest 809enable_alsa_shared 810enable_jack 811enable_jack_shared 812enable_esd 813with_esd_prefix 814with_esd_exec_prefix 815enable_esdtest 816enable_esd_shared 817enable_pulseaudio 818enable_pulseaudio_shared 819enable_arts 820enable_arts_shared 821enable_nas 822enable_nas_shared 823enable_sndio 824enable_sndio_shared 825enable_fusionsound 826enable_fusionsound_shared 827enable_diskaudio 828enable_dummyaudio 829enable_libsamplerate 830enable_libsamplerate_shared 831enable_video_wayland 832enable_video_wayland_qt_touch 833enable_wayland_shared 834enable_video_mir 835enable_mir_shared 836enable_video_rpi 837enable_video_x11 838with_x 839enable_x11_shared 840enable_video_x11_xcursor 841enable_video_x11_xdbe 842enable_video_x11_xinerama 843enable_video_x11_xinput 844enable_video_x11_xrandr 845enable_video_x11_scrnsaver 846enable_video_x11_xshape 847enable_video_x11_vm 848enable_video_vivante 849enable_video_cocoa 850enable_render_metal 851enable_video_directfb 852enable_directfb_shared 853enable_video_kmsdrm 854enable_kmsdrm_shared 855enable_video_dummy 856enable_video_opengl 857enable_video_opengles 858enable_video_opengles1 859enable_video_opengles2 860enable_video_vulkan 861enable_libudev 862enable_dbus 863enable_ime 864enable_ibus 865enable_fcitx 866enable_input_tslib 867enable_pthreads 868enable_pthread_sem 869enable_directx 870enable_wasapi 871enable_sdl_dlopen 872enable_hidapi 873enable_clock_gettime 874enable_rpath 875enable_render_d3d 876' 877 ac_precious_vars='build_alias 878host_alias 879target_alias 880CC 881CFLAGS 882LDFLAGS 883LIBS 884CPPFLAGS 885CPP 886CXX 887CXXFLAGS 888CCC 889CXXCPP 890XMKMF' 891 892 893# Initialize some variables set by options. 894ac_init_help= 895ac_init_version=false 896ac_unrecognized_opts= 897ac_unrecognized_sep= 898# The variables have the same names as the options, with 899# dashes changed to underlines. 900cache_file=/dev/null 901exec_prefix=NONE 902no_create= 903no_recursion= 904prefix=NONE 905program_prefix=NONE 906program_suffix=NONE 907program_transform_name=s,x,x, 908silent= 909site= 910srcdir= 911verbose= 912x_includes=NONE 913x_libraries=NONE 914 915# Installation directory options. 916# These are left unexpanded so users can "make install exec_prefix=/foo" 917# and all the variables that are supposed to be based on exec_prefix 918# by default will actually change. 919# Use braces instead of parens because sh, perl, etc. also accept them. 920# (The list follows the same order as the GNU Coding Standards.) 921bindir='${exec_prefix}/bin' 922sbindir='${exec_prefix}/sbin' 923libexecdir='${exec_prefix}/libexec' 924datarootdir='${prefix}/share' 925datadir='${datarootdir}' 926sysconfdir='${prefix}/etc' 927sharedstatedir='${prefix}/com' 928localstatedir='${prefix}/var' 929includedir='${prefix}/include' 930oldincludedir='/usr/include' 931docdir='${datarootdir}/doc/${PACKAGE}' 932infodir='${datarootdir}/info' 933htmldir='${docdir}' 934dvidir='${docdir}' 935pdfdir='${docdir}' 936psdir='${docdir}' 937libdir='${exec_prefix}/lib' 938localedir='${datarootdir}/locale' 939mandir='${datarootdir}/man' 940 941ac_prev= 942ac_dashdash= 943for ac_option 944do 945 # If the previous option needs an argument, assign it. 946 if test -n "$ac_prev"; then 947 eval $ac_prev=\$ac_option 948 ac_prev= 949 continue 950 fi 951 952 case $ac_option in 953 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 954 *=) ac_optarg= ;; 955 *) ac_optarg=yes ;; 956 esac 957 958 # Accept the important Cygnus configure options, so we can diagnose typos. 959 960 case $ac_dashdash$ac_option in 961 --) 962 ac_dashdash=yes ;; 963 964 -bindir | --bindir | --bindi | --bind | --bin | --bi) 965 ac_prev=bindir ;; 966 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 967 bindir=$ac_optarg ;; 968 969 -build | --build | --buil | --bui | --bu) 970 ac_prev=build_alias ;; 971 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 972 build_alias=$ac_optarg ;; 973 974 -cache-file | --cache-file | --cache-fil | --cache-fi \ 975 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 976 ac_prev=cache_file ;; 977 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 978 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 979 cache_file=$ac_optarg ;; 980 981 --config-cache | -C) 982 cache_file=config.cache ;; 983 984 -datadir | --datadir | --datadi | --datad) 985 ac_prev=datadir ;; 986 -datadir=* | --datadir=* | --datadi=* | --datad=*) 987 datadir=$ac_optarg ;; 988 989 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 990 | --dataroo | --dataro | --datar) 991 ac_prev=datarootdir ;; 992 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 993 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 994 datarootdir=$ac_optarg ;; 995 996 -disable-* | --disable-*) 997 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 998 # Reject names that are not valid shell variable names. 999 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1000 as_fn_error $? "invalid feature name: $ac_useropt" 1001 ac_useropt_orig=$ac_useropt 1002 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1003 case $ac_user_opts in 1004 *" 1005"enable_$ac_useropt" 1006"*) ;; 1007 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1008 ac_unrecognized_sep=', ';; 1009 esac 1010 eval enable_$ac_useropt=no ;; 1011 1012 -docdir | --docdir | --docdi | --doc | --do) 1013 ac_prev=docdir ;; 1014 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1015 docdir=$ac_optarg ;; 1016 1017 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1018 ac_prev=dvidir ;; 1019 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1020 dvidir=$ac_optarg ;; 1021 1022 -enable-* | --enable-*) 1023 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1024 # Reject names that are not valid shell variable names. 1025 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1026 as_fn_error $? "invalid feature name: $ac_useropt" 1027 ac_useropt_orig=$ac_useropt 1028 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1029 case $ac_user_opts in 1030 *" 1031"enable_$ac_useropt" 1032"*) ;; 1033 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1034 ac_unrecognized_sep=', ';; 1035 esac 1036 eval enable_$ac_useropt=\$ac_optarg ;; 1037 1038 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1039 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1040 | --exec | --exe | --ex) 1041 ac_prev=exec_prefix ;; 1042 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1043 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1044 | --exec=* | --exe=* | --ex=*) 1045 exec_prefix=$ac_optarg ;; 1046 1047 -gas | --gas | --ga | --g) 1048 # Obsolete; use --with-gas. 1049 with_gas=yes ;; 1050 1051 -help | --help | --hel | --he | -h) 1052 ac_init_help=long ;; 1053 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1054 ac_init_help=recursive ;; 1055 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1056 ac_init_help=short ;; 1057 1058 -host | --host | --hos | --ho) 1059 ac_prev=host_alias ;; 1060 -host=* | --host=* | --hos=* | --ho=*) 1061 host_alias=$ac_optarg ;; 1062 1063 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1064 ac_prev=htmldir ;; 1065 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1066 | --ht=*) 1067 htmldir=$ac_optarg ;; 1068 1069 -includedir | --includedir | --includedi | --included | --include \ 1070 | --includ | --inclu | --incl | --inc) 1071 ac_prev=includedir ;; 1072 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1073 | --includ=* | --inclu=* | --incl=* | --inc=*) 1074 includedir=$ac_optarg ;; 1075 1076 -infodir | --infodir | --infodi | --infod | --info | --inf) 1077 ac_prev=infodir ;; 1078 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1079 infodir=$ac_optarg ;; 1080 1081 -libdir | --libdir | --libdi | --libd) 1082 ac_prev=libdir ;; 1083 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1084 libdir=$ac_optarg ;; 1085 1086 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1087 | --libexe | --libex | --libe) 1088 ac_prev=libexecdir ;; 1089 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1090 | --libexe=* | --libex=* | --libe=*) 1091 libexecdir=$ac_optarg ;; 1092 1093 -localedir | --localedir | --localedi | --localed | --locale) 1094 ac_prev=localedir ;; 1095 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1096 localedir=$ac_optarg ;; 1097 1098 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1099 | --localstate | --localstat | --localsta | --localst | --locals) 1100 ac_prev=localstatedir ;; 1101 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1102 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1103 localstatedir=$ac_optarg ;; 1104 1105 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1106 ac_prev=mandir ;; 1107 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1108 mandir=$ac_optarg ;; 1109 1110 -nfp | --nfp | --nf) 1111 # Obsolete; use --without-fp. 1112 with_fp=no ;; 1113 1114 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1115 | --no-cr | --no-c | -n) 1116 no_create=yes ;; 1117 1118 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1119 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1120 no_recursion=yes ;; 1121 1122 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1123 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1124 | --oldin | --oldi | --old | --ol | --o) 1125 ac_prev=oldincludedir ;; 1126 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1127 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1128 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1129 oldincludedir=$ac_optarg ;; 1130 1131 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1132 ac_prev=prefix ;; 1133 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1134 prefix=$ac_optarg ;; 1135 1136 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1137 | --program-pre | --program-pr | --program-p) 1138 ac_prev=program_prefix ;; 1139 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1140 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1141 program_prefix=$ac_optarg ;; 1142 1143 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1144 | --program-suf | --program-su | --program-s) 1145 ac_prev=program_suffix ;; 1146 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1147 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1148 program_suffix=$ac_optarg ;; 1149 1150 -program-transform-name | --program-transform-name \ 1151 | --program-transform-nam | --program-transform-na \ 1152 | --program-transform-n | --program-transform- \ 1153 | --program-transform | --program-transfor \ 1154 | --program-transfo | --program-transf \ 1155 | --program-trans | --program-tran \ 1156 | --progr-tra | --program-tr | --program-t) 1157 ac_prev=program_transform_name ;; 1158 -program-transform-name=* | --program-transform-name=* \ 1159 | --program-transform-nam=* | --program-transform-na=* \ 1160 | --program-transform-n=* | --program-transform-=* \ 1161 | --program-transform=* | --program-transfor=* \ 1162 | --program-transfo=* | --program-transf=* \ 1163 | --program-trans=* | --program-tran=* \ 1164 | --progr-tra=* | --program-tr=* | --program-t=*) 1165 program_transform_name=$ac_optarg ;; 1166 1167 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1168 ac_prev=pdfdir ;; 1169 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1170 pdfdir=$ac_optarg ;; 1171 1172 -psdir | --psdir | --psdi | --psd | --ps) 1173 ac_prev=psdir ;; 1174 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1175 psdir=$ac_optarg ;; 1176 1177 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1178 | -silent | --silent | --silen | --sile | --sil) 1179 silent=yes ;; 1180 1181 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1182 ac_prev=sbindir ;; 1183 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1184 | --sbi=* | --sb=*) 1185 sbindir=$ac_optarg ;; 1186 1187 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1188 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1189 | --sharedst | --shareds | --shared | --share | --shar \ 1190 | --sha | --sh) 1191 ac_prev=sharedstatedir ;; 1192 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1193 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1194 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1195 | --sha=* | --sh=*) 1196 sharedstatedir=$ac_optarg ;; 1197 1198 -site | --site | --sit) 1199 ac_prev=site ;; 1200 -site=* | --site=* | --sit=*) 1201 site=$ac_optarg ;; 1202 1203 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1204 ac_prev=srcdir ;; 1205 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1206 srcdir=$ac_optarg ;; 1207 1208 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1209 | --syscon | --sysco | --sysc | --sys | --sy) 1210 ac_prev=sysconfdir ;; 1211 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1212 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1213 sysconfdir=$ac_optarg ;; 1214 1215 -target | --target | --targe | --targ | --tar | --ta | --t) 1216 ac_prev=target_alias ;; 1217 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1218 target_alias=$ac_optarg ;; 1219 1220 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1221 verbose=yes ;; 1222 1223 -version | --version | --versio | --versi | --vers | -V) 1224 ac_init_version=: ;; 1225 1226 -with-* | --with-*) 1227 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1228 # Reject names that are not valid shell variable names. 1229 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1230 as_fn_error $? "invalid package name: $ac_useropt" 1231 ac_useropt_orig=$ac_useropt 1232 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1233 case $ac_user_opts in 1234 *" 1235"with_$ac_useropt" 1236"*) ;; 1237 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1238 ac_unrecognized_sep=', ';; 1239 esac 1240 eval with_$ac_useropt=\$ac_optarg ;; 1241 1242 -without-* | --without-*) 1243 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1244 # Reject names that are not valid shell variable names. 1245 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1246 as_fn_error $? "invalid package name: $ac_useropt" 1247 ac_useropt_orig=$ac_useropt 1248 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1249 case $ac_user_opts in 1250 *" 1251"with_$ac_useropt" 1252"*) ;; 1253 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1254 ac_unrecognized_sep=', ';; 1255 esac 1256 eval with_$ac_useropt=no ;; 1257 1258 --x) 1259 # Obsolete; use --with-x. 1260 with_x=yes ;; 1261 1262 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1263 | --x-incl | --x-inc | --x-in | --x-i) 1264 ac_prev=x_includes ;; 1265 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1266 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1267 x_includes=$ac_optarg ;; 1268 1269 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1270 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1271 ac_prev=x_libraries ;; 1272 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1273 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1274 x_libraries=$ac_optarg ;; 1275 1276 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1277Try \`$0 --help' for more information" 1278 ;; 1279 1280 *=*) 1281 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1282 # Reject names that are not valid shell variable names. 1283 case $ac_envvar in #( 1284 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1285 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1286 esac 1287 eval $ac_envvar=\$ac_optarg 1288 export $ac_envvar ;; 1289 1290 *) 1291 # FIXME: should be removed in autoconf 3.0. 1292 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1293 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1294 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1295 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1296 ;; 1297 1298 esac 1299done 1300 1301if test -n "$ac_prev"; then 1302 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1303 as_fn_error $? "missing argument to $ac_option" 1304fi 1305 1306if test -n "$ac_unrecognized_opts"; then 1307 case $enable_option_checking in 1308 no) ;; 1309 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1310 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1311 esac 1312fi 1313 1314# Check all directory arguments for consistency. 1315for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1316 datadir sysconfdir sharedstatedir localstatedir includedir \ 1317 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1318 libdir localedir mandir 1319do 1320 eval ac_val=\$$ac_var 1321 # Remove trailing slashes. 1322 case $ac_val in 1323 */ ) 1324 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1325 eval $ac_var=\$ac_val;; 1326 esac 1327 # Be sure to have absolute directory names. 1328 case $ac_val in 1329 [\\/$]* | ?:[\\/]* ) continue;; 1330 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1331 esac 1332 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1333done 1334 1335# There might be people who depend on the old broken behavior: `$host' 1336# used to hold the argument of --host etc. 1337# FIXME: To remove some day. 1338build=$build_alias 1339host=$host_alias 1340target=$target_alias 1341 1342# FIXME: To remove some day. 1343if test "x$host_alias" != x; then 1344 if test "x$build_alias" = x; then 1345 cross_compiling=maybe 1346 elif test "x$build_alias" != "x$host_alias"; then 1347 cross_compiling=yes 1348 fi 1349fi 1350 1351ac_tool_prefix= 1352test -n "$host_alias" && ac_tool_prefix=$host_alias- 1353 1354test "$silent" = yes && exec 6>/dev/null 1355 1356 1357ac_pwd=`pwd` && test -n "$ac_pwd" && 1358ac_ls_di=`ls -di .` && 1359ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1360 as_fn_error $? "working directory cannot be determined" 1361test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1362 as_fn_error $? "pwd does not report name of working directory" 1363 1364 1365# Find the source files, if location was not specified. 1366if test -z "$srcdir"; then 1367 ac_srcdir_defaulted=yes 1368 # Try the directory containing this script, then the parent directory. 1369 ac_confdir=`$as_dirname -- "$as_myself" || 1370$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1371 X"$as_myself" : 'X\(//\)[^/]' \| \ 1372 X"$as_myself" : 'X\(//\)$' \| \ 1373 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1374$as_echo X"$as_myself" | 1375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1376 s//\1/ 1377 q 1378 } 1379 /^X\(\/\/\)[^/].*/{ 1380 s//\1/ 1381 q 1382 } 1383 /^X\(\/\/\)$/{ 1384 s//\1/ 1385 q 1386 } 1387 /^X\(\/\).*/{ 1388 s//\1/ 1389 q 1390 } 1391 s/.*/./; q'` 1392 srcdir=$ac_confdir 1393 if test ! -r "$srcdir/$ac_unique_file"; then 1394 srcdir=.. 1395 fi 1396else 1397 ac_srcdir_defaulted=no 1398fi 1399if test ! -r "$srcdir/$ac_unique_file"; then 1400 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1401 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1402fi 1403ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1404ac_abs_confdir=`( 1405 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1406 pwd)` 1407# When building in place, set srcdir=. 1408if test "$ac_abs_confdir" = "$ac_pwd"; then 1409 srcdir=. 1410fi 1411# Remove unnecessary trailing slashes from srcdir. 1412# Double slashes in file names in object file debugging info 1413# mess up M-x gdb in Emacs. 1414case $srcdir in 1415*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1416esac 1417for ac_var in $ac_precious_vars; do 1418 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1419 eval ac_env_${ac_var}_value=\$${ac_var} 1420 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1421 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1422done 1423 1424# 1425# Report the --help message. 1426# 1427if test "$ac_init_help" = "long"; then 1428 # Omit some internal or obsolete options to make the list less imposing. 1429 # This message is too long to be a string in the A/UX 3.1 sh. 1430 cat <<_ACEOF 1431\`configure' configures this package to adapt to many kinds of systems. 1432 1433Usage: $0 [OPTION]... [VAR=VALUE]... 1434 1435To assign environment variables (e.g., CC, CFLAGS...), specify them as 1436VAR=VALUE. See below for descriptions of some of the useful variables. 1437 1438Defaults for the options are specified in brackets. 1439 1440Configuration: 1441 -h, --help display this help and exit 1442 --help=short display options specific to this package 1443 --help=recursive display the short help of all the included packages 1444 -V, --version display version information and exit 1445 -q, --quiet, --silent do not print \`checking ...' messages 1446 --cache-file=FILE cache test results in FILE [disabled] 1447 -C, --config-cache alias for \`--cache-file=config.cache' 1448 -n, --no-create do not create output files 1449 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1450 1451Installation directories: 1452 --prefix=PREFIX install architecture-independent files in PREFIX 1453 [$ac_default_prefix] 1454 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1455 [PREFIX] 1456 1457By default, \`make install' will install all the files in 1458\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1459an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1460for instance \`--prefix=\$HOME'. 1461 1462For better control, use the options below. 1463 1464Fine tuning of the installation directories: 1465 --bindir=DIR user executables [EPREFIX/bin] 1466 --sbindir=DIR system admin executables [EPREFIX/sbin] 1467 --libexecdir=DIR program executables [EPREFIX/libexec] 1468 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1469 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1470 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1471 --libdir=DIR object code libraries [EPREFIX/lib] 1472 --includedir=DIR C header files [PREFIX/include] 1473 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1474 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1475 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1476 --infodir=DIR info documentation [DATAROOTDIR/info] 1477 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1478 --mandir=DIR man documentation [DATAROOTDIR/man] 1479 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1480 --htmldir=DIR html documentation [DOCDIR] 1481 --dvidir=DIR dvi documentation [DOCDIR] 1482 --pdfdir=DIR pdf documentation [DOCDIR] 1483 --psdir=DIR ps documentation [DOCDIR] 1484_ACEOF 1485 1486 cat <<\_ACEOF 1487 1488X features: 1489 --x-includes=DIR X include files are in DIR 1490 --x-libraries=DIR X library files are in DIR 1491 1492System types: 1493 --build=BUILD configure for building on BUILD [guessed] 1494 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1495_ACEOF 1496fi 1497 1498if test -n "$ac_init_help"; then 1499 1500 cat <<\_ACEOF 1501 1502Optional Features: 1503 --disable-option-checking ignore unrecognized --enable/--with options 1504 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1505 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1506 --enable-shared[=PKGS] build shared libraries [default=yes] 1507 --enable-static[=PKGS] build static libraries [default=yes] 1508 --enable-fast-install[=PKGS] 1509 optimize for fast installation [default=yes] 1510 --disable-libtool-lock avoid locking (might break parallel builds) 1511 --enable-assertions Enable internal sanity checks 1512 (auto/disabled/release/enabled/paranoid) 1513 [[default=auto]] 1514 --enable-dependency-tracking 1515 Use gcc -MMD -MT dependency tracking [[default=yes]] 1516 --enable-libc Use the system C library [[default=yes]] 1517 --enable-gcc-atomics Use gcc builtin atomics [[default=yes]] 1518 --enable-atomic Enable the atomic operations subsystem 1519 [[default=yes]] 1520 --enable-audio Enable the audio subsystem [[default=yes]] 1521 --enable-video Enable the video subsystem [[default=yes]] 1522 --enable-render Enable the render subsystem [[default=yes]] 1523 --enable-events Enable the events subsystem [[default=yes]] 1524 --enable-joystick Enable the joystick subsystem [[default=yes]] 1525 --enable-haptic Enable the haptic (force feedback) subsystem 1526 [[default=yes]] 1527 --enable-sensor Enable the sensor subsystem [[default=yes]] 1528 --enable-power Enable the power subsystem [[default=yes]] 1529 --enable-filesystem Enable the filesystem subsystem [[default=yes]] 1530 --enable-threads Enable the threading subsystem [[default=yes]] 1531 --enable-timers Enable the timer subsystem [[default=yes]] 1532 --enable-file Enable the file subsystem [[default=yes]] 1533 --enable-loadso Enable the shared object loading subsystem 1534 [[default=yes]] 1535 --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]] 1536 --enable-assembly Enable assembly routines [[default=yes]] 1537 --enable-ssemath Allow GCC to use SSE floating point math 1538 [[default=maybe]] 1539 --enable-mmx use MMX assembly routines [[default=yes]] 1540 --enable-3dnow use 3DNow! assembly routines [[default=yes]] 1541 --enable-sse use SSE assembly routines [[default=yes]] 1542 --enable-sse2 use SSE2 assembly routines [[default=maybe]] 1543 --enable-sse3 use SSE3 assembly routines [[default=maybe]] 1544 --enable-altivec use Altivec assembly routines [[default=yes]] 1545 --enable-oss support the OSS audio API [[default=maybe]] 1546 --enable-alsa support the ALSA audio API [[default=yes]] 1547 --disable-alsatest Do not try to compile and run a test Alsa program 1548 --enable-alsa-shared dynamically load ALSA audio support [[default=yes]] 1549 --enable-jack use JACK audio [[default=yes]] 1550 --enable-jack-shared dynamically load JACK audio support [[default=yes]] 1551 --enable-esd support the Enlightened Sound Daemon [[default=yes]] 1552 --disable-esdtest Do not try to compile and run a test ESD program 1553 --enable-esd-shared dynamically load ESD audio support [[default=yes]] 1554 --enable-pulseaudio use PulseAudio [[default=yes]] 1555 --enable-pulseaudio-shared 1556 dynamically load PulseAudio support [[default=yes]] 1557 --enable-arts support the Analog Real Time Synthesizer 1558 [[default=yes]] 1559 --enable-arts-shared dynamically load aRts audio support [[default=yes]] 1560 --enable-nas support the NAS audio API [[default=yes]] 1561 --enable-nas-shared dynamically load NAS audio support [[default=yes]] 1562 --enable-sndio support the sndio audio API [[default=yes]] 1563 --enable-sndio-shared dynamically load sndio audio support [[default=yes]] 1564 --enable-fusionsound use FusionSound audio driver [[default=no]] 1565 --enable-fusionsound-shared 1566 dynamically load fusionsound audio support 1567 [[default=yes]] 1568 --enable-diskaudio support the disk writer audio driver [[default=yes]] 1569 --enable-dummyaudio support the dummy audio driver [[default=yes]] 1570 --enable-libsamplerate use libsamplerate for audio rate conversion 1571 [[default=yes]] 1572 --enable-libsamplerate-shared 1573 dynamically load libsamplerate [[default=yes]] 1574 --enable-video-wayland use Wayland video driver [[default=yes]] 1575 --enable-video-wayland-qt-touch 1576 QtWayland server support for Wayland video driver 1577 [[default=yes]] 1578 --enable-wayland-shared dynamically load Wayland support [[default=maybe]] 1579 --enable-video-mir use Mir video driver [[default=no]] 1580 --enable-mir-shared dynamically load Mir support [[default=maybe]] 1581 --enable-video-rpi use Raspberry Pi video driver [[default=yes]] 1582 --enable-video-x11 use X11 video driver [[default=yes]] 1583 --enable-x11-shared dynamically load X11 support [[default=maybe]] 1584 --enable-video-x11-xcursor 1585 enable X11 Xcursor support [[default=yes]] 1586 --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]] 1587 --enable-video-x11-xinerama 1588 enable X11 Xinerama support [[default=yes]] 1589 --enable-video-x11-xinput 1590 enable X11 XInput extension for manymouse, tablets, 1591 etc [[default=yes]] 1592 --enable-video-x11-xrandr 1593 enable X11 Xrandr extension for fullscreen 1594 [[default=yes]] 1595 --enable-video-x11-scrnsaver 1596 enable X11 screensaver extension [[default=yes]] 1597 --enable-video-x11-xshape 1598 enable X11 XShape support [[default=yes]] 1599 --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]] 1600 --enable-video-vivante use Vivante EGL video driver [[default=yes]] 1601 --enable-video-cocoa use Cocoa video driver [[default=yes]] 1602 --enable-render-metal enable the Metal render driver [[default=yes]] 1603 --enable-video-directfb use DirectFB video driver [[default=no]] 1604 --enable-directfb-shared 1605 dynamically load directfb support [[default=yes]] 1606 --enable-video-kmsdrm use KMSDRM video driver [[default=no]] 1607 --enable-kmsdrm-shared dynamically load kmsdrm support [[default=yes]] 1608 --enable-video-dummy use dummy video driver [[default=yes]] 1609 --enable-video-opengl include OpenGL support [[default=yes]] 1610 --enable-video-opengles include OpenGL ES support [[default=yes]] 1611 --enable-video-opengles1 1612 include OpenGL ES 1.1 support [[default=yes]] 1613 --enable-video-opengles2 1614 include OpenGL ES 2.0 support [[default=yes]] 1615 --enable-video-vulkan include Vulkan support [[default=yes]] 1616 --enable-libudev enable libudev support [[default=yes]] 1617 --enable-dbus enable D-Bus support [[default=yes]] 1618 --enable-ime enable IME support [[default=yes]] 1619 --enable-ibus enable IBus support [[default=yes]] 1620 --enable-fcitx enable fcitx support [[default=yes]] 1621 --enable-input-tslib use the Touchscreen library for input 1622 [[default=yes]] 1623 --enable-pthreads use POSIX threads for multi-threading 1624 [[default=yes]] 1625 --enable-pthread-sem use pthread semaphores [[default=yes]] 1626 --enable-directx use DirectX for Windows audio/video [[default=yes]] 1627 --enable-wasapi use the Windows WASAPI audio driver [[default=yes]] 1628 --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]] 1629 --enable-hidapi use HIDAPI for low level joystick drivers 1630 [[default=no]] 1631 --enable-clock_gettime use clock_gettime() instead of gettimeofday() on 1632 UNIX [[default=yes]] 1633 --enable-rpath use an rpath when linking SDL [[default=yes]] 1634 --enable-render-d3d enable the Direct3D render driver [[default=yes]] 1635 1636Optional Packages: 1637 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1638 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1639 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1640 both] 1641 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1642 --with-sysroot=DIR Search for dependent libraries within DIR 1643 (or the compiler's sysroot if not specified). 1644 --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional) 1645 --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional) 1646 --with-esd-prefix=PFX Prefix where ESD is installed (optional) 1647 --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional) 1648 --with-x use the X Window System 1649 1650Some influential environment variables: 1651 CC C compiler command 1652 CFLAGS C compiler flags 1653 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1654 nonstandard directory <lib dir> 1655 LIBS libraries to pass to the linker, e.g. -l<library> 1656 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1657 you have headers in a nonstandard directory <include dir> 1658 CPP C preprocessor 1659 CXX C++ compiler command 1660 CXXFLAGS C++ compiler flags 1661 CXXCPP C++ preprocessor 1662 XMKMF Path to xmkmf, Makefile generator for X Window System 1663 1664Use these variables to override the choices made by `configure' or to help 1665it to find libraries and programs with nonstandard names/locations. 1666 1667Report bugs to the package provider. 1668_ACEOF 1669ac_status=$? 1670fi 1671 1672if test "$ac_init_help" = "recursive"; then 1673 # If there are subdirs, report their specific --help. 1674 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1675 test -d "$ac_dir" || 1676 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1677 continue 1678 ac_builddir=. 1679 1680case "$ac_dir" in 1681.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1682*) 1683 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1684 # A ".." for each directory in $ac_dir_suffix. 1685 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1686 case $ac_top_builddir_sub in 1687 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1688 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1689 esac ;; 1690esac 1691ac_abs_top_builddir=$ac_pwd 1692ac_abs_builddir=$ac_pwd$ac_dir_suffix 1693# for backward compatibility: 1694ac_top_builddir=$ac_top_build_prefix 1695 1696case $srcdir in 1697 .) # We are building in place. 1698 ac_srcdir=. 1699 ac_top_srcdir=$ac_top_builddir_sub 1700 ac_abs_top_srcdir=$ac_pwd ;; 1701 [\\/]* | ?:[\\/]* ) # Absolute name. 1702 ac_srcdir=$srcdir$ac_dir_suffix; 1703 ac_top_srcdir=$srcdir 1704 ac_abs_top_srcdir=$srcdir ;; 1705 *) # Relative name. 1706 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1707 ac_top_srcdir=$ac_top_build_prefix$srcdir 1708 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1709esac 1710ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1711 1712 cd "$ac_dir" || { ac_status=$?; continue; } 1713 # Check for guested configure. 1714 if test -f "$ac_srcdir/configure.gnu"; then 1715 echo && 1716 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1717 elif test -f "$ac_srcdir/configure"; then 1718 echo && 1719 $SHELL "$ac_srcdir/configure" --help=recursive 1720 else 1721 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1722 fi || ac_status=$? 1723 cd "$ac_pwd" || { ac_status=$?; break; } 1724 done 1725fi 1726 1727test -n "$ac_init_help" && exit $ac_status 1728if $ac_init_version; then 1729 cat <<\_ACEOF 1730configure 1731generated by GNU Autoconf 2.69 1732 1733Copyright (C) 2012 Free Software Foundation, Inc. 1734This configure script is free software; the Free Software Foundation 1735gives unlimited permission to copy, distribute and modify it. 1736_ACEOF 1737 exit 1738fi 1739 1740## ------------------------ ## 1741## Autoconf initialization. ## 1742## ------------------------ ## 1743 1744# ac_fn_c_try_compile LINENO 1745# -------------------------- 1746# Try to compile conftest.$ac_ext, and return whether this succeeded. 1747ac_fn_c_try_compile () 1748{ 1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1750 rm -f conftest.$ac_objext 1751 if { { ac_try="$ac_compile" 1752case "(($ac_try" in 1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1754 *) ac_try_echo=$ac_try;; 1755esac 1756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1757$as_echo "$ac_try_echo"; } >&5 1758 (eval "$ac_compile") 2>conftest.err 1759 ac_status=$? 1760 if test -s conftest.err; then 1761 grep -v '^ *+' conftest.err >conftest.er1 1762 cat conftest.er1 >&5 1763 mv -f conftest.er1 conftest.err 1764 fi 1765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1766 test $ac_status = 0; } && { 1767 test -z "$ac_c_werror_flag" || 1768 test ! -s conftest.err 1769 } && test -s conftest.$ac_objext; then : 1770 ac_retval=0 1771else 1772 $as_echo "$as_me: failed program was:" >&5 1773sed 's/^/| /' conftest.$ac_ext >&5 1774 1775 ac_retval=1 1776fi 1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1778 as_fn_set_status $ac_retval 1779 1780} # ac_fn_c_try_compile 1781 1782# ac_fn_c_try_link LINENO 1783# ----------------------- 1784# Try to link conftest.$ac_ext, and return whether this succeeded. 1785ac_fn_c_try_link () 1786{ 1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1788 rm -f conftest.$ac_objext conftest$ac_exeext 1789 if { { ac_try="$ac_link" 1790case "(($ac_try" in 1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1792 *) ac_try_echo=$ac_try;; 1793esac 1794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1795$as_echo "$ac_try_echo"; } >&5 1796 (eval "$ac_link") 2>conftest.err 1797 ac_status=$? 1798 if test -s conftest.err; then 1799 grep -v '^ *+' conftest.err >conftest.er1 1800 cat conftest.er1 >&5 1801 mv -f conftest.er1 conftest.err 1802 fi 1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1804 test $ac_status = 0; } && { 1805 test -z "$ac_c_werror_flag" || 1806 test ! -s conftest.err 1807 } && test -s conftest$ac_exeext && { 1808 test "$cross_compiling" = yes || 1809 test -x conftest$ac_exeext 1810 }; then : 1811 ac_retval=0 1812else 1813 $as_echo "$as_me: failed program was:" >&5 1814sed 's/^/| /' conftest.$ac_ext >&5 1815 1816 ac_retval=1 1817fi 1818 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1819 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1820 # interfere with the next link command; also delete a directory that is 1821 # left behind by Apple's compiler. We do this before executing the actions. 1822 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1824 as_fn_set_status $ac_retval 1825 1826} # ac_fn_c_try_link 1827 1828# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1829# ------------------------------------------------------- 1830# Tests whether HEADER exists and can be compiled using the include files in 1831# INCLUDES, setting the cache variable VAR accordingly. 1832ac_fn_c_check_header_compile () 1833{ 1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1836$as_echo_n "checking for $2... " >&6; } 1837if eval \${$3+:} false; then : 1838 $as_echo_n "(cached) " >&6 1839else 1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1841/* end confdefs.h. */ 1842$4 1843#include <$2> 1844_ACEOF 1845if ac_fn_c_try_compile "$LINENO"; then : 1846 eval "$3=yes" 1847else 1848 eval "$3=no" 1849fi 1850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1851fi 1852eval ac_res=\$$3 1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1854$as_echo "$ac_res" >&6; } 1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1856 1857} # ac_fn_c_check_header_compile 1858 1859# ac_fn_c_try_cpp LINENO 1860# ---------------------- 1861# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1862ac_fn_c_try_cpp () 1863{ 1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1865 if { { ac_try="$ac_cpp conftest.$ac_ext" 1866case "(($ac_try" in 1867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1868 *) ac_try_echo=$ac_try;; 1869esac 1870eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1871$as_echo "$ac_try_echo"; } >&5 1872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1873 ac_status=$? 1874 if test -s conftest.err; then 1875 grep -v '^ *+' conftest.err >conftest.er1 1876 cat conftest.er1 >&5 1877 mv -f conftest.er1 conftest.err 1878 fi 1879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1880 test $ac_status = 0; } > conftest.i && { 1881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1882 test ! -s conftest.err 1883 }; then : 1884 ac_retval=0 1885else 1886 $as_echo "$as_me: failed program was:" >&5 1887sed 's/^/| /' conftest.$ac_ext >&5 1888 1889 ac_retval=1 1890fi 1891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1892 as_fn_set_status $ac_retval 1893 1894} # ac_fn_c_try_cpp 1895 1896# ac_fn_c_try_run LINENO 1897# ---------------------- 1898# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1899# that executables *can* be run. 1900ac_fn_c_try_run () 1901{ 1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1903 if { { ac_try="$ac_link" 1904case "(($ac_try" in 1905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1906 *) ac_try_echo=$ac_try;; 1907esac 1908eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1909$as_echo "$ac_try_echo"; } >&5 1910 (eval "$ac_link") 2>&5 1911 ac_status=$? 1912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1913 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1914 { { case "(($ac_try" in 1915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1916 *) ac_try_echo=$ac_try;; 1917esac 1918eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1919$as_echo "$ac_try_echo"; } >&5 1920 (eval "$ac_try") 2>&5 1921 ac_status=$? 1922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1923 test $ac_status = 0; }; }; then : 1924 ac_retval=0 1925else 1926 $as_echo "$as_me: program exited with status $ac_status" >&5 1927 $as_echo "$as_me: failed program was:" >&5 1928sed 's/^/| /' conftest.$ac_ext >&5 1929 1930 ac_retval=$ac_status 1931fi 1932 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1934 as_fn_set_status $ac_retval 1935 1936} # ac_fn_c_try_run 1937 1938# ac_fn_c_check_func LINENO FUNC VAR 1939# ---------------------------------- 1940# Tests whether FUNC exists, setting the cache variable VAR accordingly 1941ac_fn_c_check_func () 1942{ 1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1945$as_echo_n "checking for $2... " >&6; } 1946if eval \${$3+:} false; then : 1947 $as_echo_n "(cached) " >&6 1948else 1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1950/* end confdefs.h. */ 1951/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1952 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1953#define $2 innocuous_$2 1954 1955/* System header to define __stub macros and hopefully few prototypes, 1956 which can conflict with char $2 (); below. 1957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1958 <limits.h> exists even on freestanding compilers. */ 1959 1960#ifdef __STDC__ 1961# include <limits.h> 1962#else 1963# include <assert.h> 1964#endif 1965 1966#undef $2 1967 1968/* Override any GCC internal prototype to avoid an error. 1969 Use char because int might match the return type of a GCC 1970 builtin and then its argument prototype would still apply. */ 1971#ifdef __cplusplus 1972extern "C" 1973#endif 1974char $2 (); 1975/* The GNU C library defines this for functions which it implements 1976 to always fail with ENOSYS. Some functions are actually named 1977 something starting with __ and the normal name is an alias. */ 1978#if defined __stub_$2 || defined __stub___$2 1979choke me 1980#endif 1981 1982int 1983main () 1984{ 1985return $2 (); 1986 ; 1987 return 0; 1988} 1989_ACEOF 1990if ac_fn_c_try_link "$LINENO"; then : 1991 eval "$3=yes" 1992else 1993 eval "$3=no" 1994fi 1995rm -f core conftest.err conftest.$ac_objext \ 1996 conftest$ac_exeext conftest.$ac_ext 1997fi 1998eval ac_res=\$$3 1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2000$as_echo "$ac_res" >&6; } 2001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2002 2003} # ac_fn_c_check_func 2004 2005# ac_fn_cxx_try_compile LINENO 2006# ---------------------------- 2007# Try to compile conftest.$ac_ext, and return whether this succeeded. 2008ac_fn_cxx_try_compile () 2009{ 2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2011 rm -f conftest.$ac_objext 2012 if { { ac_try="$ac_compile" 2013case "(($ac_try" in 2014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2015 *) ac_try_echo=$ac_try;; 2016esac 2017eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2018$as_echo "$ac_try_echo"; } >&5 2019 (eval "$ac_compile") 2>conftest.err 2020 ac_status=$? 2021 if test -s conftest.err; then 2022 grep -v '^ *+' conftest.err >conftest.er1 2023 cat conftest.er1 >&5 2024 mv -f conftest.er1 conftest.err 2025 fi 2026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2027 test $ac_status = 0; } && { 2028 test -z "$ac_cxx_werror_flag" || 2029 test ! -s conftest.err 2030 } && test -s conftest.$ac_objext; then : 2031 ac_retval=0 2032else 2033 $as_echo "$as_me: failed program was:" >&5 2034sed 's/^/| /' conftest.$ac_ext >&5 2035 2036 ac_retval=1 2037fi 2038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2039 as_fn_set_status $ac_retval 2040 2041} # ac_fn_cxx_try_compile 2042 2043# ac_fn_cxx_try_cpp LINENO 2044# ------------------------ 2045# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2046ac_fn_cxx_try_cpp () 2047{ 2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2049 if { { ac_try="$ac_cpp conftest.$ac_ext" 2050case "(($ac_try" in 2051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2052 *) ac_try_echo=$ac_try;; 2053esac 2054eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2055$as_echo "$ac_try_echo"; } >&5 2056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2057 ac_status=$? 2058 if test -s conftest.err; then 2059 grep -v '^ *+' conftest.err >conftest.er1 2060 cat conftest.er1 >&5 2061 mv -f conftest.er1 conftest.err 2062 fi 2063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2064 test $ac_status = 0; } > conftest.i && { 2065 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2066 test ! -s conftest.err 2067 }; then : 2068 ac_retval=0 2069else 2070 $as_echo "$as_me: failed program was:" >&5 2071sed 's/^/| /' conftest.$ac_ext >&5 2072 2073 ac_retval=1 2074fi 2075 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2076 as_fn_set_status $ac_retval 2077 2078} # ac_fn_cxx_try_cpp 2079 2080# ac_fn_cxx_try_link LINENO 2081# ------------------------- 2082# Try to link conftest.$ac_ext, and return whether this succeeded. 2083ac_fn_cxx_try_link () 2084{ 2085 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2086 rm -f conftest.$ac_objext conftest$ac_exeext 2087 if { { ac_try="$ac_link" 2088case "(($ac_try" in 2089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2090 *) ac_try_echo=$ac_try;; 2091esac 2092eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2093$as_echo "$ac_try_echo"; } >&5 2094 (eval "$ac_link") 2>conftest.err 2095 ac_status=$? 2096 if test -s conftest.err; then 2097 grep -v '^ *+' conftest.err >conftest.er1 2098 cat conftest.er1 >&5 2099 mv -f conftest.er1 conftest.err 2100 fi 2101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2102 test $ac_status = 0; } && { 2103 test -z "$ac_cxx_werror_flag" || 2104 test ! -s conftest.err 2105 } && test -s conftest$ac_exeext && { 2106 test "$cross_compiling" = yes || 2107 test -x conftest$ac_exeext 2108 }; then : 2109 ac_retval=0 2110else 2111 $as_echo "$as_me: failed program was:" >&5 2112sed 's/^/| /' conftest.$ac_ext >&5 2113 2114 ac_retval=1 2115fi 2116 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2117 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2118 # interfere with the next link command; also delete a directory that is 2119 # left behind by Apple's compiler. We do this before executing the actions. 2120 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2121 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2122 as_fn_set_status $ac_retval 2123 2124} # ac_fn_cxx_try_link 2125 2126# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2127# ------------------------------------------------------- 2128# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2129# the include files in INCLUDES and setting the cache variable VAR 2130# accordingly. 2131ac_fn_c_check_header_mongrel () 2132{ 2133 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2134 if eval \${$3+:} false; then : 2135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2136$as_echo_n "checking for $2... " >&6; } 2137if eval \${$3+:} false; then : 2138 $as_echo_n "(cached) " >&6 2139fi 2140eval ac_res=\$$3 2141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2142$as_echo "$ac_res" >&6; } 2143else 2144 # Is the header compilable? 2145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2146$as_echo_n "checking $2 usability... " >&6; } 2147cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2148/* end confdefs.h. */ 2149$4 2150#include <$2> 2151_ACEOF 2152if ac_fn_c_try_compile "$LINENO"; then : 2153 ac_header_compiler=yes 2154else 2155 ac_header_compiler=no 2156fi 2157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2159$as_echo "$ac_header_compiler" >&6; } 2160 2161# Is the header present? 2162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2163$as_echo_n "checking $2 presence... " >&6; } 2164cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2165/* end confdefs.h. */ 2166#include <$2> 2167_ACEOF 2168if ac_fn_c_try_cpp "$LINENO"; then : 2169 ac_header_preproc=yes 2170else 2171 ac_header_preproc=no 2172fi 2173rm -f conftest.err conftest.i conftest.$ac_ext 2174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2175$as_echo "$ac_header_preproc" >&6; } 2176 2177# So? What about this header? 2178case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2179 yes:no: ) 2180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2181$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2183$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2184 ;; 2185 no:yes:* ) 2186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2187$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2189$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2191$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2193$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2195$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2196 ;; 2197esac 2198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2199$as_echo_n "checking for $2... " >&6; } 2200if eval \${$3+:} false; then : 2201 $as_echo_n "(cached) " >&6 2202else 2203 eval "$3=\$ac_header_compiler" 2204fi 2205eval ac_res=\$$3 2206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2207$as_echo "$ac_res" >&6; } 2208fi 2209 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2210 2211} # ac_fn_c_check_header_mongrel 2212 2213# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2214# ------------------------------------------- 2215# Tests whether TYPE exists after having included INCLUDES, setting cache 2216# variable VAR accordingly. 2217ac_fn_c_check_type () 2218{ 2219 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2221$as_echo_n "checking for $2... " >&6; } 2222if eval \${$3+:} false; then : 2223 $as_echo_n "(cached) " >&6 2224else 2225 eval "$3=no" 2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2227/* end confdefs.h. */ 2228$4 2229int 2230main () 2231{ 2232if (sizeof ($2)) 2233 return 0; 2234 ; 2235 return 0; 2236} 2237_ACEOF 2238if ac_fn_c_try_compile "$LINENO"; then : 2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2240/* end confdefs.h. */ 2241$4 2242int 2243main () 2244{ 2245if (sizeof (($2))) 2246 return 0; 2247 ; 2248 return 0; 2249} 2250_ACEOF 2251if ac_fn_c_try_compile "$LINENO"; then : 2252 2253else 2254 eval "$3=yes" 2255fi 2256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2257fi 2258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2259fi 2260eval ac_res=\$$3 2261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2262$as_echo "$ac_res" >&6; } 2263 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2264 2265} # ac_fn_c_check_type 2266 2267# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2268# ---------------------------------------------------- 2269# Tries to find if the field MEMBER exists in type AGGR, after including 2270# INCLUDES, setting cache variable VAR accordingly. 2271ac_fn_c_check_member () 2272{ 2273 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2275$as_echo_n "checking for $2.$3... " >&6; } 2276if eval \${$4+:} false; then : 2277 $as_echo_n "(cached) " >&6 2278else 2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2280/* end confdefs.h. */ 2281$5 2282int 2283main () 2284{ 2285static $2 ac_aggr; 2286if (ac_aggr.$3) 2287return 0; 2288 ; 2289 return 0; 2290} 2291_ACEOF 2292if ac_fn_c_try_compile "$LINENO"; then : 2293 eval "$4=yes" 2294else 2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2296/* end confdefs.h. */ 2297$5 2298int 2299main () 2300{ 2301static $2 ac_aggr; 2302if (sizeof ac_aggr.$3) 2303return 0; 2304 ; 2305 return 0; 2306} 2307_ACEOF 2308if ac_fn_c_try_compile "$LINENO"; then : 2309 eval "$4=yes" 2310else 2311 eval "$4=no" 2312fi 2313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2314fi 2315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2316fi 2317eval ac_res=\$$4 2318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2319$as_echo "$ac_res" >&6; } 2320 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2321 2322} # ac_fn_c_check_member 2323cat >config.log <<_ACEOF 2324This file contains any messages produced by compilers while 2325running configure, to aid debugging if configure makes a mistake. 2326 2327It was created by $as_me, which was 2328generated by GNU Autoconf 2.69. Invocation command line was 2329 2330 $ $0 $@ 2331 2332_ACEOF 2333exec 5>>config.log 2334{ 2335cat <<_ASUNAME 2336## --------- ## 2337## Platform. ## 2338## --------- ## 2339 2340hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2341uname -m = `(uname -m) 2>/dev/null || echo unknown` 2342uname -r = `(uname -r) 2>/dev/null || echo unknown` 2343uname -s = `(uname -s) 2>/dev/null || echo unknown` 2344uname -v = `(uname -v) 2>/dev/null || echo unknown` 2345 2346/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2347/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2348 2349/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2350/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2351/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2352/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2353/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2354/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2355/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2356 2357_ASUNAME 2358 2359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2360for as_dir in $PATH 2361do 2362 IFS=$as_save_IFS 2363 test -z "$as_dir" && as_dir=. 2364 $as_echo "PATH: $as_dir" 2365 done 2366IFS=$as_save_IFS 2367 2368} >&5 2369 2370cat >&5 <<_ACEOF 2371 2372 2373## ----------- ## 2374## Core tests. ## 2375## ----------- ## 2376 2377_ACEOF 2378 2379 2380# Keep a trace of the command line. 2381# Strip out --no-create and --no-recursion so they do not pile up. 2382# Strip out --silent because we don't want to record it for future runs. 2383# Also quote any args containing shell meta-characters. 2384# Make two passes to allow for proper duplicate-argument suppression. 2385ac_configure_args= 2386ac_configure_args0= 2387ac_configure_args1= 2388ac_must_keep_next=false 2389for ac_pass in 1 2 2390do 2391 for ac_arg 2392 do 2393 case $ac_arg in 2394 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2395 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2396 | -silent | --silent | --silen | --sile | --sil) 2397 continue ;; 2398 *\'*) 2399 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2400 esac 2401 case $ac_pass in 2402 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2403 2) 2404 as_fn_append ac_configure_args1 " '$ac_arg'" 2405 if test $ac_must_keep_next = true; then 2406 ac_must_keep_next=false # Got value, back to normal. 2407 else 2408 case $ac_arg in 2409 *=* | --config-cache | -C | -disable-* | --disable-* \ 2410 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2411 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2412 | -with-* | --with-* | -without-* | --without-* | --x) 2413 case "$ac_configure_args0 " in 2414 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2415 esac 2416 ;; 2417 -* ) ac_must_keep_next=true ;; 2418 esac 2419 fi 2420 as_fn_append ac_configure_args " '$ac_arg'" 2421 ;; 2422 esac 2423 done 2424done 2425{ ac_configure_args0=; unset ac_configure_args0;} 2426{ ac_configure_args1=; unset ac_configure_args1;} 2427 2428# When interrupted or exit'd, cleanup temporary files, and complete 2429# config.log. We remove comments because anyway the quotes in there 2430# would cause problems or look ugly. 2431# WARNING: Use '\'' to represent an apostrophe within the trap. 2432# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2433trap 'exit_status=$? 2434 # Save into config.log some information that might help in debugging. 2435 { 2436 echo 2437 2438 $as_echo "## ---------------- ## 2439## Cache variables. ## 2440## ---------------- ##" 2441 echo 2442 # The following way of writing the cache mishandles newlines in values, 2443( 2444 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2445 eval ac_val=\$$ac_var 2446 case $ac_val in #( 2447 *${as_nl}*) 2448 case $ac_var in #( 2449 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2450$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2451 esac 2452 case $ac_var in #( 2453 _ | IFS | as_nl) ;; #( 2454 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2455 *) { eval $ac_var=; unset $ac_var;} ;; 2456 esac ;; 2457 esac 2458 done 2459 (set) 2>&1 | 2460 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2461 *${as_nl}ac_space=\ *) 2462 sed -n \ 2463 "s/'\''/'\''\\\\'\'''\''/g; 2464 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2465 ;; #( 2466 *) 2467 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2468 ;; 2469 esac | 2470 sort 2471) 2472 echo 2473 2474 $as_echo "## ----------------- ## 2475## Output variables. ## 2476## ----------------- ##" 2477 echo 2478 for ac_var in $ac_subst_vars 2479 do 2480 eval ac_val=\$$ac_var 2481 case $ac_val in 2482 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2483 esac 2484 $as_echo "$ac_var='\''$ac_val'\''" 2485 done | sort 2486 echo 2487 2488 if test -n "$ac_subst_files"; then 2489 $as_echo "## ------------------- ## 2490## File substitutions. ## 2491## ------------------- ##" 2492 echo 2493 for ac_var in $ac_subst_files 2494 do 2495 eval ac_val=\$$ac_var 2496 case $ac_val in 2497 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2498 esac 2499 $as_echo "$ac_var='\''$ac_val'\''" 2500 done | sort 2501 echo 2502 fi 2503 2504 if test -s confdefs.h; then 2505 $as_echo "## ----------- ## 2506## confdefs.h. ## 2507## ----------- ##" 2508 echo 2509 cat confdefs.h 2510 echo 2511 fi 2512 test "$ac_signal" != 0 && 2513 $as_echo "$as_me: caught signal $ac_signal" 2514 $as_echo "$as_me: exit $exit_status" 2515 } >&5 2516 rm -f core *.core core.conftest.* && 2517 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2518 exit $exit_status 2519' 0 2520for ac_signal in 1 2 13 15; do 2521 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2522done 2523ac_signal=0 2524 2525# confdefs.h avoids OS command line length limits that DEFS can exceed. 2526rm -f -r conftest* confdefs.h 2527 2528$as_echo "/* confdefs.h */" > confdefs.h 2529 2530# Predefined preprocessor variables. 2531 2532cat >>confdefs.h <<_ACEOF 2533#define PACKAGE_NAME "$PACKAGE_NAME" 2534_ACEOF 2535 2536cat >>confdefs.h <<_ACEOF 2537#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2538_ACEOF 2539 2540cat >>confdefs.h <<_ACEOF 2541#define PACKAGE_VERSION "$PACKAGE_VERSION" 2542_ACEOF 2543 2544cat >>confdefs.h <<_ACEOF 2545#define PACKAGE_STRING "$PACKAGE_STRING" 2546_ACEOF 2547 2548cat >>confdefs.h <<_ACEOF 2549#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2550_ACEOF 2551 2552cat >>confdefs.h <<_ACEOF 2553#define PACKAGE_URL "$PACKAGE_URL" 2554_ACEOF 2555 2556 2557# Let the site file select an alternate cache file if it wants to. 2558# Prefer an explicitly selected file to automatically selected ones. 2559ac_site_file1=NONE 2560ac_site_file2=NONE 2561if test -n "$CONFIG_SITE"; then 2562 # We do not want a PATH search for config.site. 2563 case $CONFIG_SITE in #(( 2564 -*) ac_site_file1=./$CONFIG_SITE;; 2565 */*) ac_site_file1=$CONFIG_SITE;; 2566 *) ac_site_file1=./$CONFIG_SITE;; 2567 esac 2568elif test "x$prefix" != xNONE; then 2569 ac_site_file1=$prefix/share/config.site 2570 ac_site_file2=$prefix/etc/config.site 2571else 2572 ac_site_file1=$ac_default_prefix/share/config.site 2573 ac_site_file2=$ac_default_prefix/etc/config.site 2574fi 2575for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2576do 2577 test "x$ac_site_file" = xNONE && continue 2578 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2579 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2580$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2581 sed 's/^/| /' "$ac_site_file" >&5 2582 . "$ac_site_file" \ 2583 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2585as_fn_error $? "failed to load site script $ac_site_file 2586See \`config.log' for more details" "$LINENO" 5; } 2587 fi 2588done 2589 2590if test -r "$cache_file"; then 2591 # Some versions of bash will fail to source /dev/null (special files 2592 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2593 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2594 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2595$as_echo "$as_me: loading cache $cache_file" >&6;} 2596 case $cache_file in 2597 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2598 *) . "./$cache_file";; 2599 esac 2600 fi 2601else 2602 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2603$as_echo "$as_me: creating cache $cache_file" >&6;} 2604 >$cache_file 2605fi 2606 2607# Check that the precious variables saved in the cache have kept the same 2608# value. 2609ac_cache_corrupted=false 2610for ac_var in $ac_precious_vars; do 2611 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2612 eval ac_new_set=\$ac_env_${ac_var}_set 2613 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2614 eval ac_new_val=\$ac_env_${ac_var}_value 2615 case $ac_old_set,$ac_new_set in 2616 set,) 2617 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2618$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2619 ac_cache_corrupted=: ;; 2620 ,set) 2621 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2622$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2623 ac_cache_corrupted=: ;; 2624 ,);; 2625 *) 2626 if test "x$ac_old_val" != "x$ac_new_val"; then 2627 # differences in whitespace do not lead to failure. 2628 ac_old_val_w=`echo x $ac_old_val` 2629 ac_new_val_w=`echo x $ac_new_val` 2630 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2631 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2632$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2633 ac_cache_corrupted=: 2634 else 2635 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2636$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2637 eval $ac_var=\$ac_old_val 2638 fi 2639 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2640$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2641 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2642$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2643 fi;; 2644 esac 2645 # Pass precious variables to config.status. 2646 if test "$ac_new_set" = set; then 2647 case $ac_new_val in 2648 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2649 *) ac_arg=$ac_var=$ac_new_val ;; 2650 esac 2651 case " $ac_configure_args " in 2652 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2653 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2654 esac 2655 fi 2656done 2657if $ac_cache_corrupted; then 2658 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2659$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2660 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2661$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2662 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2663fi 2664## -------------------- ## 2665## Main body of script. ## 2666## -------------------- ## 2667 2668ac_ext=c 2669ac_cpp='$CPP $CPPFLAGS' 2670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2672ac_compiler_gnu=$ac_cv_c_compiler_gnu 2673 2674 2675ac_config_headers="$ac_config_headers include/SDL_config.h" 2676 2677ac_aux_dir= 2678for ac_dir in build-scripts "$srcdir"/build-scripts; do 2679 if test -f "$ac_dir/install-sh"; then 2680 ac_aux_dir=$ac_dir 2681 ac_install_sh="$ac_aux_dir/install-sh -c" 2682 break 2683 elif test -f "$ac_dir/install.sh"; then 2684 ac_aux_dir=$ac_dir 2685 ac_install_sh="$ac_aux_dir/install.sh -c" 2686 break 2687 elif test -f "$ac_dir/shtool"; then 2688 ac_aux_dir=$ac_dir 2689 ac_install_sh="$ac_aux_dir/shtool install -c" 2690 break 2691 fi 2692done 2693if test -z "$ac_aux_dir"; then 2694 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5 2695fi 2696 2697# These three variables are undocumented and unsupported, 2698# and are intended to be withdrawn in a future Autoconf release. 2699# They can cause serious problems if a builder's source tree is in a directory 2700# whose full name contains unusual characters. 2701ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2702ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2703ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2704 2705 2706 2707 2708orig_CFLAGS="$CFLAGS" 2709 2710# 2711# Making releases: 2712# Edit include/SDL_version.h and change the version, then: 2713# SDL_MICRO_VERSION += 1; 2714# SDL_INTERFACE_AGE += 1; 2715# SDL_BINARY_AGE += 1; 2716# if any functions have been added, set SDL_INTERFACE_AGE to 0. 2717# if backwards compatibility has been broken, 2718# set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0. 2719# 2720SDL_MAJOR_VERSION=2 2721SDL_MINOR_VERSION=0 2722SDL_MICRO_VERSION=8 2723SDL_INTERFACE_AGE=0 2724SDL_BINARY_AGE=8 2725SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION 2726 2727 2728 2729 2730 2731 2732 2733 2734# libtool versioning 2735case `pwd` in 2736 *\ * | *\ *) 2737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2738$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2739esac 2740 2741 2742 2743macro_version='2.4.2' 2744macro_revision='1.3337' 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758ltmain="$ac_aux_dir/ltmain.sh" 2759 2760# Make sure we can run config.sub. 2761$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2762 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2763 2764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2765$as_echo_n "checking build system type... " >&6; } 2766if ${ac_cv_build+:} false; then : 2767 $as_echo_n "(cached) " >&6 2768else 2769 ac_build_alias=$build_alias 2770test "x$ac_build_alias" = x && 2771 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2772test "x$ac_build_alias" = x && 2773 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2774ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2775 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2776 2777fi 2778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2779$as_echo "$ac_cv_build" >&6; } 2780case $ac_cv_build in 2781*-*-*) ;; 2782*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2783esac 2784build=$ac_cv_build 2785ac_save_IFS=$IFS; IFS='-' 2786set x $ac_cv_build 2787shift 2788build_cpu=$1 2789build_vendor=$2 2790shift; shift 2791# Remember, the first character of IFS is used to create $*, 2792# except with old shells: 2793build_os=$* 2794IFS=$ac_save_IFS 2795case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2796 2797 2798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2799$as_echo_n "checking host system type... " >&6; } 2800if ${ac_cv_host+:} false; then : 2801 $as_echo_n "(cached) " >&6 2802else 2803 if test "x$host_alias" = x; then 2804 ac_cv_host=$ac_cv_build 2805else 2806 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2807 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2808fi 2809 2810fi 2811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2812$as_echo "$ac_cv_host" >&6; } 2813case $ac_cv_host in 2814*-*-*) ;; 2815*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2816esac 2817host=$ac_cv_host 2818ac_save_IFS=$IFS; IFS='-' 2819set x $ac_cv_host 2820shift 2821host_cpu=$1 2822host_vendor=$2 2823shift; shift 2824# Remember, the first character of IFS is used to create $*, 2825# except with old shells: 2826host_os=$* 2827IFS=$ac_save_IFS 2828case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2829 2830 2831# Backslashify metacharacters that are still active within 2832# double-quoted strings. 2833sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2834 2835# Same as above, but do not quote variable references. 2836double_quote_subst='s/\(["`\\]\)/\\\1/g' 2837 2838# Sed substitution to delay expansion of an escaped shell variable in a 2839# double_quote_subst'ed string. 2840delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2841 2842# Sed substitution to delay expansion of an escaped single quote. 2843delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2844 2845# Sed substitution to avoid accidental globbing in evaled expressions 2846no_glob_subst='s/\*/\\\*/g' 2847 2848ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2849ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2850ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2851 2852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 2853$as_echo_n "checking how to print strings... " >&6; } 2854# Test print first, because it will be a builtin if present. 2855if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 2856 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 2857 ECHO='print -r --' 2858elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 2859 ECHO='printf %s\n' 2860else 2861 # Use this function as a fallback that always works. 2862 func_fallback_echo () 2863 { 2864 eval 'cat <<_LTECHO_EOF 2865$1 2866_LTECHO_EOF' 2867 } 2868 ECHO='func_fallback_echo' 2869fi 2870 2871# func_echo_all arg... 2872# Invoke $ECHO with all args, space-separated. 2873func_echo_all () 2874{ 2875 $ECHO "" 2876} 2877 2878case "$ECHO" in 2879 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 2880$as_echo "printf" >&6; } ;; 2881 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 2882$as_echo "print -r" >&6; } ;; 2883 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 2884$as_echo "cat" >&6; } ;; 2885esac 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900ac_ext=c 2901ac_cpp='$CPP $CPPFLAGS' 2902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2904ac_compiler_gnu=$ac_cv_c_compiler_gnu 2905if test -n "$ac_tool_prefix"; then 2906 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2907set dummy ${ac_tool_prefix}gcc; ac_word=$2 2908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2909$as_echo_n "checking for $ac_word... " >&6; } 2910if ${ac_cv_prog_CC+:} false; then : 2911 $as_echo_n "(cached) " >&6 2912else 2913 if test -n "$CC"; then 2914 ac_cv_prog_CC="$CC" # Let the user override the test. 2915else 2916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2917for as_dir in $PATH 2918do 2919 IFS=$as_save_IFS 2920 test -z "$as_dir" && as_dir=. 2921 for ac_exec_ext in '' $ac_executable_extensions; do 2922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2923 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2925 break 2 2926 fi 2927done 2928 done 2929IFS=$as_save_IFS 2930 2931fi 2932fi 2933CC=$ac_cv_prog_CC 2934if test -n "$CC"; then 2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2936$as_echo "$CC" >&6; } 2937else 2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2939$as_echo "no" >&6; } 2940fi 2941 2942 2943fi 2944if test -z "$ac_cv_prog_CC"; then 2945 ac_ct_CC=$CC 2946 # Extract the first word of "gcc", so it can be a program name with args. 2947set dummy gcc; ac_word=$2 2948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2949$as_echo_n "checking for $ac_word... " >&6; } 2950if ${ac_cv_prog_ac_ct_CC+:} false; then : 2951 $as_echo_n "(cached) " >&6 2952else 2953 if test -n "$ac_ct_CC"; then 2954 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2955else 2956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2957for as_dir in $PATH 2958do 2959 IFS=$as_save_IFS 2960 test -z "$as_dir" && as_dir=. 2961 for ac_exec_ext in '' $ac_executable_extensions; do 2962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2963 ac_cv_prog_ac_ct_CC="gcc" 2964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2965 break 2 2966 fi 2967done 2968 done 2969IFS=$as_save_IFS 2970 2971fi 2972fi 2973ac_ct_CC=$ac_cv_prog_ac_ct_CC 2974if test -n "$ac_ct_CC"; then 2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2976$as_echo "$ac_ct_CC" >&6; } 2977else 2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2979$as_echo "no" >&6; } 2980fi 2981 2982 if test "x$ac_ct_CC" = x; then 2983 CC="" 2984 else 2985 case $cross_compiling:$ac_tool_warned in 2986yes:) 2987{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2988$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2989ac_tool_warned=yes ;; 2990esac 2991 CC=$ac_ct_CC 2992 fi 2993else 2994 CC="$ac_cv_prog_CC" 2995fi 2996 2997if test -z "$CC"; then 2998 if test -n "$ac_tool_prefix"; then 2999 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3000set dummy ${ac_tool_prefix}cc; ac_word=$2 3001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3002$as_echo_n "checking for $ac_word... " >&6; } 3003if ${ac_cv_prog_CC+:} false; then : 3004 $as_echo_n "(cached) " >&6 3005else 3006 if test -n "$CC"; then 3007 ac_cv_prog_CC="$CC" # Let the user override the test. 3008else 3009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3010for as_dir in $PATH 3011do 3012 IFS=$as_save_IFS 3013 test -z "$as_dir" && as_dir=. 3014 for ac_exec_ext in '' $ac_executable_extensions; do 3015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3016 ac_cv_prog_CC="${ac_tool_prefix}cc" 3017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3018 break 2 3019 fi 3020done 3021 done 3022IFS=$as_save_IFS 3023 3024fi 3025fi 3026CC=$ac_cv_prog_CC 3027if test -n "$CC"; then 3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3029$as_echo "$CC" >&6; } 3030else 3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3032$as_echo "no" >&6; } 3033fi 3034 3035 3036 fi 3037fi 3038if test -z "$CC"; then 3039 # Extract the first word of "cc", so it can be a program name with args. 3040set dummy cc; ac_word=$2 3041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3042$as_echo_n "checking for $ac_word... " >&6; } 3043if ${ac_cv_prog_CC+:} false; then : 3044 $as_echo_n "(cached) " >&6 3045else 3046 if test -n "$CC"; then 3047 ac_cv_prog_CC="$CC" # Let the user override the test. 3048else 3049 ac_prog_rejected=no 3050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3051for as_dir in $PATH 3052do 3053 IFS=$as_save_IFS 3054 test -z "$as_dir" && as_dir=. 3055 for ac_exec_ext in '' $ac_executable_extensions; do 3056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3057 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3058 ac_prog_rejected=yes 3059 continue 3060 fi 3061 ac_cv_prog_CC="cc" 3062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3063 break 2 3064 fi 3065done 3066 done 3067IFS=$as_save_IFS 3068 3069if test $ac_prog_rejected = yes; then 3070 # We found a bogon in the path, so make sure we never use it. 3071 set dummy $ac_cv_prog_CC 3072 shift 3073 if test $# != 0; then 3074 # We chose a different compiler from the bogus one. 3075 # However, it has the same basename, so the bogon will be chosen 3076 # first if we set CC to just the basename; use the full file name. 3077 shift 3078 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3079 fi 3080fi 3081fi 3082fi 3083CC=$ac_cv_prog_CC 3084if test -n "$CC"; then 3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3086$as_echo "$CC" >&6; } 3087else 3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3089$as_echo "no" >&6; } 3090fi 3091 3092 3093fi 3094if test -z "$CC"; then 3095 if test -n "$ac_tool_prefix"; then 3096 for ac_prog in cl.exe 3097 do 3098 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3099set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3101$as_echo_n "checking for $ac_word... " >&6; } 3102if ${ac_cv_prog_CC+:} false; then : 3103 $as_echo_n "(cached) " >&6 3104else 3105 if test -n "$CC"; then 3106 ac_cv_prog_CC="$CC" # Let the user override the test. 3107else 3108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3109for as_dir in $PATH 3110do 3111 IFS=$as_save_IFS 3112 test -z "$as_dir" && as_dir=. 3113 for ac_exec_ext in '' $ac_executable_extensions; do 3114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3115 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3117 break 2 3118 fi 3119done 3120 done 3121IFS=$as_save_IFS 3122 3123fi 3124fi 3125CC=$ac_cv_prog_CC 3126if test -n "$CC"; then 3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3128$as_echo "$CC" >&6; } 3129else 3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3131$as_echo "no" >&6; } 3132fi 3133 3134 3135 test -n "$CC" && break 3136 done 3137fi 3138if test -z "$CC"; then 3139 ac_ct_CC=$CC 3140 for ac_prog in cl.exe 3141do 3142 # Extract the first word of "$ac_prog", so it can be a program name with args. 3143set dummy $ac_prog; ac_word=$2 3144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3145$as_echo_n "checking for $ac_word... " >&6; } 3146if ${ac_cv_prog_ac_ct_CC+:} false; then : 3147 $as_echo_n "(cached) " >&6 3148else 3149 if test -n "$ac_ct_CC"; then 3150 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3151else 3152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3153for as_dir in $PATH 3154do 3155 IFS=$as_save_IFS 3156 test -z "$as_dir" && as_dir=. 3157 for ac_exec_ext in '' $ac_executable_extensions; do 3158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3159 ac_cv_prog_ac_ct_CC="$ac_prog" 3160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3161 break 2 3162 fi 3163done 3164 done 3165IFS=$as_save_IFS 3166 3167fi 3168fi 3169ac_ct_CC=$ac_cv_prog_ac_ct_CC 3170if test -n "$ac_ct_CC"; then 3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3172$as_echo "$ac_ct_CC" >&6; } 3173else 3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3175$as_echo "no" >&6; } 3176fi 3177 3178 3179 test -n "$ac_ct_CC" && break 3180done 3181 3182 if test "x$ac_ct_CC" = x; then 3183 CC="" 3184 else 3185 case $cross_compiling:$ac_tool_warned in 3186yes:) 3187{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3188$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3189ac_tool_warned=yes ;; 3190esac 3191 CC=$ac_ct_CC 3192 fi 3193fi 3194 3195fi 3196 3197 3198test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3199$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3200as_fn_error $? "no acceptable C compiler found in \$PATH 3201See \`config.log' for more details" "$LINENO" 5; } 3202 3203# Provide some information about the compiler. 3204$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3205set X $ac_compile 3206ac_compiler=$2 3207for ac_option in --version -v -V -qversion; do 3208 { { ac_try="$ac_compiler $ac_option >&5" 3209case "(($ac_try" in 3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3211 *) ac_try_echo=$ac_try;; 3212esac 3213eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3214$as_echo "$ac_try_echo"; } >&5 3215 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3216 ac_status=$? 3217 if test -s conftest.err; then 3218 sed '10a\ 3219... rest of stderr output deleted ... 3220 10q' conftest.err >conftest.er1 3221 cat conftest.er1 >&5 3222 fi 3223 rm -f conftest.er1 conftest.err 3224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3225 test $ac_status = 0; } 3226done 3227 3228cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3229/* end confdefs.h. */ 3230 3231int 3232main () 3233{ 3234 3235 ; 3236 return 0; 3237} 3238_ACEOF 3239ac_clean_files_save=$ac_clean_files 3240ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3241# Try to create an executable without -o first, disregard a.out. 3242# It will help us diagnose broken compilers, and finding out an intuition 3243# of exeext. 3244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3245$as_echo_n "checking whether the C compiler works... " >&6; } 3246ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3247 3248# The possible output files: 3249ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3250 3251ac_rmfiles= 3252for ac_file in $ac_files 3253do 3254 case $ac_file in 3255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3256 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3257 esac 3258done 3259rm -f $ac_rmfiles 3260 3261if { { ac_try="$ac_link_default" 3262case "(($ac_try" in 3263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3264 *) ac_try_echo=$ac_try;; 3265esac 3266eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3267$as_echo "$ac_try_echo"; } >&5 3268 (eval "$ac_link_default") 2>&5 3269 ac_status=$? 3270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3271 test $ac_status = 0; }; then : 3272 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3273# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3274# in a Makefile. We should not override ac_cv_exeext if it was cached, 3275# so that the user can short-circuit this test for compilers unknown to 3276# Autoconf. 3277for ac_file in $ac_files '' 3278do 3279 test -f "$ac_file" || continue 3280 case $ac_file in 3281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3282 ;; 3283 [ab].out ) 3284 # We found the default executable, but exeext='' is most 3285 # certainly right. 3286 break;; 3287 *.* ) 3288 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3289 then :; else 3290 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3291 fi 3292 # We set ac_cv_exeext here because the later test for it is not 3293 # safe: cross compilers may not add the suffix if given an `-o' 3294 # argument, so we may need to know it at that point already. 3295 # Even if this section looks crufty: it has the advantage of 3296 # actually working. 3297 break;; 3298 * ) 3299 break;; 3300 esac 3301done 3302test "$ac_cv_exeext" = no && ac_cv_exeext= 3303 3304else 3305 ac_file='' 3306fi 3307if test -z "$ac_file"; then : 3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3309$as_echo "no" >&6; } 3310$as_echo "$as_me: failed program was:" >&5 3311sed 's/^/| /' conftest.$ac_ext >&5 3312 3313{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3314$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3315as_fn_error 77 "C compiler cannot create executables 3316See \`config.log' for more details" "$LINENO" 5; } 3317else 3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3319$as_echo "yes" >&6; } 3320fi 3321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3322$as_echo_n "checking for C compiler default output file name... " >&6; } 3323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3324$as_echo "$ac_file" >&6; } 3325ac_exeext=$ac_cv_exeext 3326 3327rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3328ac_clean_files=$ac_clean_files_save 3329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3330$as_echo_n "checking for suffix of executables... " >&6; } 3331if { { ac_try="$ac_link" 3332case "(($ac_try" in 3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3334 *) ac_try_echo=$ac_try;; 3335esac 3336eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3337$as_echo "$ac_try_echo"; } >&5 3338 (eval "$ac_link") 2>&5 3339 ac_status=$? 3340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3341 test $ac_status = 0; }; then : 3342 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3343# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3344# work properly (i.e., refer to `conftest.exe'), while it won't with 3345# `rm'. 3346for ac_file in conftest.exe conftest conftest.*; do 3347 test -f "$ac_file" || continue 3348 case $ac_file in 3349 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3350 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3351 break;; 3352 * ) break;; 3353 esac 3354done 3355else 3356 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3357$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3358as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3359See \`config.log' for more details" "$LINENO" 5; } 3360fi 3361rm -f conftest conftest$ac_cv_exeext 3362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3363$as_echo "$ac_cv_exeext" >&6; } 3364 3365rm -f conftest.$ac_ext 3366EXEEXT=$ac_cv_exeext 3367ac_exeext=$EXEEXT 3368cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3369/* end confdefs.h. */ 3370#include <stdio.h> 3371int 3372main () 3373{ 3374FILE *f = fopen ("conftest.out", "w"); 3375 return ferror (f) || fclose (f) != 0; 3376 3377 ; 3378 return 0; 3379} 3380_ACEOF 3381ac_clean_files="$ac_clean_files conftest.out" 3382# Check that the compiler produces executables we can run. If not, either 3383# the compiler is broken, or we cross compile. 3384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3385$as_echo_n "checking whether we are cross compiling... " >&6; } 3386if test "$cross_compiling" != yes; then 3387 { { ac_try="$ac_link" 3388case "(($ac_try" in 3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3390 *) ac_try_echo=$ac_try;; 3391esac 3392eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3393$as_echo "$ac_try_echo"; } >&5 3394 (eval "$ac_link") 2>&5 3395 ac_status=$? 3396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3397 test $ac_status = 0; } 3398 if { ac_try='./conftest$ac_cv_exeext' 3399 { { case "(($ac_try" in 3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3401 *) ac_try_echo=$ac_try;; 3402esac 3403eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3404$as_echo "$ac_try_echo"; } >&5 3405 (eval "$ac_try") 2>&5 3406 ac_status=$? 3407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3408 test $ac_status = 0; }; }; then 3409 cross_compiling=no 3410 else 3411 if test "$cross_compiling" = maybe; then 3412 cross_compiling=yes 3413 else 3414 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3415$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3416as_fn_error $? "cannot run C compiled programs. 3417If you meant to cross compile, use \`--host'. 3418See \`config.log' for more details" "$LINENO" 5; } 3419 fi 3420 fi 3421fi 3422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3423$as_echo "$cross_compiling" >&6; } 3424 3425rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3426ac_clean_files=$ac_clean_files_save 3427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3428$as_echo_n "checking for suffix of object files... " >&6; } 3429if ${ac_cv_objext+:} false; then : 3430 $as_echo_n "(cached) " >&6 3431else 3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3433/* end confdefs.h. */ 3434 3435int 3436main () 3437{ 3438 3439 ; 3440 return 0; 3441} 3442_ACEOF 3443rm -f conftest.o conftest.obj 3444if { { ac_try="$ac_compile" 3445case "(($ac_try" in 3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3447 *) ac_try_echo=$ac_try;; 3448esac 3449eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3450$as_echo "$ac_try_echo"; } >&5 3451 (eval "$ac_compile") 2>&5 3452 ac_status=$? 3453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3454 test $ac_status = 0; }; then : 3455 for ac_file in conftest.o conftest.obj conftest.*; do 3456 test -f "$ac_file" || continue; 3457 case $ac_file in 3458 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3459 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3460 break;; 3461 esac 3462done 3463else 3464 $as_echo "$as_me: failed program was:" >&5 3465sed 's/^/| /' conftest.$ac_ext >&5 3466 3467{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3468$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3469as_fn_error $? "cannot compute suffix of object files: cannot compile 3470See \`config.log' for more details" "$LINENO" 5; } 3471fi 3472rm -f conftest.$ac_cv_objext conftest.$ac_ext 3473fi 3474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3475$as_echo "$ac_cv_objext" >&6; } 3476OBJEXT=$ac_cv_objext 3477ac_objext=$OBJEXT 3478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3479$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3480if ${ac_cv_c_compiler_gnu+:} false; then : 3481 $as_echo_n "(cached) " >&6 3482else 3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3484/* end confdefs.h. */ 3485 3486int 3487main () 3488{ 3489#ifndef __GNUC__ 3490 choke me 3491#endif 3492 3493 ; 3494 return 0; 3495} 3496_ACEOF 3497if ac_fn_c_try_compile "$LINENO"; then : 3498 ac_compiler_gnu=yes 3499else 3500 ac_compiler_gnu=no 3501fi 3502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3503ac_cv_c_compiler_gnu=$ac_compiler_gnu 3504 3505fi 3506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3507$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3508if test $ac_compiler_gnu = yes; then 3509 GCC=yes 3510else 3511 GCC= 3512fi 3513ac_test_CFLAGS=${CFLAGS+set} 3514ac_save_CFLAGS=$CFLAGS 3515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3516$as_echo_n "checking whether $CC accepts -g... " >&6; } 3517if ${ac_cv_prog_cc_g+:} false; then : 3518 $as_echo_n "(cached) " >&6 3519else 3520 ac_save_c_werror_flag=$ac_c_werror_flag 3521 ac_c_werror_flag=yes 3522 ac_cv_prog_cc_g=no 3523 CFLAGS="-g" 3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3525/* end confdefs.h. */ 3526 3527int 3528main () 3529{ 3530 3531 ; 3532 return 0; 3533} 3534_ACEOF 3535if ac_fn_c_try_compile "$LINENO"; then : 3536 ac_cv_prog_cc_g=yes 3537else 3538 CFLAGS="" 3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3540/* end confdefs.h. */ 3541 3542int 3543main () 3544{ 3545 3546 ; 3547 return 0; 3548} 3549_ACEOF 3550if ac_fn_c_try_compile "$LINENO"; then : 3551 3552else 3553 ac_c_werror_flag=$ac_save_c_werror_flag 3554 CFLAGS="-g" 3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3556/* end confdefs.h. */ 3557 3558int 3559main () 3560{ 3561 3562 ; 3563 return 0; 3564} 3565_ACEOF 3566if ac_fn_c_try_compile "$LINENO"; then : 3567 ac_cv_prog_cc_g=yes 3568fi 3569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3570fi 3571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3572fi 3573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3574 ac_c_werror_flag=$ac_save_c_werror_flag 3575fi 3576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3577$as_echo "$ac_cv_prog_cc_g" >&6; } 3578if test "$ac_test_CFLAGS" = set; then 3579 CFLAGS=$ac_save_CFLAGS 3580elif test $ac_cv_prog_cc_g = yes; then 3581 if test "$GCC" = yes; then 3582 CFLAGS="-g -O2" 3583 else 3584 CFLAGS="-g" 3585 fi 3586else 3587 if test "$GCC" = yes; then 3588 CFLAGS="-O2" 3589 else 3590 CFLAGS= 3591 fi 3592fi 3593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3594$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3595if ${ac_cv_prog_cc_c89+:} false; then : 3596 $as_echo_n "(cached) " >&6 3597else 3598 ac_cv_prog_cc_c89=no 3599ac_save_CC=$CC 3600cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3601/* end confdefs.h. */ 3602#include <stdarg.h> 3603#include <stdio.h> 3604struct stat; 3605/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3606struct buf { int x; }; 3607FILE * (*rcsopen) (struct buf *, struct stat *, int); 3608static char *e (p, i) 3609 char **p; 3610 int i; 3611{ 3612 return p[i]; 3613} 3614static char *f (char * (*g) (char **, int), char **p, ...) 3615{ 3616 char *s; 3617 va_list v; 3618 va_start (v,p); 3619 s = g (p, va_arg (v,int)); 3620 va_end (v); 3621 return s; 3622} 3623 3624/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3625 function prototypes and stuff, but not '\xHH' hex character constants. 3626 These don't provoke an error unfortunately, instead are silently treated 3627 as 'x'. The following induces an error, until -std is added to get 3628 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3629 array size at least. It's necessary to write '\x00'==0 to get something 3630 that's true only with -std. */ 3631int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3632 3633/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3634 inside strings and character constants. */ 3635#define FOO(x) 'x' 3636int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3637 3638int test (int i, double x); 3639struct s1 {int (*f) (int a);}; 3640struct s2 {int (*f) (double a);}; 3641int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3642int argc; 3643char **argv; 3644int 3645main () 3646{ 3647return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3648 ; 3649 return 0; 3650} 3651_ACEOF 3652for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3653 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3654do 3655 CC="$ac_save_CC $ac_arg" 3656 if ac_fn_c_try_compile "$LINENO"; then : 3657 ac_cv_prog_cc_c89=$ac_arg 3658fi 3659rm -f core conftest.err conftest.$ac_objext 3660 test "x$ac_cv_prog_cc_c89" != "xno" && break 3661done 3662rm -f conftest.$ac_ext 3663CC=$ac_save_CC 3664 3665fi 3666# AC_CACHE_VAL 3667case "x$ac_cv_prog_cc_c89" in 3668 x) 3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3670$as_echo "none needed" >&6; } ;; 3671 xno) 3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3673$as_echo "unsupported" >&6; } ;; 3674 *) 3675 CC="$CC $ac_cv_prog_cc_c89" 3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3677$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3678esac 3679if test "x$ac_cv_prog_cc_c89" != xno; then : 3680 3681fi 3682 3683ac_ext=c 3684ac_cpp='$CPP $CPPFLAGS' 3685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3687ac_compiler_gnu=$ac_cv_c_compiler_gnu 3688 3689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3690$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3691if ${ac_cv_path_SED+:} false; then : 3692 $as_echo_n "(cached) " >&6 3693else 3694 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3695 for ac_i in 1 2 3 4 5 6 7; do 3696 ac_script="$ac_script$as_nl$ac_script" 3697 done 3698 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3699 { ac_script=; unset ac_script;} 3700 if test -z "$SED"; then 3701 ac_path_SED_found=false 3702 # Loop through the user's path and test for each of PROGNAME-LIST 3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3704for as_dir in $PATH 3705do 3706 IFS=$as_save_IFS 3707 test -z "$as_dir" && as_dir=. 3708 for ac_prog in sed gsed; do 3709 for ac_exec_ext in '' $ac_executable_extensions; do 3710 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3711 as_fn_executable_p "$ac_path_SED" || continue 3712# Check for GNU ac_path_SED and select it if it is found. 3713 # Check for GNU $ac_path_SED 3714case `"$ac_path_SED" --version 2>&1` in 3715*GNU*) 3716 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3717*) 3718 ac_count=0 3719 $as_echo_n 0123456789 >"conftest.in" 3720 while : 3721 do 3722 cat "conftest.in" "conftest.in" >"conftest.tmp" 3723 mv "conftest.tmp" "conftest.in" 3724 cp "conftest.in" "conftest.nl" 3725 $as_echo '' >> "conftest.nl" 3726 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3727 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3728 as_fn_arith $ac_count + 1 && ac_count=$as_val 3729 if test $ac_count -gt ${ac_path_SED_max-0}; then 3730 # Best one so far, save it but keep looking for a better one 3731 ac_cv_path_SED="$ac_path_SED" 3732 ac_path_SED_max=$ac_count 3733 fi 3734 # 10*(2^10) chars as input seems more than enough 3735 test $ac_count -gt 10 && break 3736 done 3737 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3738esac 3739 3740 $ac_path_SED_found && break 3 3741 done 3742 done 3743 done 3744IFS=$as_save_IFS 3745 if test -z "$ac_cv_path_SED"; then 3746 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 3747 fi 3748else 3749 ac_cv_path_SED=$SED 3750fi 3751 3752fi 3753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 3754$as_echo "$ac_cv_path_SED" >&6; } 3755 SED="$ac_cv_path_SED" 3756 rm -f conftest.sed 3757 3758test -z "$SED" && SED=sed 3759Xsed="$SED -e 1s/^X//" 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3772$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3773if ${ac_cv_path_GREP+:} false; then : 3774 $as_echo_n "(cached) " >&6 3775else 3776 if test -z "$GREP"; then 3777 ac_path_GREP_found=false 3778 # Loop through the user's path and test for each of PROGNAME-LIST 3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3780for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3781do 3782 IFS=$as_save_IFS 3783 test -z "$as_dir" && as_dir=. 3784 for ac_prog in grep ggrep; do 3785 for ac_exec_ext in '' $ac_executable_extensions; do 3786 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3787 as_fn_executable_p "$ac_path_GREP" || continue 3788# Check for GNU ac_path_GREP and select it if it is found. 3789 # Check for GNU $ac_path_GREP 3790case `"$ac_path_GREP" --version 2>&1` in 3791*GNU*) 3792 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3793*) 3794 ac_count=0 3795 $as_echo_n 0123456789 >"conftest.in" 3796 while : 3797 do 3798 cat "conftest.in" "conftest.in" >"conftest.tmp" 3799 mv "conftest.tmp" "conftest.in" 3800 cp "conftest.in" "conftest.nl" 3801 $as_echo 'GREP' >> "conftest.nl" 3802 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3803 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3804 as_fn_arith $ac_count + 1 && ac_count=$as_val 3805 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3806 # Best one so far, save it but keep looking for a better one 3807 ac_cv_path_GREP="$ac_path_GREP" 3808 ac_path_GREP_max=$ac_count 3809 fi 3810 # 10*(2^10) chars as input seems more than enough 3811 test $ac_count -gt 10 && break 3812 done 3813 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3814esac 3815 3816 $ac_path_GREP_found && break 3 3817 done 3818 done 3819 done 3820IFS=$as_save_IFS 3821 if test -z "$ac_cv_path_GREP"; then 3822 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3823 fi 3824else 3825 ac_cv_path_GREP=$GREP 3826fi 3827 3828fi 3829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3830$as_echo "$ac_cv_path_GREP" >&6; } 3831 GREP="$ac_cv_path_GREP" 3832 3833 3834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3835$as_echo_n "checking for egrep... " >&6; } 3836if ${ac_cv_path_EGREP+:} false; then : 3837 $as_echo_n "(cached) " >&6 3838else 3839 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3840 then ac_cv_path_EGREP="$GREP -E" 3841 else 3842 if test -z "$EGREP"; then 3843 ac_path_EGREP_found=false 3844 # Loop through the user's path and test for each of PROGNAME-LIST 3845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3846for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3847do 3848 IFS=$as_save_IFS 3849 test -z "$as_dir" && as_dir=. 3850 for ac_prog in egrep; do 3851 for ac_exec_ext in '' $ac_executable_extensions; do 3852 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3853 as_fn_executable_p "$ac_path_EGREP" || continue 3854# Check for GNU ac_path_EGREP and select it if it is found. 3855 # Check for GNU $ac_path_EGREP 3856case `"$ac_path_EGREP" --version 2>&1` in 3857*GNU*) 3858 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3859*) 3860 ac_count=0 3861 $as_echo_n 0123456789 >"conftest.in" 3862 while : 3863 do 3864 cat "conftest.in" "conftest.in" >"conftest.tmp" 3865 mv "conftest.tmp" "conftest.in" 3866 cp "conftest.in" "conftest.nl" 3867 $as_echo 'EGREP' >> "conftest.nl" 3868 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3869 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3870 as_fn_arith $ac_count + 1 && ac_count=$as_val 3871 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3872 # Best one so far, save it but keep looking for a better one 3873 ac_cv_path_EGREP="$ac_path_EGREP" 3874 ac_path_EGREP_max=$ac_count 3875 fi 3876 # 10*(2^10) chars as input seems more than enough 3877 test $ac_count -gt 10 && break 3878 done 3879 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3880esac 3881 3882 $ac_path_EGREP_found && break 3 3883 done 3884 done 3885 done 3886IFS=$as_save_IFS 3887 if test -z "$ac_cv_path_EGREP"; then 3888 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3889 fi 3890else 3891 ac_cv_path_EGREP=$EGREP 3892fi 3893 3894 fi 3895fi 3896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3897$as_echo "$ac_cv_path_EGREP" >&6; } 3898 EGREP="$ac_cv_path_EGREP" 3899 3900 3901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 3902$as_echo_n "checking for fgrep... " >&6; } 3903if ${ac_cv_path_FGREP+:} false; then : 3904 $as_echo_n "(cached) " >&6 3905else 3906 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 3907 then ac_cv_path_FGREP="$GREP -F" 3908 else 3909 if test -z "$FGREP"; then 3910 ac_path_FGREP_found=false 3911 # Loop through the user's path and test for each of PROGNAME-LIST 3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3913for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3914do 3915 IFS=$as_save_IFS 3916 test -z "$as_dir" && as_dir=. 3917 for ac_prog in fgrep; do 3918 for ac_exec_ext in '' $ac_executable_extensions; do 3919 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 3920 as_fn_executable_p "$ac_path_FGREP" || continue 3921# Check for GNU ac_path_FGREP and select it if it is found. 3922 # Check for GNU $ac_path_FGREP 3923case `"$ac_path_FGREP" --version 2>&1` in 3924*GNU*) 3925 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 3926*) 3927 ac_count=0 3928 $as_echo_n 0123456789 >"conftest.in" 3929 while : 3930 do 3931 cat "conftest.in" "conftest.in" >"conftest.tmp" 3932 mv "conftest.tmp" "conftest.in" 3933 cp "conftest.in" "conftest.nl" 3934 $as_echo 'FGREP' >> "conftest.nl" 3935 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 3936 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3937 as_fn_arith $ac_count + 1 && ac_count=$as_val 3938 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 3939 # Best one so far, save it but keep looking for a better one 3940 ac_cv_path_FGREP="$ac_path_FGREP" 3941 ac_path_FGREP_max=$ac_count 3942 fi 3943 # 10*(2^10) chars as input seems more than enough 3944 test $ac_count -gt 10 && break 3945 done 3946 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3947esac 3948 3949 $ac_path_FGREP_found && break 3 3950 done 3951 done 3952 done 3953IFS=$as_save_IFS 3954 if test -z "$ac_cv_path_FGREP"; then 3955 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3956 fi 3957else 3958 ac_cv_path_FGREP=$FGREP 3959fi 3960 3961 fi 3962fi 3963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 3964$as_echo "$ac_cv_path_FGREP" >&6; } 3965 FGREP="$ac_cv_path_FGREP" 3966 3967 3968test -z "$GREP" && GREP=grep 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988# Check whether --with-gnu-ld was given. 3989if test "${with_gnu_ld+set}" = set; then : 3990 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3991else 3992 with_gnu_ld=no 3993fi 3994 3995ac_prog=ld 3996if test "$GCC" = yes; then 3997 # Check if gcc -print-prog-name=ld gives a path. 3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 3999$as_echo_n "checking for ld used by $CC... " >&6; } 4000 case $host in 4001 *-*-mingw*) 4002 # gcc leaves a trailing carriage return which upsets mingw 4003 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4004 *) 4005 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4006 esac 4007 case $ac_prog in 4008 # Accept absolute paths. 4009 [\\/]* | ?:[\\/]*) 4010 re_direlt='/[^/][^/]*/\.\./' 4011 # Canonicalize the pathname of ld 4012 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4013 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4014 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4015 done 4016 test -z "$LD" && LD="$ac_prog" 4017 ;; 4018 "") 4019 # If it fails, then pretend we aren't using GCC. 4020 ac_prog=ld 4021 ;; 4022 *) 4023 # If it is relative, then search for the first ld in PATH. 4024 with_gnu_ld=unknown 4025 ;; 4026 esac 4027elif test "$with_gnu_ld" = yes; then 4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4029$as_echo_n "checking for GNU ld... " >&6; } 4030else 4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4032$as_echo_n "checking for non-GNU ld... " >&6; } 4033fi 4034if ${lt_cv_path_LD+:} false; then : 4035 $as_echo_n "(cached) " >&6 4036else 4037 if test -z "$LD"; then 4038 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4039 for ac_dir in $PATH; do 4040 IFS="$lt_save_ifs" 4041 test -z "$ac_dir" && ac_dir=. 4042 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4043 lt_cv_path_LD="$ac_dir/$ac_prog" 4044 # Check to see if the program is GNU ld. I'd rather use --version, 4045 # but apparently some variants of GNU ld only accept -v. 4046 # Break only if it was the GNU/non-GNU ld that we prefer. 4047 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4048 *GNU* | *'with BFD'*) 4049 test "$with_gnu_ld" != no && break 4050 ;; 4051 *) 4052 test "$with_gnu_ld" != yes && break 4053 ;; 4054 esac 4055 fi 4056 done 4057 IFS="$lt_save_ifs" 4058else 4059 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4060fi 4061fi 4062 4063LD="$lt_cv_path_LD" 4064if test -n "$LD"; then 4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4066$as_echo "$LD" >&6; } 4067else 4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4069$as_echo "no" >&6; } 4070fi 4071test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4073$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4074if ${lt_cv_prog_gnu_ld+:} false; then : 4075 $as_echo_n "(cached) " >&6 4076else 4077 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4078case `$LD -v 2>&1 </dev/null` in 4079*GNU* | *'with BFD'*) 4080 lt_cv_prog_gnu_ld=yes 4081 ;; 4082*) 4083 lt_cv_prog_gnu_ld=no 4084 ;; 4085esac 4086fi 4087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4088$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4089with_gnu_ld=$lt_cv_prog_gnu_ld 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4100$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4101if ${lt_cv_path_NM+:} false; then : 4102 $as_echo_n "(cached) " >&6 4103else 4104 if test -n "$NM"; then 4105 # Let the user override the test. 4106 lt_cv_path_NM="$NM" 4107else 4108 lt_nm_to_check="${ac_tool_prefix}nm" 4109 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4110 lt_nm_to_check="$lt_nm_to_check nm" 4111 fi 4112 for lt_tmp_nm in $lt_nm_to_check; do 4113 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4114 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4115 IFS="$lt_save_ifs" 4116 test -z "$ac_dir" && ac_dir=. 4117 tmp_nm="$ac_dir/$lt_tmp_nm" 4118 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4119 # Check to see if the nm accepts a BSD-compat flag. 4120 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4121 # nm: unknown option "B" ignored 4122 # Tru64's nm complains that /dev/null is an invalid object file 4123 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4124 */dev/null* | *'Invalid file or object type'*) 4125 lt_cv_path_NM="$tmp_nm -B" 4126 break 4127 ;; 4128 *) 4129 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4130 */dev/null*) 4131 lt_cv_path_NM="$tmp_nm -p" 4132 break 4133 ;; 4134 *) 4135 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4136 continue # so that we can try to find one that supports BSD flags 4137 ;; 4138 esac 4139 ;; 4140 esac 4141 fi 4142 done 4143 IFS="$lt_save_ifs" 4144 done 4145 : ${lt_cv_path_NM=no} 4146fi 4147fi 4148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4149$as_echo "$lt_cv_path_NM" >&6; } 4150if test "$lt_cv_path_NM" != "no"; then 4151 NM="$lt_cv_path_NM" 4152else 4153 # Didn't find any BSD compatible name lister, look for dumpbin. 4154 if test -n "$DUMPBIN"; then : 4155 # Let the user override the test. 4156 else 4157 if test -n "$ac_tool_prefix"; then 4158 for ac_prog in dumpbin "link -dump" 4159 do 4160 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4161set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4163$as_echo_n "checking for $ac_word... " >&6; } 4164if ${ac_cv_prog_DUMPBIN+:} false; then : 4165 $as_echo_n "(cached) " >&6 4166else 4167 if test -n "$DUMPBIN"; then 4168 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4169else 4170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4171for as_dir in $PATH 4172do 4173 IFS=$as_save_IFS 4174 test -z "$as_dir" && as_dir=. 4175 for ac_exec_ext in '' $ac_executable_extensions; do 4176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4177 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4179 break 2 4180 fi 4181done 4182 done 4183IFS=$as_save_IFS 4184 4185fi 4186fi 4187DUMPBIN=$ac_cv_prog_DUMPBIN 4188if test -n "$DUMPBIN"; then 4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4190$as_echo "$DUMPBIN" >&6; } 4191else 4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4193$as_echo "no" >&6; } 4194fi 4195 4196 4197 test -n "$DUMPBIN" && break 4198 done 4199fi 4200if test -z "$DUMPBIN"; then 4201 ac_ct_DUMPBIN=$DUMPBIN 4202 for ac_prog in dumpbin "link -dump" 4203do 4204 # Extract the first word of "$ac_prog", so it can be a program name with args. 4205set dummy $ac_prog; ac_word=$2 4206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4207$as_echo_n "checking for $ac_word... " >&6; } 4208if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4209 $as_echo_n "(cached) " >&6 4210else 4211 if test -n "$ac_ct_DUMPBIN"; then 4212 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4213else 4214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4215for as_dir in $PATH 4216do 4217 IFS=$as_save_IFS 4218 test -z "$as_dir" && as_dir=. 4219 for ac_exec_ext in '' $ac_executable_extensions; do 4220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4221 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4223 break 2 4224 fi 4225done 4226 done 4227IFS=$as_save_IFS 4228 4229fi 4230fi 4231ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4232if test -n "$ac_ct_DUMPBIN"; then 4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4234$as_echo "$ac_ct_DUMPBIN" >&6; } 4235else 4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4237$as_echo "no" >&6; } 4238fi 4239 4240 4241 test -n "$ac_ct_DUMPBIN" && break 4242done 4243 4244 if test "x$ac_ct_DUMPBIN" = x; then 4245 DUMPBIN=":" 4246 else 4247 case $cross_compiling:$ac_tool_warned in 4248yes:) 4249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4251ac_tool_warned=yes ;; 4252esac 4253 DUMPBIN=$ac_ct_DUMPBIN 4254 fi 4255fi 4256 4257 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4258 *COFF*) 4259 DUMPBIN="$DUMPBIN -symbols" 4260 ;; 4261 *) 4262 DUMPBIN=: 4263 ;; 4264 esac 4265 fi 4266 4267 if test "$DUMPBIN" != ":"; then 4268 NM="$DUMPBIN" 4269 fi 4270fi 4271test -z "$NM" && NM=nm 4272 4273 4274 4275 4276 4277 4278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4279$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4280if ${lt_cv_nm_interface+:} false; then : 4281 $as_echo_n "(cached) " >&6 4282else 4283 lt_cv_nm_interface="BSD nm" 4284 echo "int some_variable = 0;" > conftest.$ac_ext 4285 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4286 (eval "$ac_compile" 2>conftest.err) 4287 cat conftest.err >&5 4288 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4289 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4290 cat conftest.err >&5 4291 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4292 cat conftest.out >&5 4293 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4294 lt_cv_nm_interface="MS dumpbin" 4295 fi 4296 rm -f conftest* 4297fi 4298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4299$as_echo "$lt_cv_nm_interface" >&6; } 4300 4301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4302$as_echo_n "checking whether ln -s works... " >&6; } 4303LN_S=$as_ln_s 4304if test "$LN_S" = "ln -s"; then 4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4306$as_echo "yes" >&6; } 4307else 4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4309$as_echo "no, using $LN_S" >&6; } 4310fi 4311 4312# find the maximum length of command line arguments 4313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4314$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4315if ${lt_cv_sys_max_cmd_len+:} false; then : 4316 $as_echo_n "(cached) " >&6 4317else 4318 i=0 4319 teststring="ABCD" 4320 4321 case $build_os in 4322 msdosdjgpp*) 4323 # On DJGPP, this test can blow up pretty badly due to problems in libc 4324 # (any single argument exceeding 2000 bytes causes a buffer overrun 4325 # during glob expansion). Even if it were fixed, the result of this 4326 # check would be larger than it should be. 4327 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4328 ;; 4329 4330 gnu*) 4331 # Under GNU Hurd, this test is not required because there is 4332 # no limit to the length of command line arguments. 4333 # Libtool will interpret -1 as no limit whatsoever 4334 lt_cv_sys_max_cmd_len=-1; 4335 ;; 4336 4337 cygwin* | mingw* | cegcc*) 4338 # On Win9x/ME, this test blows up -- it succeeds, but takes 4339 # about 5 minutes as the teststring grows exponentially. 4340 # Worse, since 9x/ME are not pre-emptively multitasking, 4341 # you end up with a "frozen" computer, even though with patience 4342 # the test eventually succeeds (with a max line length of 256k). 4343 # Instead, let's just punt: use the minimum linelength reported by 4344 # all of the supported platforms: 8192 (on NT/2K/XP). 4345 lt_cv_sys_max_cmd_len=8192; 4346 ;; 4347 4348 mint*) 4349 # On MiNT this can take a long time and run out of memory. 4350 lt_cv_sys_max_cmd_len=8192; 4351 ;; 4352 4353 amigaos*) 4354 # On AmigaOS with pdksh, this test takes hours, literally. 4355 # So we just punt and use a minimum line length of 8192. 4356 lt_cv_sys_max_cmd_len=8192; 4357 ;; 4358 4359 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4360 # This has been around since 386BSD, at least. Likely further. 4361 if test -x /sbin/sysctl; then 4362 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4363 elif test -x /usr/sbin/sysctl; then 4364 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4365 else 4366 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4367 fi 4368 # And add a safety zone 4369 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4370 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4371 ;; 4372 4373 interix*) 4374 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4375 lt_cv_sys_max_cmd_len=196608 4376 ;; 4377 4378 os2*) 4379 # The test takes a long time on OS/2. 4380 lt_cv_sys_max_cmd_len=8192 4381 ;; 4382 4383 osf*) 4384 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4385 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4386 # nice to cause kernel panics so lets avoid the loop below. 4387 # First set a reasonable default. 4388 lt_cv_sys_max_cmd_len=16384 4389 # 4390 if test -x /sbin/sysconfig; then 4391 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4392 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4393 esac 4394 fi 4395 ;; 4396 sco3.2v5*) 4397 lt_cv_sys_max_cmd_len=102400 4398 ;; 4399 sysv5* | sco5v6* | sysv4.2uw2*) 4400 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4401 if test -n "$kargmax"; then 4402 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4403 else 4404 lt_cv_sys_max_cmd_len=32768 4405 fi 4406 ;; 4407 *) 4408 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4409 if test -n "$lt_cv_sys_max_cmd_len"; then 4410 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4411 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4412 else 4413 # Make teststring a little bigger before we do anything with it. 4414 # a 1K string should be a reasonable start. 4415 for i in 1 2 3 4 5 6 7 8 ; do 4416 teststring=$teststring$teststring 4417 done 4418 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4419 # If test is not a shell built-in, we'll probably end up computing a 4420 # maximum length that is only half of the actual maximum length, but 4421 # we can't tell. 4422 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4423 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4424 test $i != 17 # 1/2 MB should be enough 4425 do 4426 i=`expr $i + 1` 4427 teststring=$teststring$teststring 4428 done 4429 # Only check the string length outside the loop. 4430 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4431 teststring= 4432 # Add a significant safety factor because C++ compilers can tack on 4433 # massive amounts of additional arguments before passing them to the 4434 # linker. It appears as though 1/2 is a usable value. 4435 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4436 fi 4437 ;; 4438 esac 4439 4440fi 4441 4442if test -n $lt_cv_sys_max_cmd_len ; then 4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4444$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4445else 4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4447$as_echo "none" >&6; } 4448fi 4449max_cmd_len=$lt_cv_sys_max_cmd_len 4450 4451 4452 4453 4454 4455 4456: ${CP="cp -f"} 4457: ${MV="mv -f"} 4458: ${RM="rm -f"} 4459 4460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4461$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4462# Try some XSI features 4463xsi_shell=no 4464( _lt_dummy="a/b/c" 4465 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4466 = c,a/b,b/c, \ 4467 && eval 'test $(( 1 + 1 )) -eq 2 \ 4468 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4469 && xsi_shell=yes 4470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4471$as_echo "$xsi_shell" >&6; } 4472 4473 4474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4475$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4476lt_shell_append=no 4477( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4478 >/dev/null 2>&1 \ 4479 && lt_shell_append=yes 4480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4481$as_echo "$lt_shell_append" >&6; } 4482 4483 4484if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4485 lt_unset=unset 4486else 4487 lt_unset=false 4488fi 4489 4490 4491 4492 4493 4494# test EBCDIC or ASCII 4495case `echo X|tr X '\101'` in 4496 A) # ASCII based system 4497 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4498 lt_SP2NL='tr \040 \012' 4499 lt_NL2SP='tr \015\012 \040\040' 4500 ;; 4501 *) # EBCDIC based system 4502 lt_SP2NL='tr \100 \n' 4503 lt_NL2SP='tr \r\n \100\100' 4504 ;; 4505esac 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4516$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4517if ${lt_cv_to_host_file_cmd+:} false; then : 4518 $as_echo_n "(cached) " >&6 4519else 4520 case $host in 4521 *-*-mingw* ) 4522 case $build in 4523 *-*-mingw* ) # actually msys 4524 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4525 ;; 4526 *-*-cygwin* ) 4527 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4528 ;; 4529 * ) # otherwise, assume *nix 4530 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4531 ;; 4532 esac 4533 ;; 4534 *-*-cygwin* ) 4535 case $build in 4536 *-*-mingw* ) # actually msys 4537 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4538 ;; 4539 *-*-cygwin* ) 4540 lt_cv_to_host_file_cmd=func_convert_file_noop 4541 ;; 4542 * ) # otherwise, assume *nix 4543 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4544 ;; 4545 esac 4546 ;; 4547 * ) # unhandled hosts (and "normal" native builds) 4548 lt_cv_to_host_file_cmd=func_convert_file_noop 4549 ;; 4550esac 4551 4552fi 4553 4554to_host_file_cmd=$lt_cv_to_host_file_cmd 4555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4556$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4557 4558 4559 4560 4561 4562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4563$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4564if ${lt_cv_to_tool_file_cmd+:} false; then : 4565 $as_echo_n "(cached) " >&6 4566else 4567 #assume ordinary cross tools, or native build. 4568lt_cv_to_tool_file_cmd=func_convert_file_noop 4569case $host in 4570 *-*-mingw* ) 4571 case $build in 4572 *-*-mingw* ) # actually msys 4573 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4574 ;; 4575 esac 4576 ;; 4577esac 4578 4579fi 4580 4581to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4583$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4584 4585 4586 4587 4588 4589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4590$as_echo_n "checking for $LD option to reload object files... " >&6; } 4591if ${lt_cv_ld_reload_flag+:} false; then : 4592 $as_echo_n "(cached) " >&6 4593else 4594 lt_cv_ld_reload_flag='-r' 4595fi 4596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4597$as_echo "$lt_cv_ld_reload_flag" >&6; } 4598reload_flag=$lt_cv_ld_reload_flag 4599case $reload_flag in 4600"" | " "*) ;; 4601*) reload_flag=" $reload_flag" ;; 4602esac 4603reload_cmds='$LD$reload_flag -o $output$reload_objs' 4604case $host_os in 4605 cygwin* | mingw* | pw32* | cegcc*) 4606 if test "$GCC" != yes; then 4607 reload_cmds=false 4608 fi 4609 ;; 4610 darwin*) 4611 if test "$GCC" = yes; then 4612 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4613 else 4614 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4615 fi 4616 ;; 4617esac 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627if test -n "$ac_tool_prefix"; then 4628 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4629set dummy ${ac_tool_prefix}objdump; ac_word=$2 4630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4631$as_echo_n "checking for $ac_word... " >&6; } 4632if ${ac_cv_prog_OBJDUMP+:} false; then : 4633 $as_echo_n "(cached) " >&6 4634else 4635 if test -n "$OBJDUMP"; then 4636 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4637else 4638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4639for as_dir in $PATH 4640do 4641 IFS=$as_save_IFS 4642 test -z "$as_dir" && as_dir=. 4643 for ac_exec_ext in '' $ac_executable_extensions; do 4644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4645 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4647 break 2 4648 fi 4649done 4650 done 4651IFS=$as_save_IFS 4652 4653fi 4654fi 4655OBJDUMP=$ac_cv_prog_OBJDUMP 4656if test -n "$OBJDUMP"; then 4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4658$as_echo "$OBJDUMP" >&6; } 4659else 4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4661$as_echo "no" >&6; } 4662fi 4663 4664 4665fi 4666if test -z "$ac_cv_prog_OBJDUMP"; then 4667 ac_ct_OBJDUMP=$OBJDUMP 4668 # Extract the first word of "objdump", so it can be a program name with args. 4669set dummy objdump; ac_word=$2 4670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4671$as_echo_n "checking for $ac_word... " >&6; } 4672if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4673 $as_echo_n "(cached) " >&6 4674else 4675 if test -n "$ac_ct_OBJDUMP"; then 4676 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4677else 4678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4679for as_dir in $PATH 4680do 4681 IFS=$as_save_IFS 4682 test -z "$as_dir" && as_dir=. 4683 for ac_exec_ext in '' $ac_executable_extensions; do 4684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4685 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4687 break 2 4688 fi 4689done 4690 done 4691IFS=$as_save_IFS 4692 4693fi 4694fi 4695ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4696if test -n "$ac_ct_OBJDUMP"; then 4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4698$as_echo "$ac_ct_OBJDUMP" >&6; } 4699else 4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4701$as_echo "no" >&6; } 4702fi 4703 4704 if test "x$ac_ct_OBJDUMP" = x; then 4705 OBJDUMP="false" 4706 else 4707 case $cross_compiling:$ac_tool_warned in 4708yes:) 4709{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4710$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4711ac_tool_warned=yes ;; 4712esac 4713 OBJDUMP=$ac_ct_OBJDUMP 4714 fi 4715else 4716 OBJDUMP="$ac_cv_prog_OBJDUMP" 4717fi 4718 4719test -z "$OBJDUMP" && OBJDUMP=objdump 4720 4721 4722 4723 4724 4725 4726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 4727$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4728if ${lt_cv_deplibs_check_method+:} false; then : 4729 $as_echo_n "(cached) " >&6 4730else 4731 lt_cv_file_magic_cmd='$MAGIC_CMD' 4732lt_cv_file_magic_test_file= 4733lt_cv_deplibs_check_method='unknown' 4734# Need to set the preceding variable on all platforms that support 4735# interlibrary dependencies. 4736# 'none' -- dependencies not supported. 4737# `unknown' -- same as none, but documents that we really don't know. 4738# 'pass_all' -- all dependencies passed with no checks. 4739# 'test_compile' -- check by making test program. 4740# 'file_magic [[regex]]' -- check by looking for files in library path 4741# which responds to the $file_magic_cmd with a given extended regex. 4742# If you have `file' or equivalent on your system and you're not sure 4743# whether `pass_all' will *always* work, you probably want this one. 4744 4745case $host_os in 4746aix[4-9]*) 4747 lt_cv_deplibs_check_method=pass_all 4748 ;; 4749 4750beos*) 4751 lt_cv_deplibs_check_method=pass_all 4752 ;; 4753 4754bsdi[45]*) 4755 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4756 lt_cv_file_magic_cmd='/usr/bin/file -L' 4757 lt_cv_file_magic_test_file=/shlib/libc.so 4758 ;; 4759 4760cygwin*) 4761 # func_win32_libid is a shell function defined in ltmain.sh 4762 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4763 lt_cv_file_magic_cmd='func_win32_libid' 4764 lt_cv_deplibs_check_method=pass_all 4765 ;; 4766 4767mingw* | pw32*) 4768 # Base MSYS/MinGW do not provide the 'file' command needed by 4769 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4770 # unless we find 'file', for example because we are cross-compiling. 4771 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 4772 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 4773 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4774 lt_cv_file_magic_cmd='func_win32_libid' 4775 else 4776 # Keep this pattern in sync with the one in func_win32_libid. 4777 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 4778 lt_cv_file_magic_cmd='$OBJDUMP -f' 4779 fi 4780 lt_cv_deplibs_check_method=pass_all 4781 ;; 4782 4783cegcc*) 4784 # use the weaker test based on 'objdump'. See mingw*. 4785 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4786 lt_cv_file_magic_cmd='$OBJDUMP -f' 4787 ;; 4788 4789darwin* | rhapsody*) 4790 lt_cv_deplibs_check_method=pass_all 4791 ;; 4792 4793freebsd* | dragonfly*) 4794 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4795 case $host_cpu in 4796 i*86 ) 4797 # Not sure whether the presence of OpenBSD here was a mistake. 4798 # Let's accept both of them until this is cleared up. 4799 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4800 lt_cv_file_magic_cmd=/usr/bin/file 4801 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4802 ;; 4803 esac 4804 else 4805 lt_cv_deplibs_check_method=pass_all 4806 fi 4807 ;; 4808 4809gnu*) 4810 lt_cv_deplibs_check_method=pass_all 4811 ;; 4812 4813haiku*) 4814 lt_cv_deplibs_check_method=pass_all 4815 ;; 4816 4817hpux10.20* | hpux11*) 4818 lt_cv_file_magic_cmd=/usr/bin/file 4819 case $host_cpu in 4820 ia64*) 4821 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4822 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4823 ;; 4824 hppa*64*) 4825 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]' 4826 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4827 ;; 4828 *) 4829 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 4830 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4831 ;; 4832 esac 4833 ;; 4834 4835interix[3-9]*) 4836 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4837 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4838 ;; 4839 4840irix5* | irix6* | nonstopux*) 4841 case $LD in 4842 *-32|*"-32 ") libmagic=32-bit;; 4843 *-n32|*"-n32 ") libmagic=N32;; 4844 *-64|*"-64 ") libmagic=64-bit;; 4845 *) libmagic=never-match;; 4846 esac 4847 lt_cv_deplibs_check_method=pass_all 4848 ;; 4849 4850# This must be glibc/ELF. 4851linux* | k*bsd*-gnu | kopensolaris*-gnu) 4852 lt_cv_deplibs_check_method=pass_all 4853 ;; 4854 4855netbsd*) 4856 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4857 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4858 else 4859 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4860 fi 4861 ;; 4862 4863newos6*) 4864 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4865 lt_cv_file_magic_cmd=/usr/bin/file 4866 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4867 ;; 4868 4869*nto* | *qnx*) 4870 lt_cv_deplibs_check_method=pass_all 4871 ;; 4872 4873openbsd*) 4874 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4875 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4876 else 4877 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4878 fi 4879 ;; 4880 4881osf3* | osf4* | osf5*) 4882 lt_cv_deplibs_check_method=pass_all 4883 ;; 4884 4885rdos*) 4886 lt_cv_deplibs_check_method=pass_all 4887 ;; 4888 4889solaris*) 4890 lt_cv_deplibs_check_method=pass_all 4891 ;; 4892 4893sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4894 lt_cv_deplibs_check_method=pass_all 4895 ;; 4896 4897sysv4 | sysv4.3*) 4898 case $host_vendor in 4899 motorola) 4900 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]' 4901 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4902 ;; 4903 ncr) 4904 lt_cv_deplibs_check_method=pass_all 4905 ;; 4906 sequent) 4907 lt_cv_file_magic_cmd='/bin/file' 4908 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4909 ;; 4910 sni) 4911 lt_cv_file_magic_cmd='/bin/file' 4912 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4913 lt_cv_file_magic_test_file=/lib/libc.so 4914 ;; 4915 siemens) 4916 lt_cv_deplibs_check_method=pass_all 4917 ;; 4918 pc) 4919 lt_cv_deplibs_check_method=pass_all 4920 ;; 4921 esac 4922 ;; 4923 4924tpf*) 4925 lt_cv_deplibs_check_method=pass_all 4926 ;; 4927esac 4928 4929fi 4930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 4931$as_echo "$lt_cv_deplibs_check_method" >&6; } 4932 4933file_magic_glob= 4934want_nocaseglob=no 4935if test "$build" = "$host"; then 4936 case $host_os in 4937 mingw* | pw32*) 4938 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 4939 want_nocaseglob=yes 4940 else 4941 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 4942 fi 4943 ;; 4944 esac 4945fi 4946 4947file_magic_cmd=$lt_cv_file_magic_cmd 4948deplibs_check_method=$lt_cv_deplibs_check_method 4949test -z "$deplibs_check_method" && deplibs_check_method=unknown 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972if test -n "$ac_tool_prefix"; then 4973 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 4974set dummy ${ac_tool_prefix}dlltool; ac_word=$2 4975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4976$as_echo_n "checking for $ac_word... " >&6; } 4977if ${ac_cv_prog_DLLTOOL+:} false; then : 4978 $as_echo_n "(cached) " >&6 4979else 4980 if test -n "$DLLTOOL"; then 4981 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 4982else 4983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4984for as_dir in $PATH 4985do 4986 IFS=$as_save_IFS 4987 test -z "$as_dir" && as_dir=. 4988 for ac_exec_ext in '' $ac_executable_extensions; do 4989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4990 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 4991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4992 break 2 4993 fi 4994done 4995 done 4996IFS=$as_save_IFS 4997 4998fi 4999fi 5000DLLTOOL=$ac_cv_prog_DLLTOOL 5001if test -n "$DLLTOOL"; then 5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5003$as_echo "$DLLTOOL" >&6; } 5004else 5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5006$as_echo "no" >&6; } 5007fi 5008 5009 5010fi 5011if test -z "$ac_cv_prog_DLLTOOL"; then 5012 ac_ct_DLLTOOL=$DLLTOOL 5013 # Extract the first word of "dlltool", so it can be a program name with args. 5014set dummy dlltool; ac_word=$2 5015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5016$as_echo_n "checking for $ac_word... " >&6; } 5017if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5018 $as_echo_n "(cached) " >&6 5019else 5020 if test -n "$ac_ct_DLLTOOL"; then 5021 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5022else 5023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5024for as_dir in $PATH 5025do 5026 IFS=$as_save_IFS 5027 test -z "$as_dir" && as_dir=. 5028 for ac_exec_ext in '' $ac_executable_extensions; do 5029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5030 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5032 break 2 5033 fi 5034done 5035 done 5036IFS=$as_save_IFS 5037 5038fi 5039fi 5040ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5041if test -n "$ac_ct_DLLTOOL"; then 5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5043$as_echo "$ac_ct_DLLTOOL" >&6; } 5044else 5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5046$as_echo "no" >&6; } 5047fi 5048 5049 if test "x$ac_ct_DLLTOOL" = x; then 5050 DLLTOOL="false" 5051 else 5052 case $cross_compiling:$ac_tool_warned in 5053yes:) 5054{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5055$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5056ac_tool_warned=yes ;; 5057esac 5058 DLLTOOL=$ac_ct_DLLTOOL 5059 fi 5060else 5061 DLLTOOL="$ac_cv_prog_DLLTOOL" 5062fi 5063 5064test -z "$DLLTOOL" && DLLTOOL=dlltool 5065 5066 5067 5068 5069 5070 5071 5072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5073$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5074if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5075 $as_echo_n "(cached) " >&6 5076else 5077 lt_cv_sharedlib_from_linklib_cmd='unknown' 5078 5079case $host_os in 5080cygwin* | mingw* | pw32* | cegcc*) 5081 # two different shell functions defined in ltmain.sh 5082 # decide which to use based on capabilities of $DLLTOOL 5083 case `$DLLTOOL --help 2>&1` in 5084 *--identify-strict*) 5085 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5086 ;; 5087 *) 5088 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5089 ;; 5090 esac 5091 ;; 5092*) 5093 # fallback: assume linklib IS sharedlib 5094 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5095 ;; 5096esac 5097 5098fi 5099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5100$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5101sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5102test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5103 5104 5105 5106 5107 5108 5109 5110 5111if test -n "$ac_tool_prefix"; then 5112 for ac_prog in ar 5113 do 5114 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5115set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5117$as_echo_n "checking for $ac_word... " >&6; } 5118if ${ac_cv_prog_AR+:} false; then : 5119 $as_echo_n "(cached) " >&6 5120else 5121 if test -n "$AR"; then 5122 ac_cv_prog_AR="$AR" # Let the user override the test. 5123else 5124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5125for as_dir in $PATH 5126do 5127 IFS=$as_save_IFS 5128 test -z "$as_dir" && as_dir=. 5129 for ac_exec_ext in '' $ac_executable_extensions; do 5130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5131 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5133 break 2 5134 fi 5135done 5136 done 5137IFS=$as_save_IFS 5138 5139fi 5140fi 5141AR=$ac_cv_prog_AR 5142if test -n "$AR"; then 5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5144$as_echo "$AR" >&6; } 5145else 5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5147$as_echo "no" >&6; } 5148fi 5149 5150 5151 test -n "$AR" && break 5152 done 5153fi 5154if test -z "$AR"; then 5155 ac_ct_AR=$AR 5156 for ac_prog in ar 5157do 5158 # Extract the first word of "$ac_prog", so it can be a program name with args. 5159set dummy $ac_prog; ac_word=$2 5160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5161$as_echo_n "checking for $ac_word... " >&6; } 5162if ${ac_cv_prog_ac_ct_AR+:} false; then : 5163 $as_echo_n "(cached) " >&6 5164else 5165 if test -n "$ac_ct_AR"; then 5166 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5167else 5168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5169for as_dir in $PATH 5170do 5171 IFS=$as_save_IFS 5172 test -z "$as_dir" && as_dir=. 5173 for ac_exec_ext in '' $ac_executable_extensions; do 5174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5175 ac_cv_prog_ac_ct_AR="$ac_prog" 5176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5177 break 2 5178 fi 5179done 5180 done 5181IFS=$as_save_IFS 5182 5183fi 5184fi 5185ac_ct_AR=$ac_cv_prog_ac_ct_AR 5186if test -n "$ac_ct_AR"; then 5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5188$as_echo "$ac_ct_AR" >&6; } 5189else 5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5191$as_echo "no" >&6; } 5192fi 5193 5194 5195 test -n "$ac_ct_AR" && break 5196done 5197 5198 if test "x$ac_ct_AR" = x; then 5199 AR="false" 5200 else 5201 case $cross_compiling:$ac_tool_warned in 5202yes:) 5203{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5204$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5205ac_tool_warned=yes ;; 5206esac 5207 AR=$ac_ct_AR 5208 fi 5209fi 5210 5211: ${AR=ar} 5212: ${AR_FLAGS=cru} 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5225$as_echo_n "checking for archiver @FILE support... " >&6; } 5226if ${lt_cv_ar_at_file+:} false; then : 5227 $as_echo_n "(cached) " >&6 5228else 5229 lt_cv_ar_at_file=no 5230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5231/* end confdefs.h. */ 5232 5233int 5234main () 5235{ 5236 5237 ; 5238 return 0; 5239} 5240_ACEOF 5241if ac_fn_c_try_compile "$LINENO"; then : 5242 echo conftest.$ac_objext > conftest.lst 5243 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5245 (eval $lt_ar_try) 2>&5 5246 ac_status=$? 5247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5248 test $ac_status = 0; } 5249 if test "$ac_status" -eq 0; then 5250 # Ensure the archiver fails upon bogus file names. 5251 rm -f conftest.$ac_objext libconftest.a 5252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5253 (eval $lt_ar_try) 2>&5 5254 ac_status=$? 5255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5256 test $ac_status = 0; } 5257 if test "$ac_status" -ne 0; then 5258 lt_cv_ar_at_file=@ 5259 fi 5260 fi 5261 rm -f conftest.* libconftest.a 5262 5263fi 5264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5265 5266fi 5267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5268$as_echo "$lt_cv_ar_at_file" >&6; } 5269 5270if test "x$lt_cv_ar_at_file" = xno; then 5271 archiver_list_spec= 5272else 5273 archiver_list_spec=$lt_cv_ar_at_file 5274fi 5275 5276 5277 5278 5279 5280 5281 5282if test -n "$ac_tool_prefix"; then 5283 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5284set dummy ${ac_tool_prefix}strip; ac_word=$2 5285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5286$as_echo_n "checking for $ac_word... " >&6; } 5287if ${ac_cv_prog_STRIP+:} false; then : 5288 $as_echo_n "(cached) " >&6 5289else 5290 if test -n "$STRIP"; then 5291 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5292else 5293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5294for as_dir in $PATH 5295do 5296 IFS=$as_save_IFS 5297 test -z "$as_dir" && as_dir=. 5298 for ac_exec_ext in '' $ac_executable_extensions; do 5299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5300 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5302 break 2 5303 fi 5304done 5305 done 5306IFS=$as_save_IFS 5307 5308fi 5309fi 5310STRIP=$ac_cv_prog_STRIP 5311if test -n "$STRIP"; then 5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5313$as_echo "$STRIP" >&6; } 5314else 5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5316$as_echo "no" >&6; } 5317fi 5318 5319 5320fi 5321if test -z "$ac_cv_prog_STRIP"; then 5322 ac_ct_STRIP=$STRIP 5323 # Extract the first word of "strip", so it can be a program name with args. 5324set dummy strip; ac_word=$2 5325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5326$as_echo_n "checking for $ac_word... " >&6; } 5327if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5328 $as_echo_n "(cached) " >&6 5329else 5330 if test -n "$ac_ct_STRIP"; then 5331 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5332else 5333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5334for as_dir in $PATH 5335do 5336 IFS=$as_save_IFS 5337 test -z "$as_dir" && as_dir=. 5338 for ac_exec_ext in '' $ac_executable_extensions; do 5339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5340 ac_cv_prog_ac_ct_STRIP="strip" 5341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5342 break 2 5343 fi 5344done 5345 done 5346IFS=$as_save_IFS 5347 5348fi 5349fi 5350ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5351if test -n "$ac_ct_STRIP"; then 5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5353$as_echo "$ac_ct_STRIP" >&6; } 5354else 5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5356$as_echo "no" >&6; } 5357fi 5358 5359 if test "x$ac_ct_STRIP" = x; then 5360 STRIP=":" 5361 else 5362 case $cross_compiling:$ac_tool_warned in 5363yes:) 5364{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5365$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5366ac_tool_warned=yes ;; 5367esac 5368 STRIP=$ac_ct_STRIP 5369 fi 5370else 5371 STRIP="$ac_cv_prog_STRIP" 5372fi 5373 5374test -z "$STRIP" && STRIP=: 5375 5376 5377 5378 5379 5380 5381if test -n "$ac_tool_prefix"; then 5382 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5383set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5385$as_echo_n "checking for $ac_word... " >&6; } 5386if ${ac_cv_prog_RANLIB+:} false; then : 5387 $as_echo_n "(cached) " >&6 5388else 5389 if test -n "$RANLIB"; then 5390 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5391else 5392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5393for as_dir in $PATH 5394do 5395 IFS=$as_save_IFS 5396 test -z "$as_dir" && as_dir=. 5397 for ac_exec_ext in '' $ac_executable_extensions; do 5398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5399 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5401 break 2 5402 fi 5403done 5404 done 5405IFS=$as_save_IFS 5406 5407fi 5408fi 5409RANLIB=$ac_cv_prog_RANLIB 5410if test -n "$RANLIB"; then 5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5412$as_echo "$RANLIB" >&6; } 5413else 5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5415$as_echo "no" >&6; } 5416fi 5417 5418 5419fi 5420if test -z "$ac_cv_prog_RANLIB"; then 5421 ac_ct_RANLIB=$RANLIB 5422 # Extract the first word of "ranlib", so it can be a program name with args. 5423set dummy ranlib; ac_word=$2 5424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5425$as_echo_n "checking for $ac_word... " >&6; } 5426if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5427 $as_echo_n "(cached) " >&6 5428else 5429 if test -n "$ac_ct_RANLIB"; then 5430 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5431else 5432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5433for as_dir in $PATH 5434do 5435 IFS=$as_save_IFS 5436 test -z "$as_dir" && as_dir=. 5437 for ac_exec_ext in '' $ac_executable_extensions; do 5438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5439 ac_cv_prog_ac_ct_RANLIB="ranlib" 5440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5441 break 2 5442 fi 5443done 5444 done 5445IFS=$as_save_IFS 5446 5447fi 5448fi 5449ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5450if test -n "$ac_ct_RANLIB"; then 5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5452$as_echo "$ac_ct_RANLIB" >&6; } 5453else 5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5455$as_echo "no" >&6; } 5456fi 5457 5458 if test "x$ac_ct_RANLIB" = x; then 5459 RANLIB=":" 5460 else 5461 case $cross_compiling:$ac_tool_warned in 5462yes:) 5463{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5464$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5465ac_tool_warned=yes ;; 5466esac 5467 RANLIB=$ac_ct_RANLIB 5468 fi 5469else 5470 RANLIB="$ac_cv_prog_RANLIB" 5471fi 5472 5473test -z "$RANLIB" && RANLIB=: 5474 5475 5476 5477 5478 5479 5480# Determine commands to create old-style static archives. 5481old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5482old_postinstall_cmds='chmod 644 $oldlib' 5483old_postuninstall_cmds= 5484 5485if test -n "$RANLIB"; then 5486 case $host_os in 5487 openbsd*) 5488 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5489 ;; 5490 *) 5491 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5492 ;; 5493 esac 5494 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5495fi 5496 5497case $host_os in 5498 darwin*) 5499 lock_old_archive_extraction=yes ;; 5500 *) 5501 lock_old_archive_extraction=no ;; 5502esac 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524for ac_prog in gawk mawk nawk awk 5525do 5526 # Extract the first word of "$ac_prog", so it can be a program name with args. 5527set dummy $ac_prog; ac_word=$2 5528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5529$as_echo_n "checking for $ac_word... " >&6; } 5530if ${ac_cv_prog_AWK+:} false; then : 5531 $as_echo_n "(cached) " >&6 5532else 5533 if test -n "$AWK"; then 5534 ac_cv_prog_AWK="$AWK" # Let the user override the test. 5535else 5536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5537for as_dir in $PATH 5538do 5539 IFS=$as_save_IFS 5540 test -z "$as_dir" && as_dir=. 5541 for ac_exec_ext in '' $ac_executable_extensions; do 5542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5543 ac_cv_prog_AWK="$ac_prog" 5544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5545 break 2 5546 fi 5547done 5548 done 5549IFS=$as_save_IFS 5550 5551fi 5552fi 5553AWK=$ac_cv_prog_AWK 5554if test -n "$AWK"; then 5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 5556$as_echo "$AWK" >&6; } 5557else 5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5559$as_echo "no" >&6; } 5560fi 5561 5562 5563 test -n "$AWK" && break 5564done 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584# If no C compiler was specified, use CC. 5585LTCC=${LTCC-"$CC"} 5586 5587# If no C compiler flags were specified, use CFLAGS. 5588LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5589 5590# Allow CC to be a program name with arguments. 5591compiler=$CC 5592 5593 5594# Check for command to grab the raw symbol name followed by C symbol from nm. 5595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5596$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5597if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5598 $as_echo_n "(cached) " >&6 5599else 5600 5601# These are sane defaults that work on at least a few old systems. 5602# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5603 5604# Character class describing NM global symbol codes. 5605symcode='[BCDEGRST]' 5606 5607# Regexp to match symbols that can be accessed directly from C. 5608sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5609 5610# Define system-specific variables. 5611case $host_os in 5612aix*) 5613 symcode='[BCDT]' 5614 ;; 5615cygwin* | mingw* | pw32* | cegcc*) 5616 symcode='[ABCDGISTW]' 5617 ;; 5618hpux*) 5619 if test "$host_cpu" = ia64; then 5620 symcode='[ABCDEGRST]' 5621 fi 5622 ;; 5623irix* | nonstopux*) 5624 symcode='[BCDEGRST]' 5625 ;; 5626osf*) 5627 symcode='[BCDEGQRST]' 5628 ;; 5629solaris*) 5630 symcode='[BDRT]' 5631 ;; 5632sco3.2v5*) 5633 symcode='[DT]' 5634 ;; 5635sysv4.2uw2*) 5636 symcode='[DT]' 5637 ;; 5638sysv5* | sco5v6* | unixware* | OpenUNIX*) 5639 symcode='[ABDT]' 5640 ;; 5641sysv4) 5642 symcode='[DFNSTU]' 5643 ;; 5644esac 5645 5646# If we're using GNU nm, then use its standard symbol codes. 5647case `$NM -V 2>&1` in 5648*GNU* | *'with BFD'*) 5649 symcode='[ABCDGIRSTW]' ;; 5650esac 5651 5652# Transform an extracted symbol line into a proper C declaration. 5653# Some systems (esp. on ia64) link data and code symbols differently, 5654# so use this general approach. 5655lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5656 5657# Transform an extracted symbol line into symbol name and symbol address 5658lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5659lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 5660 5661# Handle CRLF in mingw tool chain 5662opt_cr= 5663case $build_os in 5664mingw*) 5665 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5666 ;; 5667esac 5668 5669# Try without a prefix underscore, then with it. 5670for ac_symprfx in "" "_"; do 5671 5672 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5673 symxfrm="\\1 $ac_symprfx\\2 \\2" 5674 5675 # Write the raw and C identifiers. 5676 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5677 # Fake it for dumpbin and say T for any non-static function 5678 # and D for any global variable. 5679 # Also find C++ and __fastcall symbols from MSVC++, 5680 # which start with @ or ?. 5681 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5682" {last_section=section; section=\$ 3};"\ 5683" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 5684" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5685" \$ 0!~/External *\|/{next};"\ 5686" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5687" {if(hide[section]) next};"\ 5688" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5689" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5690" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5691" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5692" ' prfx=^$ac_symprfx" 5693 else 5694 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5695 fi 5696 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 5697 5698 # Check to see that the pipe works correctly. 5699 pipe_works=no 5700 5701 rm -f conftest* 5702 cat > conftest.$ac_ext <<_LT_EOF 5703#ifdef __cplusplus 5704extern "C" { 5705#endif 5706char nm_test_var; 5707void nm_test_func(void); 5708void nm_test_func(void){} 5709#ifdef __cplusplus 5710} 5711#endif 5712int main(){nm_test_var='a';nm_test_func();return(0);} 5713_LT_EOF 5714 5715 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5716 (eval $ac_compile) 2>&5 5717 ac_status=$? 5718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5719 test $ac_status = 0; }; then 5720 # Now try to grab the symbols. 5721 nlist=conftest.nm 5722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 5723 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 5724 ac_status=$? 5725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5726 test $ac_status = 0; } && test -s "$nlist"; then 5727 # Try sorting and uniquifying the output. 5728 if sort "$nlist" | uniq > "$nlist"T; then 5729 mv -f "$nlist"T "$nlist" 5730 else 5731 rm -f "$nlist"T 5732 fi 5733 5734 # Make sure that we snagged all the symbols we need. 5735 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5736 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5737 cat <<_LT_EOF > conftest.$ac_ext 5738/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 5739#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 5740/* DATA imports from DLLs on WIN32 con't be const, because runtime 5741 relocations are performed -- see ld's documentation on pseudo-relocs. */ 5742# define LT_DLSYM_CONST 5743#elif defined(__osf__) 5744/* This system does not cope well with relocations in const data. */ 5745# define LT_DLSYM_CONST 5746#else 5747# define LT_DLSYM_CONST const 5748#endif 5749 5750#ifdef __cplusplus 5751extern "C" { 5752#endif 5753 5754_LT_EOF 5755 # Now generate the symbol file. 5756 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5757 5758 cat <<_LT_EOF >> conftest.$ac_ext 5759 5760/* The mapping between symbol names and symbols. */ 5761LT_DLSYM_CONST struct { 5762 const char *name; 5763 void *address; 5764} 5765lt__PROGRAM__LTX_preloaded_symbols[] = 5766{ 5767 { "@PROGRAM@", (void *) 0 }, 5768_LT_EOF 5769 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5770 cat <<\_LT_EOF >> conftest.$ac_ext 5771 {0, (void *) 0} 5772}; 5773 5774/* This works around a problem in FreeBSD linker */ 5775#ifdef FREEBSD_WORKAROUND 5776static const void *lt_preloaded_setup() { 5777 return lt__PROGRAM__LTX_preloaded_symbols; 5778} 5779#endif 5780 5781#ifdef __cplusplus 5782} 5783#endif 5784_LT_EOF 5785 # Now try linking the two files. 5786 mv conftest.$ac_objext conftstm.$ac_objext 5787 lt_globsym_save_LIBS=$LIBS 5788 lt_globsym_save_CFLAGS=$CFLAGS 5789 LIBS="conftstm.$ac_objext" 5790 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 5792 (eval $ac_link) 2>&5 5793 ac_status=$? 5794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5795 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 5796 pipe_works=yes 5797 fi 5798 LIBS=$lt_globsym_save_LIBS 5799 CFLAGS=$lt_globsym_save_CFLAGS 5800 else 5801 echo "cannot find nm_test_func in $nlist" >&5 5802 fi 5803 else 5804 echo "cannot find nm_test_var in $nlist" >&5 5805 fi 5806 else 5807 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5808 fi 5809 else 5810 echo "$progname: failed program was:" >&5 5811 cat conftest.$ac_ext >&5 5812 fi 5813 rm -rf conftest* conftst* 5814 5815 # Do not use the global_symbol_pipe unless it works. 5816 if test "$pipe_works" = yes; then 5817 break 5818 else 5819 lt_cv_sys_global_symbol_pipe= 5820 fi 5821done 5822 5823fi 5824 5825if test -z "$lt_cv_sys_global_symbol_pipe"; then 5826 lt_cv_sys_global_symbol_to_cdecl= 5827fi 5828if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5830$as_echo "failed" >&6; } 5831else 5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 5833$as_echo "ok" >&6; } 5834fi 5835 5836# Response file support. 5837if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5838 nm_file_list_spec='@' 5839elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 5840 nm_file_list_spec='@' 5841fi 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 5870$as_echo_n "checking for sysroot... " >&6; } 5871 5872# Check whether --with-sysroot was given. 5873if test "${with_sysroot+set}" = set; then : 5874 withval=$with_sysroot; 5875else 5876 with_sysroot=no 5877fi 5878 5879 5880lt_sysroot= 5881case ${with_sysroot} in #( 5882 yes) 5883 if test "$GCC" = yes; then 5884 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 5885 fi 5886 ;; #( 5887 /*) 5888 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 5889 ;; #( 5890 no|'') 5891 ;; #( 5892 *) 5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 5894$as_echo "${with_sysroot}" >&6; } 5895 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 5896 ;; 5897esac 5898 5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 5900$as_echo "${lt_sysroot:-no}" >&6; } 5901 5902 5903 5904 5905 5906# Check whether --enable-libtool-lock was given. 5907if test "${enable_libtool_lock+set}" = set; then : 5908 enableval=$enable_libtool_lock; 5909fi 5910 5911test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5912 5913# Some flags need to be propagated to the compiler or linker for good 5914# libtool support. 5915case $host in 5916ia64-*-hpux*) 5917 # Find out which ABI we are using. 5918 echo 'int i;' > conftest.$ac_ext 5919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5920 (eval $ac_compile) 2>&5 5921 ac_status=$? 5922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5923 test $ac_status = 0; }; then 5924 case `/usr/bin/file conftest.$ac_objext` in 5925 *ELF-32*) 5926 HPUX_IA64_MODE="32" 5927 ;; 5928 *ELF-64*) 5929 HPUX_IA64_MODE="64" 5930 ;; 5931 esac 5932 fi 5933 rm -rf conftest* 5934 ;; 5935*-*-irix6*) 5936 # Find out which ABI we are using. 5937 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 5938 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5939 (eval $ac_compile) 2>&5 5940 ac_status=$? 5941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5942 test $ac_status = 0; }; then 5943 if test "$lt_cv_prog_gnu_ld" = yes; then 5944 case `/usr/bin/file conftest.$ac_objext` in 5945 *32-bit*) 5946 LD="${LD-ld} -melf32bsmip" 5947 ;; 5948 *N32*) 5949 LD="${LD-ld} -melf32bmipn32" 5950 ;; 5951 *64-bit*) 5952 LD="${LD-ld} -melf64bmip" 5953 ;; 5954 esac 5955 else 5956 case `/usr/bin/file conftest.$ac_objext` in 5957 *32-bit*) 5958 LD="${LD-ld} -32" 5959 ;; 5960 *N32*) 5961 LD="${LD-ld} -n32" 5962 ;; 5963 *64-bit*) 5964 LD="${LD-ld} -64" 5965 ;; 5966 esac 5967 fi 5968 fi 5969 rm -rf conftest* 5970 ;; 5971 5972x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5973s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5974 # Find out which ABI we are using. 5975 echo 'int i;' > conftest.$ac_ext 5976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5977 (eval $ac_compile) 2>&5 5978 ac_status=$? 5979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5980 test $ac_status = 0; }; then 5981 case `/usr/bin/file conftest.o` in 5982 *32-bit*) 5983 case $host in 5984 x86_64-*kfreebsd*-gnu) 5985 LD="${LD-ld} -m elf_i386_fbsd" 5986 ;; 5987 x86_64-*linux*) 5988 LD="${LD-ld} -m elf_i386" 5989 ;; 5990 ppc64-*linux*|powerpc64-*linux*) 5991 LD="${LD-ld} -m elf32ppclinux" 5992 ;; 5993 s390x-*linux*) 5994 LD="${LD-ld} -m elf_s390" 5995 ;; 5996 sparc64-*linux*) 5997 LD="${LD-ld} -m elf32_sparc" 5998 ;; 5999 esac 6000 ;; 6001 *64-bit*) 6002 case $host in 6003 x86_64-*kfreebsd*-gnu) 6004 LD="${LD-ld} -m elf_x86_64_fbsd" 6005 ;; 6006 x86_64-*linux*) 6007 LD="${LD-ld} -m elf_x86_64" 6008 ;; 6009 powerpc64le-*linux*) 6010 LD="${LD-ld} -m elf64lppc" 6011 ;; 6012 powerpc64-*linux*) 6013 LD="${LD-ld} -m elf64ppc" 6014 ;; 6015 s390*-*linux*|s390*-*tpf*) 6016 LD="${LD-ld} -m elf64_s390" 6017 ;; 6018 sparc*-*linux*) 6019 LD="${LD-ld} -m elf64_sparc" 6020 ;; 6021 esac 6022 ;; 6023 esac 6024 fi 6025 rm -rf conftest* 6026 ;; 6027 6028*-*-sco3.2v5*) 6029 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6030 SAVE_CFLAGS="$CFLAGS" 6031 CFLAGS="$CFLAGS -belf" 6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6033$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6034if ${lt_cv_cc_needs_belf+:} false; then : 6035 $as_echo_n "(cached) " >&6 6036else 6037 ac_ext=c 6038ac_cpp='$CPP $CPPFLAGS' 6039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6041ac_compiler_gnu=$ac_cv_c_compiler_gnu 6042 6043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6044/* end confdefs.h. */ 6045 6046int 6047main () 6048{ 6049 6050 ; 6051 return 0; 6052} 6053_ACEOF 6054if ac_fn_c_try_link "$LINENO"; then : 6055 lt_cv_cc_needs_belf=yes 6056else 6057 lt_cv_cc_needs_belf=no 6058fi 6059rm -f core conftest.err conftest.$ac_objext \ 6060 conftest$ac_exeext conftest.$ac_ext 6061 ac_ext=c 6062ac_cpp='$CPP $CPPFLAGS' 6063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6065ac_compiler_gnu=$ac_cv_c_compiler_gnu 6066 6067fi 6068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6069$as_echo "$lt_cv_cc_needs_belf" >&6; } 6070 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6071 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6072 CFLAGS="$SAVE_CFLAGS" 6073 fi 6074 ;; 6075*-*solaris*) 6076 # Find out which ABI we are using. 6077 echo 'int i;' > conftest.$ac_ext 6078 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6079 (eval $ac_compile) 2>&5 6080 ac_status=$? 6081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6082 test $ac_status = 0; }; then 6083 case `/usr/bin/file conftest.o` in 6084 *64-bit*) 6085 case $lt_cv_prog_gnu_ld in 6086 yes*) 6087 case $host in 6088 i?86-*-solaris*) 6089 LD="${LD-ld} -m elf_x86_64" 6090 ;; 6091 sparc*-*-solaris*) 6092 LD="${LD-ld} -m elf64_sparc" 6093 ;; 6094 esac 6095 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6096 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6097 LD="${LD-ld}_sol2" 6098 fi 6099 ;; 6100 *) 6101 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6102 LD="${LD-ld} -64" 6103 fi 6104 ;; 6105 esac 6106 ;; 6107 esac 6108 fi 6109 rm -rf conftest* 6110 ;; 6111esac 6112 6113need_locks="$enable_libtool_lock" 6114 6115if test -n "$ac_tool_prefix"; then 6116 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6117set dummy ${ac_tool_prefix}mt; ac_word=$2 6118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6119$as_echo_n "checking for $ac_word... " >&6; } 6120if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6121 $as_echo_n "(cached) " >&6 6122else 6123 if test -n "$MANIFEST_TOOL"; then 6124 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6125else 6126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6127for as_dir in $PATH 6128do 6129 IFS=$as_save_IFS 6130 test -z "$as_dir" && as_dir=. 6131 for ac_exec_ext in '' $ac_executable_extensions; do 6132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6133 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6135 break 2 6136 fi 6137done 6138 done 6139IFS=$as_save_IFS 6140 6141fi 6142fi 6143MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6144if test -n "$MANIFEST_TOOL"; then 6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6146$as_echo "$MANIFEST_TOOL" >&6; } 6147else 6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6149$as_echo "no" >&6; } 6150fi 6151 6152 6153fi 6154if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6155 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6156 # Extract the first word of "mt", so it can be a program name with args. 6157set dummy mt; ac_word=$2 6158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6159$as_echo_n "checking for $ac_word... " >&6; } 6160if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6161 $as_echo_n "(cached) " >&6 6162else 6163 if test -n "$ac_ct_MANIFEST_TOOL"; then 6164 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6165else 6166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6167for as_dir in $PATH 6168do 6169 IFS=$as_save_IFS 6170 test -z "$as_dir" && as_dir=. 6171 for ac_exec_ext in '' $ac_executable_extensions; do 6172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6173 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6175 break 2 6176 fi 6177done 6178 done 6179IFS=$as_save_IFS 6180 6181fi 6182fi 6183ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6184if test -n "$ac_ct_MANIFEST_TOOL"; then 6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6186$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6187else 6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6189$as_echo "no" >&6; } 6190fi 6191 6192 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6193 MANIFEST_TOOL=":" 6194 else 6195 case $cross_compiling:$ac_tool_warned in 6196yes:) 6197{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6198$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6199ac_tool_warned=yes ;; 6200esac 6201 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6202 fi 6203else 6204 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6205fi 6206 6207test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6209$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6210if ${lt_cv_path_mainfest_tool+:} false; then : 6211 $as_echo_n "(cached) " >&6 6212else 6213 lt_cv_path_mainfest_tool=no 6214 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6215 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6216 cat conftest.err >&5 6217 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6218 lt_cv_path_mainfest_tool=yes 6219 fi 6220 rm -f conftest* 6221fi 6222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6223$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6224if test "x$lt_cv_path_mainfest_tool" != xyes; then 6225 MANIFEST_TOOL=: 6226fi 6227 6228 6229 6230 6231 6232 6233 case $host_os in 6234 rhapsody* | darwin*) 6235 if test -n "$ac_tool_prefix"; then 6236 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6237set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6239$as_echo_n "checking for $ac_word... " >&6; } 6240if ${ac_cv_prog_DSYMUTIL+:} false; then : 6241 $as_echo_n "(cached) " >&6 6242else 6243 if test -n "$DSYMUTIL"; then 6244 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6245else 6246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6247for as_dir in $PATH 6248do 6249 IFS=$as_save_IFS 6250 test -z "$as_dir" && as_dir=. 6251 for ac_exec_ext in '' $ac_executable_extensions; do 6252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6253 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6255 break 2 6256 fi 6257done 6258 done 6259IFS=$as_save_IFS 6260 6261fi 6262fi 6263DSYMUTIL=$ac_cv_prog_DSYMUTIL 6264if test -n "$DSYMUTIL"; then 6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6266$as_echo "$DSYMUTIL" >&6; } 6267else 6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6269$as_echo "no" >&6; } 6270fi 6271 6272 6273fi 6274if test -z "$ac_cv_prog_DSYMUTIL"; then 6275 ac_ct_DSYMUTIL=$DSYMUTIL 6276 # Extract the first word of "dsymutil", so it can be a program name with args. 6277set dummy dsymutil; ac_word=$2 6278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6279$as_echo_n "checking for $ac_word... " >&6; } 6280if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6281 $as_echo_n "(cached) " >&6 6282else 6283 if test -n "$ac_ct_DSYMUTIL"; then 6284 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6285else 6286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6287for as_dir in $PATH 6288do 6289 IFS=$as_save_IFS 6290 test -z "$as_dir" && as_dir=. 6291 for ac_exec_ext in '' $ac_executable_extensions; do 6292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6293 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6295 break 2 6296 fi 6297done 6298 done 6299IFS=$as_save_IFS 6300 6301fi 6302fi 6303ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6304if test -n "$ac_ct_DSYMUTIL"; then 6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6306$as_echo "$ac_ct_DSYMUTIL" >&6; } 6307else 6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6309$as_echo "no" >&6; } 6310fi 6311 6312 if test "x$ac_ct_DSYMUTIL" = x; then 6313 DSYMUTIL=":" 6314 else 6315 case $cross_compiling:$ac_tool_warned in 6316yes:) 6317{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6319ac_tool_warned=yes ;; 6320esac 6321 DSYMUTIL=$ac_ct_DSYMUTIL 6322 fi 6323else 6324 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6325fi 6326 6327 if test -n "$ac_tool_prefix"; then 6328 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6329set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6331$as_echo_n "checking for $ac_word... " >&6; } 6332if ${ac_cv_prog_NMEDIT+:} false; then : 6333 $as_echo_n "(cached) " >&6 6334else 6335 if test -n "$NMEDIT"; then 6336 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6337else 6338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6339for as_dir in $PATH 6340do 6341 IFS=$as_save_IFS 6342 test -z "$as_dir" && as_dir=. 6343 for ac_exec_ext in '' $ac_executable_extensions; do 6344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6345 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6347 break 2 6348 fi 6349done 6350 done 6351IFS=$as_save_IFS 6352 6353fi 6354fi 6355NMEDIT=$ac_cv_prog_NMEDIT 6356if test -n "$NMEDIT"; then 6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6358$as_echo "$NMEDIT" >&6; } 6359else 6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6361$as_echo "no" >&6; } 6362fi 6363 6364 6365fi 6366if test -z "$ac_cv_prog_NMEDIT"; then 6367 ac_ct_NMEDIT=$NMEDIT 6368 # Extract the first word of "nmedit", so it can be a program name with args. 6369set dummy nmedit; ac_word=$2 6370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6371$as_echo_n "checking for $ac_word... " >&6; } 6372if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6373 $as_echo_n "(cached) " >&6 6374else 6375 if test -n "$ac_ct_NMEDIT"; then 6376 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6377else 6378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6379for as_dir in $PATH 6380do 6381 IFS=$as_save_IFS 6382 test -z "$as_dir" && as_dir=. 6383 for ac_exec_ext in '' $ac_executable_extensions; do 6384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6385 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6387 break 2 6388 fi 6389done 6390 done 6391IFS=$as_save_IFS 6392 6393fi 6394fi 6395ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6396if test -n "$ac_ct_NMEDIT"; then 6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6398$as_echo "$ac_ct_NMEDIT" >&6; } 6399else 6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6401$as_echo "no" >&6; } 6402fi 6403 6404 if test "x$ac_ct_NMEDIT" = x; then 6405 NMEDIT=":" 6406 else 6407 case $cross_compiling:$ac_tool_warned in 6408yes:) 6409{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6410$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6411ac_tool_warned=yes ;; 6412esac 6413 NMEDIT=$ac_ct_NMEDIT 6414 fi 6415else 6416 NMEDIT="$ac_cv_prog_NMEDIT" 6417fi 6418 6419 if test -n "$ac_tool_prefix"; then 6420 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6421set dummy ${ac_tool_prefix}lipo; ac_word=$2 6422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6423$as_echo_n "checking for $ac_word... " >&6; } 6424if ${ac_cv_prog_LIPO+:} false; then : 6425 $as_echo_n "(cached) " >&6 6426else 6427 if test -n "$LIPO"; then 6428 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6429else 6430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6431for as_dir in $PATH 6432do 6433 IFS=$as_save_IFS 6434 test -z "$as_dir" && as_dir=. 6435 for ac_exec_ext in '' $ac_executable_extensions; do 6436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6437 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6439 break 2 6440 fi 6441done 6442 done 6443IFS=$as_save_IFS 6444 6445fi 6446fi 6447LIPO=$ac_cv_prog_LIPO 6448if test -n "$LIPO"; then 6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6450$as_echo "$LIPO" >&6; } 6451else 6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6453$as_echo "no" >&6; } 6454fi 6455 6456 6457fi 6458if test -z "$ac_cv_prog_LIPO"; then 6459 ac_ct_LIPO=$LIPO 6460 # Extract the first word of "lipo", so it can be a program name with args. 6461set dummy lipo; ac_word=$2 6462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6463$as_echo_n "checking for $ac_word... " >&6; } 6464if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6465 $as_echo_n "(cached) " >&6 6466else 6467 if test -n "$ac_ct_LIPO"; then 6468 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6469else 6470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6471for as_dir in $PATH 6472do 6473 IFS=$as_save_IFS 6474 test -z "$as_dir" && as_dir=. 6475 for ac_exec_ext in '' $ac_executable_extensions; do 6476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6477 ac_cv_prog_ac_ct_LIPO="lipo" 6478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6479 break 2 6480 fi 6481done 6482 done 6483IFS=$as_save_IFS 6484 6485fi 6486fi 6487ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6488if test -n "$ac_ct_LIPO"; then 6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6490$as_echo "$ac_ct_LIPO" >&6; } 6491else 6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6493$as_echo "no" >&6; } 6494fi 6495 6496 if test "x$ac_ct_LIPO" = x; then 6497 LIPO=":" 6498 else 6499 case $cross_compiling:$ac_tool_warned in 6500yes:) 6501{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6502$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6503ac_tool_warned=yes ;; 6504esac 6505 LIPO=$ac_ct_LIPO 6506 fi 6507else 6508 LIPO="$ac_cv_prog_LIPO" 6509fi 6510 6511 if test -n "$ac_tool_prefix"; then 6512 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6513set dummy ${ac_tool_prefix}otool; ac_word=$2 6514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6515$as_echo_n "checking for $ac_word... " >&6; } 6516if ${ac_cv_prog_OTOOL+:} false; then : 6517 $as_echo_n "(cached) " >&6 6518else 6519 if test -n "$OTOOL"; then 6520 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6521else 6522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6523for as_dir in $PATH 6524do 6525 IFS=$as_save_IFS 6526 test -z "$as_dir" && as_dir=. 6527 for ac_exec_ext in '' $ac_executable_extensions; do 6528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6529 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6531 break 2 6532 fi 6533done 6534 done 6535IFS=$as_save_IFS 6536 6537fi 6538fi 6539OTOOL=$ac_cv_prog_OTOOL 6540if test -n "$OTOOL"; then 6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6542$as_echo "$OTOOL" >&6; } 6543else 6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6545$as_echo "no" >&6; } 6546fi 6547 6548 6549fi 6550if test -z "$ac_cv_prog_OTOOL"; then 6551 ac_ct_OTOOL=$OTOOL 6552 # Extract the first word of "otool", so it can be a program name with args. 6553set dummy otool; ac_word=$2 6554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6555$as_echo_n "checking for $ac_word... " >&6; } 6556if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6557 $as_echo_n "(cached) " >&6 6558else 6559 if test -n "$ac_ct_OTOOL"; then 6560 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6561else 6562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6563for as_dir in $PATH 6564do 6565 IFS=$as_save_IFS 6566 test -z "$as_dir" && as_dir=. 6567 for ac_exec_ext in '' $ac_executable_extensions; do 6568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6569 ac_cv_prog_ac_ct_OTOOL="otool" 6570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6571 break 2 6572 fi 6573done 6574 done 6575IFS=$as_save_IFS 6576 6577fi 6578fi 6579ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6580if test -n "$ac_ct_OTOOL"; then 6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6582$as_echo "$ac_ct_OTOOL" >&6; } 6583else 6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6585$as_echo "no" >&6; } 6586fi 6587 6588 if test "x$ac_ct_OTOOL" = x; then 6589 OTOOL=":" 6590 else 6591 case $cross_compiling:$ac_tool_warned in 6592yes:) 6593{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6594$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6595ac_tool_warned=yes ;; 6596esac 6597 OTOOL=$ac_ct_OTOOL 6598 fi 6599else 6600 OTOOL="$ac_cv_prog_OTOOL" 6601fi 6602 6603 if test -n "$ac_tool_prefix"; then 6604 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6605set dummy ${ac_tool_prefix}otool64; ac_word=$2 6606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6607$as_echo_n "checking for $ac_word... " >&6; } 6608if ${ac_cv_prog_OTOOL64+:} false; then : 6609 $as_echo_n "(cached) " >&6 6610else 6611 if test -n "$OTOOL64"; then 6612 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6613else 6614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6615for as_dir in $PATH 6616do 6617 IFS=$as_save_IFS 6618 test -z "$as_dir" && as_dir=. 6619 for ac_exec_ext in '' $ac_executable_extensions; do 6620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6621 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6623 break 2 6624 fi 6625done 6626 done 6627IFS=$as_save_IFS 6628 6629fi 6630fi 6631OTOOL64=$ac_cv_prog_OTOOL64 6632if test -n "$OTOOL64"; then 6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6634$as_echo "$OTOOL64" >&6; } 6635else 6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6637$as_echo "no" >&6; } 6638fi 6639 6640 6641fi 6642if test -z "$ac_cv_prog_OTOOL64"; then 6643 ac_ct_OTOOL64=$OTOOL64 6644 # Extract the first word of "otool64", so it can be a program name with args. 6645set dummy otool64; ac_word=$2 6646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6647$as_echo_n "checking for $ac_word... " >&6; } 6648if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6649 $as_echo_n "(cached) " >&6 6650else 6651 if test -n "$ac_ct_OTOOL64"; then 6652 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6653else 6654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6655for as_dir in $PATH 6656do 6657 IFS=$as_save_IFS 6658 test -z "$as_dir" && as_dir=. 6659 for ac_exec_ext in '' $ac_executable_extensions; do 6660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6661 ac_cv_prog_ac_ct_OTOOL64="otool64" 6662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6663 break 2 6664 fi 6665done 6666 done 6667IFS=$as_save_IFS 6668 6669fi 6670fi 6671ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6672if test -n "$ac_ct_OTOOL64"; then 6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6674$as_echo "$ac_ct_OTOOL64" >&6; } 6675else 6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6677$as_echo "no" >&6; } 6678fi 6679 6680 if test "x$ac_ct_OTOOL64" = x; then 6681 OTOOL64=":" 6682 else 6683 case $cross_compiling:$ac_tool_warned in 6684yes:) 6685{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6686$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6687ac_tool_warned=yes ;; 6688esac 6689 OTOOL64=$ac_ct_OTOOL64 6690 fi 6691else 6692 OTOOL64="$ac_cv_prog_OTOOL64" 6693fi 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6722$as_echo_n "checking for -single_module linker flag... " >&6; } 6723if ${lt_cv_apple_cc_single_mod+:} false; then : 6724 $as_echo_n "(cached) " >&6 6725else 6726 lt_cv_apple_cc_single_mod=no 6727 if test -z "${LT_MULTI_MODULE}"; then 6728 # By default we will add the -single_module flag. You can override 6729 # by either setting the environment variable LT_MULTI_MODULE 6730 # non-empty at configure time, or by adding -multi_module to the 6731 # link flags. 6732 rm -rf libconftest.dylib* 6733 echo "int foo(void){return 1;}" > conftest.c 6734 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6735-dynamiclib -Wl,-single_module conftest.c" >&5 6736 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6737 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6738 _lt_result=$? 6739 # If there is a non-empty error log, and "single_module" 6740 # appears in it, assume the flag caused a linker warning 6741 if test -s conftest.err && $GREP single_module conftest.err; then 6742 cat conftest.err >&5 6743 # Otherwise, if the output was created with a 0 exit code from 6744 # the compiler, it worked. 6745 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 6746 lt_cv_apple_cc_single_mod=yes 6747 else 6748 cat conftest.err >&5 6749 fi 6750 rm -rf libconftest.dylib* 6751 rm -f conftest.* 6752 fi 6753fi 6754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6755$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6756 6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6758$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6759if ${lt_cv_ld_exported_symbols_list+:} false; then : 6760 $as_echo_n "(cached) " >&6 6761else 6762 lt_cv_ld_exported_symbols_list=no 6763 save_LDFLAGS=$LDFLAGS 6764 echo "_main" > conftest.sym 6765 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6767/* end confdefs.h. */ 6768 6769int 6770main () 6771{ 6772 6773 ; 6774 return 0; 6775} 6776_ACEOF 6777if ac_fn_c_try_link "$LINENO"; then : 6778 lt_cv_ld_exported_symbols_list=yes 6779else 6780 lt_cv_ld_exported_symbols_list=no 6781fi 6782rm -f core conftest.err conftest.$ac_objext \ 6783 conftest$ac_exeext conftest.$ac_ext 6784 LDFLAGS="$save_LDFLAGS" 6785 6786fi 6787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6788$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6789 6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 6791$as_echo_n "checking for -force_load linker flag... " >&6; } 6792if ${lt_cv_ld_force_load+:} false; then : 6793 $as_echo_n "(cached) " >&6 6794else 6795 lt_cv_ld_force_load=no 6796 cat > conftest.c << _LT_EOF 6797int forced_loaded() { return 2;} 6798_LT_EOF 6799 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 6800 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 6801 echo "$AR cru libconftest.a conftest.o" >&5 6802 $AR cru libconftest.a conftest.o 2>&5 6803 echo "$RANLIB libconftest.a" >&5 6804 $RANLIB libconftest.a 2>&5 6805 cat > conftest.c << _LT_EOF 6806int main() { return 0;} 6807_LT_EOF 6808 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 6809 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 6810 _lt_result=$? 6811 if test -s conftest.err && $GREP force_load conftest.err; then 6812 cat conftest.err >&5 6813 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 6814 lt_cv_ld_force_load=yes 6815 else 6816 cat conftest.err >&5 6817 fi 6818 rm -f conftest.err libconftest.a conftest conftest.c 6819 rm -rf conftest.dSYM 6820 6821fi 6822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 6823$as_echo "$lt_cv_ld_force_load" >&6; } 6824 case $host_os in 6825 rhapsody* | darwin1.[012]) 6826 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6827 darwin1.*) 6828 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6829 darwin*) # darwin 5.x on 6830 # if running on 10.5 or later, the deployment target defaults 6831 # to the OS version, if on x86, and 10.4, the deployment 6832 # target defaults to 10.4. Don't you love it? 6833 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6834 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6835 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6836 10.[012]*) 6837 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6838 10.*) 6839 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6840 esac 6841 ;; 6842 esac 6843 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6844 _lt_dar_single_mod='$single_module' 6845 fi 6846 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6847 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6848 else 6849 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6850 fi 6851 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 6852 _lt_dsymutil='~$DSYMUTIL $lib || :' 6853 else 6854 _lt_dsymutil= 6855 fi 6856 ;; 6857 esac 6858 6859ac_ext=c 6860ac_cpp='$CPP $CPPFLAGS' 6861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6863ac_compiler_gnu=$ac_cv_c_compiler_gnu 6864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6865$as_echo_n "checking how to run the C preprocessor... " >&6; } 6866# On Suns, sometimes $CPP names a directory. 6867if test -n "$CPP" && test -d "$CPP"; then 6868 CPP= 6869fi 6870if test -z "$CPP"; then 6871 if ${ac_cv_prog_CPP+:} false; then : 6872 $as_echo_n "(cached) " >&6 6873else 6874 # Double quotes because CPP needs to be expanded 6875 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6876 do 6877 ac_preproc_ok=false 6878for ac_c_preproc_warn_flag in '' yes 6879do 6880 # Use a header file that comes with gcc, so configuring glibc 6881 # with a fresh cross-compiler works. 6882 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6883 # <limits.h> exists even on freestanding compilers. 6884 # On the NeXT, cc -E runs the code through the compiler's parser, 6885 # not just through cpp. "Syntax error" is here to catch this case. 6886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6887/* end confdefs.h. */ 6888#ifdef __STDC__ 6889# include <limits.h> 6890#else 6891# include <assert.h> 6892#endif 6893 Syntax error 6894_ACEOF 6895if ac_fn_c_try_cpp "$LINENO"; then : 6896 6897else 6898 # Broken: fails on valid input. 6899continue 6900fi 6901rm -f conftest.err conftest.i conftest.$ac_ext 6902 6903 # OK, works on sane cases. Now check whether nonexistent headers 6904 # can be detected and how. 6905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6906/* end confdefs.h. */ 6907#include <ac_nonexistent.h> 6908_ACEOF 6909if ac_fn_c_try_cpp "$LINENO"; then : 6910 # Broken: success on invalid input. 6911continue 6912else 6913 # Passes both tests. 6914ac_preproc_ok=: 6915break 6916fi 6917rm -f conftest.err conftest.i conftest.$ac_ext 6918 6919done 6920# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6921rm -f conftest.i conftest.err conftest.$ac_ext 6922if $ac_preproc_ok; then : 6923 break 6924fi 6925 6926 done 6927 ac_cv_prog_CPP=$CPP 6928 6929fi 6930 CPP=$ac_cv_prog_CPP 6931else 6932 ac_cv_prog_CPP=$CPP 6933fi 6934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6935$as_echo "$CPP" >&6; } 6936ac_preproc_ok=false 6937for ac_c_preproc_warn_flag in '' yes 6938do 6939 # Use a header file that comes with gcc, so configuring glibc 6940 # with a fresh cross-compiler works. 6941 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6942 # <limits.h> exists even on freestanding compilers. 6943 # On the NeXT, cc -E runs the code through the compiler's parser, 6944 # not just through cpp. "Syntax error" is here to catch this case. 6945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6946/* end confdefs.h. */ 6947#ifdef __STDC__ 6948# include <limits.h> 6949#else 6950# include <assert.h> 6951#endif 6952 Syntax error 6953_ACEOF 6954if ac_fn_c_try_cpp "$LINENO"; then : 6955 6956else 6957 # Broken: fails on valid input. 6958continue 6959fi 6960rm -f conftest.err conftest.i conftest.$ac_ext 6961 6962 # OK, works on sane cases. Now check whether nonexistent headers 6963 # can be detected and how. 6964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6965/* end confdefs.h. */ 6966#include <ac_nonexistent.h> 6967_ACEOF 6968if ac_fn_c_try_cpp "$LINENO"; then : 6969 # Broken: success on invalid input. 6970continue 6971else 6972 # Passes both tests. 6973ac_preproc_ok=: 6974break 6975fi 6976rm -f conftest.err conftest.i conftest.$ac_ext 6977 6978done 6979# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6980rm -f conftest.i conftest.err conftest.$ac_ext 6981if $ac_preproc_ok; then : 6982 6983else 6984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6985$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6986as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6987See \`config.log' for more details" "$LINENO" 5; } 6988fi 6989 6990ac_ext=c 6991ac_cpp='$CPP $CPPFLAGS' 6992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6994ac_compiler_gnu=$ac_cv_c_compiler_gnu 6995 6996 6997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6998$as_echo_n "checking for ANSI C header files... " >&6; } 6999if ${ac_cv_header_stdc+:} false; then : 7000 $as_echo_n "(cached) " >&6 7001else 7002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7003/* end confdefs.h. */ 7004#include <stdlib.h> 7005#include <stdarg.h> 7006#include <string.h> 7007#include <float.h> 7008 7009int 7010main () 7011{ 7012 7013 ; 7014 return 0; 7015} 7016_ACEOF 7017if ac_fn_c_try_compile "$LINENO"; then : 7018 ac_cv_header_stdc=yes 7019else 7020 ac_cv_header_stdc=no 7021fi 7022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7023 7024if test $ac_cv_header_stdc = yes; then 7025 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7027/* end confdefs.h. */ 7028#include <string.h> 7029 7030_ACEOF 7031if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7032 $EGREP "memchr" >/dev/null 2>&1; then : 7033 7034else 7035 ac_cv_header_stdc=no 7036fi 7037rm -f conftest* 7038 7039fi 7040 7041if test $ac_cv_header_stdc = yes; then 7042 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7044/* end confdefs.h. */ 7045#include <stdlib.h> 7046 7047_ACEOF 7048if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7049 $EGREP "free" >/dev/null 2>&1; then : 7050 7051else 7052 ac_cv_header_stdc=no 7053fi 7054rm -f conftest* 7055 7056fi 7057 7058if test $ac_cv_header_stdc = yes; then 7059 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7060 if test "$cross_compiling" = yes; then : 7061 : 7062else 7063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7064/* end confdefs.h. */ 7065#include <ctype.h> 7066#include <stdlib.h> 7067#if ((' ' & 0x0FF) == 0x020) 7068# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7069# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7070#else 7071# define ISLOWER(c) \ 7072 (('a' <= (c) && (c) <= 'i') \ 7073 || ('j' <= (c) && (c) <= 'r') \ 7074 || ('s' <= (c) && (c) <= 'z')) 7075# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7076#endif 7077 7078#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7079int 7080main () 7081{ 7082 int i; 7083 for (i = 0; i < 256; i++) 7084 if (XOR (islower (i), ISLOWER (i)) 7085 || toupper (i) != TOUPPER (i)) 7086 return 2; 7087 return 0; 7088} 7089_ACEOF 7090if ac_fn_c_try_run "$LINENO"; then : 7091 7092else 7093 ac_cv_header_stdc=no 7094fi 7095rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7096 conftest.$ac_objext conftest.beam conftest.$ac_ext 7097fi 7098 7099fi 7100fi 7101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7102$as_echo "$ac_cv_header_stdc" >&6; } 7103if test $ac_cv_header_stdc = yes; then 7104 7105$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7106 7107fi 7108 7109# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7110for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7111 inttypes.h stdint.h unistd.h 7112do : 7113 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7114ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7115" 7116if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7117 cat >>confdefs.h <<_ACEOF 7118#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7119_ACEOF 7120 7121fi 7122 7123done 7124 7125 7126for ac_header in dlfcn.h 7127do : 7128 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7129" 7130if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7131 cat >>confdefs.h <<_ACEOF 7132#define HAVE_DLFCN_H 1 7133_ACEOF 7134 7135fi 7136 7137done 7138 7139 7140 7141 7142 7143# Set options 7144enable_win32_dll=yes 7145 7146case $host in 7147*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 7148 if test -n "$ac_tool_prefix"; then 7149 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 7150set dummy ${ac_tool_prefix}as; ac_word=$2 7151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7152$as_echo_n "checking for $ac_word... " >&6; } 7153if ${ac_cv_prog_AS+:} false; then : 7154 $as_echo_n "(cached) " >&6 7155else 7156 if test -n "$AS"; then 7157 ac_cv_prog_AS="$AS" # Let the user override the test. 7158else 7159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7160for as_dir in $PATH 7161do 7162 IFS=$as_save_IFS 7163 test -z "$as_dir" && as_dir=. 7164 for ac_exec_ext in '' $ac_executable_extensions; do 7165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7166 ac_cv_prog_AS="${ac_tool_prefix}as" 7167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7168 break 2 7169 fi 7170done 7171 done 7172IFS=$as_save_IFS 7173 7174fi 7175fi 7176AS=$ac_cv_prog_AS 7177if test -n "$AS"; then 7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 7179$as_echo "$AS" >&6; } 7180else 7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7182$as_echo "no" >&6; } 7183fi 7184 7185 7186fi 7187if test -z "$ac_cv_prog_AS"; then 7188 ac_ct_AS=$AS 7189 # Extract the first word of "as", so it can be a program name with args. 7190set dummy as; ac_word=$2 7191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7192$as_echo_n "checking for $ac_word... " >&6; } 7193if ${ac_cv_prog_ac_ct_AS+:} false; then : 7194 $as_echo_n "(cached) " >&6 7195else 7196 if test -n "$ac_ct_AS"; then 7197 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 7198else 7199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7200for as_dir in $PATH 7201do 7202 IFS=$as_save_IFS 7203 test -z "$as_dir" && as_dir=. 7204 for ac_exec_ext in '' $ac_executable_extensions; do 7205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7206 ac_cv_prog_ac_ct_AS="as" 7207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7208 break 2 7209 fi 7210done 7211 done 7212IFS=$as_save_IFS 7213 7214fi 7215fi 7216ac_ct_AS=$ac_cv_prog_ac_ct_AS 7217if test -n "$ac_ct_AS"; then 7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 7219$as_echo "$ac_ct_AS" >&6; } 7220else 7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7222$as_echo "no" >&6; } 7223fi 7224 7225 if test "x$ac_ct_AS" = x; then 7226 AS="false" 7227 else 7228 case $cross_compiling:$ac_tool_warned in 7229yes:) 7230{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7231$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7232ac_tool_warned=yes ;; 7233esac 7234 AS=$ac_ct_AS 7235 fi 7236else 7237 AS="$ac_cv_prog_AS" 7238fi 7239 7240 if test -n "$ac_tool_prefix"; then 7241 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7242set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7244$as_echo_n "checking for $ac_word... " >&6; } 7245if ${ac_cv_prog_DLLTOOL+:} false; then : 7246 $as_echo_n "(cached) " >&6 7247else 7248 if test -n "$DLLTOOL"; then 7249 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7250else 7251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7252for as_dir in $PATH 7253do 7254 IFS=$as_save_IFS 7255 test -z "$as_dir" && as_dir=. 7256 for ac_exec_ext in '' $ac_executable_extensions; do 7257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7258 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7260 break 2 7261 fi 7262done 7263 done 7264IFS=$as_save_IFS 7265 7266fi 7267fi 7268DLLTOOL=$ac_cv_prog_DLLTOOL 7269if test -n "$DLLTOOL"; then 7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7271$as_echo "$DLLTOOL" >&6; } 7272else 7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7274$as_echo "no" >&6; } 7275fi 7276 7277 7278fi 7279if test -z "$ac_cv_prog_DLLTOOL"; then 7280 ac_ct_DLLTOOL=$DLLTOOL 7281 # Extract the first word of "dlltool", so it can be a program name with args. 7282set dummy dlltool; ac_word=$2 7283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7284$as_echo_n "checking for $ac_word... " >&6; } 7285if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 7286 $as_echo_n "(cached) " >&6 7287else 7288 if test -n "$ac_ct_DLLTOOL"; then 7289 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7290else 7291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7292for as_dir in $PATH 7293do 7294 IFS=$as_save_IFS 7295 test -z "$as_dir" && as_dir=. 7296 for ac_exec_ext in '' $ac_executable_extensions; do 7297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7298 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7300 break 2 7301 fi 7302done 7303 done 7304IFS=$as_save_IFS 7305 7306fi 7307fi 7308ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7309if test -n "$ac_ct_DLLTOOL"; then 7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7311$as_echo "$ac_ct_DLLTOOL" >&6; } 7312else 7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7314$as_echo "no" >&6; } 7315fi 7316 7317 if test "x$ac_ct_DLLTOOL" = x; then 7318 DLLTOOL="false" 7319 else 7320 case $cross_compiling:$ac_tool_warned in 7321yes:) 7322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7324ac_tool_warned=yes ;; 7325esac 7326 DLLTOOL=$ac_ct_DLLTOOL 7327 fi 7328else 7329 DLLTOOL="$ac_cv_prog_DLLTOOL" 7330fi 7331 7332 if test -n "$ac_tool_prefix"; then 7333 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7334set dummy ${ac_tool_prefix}objdump; ac_word=$2 7335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7336$as_echo_n "checking for $ac_word... " >&6; } 7337if ${ac_cv_prog_OBJDUMP+:} false; then : 7338 $as_echo_n "(cached) " >&6 7339else 7340 if test -n "$OBJDUMP"; then 7341 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7342else 7343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7344for as_dir in $PATH 7345do 7346 IFS=$as_save_IFS 7347 test -z "$as_dir" && as_dir=. 7348 for ac_exec_ext in '' $ac_executable_extensions; do 7349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7350 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7352 break 2 7353 fi 7354done 7355 done 7356IFS=$as_save_IFS 7357 7358fi 7359fi 7360OBJDUMP=$ac_cv_prog_OBJDUMP 7361if test -n "$OBJDUMP"; then 7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7363$as_echo "$OBJDUMP" >&6; } 7364else 7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7366$as_echo "no" >&6; } 7367fi 7368 7369 7370fi 7371if test -z "$ac_cv_prog_OBJDUMP"; then 7372 ac_ct_OBJDUMP=$OBJDUMP 7373 # Extract the first word of "objdump", so it can be a program name with args. 7374set dummy objdump; ac_word=$2 7375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7376$as_echo_n "checking for $ac_word... " >&6; } 7377if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 7378 $as_echo_n "(cached) " >&6 7379else 7380 if test -n "$ac_ct_OBJDUMP"; then 7381 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7382else 7383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7384for as_dir in $PATH 7385do 7386 IFS=$as_save_IFS 7387 test -z "$as_dir" && as_dir=. 7388 for ac_exec_ext in '' $ac_executable_extensions; do 7389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7390 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7392 break 2 7393 fi 7394done 7395 done 7396IFS=$as_save_IFS 7397 7398fi 7399fi 7400ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7401if test -n "$ac_ct_OBJDUMP"; then 7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7403$as_echo "$ac_ct_OBJDUMP" >&6; } 7404else 7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7406$as_echo "no" >&6; } 7407fi 7408 7409 if test "x$ac_ct_OBJDUMP" = x; then 7410 OBJDUMP="false" 7411 else 7412 case $cross_compiling:$ac_tool_warned in 7413yes:) 7414{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7415$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7416ac_tool_warned=yes ;; 7417esac 7418 OBJDUMP=$ac_ct_OBJDUMP 7419 fi 7420else 7421 OBJDUMP="$ac_cv_prog_OBJDUMP" 7422fi 7423 7424 ;; 7425esac 7426 7427test -z "$AS" && AS=as 7428 7429 7430 7431 7432 7433test -z "$DLLTOOL" && DLLTOOL=dlltool 7434 7435 7436 7437 7438 7439test -z "$OBJDUMP" && OBJDUMP=objdump 7440 7441 7442 7443 7444 7445 7446 7447 enable_dlopen=no 7448 7449 7450 7451 # Check whether --enable-shared was given. 7452if test "${enable_shared+set}" = set; then : 7453 enableval=$enable_shared; p=${PACKAGE-default} 7454 case $enableval in 7455 yes) enable_shared=yes ;; 7456 no) enable_shared=no ;; 7457 *) 7458 enable_shared=no 7459 # Look at the argument we got. We use all the common list separators. 7460 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7461 for pkg in $enableval; do 7462 IFS="$lt_save_ifs" 7463 if test "X$pkg" = "X$p"; then 7464 enable_shared=yes 7465 fi 7466 done 7467 IFS="$lt_save_ifs" 7468 ;; 7469 esac 7470else 7471 enable_shared=yes 7472fi 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 # Check whether --enable-static was given. 7483if test "${enable_static+set}" = set; then : 7484 enableval=$enable_static; p=${PACKAGE-default} 7485 case $enableval in 7486 yes) enable_static=yes ;; 7487 no) enable_static=no ;; 7488 *) 7489 enable_static=no 7490 # Look at the argument we got. We use all the common list separators. 7491 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7492 for pkg in $enableval; do 7493 IFS="$lt_save_ifs" 7494 if test "X$pkg" = "X$p"; then 7495 enable_static=yes 7496 fi 7497 done 7498 IFS="$lt_save_ifs" 7499 ;; 7500 esac 7501else 7502 enable_static=yes 7503fi 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514# Check whether --with-pic was given. 7515if test "${with_pic+set}" = set; then : 7516 withval=$with_pic; lt_p=${PACKAGE-default} 7517 case $withval in 7518 yes|no) pic_mode=$withval ;; 7519 *) 7520 pic_mode=default 7521 # Look at the argument we got. We use all the common list separators. 7522 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7523 for lt_pkg in $withval; do 7524 IFS="$lt_save_ifs" 7525 if test "X$lt_pkg" = "X$lt_p"; then 7526 pic_mode=yes 7527 fi 7528 done 7529 IFS="$lt_save_ifs" 7530 ;; 7531 esac 7532else 7533 pic_mode=default 7534fi 7535 7536 7537test -z "$pic_mode" && pic_mode=default 7538 7539 7540 7541 7542 7543 7544 7545 # Check whether --enable-fast-install was given. 7546if test "${enable_fast_install+set}" = set; then : 7547 enableval=$enable_fast_install; p=${PACKAGE-default} 7548 case $enableval in 7549 yes) enable_fast_install=yes ;; 7550 no) enable_fast_install=no ;; 7551 *) 7552 enable_fast_install=no 7553 # Look at the argument we got. We use all the common list separators. 7554 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7555 for pkg in $enableval; do 7556 IFS="$lt_save_ifs" 7557 if test "X$pkg" = "X$p"; then 7558 enable_fast_install=yes 7559 fi 7560 done 7561 IFS="$lt_save_ifs" 7562 ;; 7563 esac 7564else 7565 enable_fast_install=yes 7566fi 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578# This can be used to rebuild libtool when needed 7579LIBTOOL_DEPS="$ltmain" 7580 7581# Always use our own libtool. 7582LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613test -z "$LN_S" && LN_S="ln -s" 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628if test -n "${ZSH_VERSION+set}" ; then 7629 setopt NO_GLOB_SUBST 7630fi 7631 7632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7633$as_echo_n "checking for objdir... " >&6; } 7634if ${lt_cv_objdir+:} false; then : 7635 $as_echo_n "(cached) " >&6 7636else 7637 rm -f .libs 2>/dev/null 7638mkdir .libs 2>/dev/null 7639if test -d .libs; then 7640 lt_cv_objdir=.libs 7641else 7642 # MS-DOS does not allow filenames that begin with a dot. 7643 lt_cv_objdir=_libs 7644fi 7645rmdir .libs 2>/dev/null 7646fi 7647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7648$as_echo "$lt_cv_objdir" >&6; } 7649objdir=$lt_cv_objdir 7650 7651 7652 7653 7654 7655cat >>confdefs.h <<_ACEOF 7656#define LT_OBJDIR "$lt_cv_objdir/" 7657_ACEOF 7658 7659 7660 7661 7662case $host_os in 7663aix3*) 7664 # AIX sometimes has problems with the GCC collect2 program. For some 7665 # reason, if we set the COLLECT_NAMES environment variable, the problems 7666 # vanish in a puff of smoke. 7667 if test "X${COLLECT_NAMES+set}" != Xset; then 7668 COLLECT_NAMES= 7669 export COLLECT_NAMES 7670 fi 7671 ;; 7672esac 7673 7674# Global variables: 7675ofile=libtool 7676can_build_shared=yes 7677 7678# All known linkers require a `.a' archive for static linking (except MSVC, 7679# which needs '.lib'). 7680libext=a 7681 7682with_gnu_ld="$lt_cv_prog_gnu_ld" 7683 7684old_CC="$CC" 7685old_CFLAGS="$CFLAGS" 7686 7687# Set sane defaults for various variables 7688test -z "$CC" && CC=cc 7689test -z "$LTCC" && LTCC=$CC 7690test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7691test -z "$LD" && LD=ld 7692test -z "$ac_objext" && ac_objext=o 7693 7694for cc_temp in $compiler""; do 7695 case $cc_temp in 7696 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7697 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7698 \-*) ;; 7699 *) break;; 7700 esac 7701done 7702cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7703 7704 7705# Only perform the check for file, if the check method requires it 7706test -z "$MAGIC_CMD" && MAGIC_CMD=file 7707case $deplibs_check_method in 7708file_magic*) 7709 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7711$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7712if ${lt_cv_path_MAGIC_CMD+:} false; then : 7713 $as_echo_n "(cached) " >&6 7714else 7715 case $MAGIC_CMD in 7716[\\/*] | ?:[\\/]*) 7717 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7718 ;; 7719*) 7720 lt_save_MAGIC_CMD="$MAGIC_CMD" 7721 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7722 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7723 for ac_dir in $ac_dummy; do 7724 IFS="$lt_save_ifs" 7725 test -z "$ac_dir" && ac_dir=. 7726 if test -f $ac_dir/${ac_tool_prefix}file; then 7727 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7728 if test -n "$file_magic_test_file"; then 7729 case $deplibs_check_method in 7730 "file_magic "*) 7731 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7732 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7733 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7734 $EGREP "$file_magic_regex" > /dev/null; then 7735 : 7736 else 7737 cat <<_LT_EOF 1>&2 7738 7739*** Warning: the command libtool uses to detect shared libraries, 7740*** $file_magic_cmd, produces output that libtool cannot recognize. 7741*** The result is that libtool may fail to recognize shared libraries 7742*** as such. This will affect the creation of libtool libraries that 7743*** depend on shared libraries, but programs linked with such libtool 7744*** libraries will work regardless of this problem. Nevertheless, you 7745*** may want to report the problem to your system manager and/or to 7746*** [email protected] 7747 7748_LT_EOF 7749 fi ;; 7750 esac 7751 fi 7752 break 7753 fi 7754 done 7755 IFS="$lt_save_ifs" 7756 MAGIC_CMD="$lt_save_MAGIC_CMD" 7757 ;; 7758esac 7759fi 7760 7761MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7762if test -n "$MAGIC_CMD"; then 7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7764$as_echo "$MAGIC_CMD" >&6; } 7765else 7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7767$as_echo "no" >&6; } 7768fi 7769 7770 7771 7772 7773 7774if test -z "$lt_cv_path_MAGIC_CMD"; then 7775 if test -n "$ac_tool_prefix"; then 7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7777$as_echo_n "checking for file... " >&6; } 7778if ${lt_cv_path_MAGIC_CMD+:} false; then : 7779 $as_echo_n "(cached) " >&6 7780else 7781 case $MAGIC_CMD in 7782[\\/*] | ?:[\\/]*) 7783 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7784 ;; 7785*) 7786 lt_save_MAGIC_CMD="$MAGIC_CMD" 7787 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7788 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7789 for ac_dir in $ac_dummy; do 7790 IFS="$lt_save_ifs" 7791 test -z "$ac_dir" && ac_dir=. 7792 if test -f $ac_dir/file; then 7793 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7794 if test -n "$file_magic_test_file"; then 7795 case $deplibs_check_method in 7796 "file_magic "*) 7797 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7798 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7799 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7800 $EGREP "$file_magic_regex" > /dev/null; then 7801 : 7802 else 7803 cat <<_LT_EOF 1>&2 7804 7805*** Warning: the command libtool uses to detect shared libraries, 7806*** $file_magic_cmd, produces output that libtool cannot recognize. 7807*** The result is that libtool may fail to recognize shared libraries 7808*** as such. This will affect the creation of libtool libraries that 7809*** depend on shared libraries, but programs linked with such libtool 7810*** libraries will work regardless of this problem. Nevertheless, you 7811*** may want to report the problem to your system manager and/or to 7812*** [email protected] 7813 7814_LT_EOF 7815 fi ;; 7816 esac 7817 fi 7818 break 7819 fi 7820 done 7821 IFS="$lt_save_ifs" 7822 MAGIC_CMD="$lt_save_MAGIC_CMD" 7823 ;; 7824esac 7825fi 7826 7827MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7828if test -n "$MAGIC_CMD"; then 7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7830$as_echo "$MAGIC_CMD" >&6; } 7831else 7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7833$as_echo "no" >&6; } 7834fi 7835 7836 7837 else 7838 MAGIC_CMD=: 7839 fi 7840fi 7841 7842 fi 7843 ;; 7844esac 7845 7846# Use C for the default configuration in the libtool script 7847 7848lt_save_CC="$CC" 7849ac_ext=c 7850ac_cpp='$CPP $CPPFLAGS' 7851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7853ac_compiler_gnu=$ac_cv_c_compiler_gnu 7854 7855 7856# Source file extension for C test sources. 7857ac_ext=c 7858 7859# Object file extension for compiled C test sources. 7860objext=o 7861objext=$objext 7862 7863# Code to be used in simple compile tests 7864lt_simple_compile_test_code="int some_variable = 0;" 7865 7866# Code to be used in simple link tests 7867lt_simple_link_test_code='int main(){return(0);}' 7868 7869 7870 7871 7872 7873 7874 7875# If no C compiler was specified, use CC. 7876LTCC=${LTCC-"$CC"} 7877 7878# If no C compiler flags were specified, use CFLAGS. 7879LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7880 7881# Allow CC to be a program name with arguments. 7882compiler=$CC 7883 7884# Save the default compiler, since it gets overwritten when the other 7885# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7886compiler_DEFAULT=$CC 7887 7888# save warnings/boilerplate of simple test code 7889ac_outfile=conftest.$ac_objext 7890echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7891eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7892_lt_compiler_boilerplate=`cat conftest.err` 7893$RM conftest* 7894 7895ac_outfile=conftest.$ac_objext 7896echo "$lt_simple_link_test_code" >conftest.$ac_ext 7897eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7898_lt_linker_boilerplate=`cat conftest.err` 7899$RM -r conftest* 7900 7901 7902## CAVEAT EMPTOR: 7903## There is no encapsulation within the following macros, do not change 7904## the running order or otherwise move them around unless you know exactly 7905## what you are doing... 7906if test -n "$compiler"; then 7907 7908lt_prog_compiler_no_builtin_flag= 7909 7910if test "$GCC" = yes; then 7911 case $cc_basename in 7912 nvcc*) 7913 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7914 *) 7915 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7916 esac 7917 7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7919$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7920if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7921 $as_echo_n "(cached) " >&6 7922else 7923 lt_cv_prog_compiler_rtti_exceptions=no 7924 ac_outfile=conftest.$ac_objext 7925 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7926 lt_compiler_flag="-fno-rtti -fno-exceptions" 7927 # Insert the option either (1) after the last *FLAGS variable, or 7928 # (2) before a word containing "conftest.", or (3) at the end. 7929 # Note that $ac_compile itself does not contain backslashes and begins 7930 # with a dollar sign (not a hyphen), so the echo should work correctly. 7931 # The option is referenced via a variable to avoid confusing sed. 7932 lt_compile=`echo "$ac_compile" | $SED \ 7933 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7934 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7935 -e 's:$: $lt_compiler_flag:'` 7936 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7937 (eval "$lt_compile" 2>conftest.err) 7938 ac_status=$? 7939 cat conftest.err >&5 7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7941 if (exit $ac_status) && test -s "$ac_outfile"; then 7942 # The compiler can only warn and ignore the option if not recognized 7943 # So say no if there are warnings other than the usual output. 7944 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7945 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7946 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7947 lt_cv_prog_compiler_rtti_exceptions=yes 7948 fi 7949 fi 7950 $RM conftest* 7951 7952fi 7953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7954$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7955 7956if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7957 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7958else 7959 : 7960fi 7961 7962fi 7963 7964 7965 7966 7967 7968 7969 lt_prog_compiler_wl= 7970lt_prog_compiler_pic= 7971lt_prog_compiler_static= 7972 7973 7974 if test "$GCC" = yes; then 7975 lt_prog_compiler_wl='-Wl,' 7976 lt_prog_compiler_static='-static' 7977 7978 case $host_os in 7979 aix*) 7980 # All AIX code is PIC. 7981 if test "$host_cpu" = ia64; then 7982 # AIX 5 now supports IA64 processor 7983 lt_prog_compiler_static='-Bstatic' 7984 fi 7985 ;; 7986 7987 amigaos*) 7988 case $host_cpu in 7989 powerpc) 7990 # see comment about AmigaOS4 .so support 7991 lt_prog_compiler_pic='-fPIC' 7992 ;; 7993 m68k) 7994 # FIXME: we need at least 68020 code to build shared libraries, but 7995 # adding the `-m68020' flag to GCC prevents building anything better, 7996 # like `-m68040'. 7997 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7998 ;; 7999 esac 8000 ;; 8001 8002 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8003 # PIC is the default for these OSes. 8004 ;; 8005 8006 mingw* | cygwin* | pw32* | os2* | cegcc*) 8007 # This hack is so that the source file can tell whether it is being 8008 # built for inclusion in a dll (and should export symbols for example). 8009 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8010 # (--disable-auto-import) libraries 8011 lt_prog_compiler_pic='-DDLL_EXPORT' 8012 ;; 8013 8014 darwin* | rhapsody*) 8015 # PIC is the default on this platform 8016 # Common symbols not allowed in MH_DYLIB files 8017 lt_prog_compiler_pic='-fno-common' 8018 ;; 8019 8020 haiku*) 8021 # PIC is the default for Haiku. 8022 # The "-static" flag exists, but is broken. 8023 lt_prog_compiler_static= 8024 ;; 8025 8026 hpux*) 8027 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8028 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8029 # sets the default TLS model and affects inlining. 8030 case $host_cpu in 8031 hppa*64*) 8032 # +Z the default 8033 ;; 8034 *) 8035 lt_prog_compiler_pic='-fPIC' 8036 ;; 8037 esac 8038 ;; 8039 8040 interix[3-9]*) 8041 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8042 # Instead, we relocate shared libraries at runtime. 8043 ;; 8044 8045 msdosdjgpp*) 8046 # Just because we use GCC doesn't mean we suddenly get shared libraries 8047 # on systems that don't support them. 8048 lt_prog_compiler_can_build_shared=no 8049 enable_shared=no 8050 ;; 8051 8052 *nto* | *qnx*) 8053 # QNX uses GNU C++, but need to define -shared option too, otherwise 8054 # it will coredump. 8055 lt_prog_compiler_pic='-fPIC -shared' 8056 ;; 8057 8058 sysv4*MP*) 8059 if test -d /usr/nec; then 8060 lt_prog_compiler_pic=-Kconform_pic 8061 fi 8062 ;; 8063 8064 *) 8065 lt_prog_compiler_pic='-fPIC' 8066 ;; 8067 esac 8068 8069 case $cc_basename in 8070 nvcc*) # Cuda Compiler Driver 2.2 8071 lt_prog_compiler_wl='-Xlinker ' 8072 if test -n "$lt_prog_compiler_pic"; then 8073 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8074 fi 8075 ;; 8076 esac 8077 else 8078 # PORTME Check for flag to pass linker flags through the system compiler. 8079 case $host_os in 8080 aix*) 8081 lt_prog_compiler_wl='-Wl,' 8082 if test "$host_cpu" = ia64; then 8083 # AIX 5 now supports IA64 processor 8084 lt_prog_compiler_static='-Bstatic' 8085 else 8086 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8087 fi 8088 ;; 8089 8090 mingw* | cygwin* | pw32* | os2* | cegcc*) 8091 # This hack is so that the source file can tell whether it is being 8092 # built for inclusion in a dll (and should export symbols for example). 8093 lt_prog_compiler_pic='-DDLL_EXPORT' 8094 ;; 8095 8096 hpux9* | hpux10* | hpux11*) 8097 lt_prog_compiler_wl='-Wl,' 8098 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8099 # not for PA HP-UX. 8100 case $host_cpu in 8101 hppa*64*|ia64*) 8102 # +Z the default 8103 ;; 8104 *) 8105 lt_prog_compiler_pic='+Z' 8106 ;; 8107 esac 8108 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8109 lt_prog_compiler_static='${wl}-a ${wl}archive' 8110 ;; 8111 8112 irix5* | irix6* | nonstopux*) 8113 lt_prog_compiler_wl='-Wl,' 8114 # PIC (with -KPIC) is the default. 8115 lt_prog_compiler_static='-non_shared' 8116 ;; 8117 8118 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8119 case $cc_basename in 8120 # old Intel for x86_64 which still supported -KPIC. 8121 ecc*) 8122 lt_prog_compiler_wl='-Wl,' 8123 lt_prog_compiler_pic='-KPIC' 8124 lt_prog_compiler_static='-static' 8125 ;; 8126 # icc used to be incompatible with GCC. 8127 # ICC 10 doesn't accept -KPIC any more. 8128 icc* | ifort*) 8129 lt_prog_compiler_wl='-Wl,' 8130 lt_prog_compiler_pic='-fPIC' 8131 lt_prog_compiler_static='-static' 8132 ;; 8133 # Lahey Fortran 8.1. 8134 lf95*) 8135 lt_prog_compiler_wl='-Wl,' 8136 lt_prog_compiler_pic='--shared' 8137 lt_prog_compiler_static='--static' 8138 ;; 8139 nagfor*) 8140 # NAG Fortran compiler 8141 lt_prog_compiler_wl='-Wl,-Wl,,' 8142 lt_prog_compiler_pic='-PIC' 8143 lt_prog_compiler_static='-Bstatic' 8144 ;; 8145 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8146 # Portland Group compilers (*not* the Pentium gcc compiler, 8147 # which looks to be a dead project) 8148 lt_prog_compiler_wl='-Wl,' 8149 lt_prog_compiler_pic='-fpic' 8150 lt_prog_compiler_static='-Bstatic' 8151 ;; 8152 ccc*) 8153 lt_prog_compiler_wl='-Wl,' 8154 # All Alpha code is PIC. 8155 lt_prog_compiler_static='-non_shared' 8156 ;; 8157 xl* | bgxl* | bgf* | mpixl*) 8158 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8159 lt_prog_compiler_wl='-Wl,' 8160 lt_prog_compiler_pic='-qpic' 8161 lt_prog_compiler_static='-qstaticlink' 8162 ;; 8163 *) 8164 case `$CC -V 2>&1 | sed 5q` in 8165 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8166 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8167 lt_prog_compiler_pic='-KPIC' 8168 lt_prog_compiler_static='-Bstatic' 8169 lt_prog_compiler_wl='' 8170 ;; 8171 *Sun\ F* | *Sun*Fortran*) 8172 lt_prog_compiler_pic='-KPIC' 8173 lt_prog_compiler_static='-Bstatic' 8174 lt_prog_compiler_wl='-Qoption ld ' 8175 ;; 8176 *Sun\ C*) 8177 # Sun C 5.9 8178 lt_prog_compiler_pic='-KPIC' 8179 lt_prog_compiler_static='-Bstatic' 8180 lt_prog_compiler_wl='-Wl,' 8181 ;; 8182 *Intel*\ [CF]*Compiler*) 8183 lt_prog_compiler_wl='-Wl,' 8184 lt_prog_compiler_pic='-fPIC' 8185 lt_prog_compiler_static='-static' 8186 ;; 8187 *Portland\ Group*) 8188 lt_prog_compiler_wl='-Wl,' 8189 lt_prog_compiler_pic='-fpic' 8190 lt_prog_compiler_static='-Bstatic' 8191 ;; 8192 esac 8193 ;; 8194 esac 8195 ;; 8196 8197 newsos6) 8198 lt_prog_compiler_pic='-KPIC' 8199 lt_prog_compiler_static='-Bstatic' 8200 ;; 8201 8202 *nto* | *qnx*) 8203 # QNX uses GNU C++, but need to define -shared option too, otherwise 8204 # it will coredump. 8205 lt_prog_compiler_pic='-fPIC -shared' 8206 ;; 8207 8208 osf3* | osf4* | osf5*) 8209 lt_prog_compiler_wl='-Wl,' 8210 # All OSF/1 code is PIC. 8211 lt_prog_compiler_static='-non_shared' 8212 ;; 8213 8214 rdos*) 8215 lt_prog_compiler_static='-non_shared' 8216 ;; 8217 8218 solaris*) 8219 lt_prog_compiler_pic='-KPIC' 8220 lt_prog_compiler_static='-Bstatic' 8221 case $cc_basename in 8222 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8223 lt_prog_compiler_wl='-Qoption ld ';; 8224 *) 8225 lt_prog_compiler_wl='-Wl,';; 8226 esac 8227 ;; 8228 8229 sunos4*) 8230 lt_prog_compiler_wl='-Qoption ld ' 8231 lt_prog_compiler_pic='-PIC' 8232 lt_prog_compiler_static='-Bstatic' 8233 ;; 8234 8235 sysv4 | sysv4.2uw2* | sysv4.3*) 8236 lt_prog_compiler_wl='-Wl,' 8237 lt_prog_compiler_pic='-KPIC' 8238 lt_prog_compiler_static='-Bstatic' 8239 ;; 8240 8241 sysv4*MP*) 8242 if test -d /usr/nec ;then 8243 lt_prog_compiler_pic='-Kconform_pic' 8244 lt_prog_compiler_static='-Bstatic' 8245 fi 8246 ;; 8247 8248 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8249 lt_prog_compiler_wl='-Wl,' 8250 lt_prog_compiler_pic='-KPIC' 8251 lt_prog_compiler_static='-Bstatic' 8252 ;; 8253 8254 unicos*) 8255 lt_prog_compiler_wl='-Wl,' 8256 lt_prog_compiler_can_build_shared=no 8257 ;; 8258 8259 uts4*) 8260 lt_prog_compiler_pic='-pic' 8261 lt_prog_compiler_static='-Bstatic' 8262 ;; 8263 8264 *) 8265 lt_prog_compiler_can_build_shared=no 8266 ;; 8267 esac 8268 fi 8269 8270case $host_os in 8271 # For platforms which do not support PIC, -DPIC is meaningless: 8272 *djgpp*) 8273 lt_prog_compiler_pic= 8274 ;; 8275 *) 8276 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8277 ;; 8278esac 8279 8280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8281$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8282if ${lt_cv_prog_compiler_pic+:} false; then : 8283 $as_echo_n "(cached) " >&6 8284else 8285 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8286fi 8287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8288$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8289lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8290 8291# 8292# Check to make sure the PIC flag actually works. 8293# 8294if test -n "$lt_prog_compiler_pic"; then 8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8296$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8297if ${lt_cv_prog_compiler_pic_works+:} false; then : 8298 $as_echo_n "(cached) " >&6 8299else 8300 lt_cv_prog_compiler_pic_works=no 8301 ac_outfile=conftest.$ac_objext 8302 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8303 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8304 # Insert the option either (1) after the last *FLAGS variable, or 8305 # (2) before a word containing "conftest.", or (3) at the end. 8306 # Note that $ac_compile itself does not contain backslashes and begins 8307 # with a dollar sign (not a hyphen), so the echo should work correctly. 8308 # The option is referenced via a variable to avoid confusing sed. 8309 lt_compile=`echo "$ac_compile" | $SED \ 8310 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8311 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8312 -e 's:$: $lt_compiler_flag:'` 8313 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8314 (eval "$lt_compile" 2>conftest.err) 8315 ac_status=$? 8316 cat conftest.err >&5 8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8318 if (exit $ac_status) && test -s "$ac_outfile"; then 8319 # The compiler can only warn and ignore the option if not recognized 8320 # So say no if there are warnings other than the usual output. 8321 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8322 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8323 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8324 lt_cv_prog_compiler_pic_works=yes 8325 fi 8326 fi 8327 $RM conftest* 8328 8329fi 8330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8331$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8332 8333if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8334 case $lt_prog_compiler_pic in 8335 "" | " "*) ;; 8336 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8337 esac 8338else 8339 lt_prog_compiler_pic= 8340 lt_prog_compiler_can_build_shared=no 8341fi 8342 8343fi 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355# 8356# Check to make sure the static flag actually works. 8357# 8358wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8360$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8361if ${lt_cv_prog_compiler_static_works+:} false; then : 8362 $as_echo_n "(cached) " >&6 8363else 8364 lt_cv_prog_compiler_static_works=no 8365 save_LDFLAGS="$LDFLAGS" 8366 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8367 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8368 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8369 # The linker can only warn and ignore the option if not recognized 8370 # So say no if there are warnings 8371 if test -s conftest.err; then 8372 # Append any errors to the config.log. 8373 cat conftest.err 1>&5 8374 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8375 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8376 if diff conftest.exp conftest.er2 >/dev/null; then 8377 lt_cv_prog_compiler_static_works=yes 8378 fi 8379 else 8380 lt_cv_prog_compiler_static_works=yes 8381 fi 8382 fi 8383 $RM -r conftest* 8384 LDFLAGS="$save_LDFLAGS" 8385 8386fi 8387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8388$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8389 8390if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8391 : 8392else 8393 lt_prog_compiler_static= 8394fi 8395 8396 8397 8398 8399 8400 8401 8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8403$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8404if ${lt_cv_prog_compiler_c_o+:} false; then : 8405 $as_echo_n "(cached) " >&6 8406else 8407 lt_cv_prog_compiler_c_o=no 8408 $RM -r conftest 2>/dev/null 8409 mkdir conftest 8410 cd conftest 8411 mkdir out 8412 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8413 8414 lt_compiler_flag="-o out/conftest2.$ac_objext" 8415 # Insert the option either (1) after the last *FLAGS variable, or 8416 # (2) before a word containing "conftest.", or (3) at the end. 8417 # Note that $ac_compile itself does not contain backslashes and begins 8418 # with a dollar sign (not a hyphen), so the echo should work correctly. 8419 lt_compile=`echo "$ac_compile" | $SED \ 8420 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8421 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8422 -e 's:$: $lt_compiler_flag:'` 8423 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8424 (eval "$lt_compile" 2>out/conftest.err) 8425 ac_status=$? 8426 cat out/conftest.err >&5 8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8428 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8429 then 8430 # The compiler can only warn and ignore the option if not recognized 8431 # So say no if there are warnings 8432 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8433 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8434 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8435 lt_cv_prog_compiler_c_o=yes 8436 fi 8437 fi 8438 chmod u+w . 2>&5 8439 $RM conftest* 8440 # SGI C++ compiler will create directory out/ii_files/ for 8441 # template instantiation 8442 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8443 $RM out/* && rmdir out 8444 cd .. 8445 $RM -r conftest 8446 $RM conftest* 8447 8448fi 8449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8450$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8451 8452 8453 8454 8455 8456 8457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8458$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8459if ${lt_cv_prog_compiler_c_o+:} false; then : 8460 $as_echo_n "(cached) " >&6 8461else 8462 lt_cv_prog_compiler_c_o=no 8463 $RM -r conftest 2>/dev/null 8464 mkdir conftest 8465 cd conftest 8466 mkdir out 8467 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8468 8469 lt_compiler_flag="-o out/conftest2.$ac_objext" 8470 # Insert the option either (1) after the last *FLAGS variable, or 8471 # (2) before a word containing "conftest.", or (3) at the end. 8472 # Note that $ac_compile itself does not contain backslashes and begins 8473 # with a dollar sign (not a hyphen), so the echo should work correctly. 8474 lt_compile=`echo "$ac_compile" | $SED \ 8475 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8477 -e 's:$: $lt_compiler_flag:'` 8478 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8479 (eval "$lt_compile" 2>out/conftest.err) 8480 ac_status=$? 8481 cat out/conftest.err >&5 8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8483 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8484 then 8485 # The compiler can only warn and ignore the option if not recognized 8486 # So say no if there are warnings 8487 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8488 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8489 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8490 lt_cv_prog_compiler_c_o=yes 8491 fi 8492 fi 8493 chmod u+w . 2>&5 8494 $RM conftest* 8495 # SGI C++ compiler will create directory out/ii_files/ for 8496 # template instantiation 8497 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8498 $RM out/* && rmdir out 8499 cd .. 8500 $RM -r conftest 8501 $RM conftest* 8502 8503fi 8504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8505$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8506 8507 8508 8509 8510hard_links="nottested" 8511if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8512 # do not overwrite the value of need_locks provided by the user 8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8514$as_echo_n "checking if we can lock with hard links... " >&6; } 8515 hard_links=yes 8516 $RM conftest* 8517 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8518 touch conftest.a 8519 ln conftest.a conftest.b 2>&5 || hard_links=no 8520 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8522$as_echo "$hard_links" >&6; } 8523 if test "$hard_links" = no; then 8524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8525$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8526 need_locks=warn 8527 fi 8528else 8529 need_locks=no 8530fi 8531 8532 8533 8534 8535 8536 8537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8538$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8539 8540 runpath_var= 8541 allow_undefined_flag= 8542 always_export_symbols=no 8543 archive_cmds= 8544 archive_expsym_cmds= 8545 compiler_needs_object=no 8546 enable_shared_with_static_runtimes=no 8547 export_dynamic_flag_spec= 8548 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8549 hardcode_automatic=no 8550 hardcode_direct=no 8551 hardcode_direct_absolute=no 8552 hardcode_libdir_flag_spec= 8553 hardcode_libdir_separator= 8554 hardcode_minus_L=no 8555 hardcode_shlibpath_var=unsupported 8556 inherit_rpath=no 8557 link_all_deplibs=unknown 8558 module_cmds= 8559 module_expsym_cmds= 8560 old_archive_from_new_cmds= 8561 old_archive_from_expsyms_cmds= 8562 thread_safe_flag_spec= 8563 whole_archive_flag_spec= 8564 # include_expsyms should be a list of space-separated symbols to be *always* 8565 # included in the symbol list 8566 include_expsyms= 8567 # exclude_expsyms can be an extended regexp of symbols to exclude 8568 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8569 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8570 # as well as any symbol that contains `d'. 8571 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8572 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8573 # platforms (ab)use it in PIC code, but their linkers get confused if 8574 # the symbol is explicitly referenced. Since portable code cannot 8575 # rely on this symbol name, it's probably fine to never include it in 8576 # preloaded symbol tables. 8577 # Exclude shared library initialization/finalization symbols. 8578 extract_expsyms_cmds= 8579 8580 case $host_os in 8581 cygwin* | mingw* | pw32* | cegcc*) 8582 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8583 # When not using gcc, we currently assume that we are using 8584 # Microsoft Visual C++. 8585 if test "$GCC" != yes; then 8586 with_gnu_ld=no 8587 fi 8588 ;; 8589 interix*) 8590 # we just hope/assume this is gcc and not c89 (= MSVC++) 8591 with_gnu_ld=yes 8592 ;; 8593 openbsd*) 8594 with_gnu_ld=no 8595 ;; 8596 esac 8597 8598 ld_shlibs=yes 8599 8600 # On some targets, GNU ld is compatible enough with the native linker 8601 # that we're better off using the native interface for both. 8602 lt_use_gnu_ld_interface=no 8603 if test "$with_gnu_ld" = yes; then 8604 case $host_os in 8605 aix*) 8606 # The AIX port of GNU ld has always aspired to compatibility 8607 # with the native linker. However, as the warning in the GNU ld 8608 # block says, versions before 2.19.5* couldn't really create working 8609 # shared libraries, regardless of the interface used. 8610 case `$LD -v 2>&1` in 8611 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8612 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8613 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8614 *) 8615 lt_use_gnu_ld_interface=yes 8616 ;; 8617 esac 8618 ;; 8619 *) 8620 lt_use_gnu_ld_interface=yes 8621 ;; 8622 esac 8623 fi 8624 8625 if test "$lt_use_gnu_ld_interface" = yes; then 8626 # If archive_cmds runs LD, not CC, wlarc should be empty 8627 wlarc='${wl}' 8628 8629 # Set some defaults for GNU ld with shared library support. These 8630 # are reset later if shared libraries are not supported. Putting them 8631 # here allows them to be overridden if necessary. 8632 runpath_var=LD_RUN_PATH 8633 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8634 export_dynamic_flag_spec='${wl}--export-dynamic' 8635 # ancient GNU ld didn't support --whole-archive et. al. 8636 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8637 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8638 else 8639 whole_archive_flag_spec= 8640 fi 8641 supports_anon_versioning=no 8642 case `$LD -v 2>&1` in 8643 *GNU\ gold*) supports_anon_versioning=yes ;; 8644 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8645 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8646 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8647 *\ 2.11.*) ;; # other 2.11 versions 8648 *) supports_anon_versioning=yes ;; 8649 esac 8650 8651 # See if GNU ld supports shared libraries. 8652 case $host_os in 8653 aix[3-9]*) 8654 # On AIX/PPC, the GNU linker is very broken 8655 if test "$host_cpu" != ia64; then 8656 ld_shlibs=no 8657 cat <<_LT_EOF 1>&2 8658 8659*** Warning: the GNU linker, at least up to release 2.19, is reported 8660*** to be unable to reliably create shared libraries on AIX. 8661*** Therefore, libtool is disabling shared libraries support. If you 8662*** really care for shared libraries, you may want to install binutils 8663*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8664*** You will then need to restart the configuration process. 8665 8666_LT_EOF 8667 fi 8668 ;; 8669 8670 amigaos*) 8671 case $host_cpu in 8672 powerpc) 8673 # see comment about AmigaOS4 .so support 8674 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8675 archive_expsym_cmds='' 8676 ;; 8677 m68k) 8678 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)' 8679 hardcode_libdir_flag_spec='-L$libdir' 8680 hardcode_minus_L=yes 8681 ;; 8682 esac 8683 ;; 8684 8685 beos*) 8686 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8687 allow_undefined_flag=unsupported 8688 # Joseph Beckenbach <[email protected]> says some releases of gcc 8689 # support --undefined. This deserves some investigation. FIXME 8690 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8691 else 8692 ld_shlibs=no 8693 fi 8694 ;; 8695 8696 cygwin* | mingw* | pw32* | cegcc*) 8697 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8698 # as there is no search path for DLLs. 8699 hardcode_libdir_flag_spec='-L$libdir' 8700 export_dynamic_flag_spec='${wl}--export-all-symbols' 8701 allow_undefined_flag=unsupported 8702 always_export_symbols=no 8703 enable_shared_with_static_runtimes=yes 8704 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' 8705 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8706 8707 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8708 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8709 # If the export-symbols file already is a .def file (1st line 8710 # is EXPORTS), use it as is; otherwise, prepend... 8711 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8712 cp $export_symbols $output_objdir/$soname.def; 8713 else 8714 echo EXPORTS > $output_objdir/$soname.def; 8715 cat $export_symbols >> $output_objdir/$soname.def; 8716 fi~ 8717 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8718 else 8719 ld_shlibs=no 8720 fi 8721 ;; 8722 8723 haiku*) 8724 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8725 link_all_deplibs=yes 8726 ;; 8727 8728 interix[3-9]*) 8729 hardcode_direct=no 8730 hardcode_shlibpath_var=no 8731 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8732 export_dynamic_flag_spec='${wl}-E' 8733 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8734 # Instead, shared libraries are loaded at an image base (0x10000000 by 8735 # default) and relocated if they conflict, which is a slow very memory 8736 # consuming and fragmenting process. To avoid this, we pick a random, 8737 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8738 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8739 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8740 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' 8741 ;; 8742 8743 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8744 tmp_diet=no 8745 if test "$host_os" = linux-dietlibc; then 8746 case $cc_basename in 8747 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8748 esac 8749 fi 8750 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8751 && test "$tmp_diet" = no 8752 then 8753 tmp_addflag=' $pic_flag' 8754 tmp_sharedflag='-shared' 8755 case $cc_basename,$host_cpu in 8756 pgcc*) # Portland Group C compiler 8757 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' 8758 tmp_addflag=' $pic_flag' 8759 ;; 8760 pgf77* | pgf90* | pgf95* | pgfortran*) 8761 # Portland Group f77 and f90 compilers 8762 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' 8763 tmp_addflag=' $pic_flag -Mnomain' ;; 8764 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8765 tmp_addflag=' -i_dynamic' ;; 8766 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8767 tmp_addflag=' -i_dynamic -nofor_main' ;; 8768 ifc* | ifort*) # Intel Fortran compiler 8769 tmp_addflag=' -nofor_main' ;; 8770 lf95*) # Lahey Fortran 8.1 8771 whole_archive_flag_spec= 8772 tmp_sharedflag='--shared' ;; 8773 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8774 tmp_sharedflag='-qmkshrobj' 8775 tmp_addflag= ;; 8776 nvcc*) # Cuda Compiler Driver 2.2 8777 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' 8778 compiler_needs_object=yes 8779 ;; 8780 esac 8781 case `$CC -V 2>&1 | sed 5q` in 8782 *Sun\ C*) # Sun C 5.9 8783 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' 8784 compiler_needs_object=yes 8785 tmp_sharedflag='-G' ;; 8786 *Sun\ F*) # Sun Fortran 8.3 8787 tmp_sharedflag='-G' ;; 8788 esac 8789 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8790 8791 if test "x$supports_anon_versioning" = xyes; then 8792 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8793 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8794 echo "local: *; };" >> $output_objdir/$libname.ver~ 8795 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8796 fi 8797 8798 case $cc_basename in 8799 xlf* | bgf* | bgxlf* | mpixlf*) 8800 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8801 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8802 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8803 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8804 if test "x$supports_anon_versioning" = xyes; then 8805 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8806 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8807 echo "local: *; };" >> $output_objdir/$libname.ver~ 8808 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8809 fi 8810 ;; 8811 esac 8812 else 8813 ld_shlibs=no 8814 fi 8815 ;; 8816 8817 netbsd*) 8818 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8819 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8820 wlarc= 8821 else 8822 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8823 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8824 fi 8825 ;; 8826 8827 solaris*) 8828 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8829 ld_shlibs=no 8830 cat <<_LT_EOF 1>&2 8831 8832*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8833*** create shared libraries on Solaris systems. Therefore, libtool 8834*** is disabling shared libraries support. We urge you to upgrade GNU 8835*** binutils to release 2.9.1 or newer. Another option is to modify 8836*** your PATH or compiler configuration so that the native linker is 8837*** used, and then restart. 8838 8839_LT_EOF 8840 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8841 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8842 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8843 else 8844 ld_shlibs=no 8845 fi 8846 ;; 8847 8848 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8849 case `$LD -v 2>&1` in 8850 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8851 ld_shlibs=no 8852 cat <<_LT_EOF 1>&2 8853 8854*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8855*** reliably create shared libraries on SCO systems. Therefore, libtool 8856*** is disabling shared libraries support. We urge you to upgrade GNU 8857*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8858*** your PATH or compiler configuration so that the native linker is 8859*** used, and then restart. 8860 8861_LT_EOF 8862 ;; 8863 *) 8864 # For security reasons, it is highly recommended that you always 8865 # use absolute paths for naming shared libraries, and exclude the 8866 # DT_RUNPATH tag from executables and libraries. But doing so 8867 # requires that you compile everything twice, which is a pain. 8868 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8869 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8870 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8871 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8872 else 8873 ld_shlibs=no 8874 fi 8875 ;; 8876 esac 8877 ;; 8878 8879 sunos4*) 8880 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8881 wlarc= 8882 hardcode_direct=yes 8883 hardcode_shlibpath_var=no 8884 ;; 8885 8886 *) 8887 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8888 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8889 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8890 else 8891 ld_shlibs=no 8892 fi 8893 ;; 8894 esac 8895 8896 if test "$ld_shlibs" = no; then 8897 runpath_var= 8898 hardcode_libdir_flag_spec= 8899 export_dynamic_flag_spec= 8900 whole_archive_flag_spec= 8901 fi 8902 else 8903 # PORTME fill in a description of your system's linker (not GNU ld) 8904 case $host_os in 8905 aix3*) 8906 allow_undefined_flag=unsupported 8907 always_export_symbols=yes 8908 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' 8909 # Note: this linker hardcodes the directories in LIBPATH if there 8910 # are no directories specified by -L. 8911 hardcode_minus_L=yes 8912 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8913 # Neither direct hardcoding nor static linking is supported with a 8914 # broken collect2. 8915 hardcode_direct=unsupported 8916 fi 8917 ;; 8918 8919 aix[4-9]*) 8920 if test "$host_cpu" = ia64; then 8921 # On IA64, the linker does run time linking by default, so we don't 8922 # have to do anything special. 8923 aix_use_runtimelinking=no 8924 exp_sym_flag='-Bexport' 8925 no_entry_flag="" 8926 else 8927 # If we're using GNU nm, then we don't want the "-C" option. 8928 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8929 # Also, AIX nm treats weak defined symbols like other global 8930 # defined symbols, whereas GNU nm marks them as "W". 8931 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8932 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8933 else 8934 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8935 fi 8936 aix_use_runtimelinking=no 8937 8938 # Test if we are trying to use run time linking or normal 8939 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8940 # need to do runtime linking. 8941 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8942 for ld_flag in $LDFLAGS; do 8943 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8944 aix_use_runtimelinking=yes 8945 break 8946 fi 8947 done 8948 ;; 8949 esac 8950 8951 exp_sym_flag='-bexport' 8952 no_entry_flag='-bnoentry' 8953 fi 8954 8955 # When large executables or shared objects are built, AIX ld can 8956 # have problems creating the table of contents. If linking a library 8957 # or program results in "error TOC overflow" add -mminimal-toc to 8958 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8959 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8960 8961 archive_cmds='' 8962 hardcode_direct=yes 8963 hardcode_direct_absolute=yes 8964 hardcode_libdir_separator=':' 8965 link_all_deplibs=yes 8966 file_list_spec='${wl}-f,' 8967 8968 if test "$GCC" = yes; then 8969 case $host_os in aix4.[012]|aix4.[012].*) 8970 # We only want to do this on AIX 4.2 and lower, the check 8971 # below for broken collect2 doesn't work under 4.3+ 8972 collect2name=`${CC} -print-prog-name=collect2` 8973 if test -f "$collect2name" && 8974 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8975 then 8976 # We have reworked collect2 8977 : 8978 else 8979 # We have old collect2 8980 hardcode_direct=unsupported 8981 # It fails to find uninstalled libraries when the uninstalled 8982 # path is not listed in the libpath. Setting hardcode_minus_L 8983 # to unsupported forces relinking 8984 hardcode_minus_L=yes 8985 hardcode_libdir_flag_spec='-L$libdir' 8986 hardcode_libdir_separator= 8987 fi 8988 ;; 8989 esac 8990 shared_flag='-shared' 8991 if test "$aix_use_runtimelinking" = yes; then 8992 shared_flag="$shared_flag "'${wl}-G' 8993 fi 8994 else 8995 # not using gcc 8996 if test "$host_cpu" = ia64; then 8997 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8998 # chokes on -Wl,-G. The following line is correct: 8999 shared_flag='-G' 9000 else 9001 if test "$aix_use_runtimelinking" = yes; then 9002 shared_flag='${wl}-G' 9003 else 9004 shared_flag='${wl}-bM:SRE' 9005 fi 9006 fi 9007 fi 9008 9009 export_dynamic_flag_spec='${wl}-bexpall' 9010 # It seems that -bexpall does not export symbols beginning with 9011 # underscore (_), so it is better to generate a list of symbols to export. 9012 always_export_symbols=yes 9013 if test "$aix_use_runtimelinking" = yes; then 9014 # Warning - without using the other runtime loading flags (-brtl), 9015 # -berok will link without error, but may produce a broken library. 9016 allow_undefined_flag='-berok' 9017 # Determine the default libpath from the value encoded in an 9018 # empty executable. 9019 if test "${lt_cv_aix_libpath+set}" = set; then 9020 aix_libpath=$lt_cv_aix_libpath 9021else 9022 if ${lt_cv_aix_libpath_+:} false; then : 9023 $as_echo_n "(cached) " >&6 9024else 9025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9026/* end confdefs.h. */ 9027 9028int 9029main () 9030{ 9031 9032 ; 9033 return 0; 9034} 9035_ACEOF 9036if ac_fn_c_try_link "$LINENO"; then : 9037 9038 lt_aix_libpath_sed=' 9039 /Import File Strings/,/^$/ { 9040 /^0/ { 9041 s/^0 *\([^ ]*\) *$/\1/ 9042 p 9043 } 9044 }' 9045 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9046 # Check for a 64-bit object if we didn't find anything. 9047 if test -z "$lt_cv_aix_libpath_"; then 9048 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9049 fi 9050fi 9051rm -f core conftest.err conftest.$ac_objext \ 9052 conftest$ac_exeext conftest.$ac_ext 9053 if test -z "$lt_cv_aix_libpath_"; then 9054 lt_cv_aix_libpath_="/usr/lib:/lib" 9055 fi 9056 9057fi 9058 9059 aix_libpath=$lt_cv_aix_libpath_ 9060fi 9061 9062 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9063 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9064 else 9065 if test "$host_cpu" = ia64; then 9066 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9067 allow_undefined_flag="-z nodefs" 9068 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" 9069 else 9070 # Determine the default libpath from the value encoded in an 9071 # empty executable. 9072 if test "${lt_cv_aix_libpath+set}" = set; then 9073 aix_libpath=$lt_cv_aix_libpath 9074else 9075 if ${lt_cv_aix_libpath_+:} false; then : 9076 $as_echo_n "(cached) " >&6 9077else 9078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9079/* end confdefs.h. */ 9080 9081int 9082main () 9083{ 9084 9085 ; 9086 return 0; 9087} 9088_ACEOF 9089if ac_fn_c_try_link "$LINENO"; then : 9090 9091 lt_aix_libpath_sed=' 9092 /Import File Strings/,/^$/ { 9093 /^0/ { 9094 s/^0 *\([^ ]*\) *$/\1/ 9095 p 9096 } 9097 }' 9098 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9099 # Check for a 64-bit object if we didn't find anything. 9100 if test -z "$lt_cv_aix_libpath_"; then 9101 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9102 fi 9103fi 9104rm -f core conftest.err conftest.$ac_objext \ 9105 conftest$ac_exeext conftest.$ac_ext 9106 if test -z "$lt_cv_aix_libpath_"; then 9107 lt_cv_aix_libpath_="/usr/lib:/lib" 9108 fi 9109 9110fi 9111 9112 aix_libpath=$lt_cv_aix_libpath_ 9113fi 9114 9115 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9116 # Warning - without using the other run time loading flags, 9117 # -berok will link without error, but may produce a broken library. 9118 no_undefined_flag=' ${wl}-bernotok' 9119 allow_undefined_flag=' ${wl}-berok' 9120 if test "$with_gnu_ld" = yes; then 9121 # We only use this code for GNU lds that support --whole-archive. 9122 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9123 else 9124 # Exported symbols can be pulled into shared objects from archives 9125 whole_archive_flag_spec='$convenience' 9126 fi 9127 archive_cmds_need_lc=yes 9128 # This is similar to how AIX traditionally builds its shared libraries. 9129 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9130 fi 9131 fi 9132 ;; 9133 9134 amigaos*) 9135 case $host_cpu in 9136 powerpc) 9137 # see comment about AmigaOS4 .so support 9138 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9139 archive_expsym_cmds='' 9140 ;; 9141 m68k) 9142 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)' 9143 hardcode_libdir_flag_spec='-L$libdir' 9144 hardcode_minus_L=yes 9145 ;; 9146 esac 9147 ;; 9148 9149 bsdi[45]*) 9150 export_dynamic_flag_spec=-rdynamic 9151 ;; 9152 9153 cygwin* | mingw* | pw32* | cegcc*) 9154 # When not using gcc, we currently assume that we are using 9155 # Microsoft Visual C++. 9156 # hardcode_libdir_flag_spec is actually meaningless, as there is 9157 # no search path for DLLs. 9158 case $cc_basename in 9159 cl*) 9160 # Native MSVC 9161 hardcode_libdir_flag_spec=' ' 9162 allow_undefined_flag=unsupported 9163 always_export_symbols=yes 9164 file_list_spec='@' 9165 # Tell ltmain to make .lib files, not .a files. 9166 libext=lib 9167 # Tell ltmain to make .dll files, not .so files. 9168 shrext_cmds=".dll" 9169 # FIXME: Setting linknames here is a bad hack. 9170 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9171 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9172 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9173 else 9174 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9175 fi~ 9176 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9177 linknames=' 9178 # The linker will not automatically build a static lib if we build a DLL. 9179 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9180 enable_shared_with_static_runtimes=yes 9181 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9182 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9183 # Don't use ranlib 9184 old_postinstall_cmds='chmod 644 $oldlib' 9185 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9186 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9187 case $lt_outputfile in 9188 *.exe|*.EXE) ;; 9189 *) 9190 lt_outputfile="$lt_outputfile.exe" 9191 lt_tool_outputfile="$lt_tool_outputfile.exe" 9192 ;; 9193 esac~ 9194 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9195 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9196 $RM "$lt_outputfile.manifest"; 9197 fi' 9198 ;; 9199 *) 9200 # Assume MSVC wrapper 9201 hardcode_libdir_flag_spec=' ' 9202 allow_undefined_flag=unsupported 9203 # Tell ltmain to make .lib files, not .a files. 9204 libext=lib 9205 # Tell ltmain to make .dll files, not .so files. 9206 shrext_cmds=".dll" 9207 # FIXME: Setting linknames here is a bad hack. 9208 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9209 # The linker will automatically build a .lib file if we build a DLL. 9210 old_archive_from_new_cmds='true' 9211 # FIXME: Should let the user specify the lib program. 9212 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9213 enable_shared_with_static_runtimes=yes 9214 ;; 9215 esac 9216 ;; 9217 9218 darwin* | rhapsody*) 9219 9220 9221 archive_cmds_need_lc=no 9222 hardcode_direct=no 9223 hardcode_automatic=yes 9224 hardcode_shlibpath_var=unsupported 9225 if test "$lt_cv_ld_force_load" = "yes"; then 9226 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\"`' 9227 9228 else 9229 whole_archive_flag_spec='' 9230 fi 9231 link_all_deplibs=yes 9232 allow_undefined_flag="$_lt_dar_allow_undefined" 9233 case $cc_basename in 9234 ifort*) _lt_dar_can_shared=yes ;; 9235 *) _lt_dar_can_shared=$GCC ;; 9236 esac 9237 if test "$_lt_dar_can_shared" = "yes"; then 9238 output_verbose_link_cmd=func_echo_all 9239 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9240 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9241 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}" 9242 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}" 9243 9244 else 9245 ld_shlibs=no 9246 fi 9247 9248 ;; 9249 9250 dgux*) 9251 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9252 hardcode_libdir_flag_spec='-L$libdir' 9253 hardcode_shlibpath_var=no 9254 ;; 9255 9256 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9257 # support. Future versions do this automatically, but an explicit c++rt0.o 9258 # does not break anything, and helps significantly (at the cost of a little 9259 # extra space). 9260 freebsd2.2*) 9261 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9262 hardcode_libdir_flag_spec='-R$libdir' 9263 hardcode_direct=yes 9264 hardcode_shlibpath_var=no 9265 ;; 9266 9267 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9268 freebsd2.*) 9269 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9270 hardcode_direct=yes 9271 hardcode_minus_L=yes 9272 hardcode_shlibpath_var=no 9273 ;; 9274 9275 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9276 freebsd* | dragonfly*) 9277 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9278 hardcode_libdir_flag_spec='-R$libdir' 9279 hardcode_direct=yes 9280 hardcode_shlibpath_var=no 9281 ;; 9282 9283 hpux9*) 9284 if test "$GCC" = yes; then 9285 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9286 else 9287 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9288 fi 9289 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9290 hardcode_libdir_separator=: 9291 hardcode_direct=yes 9292 9293 # hardcode_minus_L: Not really in the search PATH, 9294 # but as the default location of the library. 9295 hardcode_minus_L=yes 9296 export_dynamic_flag_spec='${wl}-E' 9297 ;; 9298 9299 hpux10*) 9300 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9301 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9302 else 9303 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9304 fi 9305 if test "$with_gnu_ld" = no; then 9306 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9307 hardcode_libdir_separator=: 9308 hardcode_direct=yes 9309 hardcode_direct_absolute=yes 9310 export_dynamic_flag_spec='${wl}-E' 9311 # hardcode_minus_L: Not really in the search PATH, 9312 # but as the default location of the library. 9313 hardcode_minus_L=yes 9314 fi 9315 ;; 9316 9317 hpux11*) 9318 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9319 case $host_cpu in 9320 hppa*64*) 9321 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9322 ;; 9323 ia64*) 9324 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9325 ;; 9326 *) 9327 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9328 ;; 9329 esac 9330 else 9331 case $host_cpu in 9332 hppa*64*) 9333 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9334 ;; 9335 ia64*) 9336 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9337 ;; 9338 *) 9339 9340 # Older versions of the 11.00 compiler do not understand -b yet 9341 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9343$as_echo_n "checking if $CC understands -b... " >&6; } 9344if ${lt_cv_prog_compiler__b+:} false; then : 9345 $as_echo_n "(cached) " >&6 9346else 9347 lt_cv_prog_compiler__b=no 9348 save_LDFLAGS="$LDFLAGS" 9349 LDFLAGS="$LDFLAGS -b" 9350 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9351 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9352 # The linker can only warn and ignore the option if not recognized 9353 # So say no if there are warnings 9354 if test -s conftest.err; then 9355 # Append any errors to the config.log. 9356 cat conftest.err 1>&5 9357 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9358 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9359 if diff conftest.exp conftest.er2 >/dev/null; then 9360 lt_cv_prog_compiler__b=yes 9361 fi 9362 else 9363 lt_cv_prog_compiler__b=yes 9364 fi 9365 fi 9366 $RM -r conftest* 9367 LDFLAGS="$save_LDFLAGS" 9368 9369fi 9370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9371$as_echo "$lt_cv_prog_compiler__b" >&6; } 9372 9373if test x"$lt_cv_prog_compiler__b" = xyes; then 9374 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9375else 9376 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9377fi 9378 9379 ;; 9380 esac 9381 fi 9382 if test "$with_gnu_ld" = no; then 9383 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9384 hardcode_libdir_separator=: 9385 9386 case $host_cpu in 9387 hppa*64*|ia64*) 9388 hardcode_direct=no 9389 hardcode_shlibpath_var=no 9390 ;; 9391 *) 9392 hardcode_direct=yes 9393 hardcode_direct_absolute=yes 9394 export_dynamic_flag_spec='${wl}-E' 9395 9396 # hardcode_minus_L: Not really in the search PATH, 9397 # but as the default location of the library. 9398 hardcode_minus_L=yes 9399 ;; 9400 esac 9401 fi 9402 ;; 9403 9404 irix5* | irix6* | nonstopux*) 9405 if test "$GCC" = yes; then 9406 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' 9407 # Try to use the -exported_symbol ld option, if it does not 9408 # work, assume that -exports_file does not work either and 9409 # implicitly export all symbols. 9410 # This should be the same for all languages, so no per-tag cache variable. 9411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9412$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9413if ${lt_cv_irix_exported_symbol+:} false; then : 9414 $as_echo_n "(cached) " >&6 9415else 9416 save_LDFLAGS="$LDFLAGS" 9417 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9419/* end confdefs.h. */ 9420int foo (void) { return 0; } 9421_ACEOF 9422if ac_fn_c_try_link "$LINENO"; then : 9423 lt_cv_irix_exported_symbol=yes 9424else 9425 lt_cv_irix_exported_symbol=no 9426fi 9427rm -f core conftest.err conftest.$ac_objext \ 9428 conftest$ac_exeext conftest.$ac_ext 9429 LDFLAGS="$save_LDFLAGS" 9430fi 9431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9432$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9433 if test "$lt_cv_irix_exported_symbol" = yes; then 9434 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' 9435 fi 9436 else 9437 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' 9438 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' 9439 fi 9440 archive_cmds_need_lc='no' 9441 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9442 hardcode_libdir_separator=: 9443 inherit_rpath=yes 9444 link_all_deplibs=yes 9445 ;; 9446 9447 netbsd*) 9448 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9449 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9450 else 9451 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9452 fi 9453 hardcode_libdir_flag_spec='-R$libdir' 9454 hardcode_direct=yes 9455 hardcode_shlibpath_var=no 9456 ;; 9457 9458 newsos6) 9459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9460 hardcode_direct=yes 9461 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9462 hardcode_libdir_separator=: 9463 hardcode_shlibpath_var=no 9464 ;; 9465 9466 *nto* | *qnx*) 9467 ;; 9468 9469 openbsd*) 9470 if test -f /usr/libexec/ld.so; then 9471 hardcode_direct=yes 9472 hardcode_shlibpath_var=no 9473 hardcode_direct_absolute=yes 9474 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9475 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9476 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9477 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9478 export_dynamic_flag_spec='${wl}-E' 9479 else 9480 case $host_os in 9481 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9482 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9483 hardcode_libdir_flag_spec='-R$libdir' 9484 ;; 9485 *) 9486 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9487 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9488 ;; 9489 esac 9490 fi 9491 else 9492 ld_shlibs=no 9493 fi 9494 ;; 9495 9496 os2*) 9497 hardcode_libdir_flag_spec='-L$libdir' 9498 hardcode_minus_L=yes 9499 allow_undefined_flag=unsupported 9500 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 9501 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9502 ;; 9503 9504 osf3*) 9505 if test "$GCC" = yes; then 9506 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9507 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' 9508 else 9509 allow_undefined_flag=' -expect_unresolved \*' 9510 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' 9511 fi 9512 archive_cmds_need_lc='no' 9513 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9514 hardcode_libdir_separator=: 9515 ;; 9516 9517 osf4* | osf5*) # as osf3* with the addition of -msym flag 9518 if test "$GCC" = yes; then 9519 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9520 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' 9521 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9522 else 9523 allow_undefined_flag=' -expect_unresolved \*' 9524 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' 9525 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~ 9526 $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' 9527 9528 # Both c and cxx compiler support -rpath directly 9529 hardcode_libdir_flag_spec='-rpath $libdir' 9530 fi 9531 archive_cmds_need_lc='no' 9532 hardcode_libdir_separator=: 9533 ;; 9534 9535 solaris*) 9536 no_undefined_flag=' -z defs' 9537 if test "$GCC" = yes; then 9538 wlarc='${wl}' 9539 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9540 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9541 $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' 9542 else 9543 case `$CC -V 2>&1` in 9544 *"Compilers 5.0"*) 9545 wlarc='' 9546 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9547 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9548 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9549 ;; 9550 *) 9551 wlarc='${wl}' 9552 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9553 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9554 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9555 ;; 9556 esac 9557 fi 9558 hardcode_libdir_flag_spec='-R$libdir' 9559 hardcode_shlibpath_var=no 9560 case $host_os in 9561 solaris2.[0-5] | solaris2.[0-5].*) ;; 9562 *) 9563 # The compiler driver will combine and reorder linker options, 9564 # but understands `-z linker_flag'. GCC discards it without `$wl', 9565 # but is careful enough not to reorder. 9566 # Supported since Solaris 2.6 (maybe 2.5.1?) 9567 if test "$GCC" = yes; then 9568 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9569 else 9570 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9571 fi 9572 ;; 9573 esac 9574 link_all_deplibs=yes 9575 ;; 9576 9577 sunos4*) 9578 if test "x$host_vendor" = xsequent; then 9579 # Use $CC to link under sequent, because it throws in some extra .o 9580 # files that make .init and .fini sections work. 9581 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9582 else 9583 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9584 fi 9585 hardcode_libdir_flag_spec='-L$libdir' 9586 hardcode_direct=yes 9587 hardcode_minus_L=yes 9588 hardcode_shlibpath_var=no 9589 ;; 9590 9591 sysv4) 9592 case $host_vendor in 9593 sni) 9594 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9595 hardcode_direct=yes # is this really true??? 9596 ;; 9597 siemens) 9598 ## LD is ld it makes a PLAMLIB 9599 ## CC just makes a GrossModule. 9600 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9601 reload_cmds='$CC -r -o $output$reload_objs' 9602 hardcode_direct=no 9603 ;; 9604 motorola) 9605 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9606 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9607 ;; 9608 esac 9609 runpath_var='LD_RUN_PATH' 9610 hardcode_shlibpath_var=no 9611 ;; 9612 9613 sysv4.3*) 9614 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9615 hardcode_shlibpath_var=no 9616 export_dynamic_flag_spec='-Bexport' 9617 ;; 9618 9619 sysv4*MP*) 9620 if test -d /usr/nec; then 9621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9622 hardcode_shlibpath_var=no 9623 runpath_var=LD_RUN_PATH 9624 hardcode_runpath_var=yes 9625 ld_shlibs=yes 9626 fi 9627 ;; 9628 9629 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9630 no_undefined_flag='${wl}-z,text' 9631 archive_cmds_need_lc=no 9632 hardcode_shlibpath_var=no 9633 runpath_var='LD_RUN_PATH' 9634 9635 if test "$GCC" = yes; then 9636 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9637 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9638 else 9639 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9640 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9641 fi 9642 ;; 9643 9644 sysv5* | sco3.2v5* | sco5v6*) 9645 # Note: We can NOT use -z defs as we might desire, because we do not 9646 # link with -lc, and that would cause any symbols used from libc to 9647 # always be unresolved, which means just about no library would 9648 # ever link correctly. If we're not using GNU ld we use -z text 9649 # though, which does catch some bad symbols but isn't as heavy-handed 9650 # as -z defs. 9651 no_undefined_flag='${wl}-z,text' 9652 allow_undefined_flag='${wl}-z,nodefs' 9653 archive_cmds_need_lc=no 9654 hardcode_shlibpath_var=no 9655 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9656 hardcode_libdir_separator=':' 9657 link_all_deplibs=yes 9658 export_dynamic_flag_spec='${wl}-Bexport' 9659 runpath_var='LD_RUN_PATH' 9660 9661 if test "$GCC" = yes; then 9662 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9663 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9664 else 9665 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9666 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9667 fi 9668 ;; 9669 9670 uts4*) 9671 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9672 hardcode_libdir_flag_spec='-L$libdir' 9673 hardcode_shlibpath_var=no 9674 ;; 9675 9676 *) 9677 ld_shlibs=no 9678 ;; 9679 esac 9680 9681 if test x$host_vendor = xsni; then 9682 case $host in 9683 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9684 export_dynamic_flag_spec='${wl}-Blargedynsym' 9685 ;; 9686 esac 9687 fi 9688 fi 9689 9690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9691$as_echo "$ld_shlibs" >&6; } 9692test "$ld_shlibs" = no && can_build_shared=no 9693 9694with_gnu_ld=$with_gnu_ld 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710# 9711# Do we need to explicitly link libc? 9712# 9713case "x$archive_cmds_need_lc" in 9714x|xyes) 9715 # Assume -lc should be added 9716 archive_cmds_need_lc=yes 9717 9718 if test "$enable_shared" = yes && test "$GCC" = yes; then 9719 case $archive_cmds in 9720 *'~'*) 9721 # FIXME: we may have to deal with multi-command sequences. 9722 ;; 9723 '$CC '*) 9724 # Test whether the compiler implicitly links with -lc since on some 9725 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9726 # to ld, don't add -lc before -lgcc. 9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9728$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9729if ${lt_cv_archive_cmds_need_lc+:} false; then : 9730 $as_echo_n "(cached) " >&6 9731else 9732 $RM conftest* 9733 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9734 9735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9736 (eval $ac_compile) 2>&5 9737 ac_status=$? 9738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9739 test $ac_status = 0; } 2>conftest.err; then 9740 soname=conftest 9741 lib=conftest 9742 libobjs=conftest.$ac_objext 9743 deplibs= 9744 wl=$lt_prog_compiler_wl 9745 pic_flag=$lt_prog_compiler_pic 9746 compiler_flags=-v 9747 linker_flags=-v 9748 verstring= 9749 output_objdir=. 9750 libname=conftest 9751 lt_save_allow_undefined_flag=$allow_undefined_flag 9752 allow_undefined_flag= 9753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9754 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9755 ac_status=$? 9756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9757 test $ac_status = 0; } 9758 then 9759 lt_cv_archive_cmds_need_lc=no 9760 else 9761 lt_cv_archive_cmds_need_lc=yes 9762 fi 9763 allow_undefined_flag=$lt_save_allow_undefined_flag 9764 else 9765 cat conftest.err 1>&5 9766 fi 9767 $RM conftest* 9768 9769fi 9770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9771$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9772 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9773 ;; 9774 esac 9775 fi 9776 ;; 9777esac 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9931$as_echo_n "checking dynamic linker characteristics... " >&6; } 9932 9933if test "$GCC" = yes; then 9934 case $host_os in 9935 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9936 *) lt_awk_arg="/^libraries:/" ;; 9937 esac 9938 case $host_os in 9939 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9940 *) lt_sed_strip_eq="s,=/,/,g" ;; 9941 esac 9942 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9943 case $lt_search_path_spec in 9944 *\;*) 9945 # if the path contains ";" then we assume it to be the separator 9946 # otherwise default to the standard path separator (i.e. ":") - it is 9947 # assumed that no part of a normal pathname contains ";" but that should 9948 # okay in the real world where ";" in dirpaths is itself problematic. 9949 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9950 ;; 9951 *) 9952 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9953 ;; 9954 esac 9955 # Ok, now we have the path, separated by spaces, we can step through it 9956 # and add multilib dir if necessary... 9957 lt_tmp_lt_search_path_spec= 9958 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9959 # ...but if some path already ends with the multilib dir we assume 9960 # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer). 9961 case "$lt_multi_os_dir; $lt_search_path_spec " in 9962 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 9963 lt_multi_os_dir= 9964 ;; 9965 esac 9966 for lt_sys_path in $lt_search_path_spec; do 9967 if test -d "$lt_sys_path$lt_multi_os_dir"; then 9968 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 9969 elif test -n "$lt_multi_os_dir"; then 9970 test -d "$lt_sys_path" && \ 9971 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9972 fi 9973 done 9974 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9975BEGIN {RS=" "; FS="/|\n";} { 9976 lt_foo=""; 9977 lt_count=0; 9978 for (lt_i = NF; lt_i > 0; lt_i--) { 9979 if ($lt_i != "" && $lt_i != ".") { 9980 if ($lt_i == "..") { 9981 lt_count++; 9982 } else { 9983 if (lt_count == 0) { 9984 lt_foo="/" $lt_i lt_foo; 9985 } else { 9986 lt_count--; 9987 } 9988 } 9989 } 9990 } 9991 if (lt_foo != "") { lt_freq[lt_foo]++; } 9992 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9993}'` 9994 # AWK program above erroneously prepends '/' to C:/dos/paths 9995 # for these hosts. 9996 case $host_os in 9997 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9998 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9999 esac 10000 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10001else 10002 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10003fi 10004library_names_spec= 10005libname_spec='lib$name' 10006soname_spec= 10007shrext_cmds=".so" 10008postinstall_cmds= 10009postuninstall_cmds= 10010finish_cmds= 10011finish_eval= 10012shlibpath_var= 10013shlibpath_overrides_runpath=unknown 10014version_type=none 10015dynamic_linker="$host_os ld.so" 10016sys_lib_dlsearch_path_spec="/lib /usr/lib" 10017need_lib_prefix=unknown 10018hardcode_into_libs=no 10019 10020# when you set need_version to no, make sure it does not cause -set_version 10021# flags to be left without arguments 10022need_version=unknown 10023 10024case $host_os in 10025aix3*) 10026 version_type=linux # correct to gnu/linux during the next big refactor 10027 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10028 shlibpath_var=LIBPATH 10029 10030 # AIX 3 has no versioning support, so we append a major version to the name. 10031 soname_spec='${libname}${release}${shared_ext}$major' 10032 ;; 10033 10034aix[4-9]*) 10035 version_type=linux # correct to gnu/linux during the next big refactor 10036 need_lib_prefix=no 10037 need_version=no 10038 hardcode_into_libs=yes 10039 if test "$host_cpu" = ia64; then 10040 # AIX 5 supports IA64 10041 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10042 shlibpath_var=LD_LIBRARY_PATH 10043 else 10044 # With GCC up to 2.95.x, collect2 would create an import file 10045 # for dependence libraries. The import file would start with 10046 # the line `#! .'. This would cause the generated library to 10047 # depend on `.', always an invalid library. This was fixed in 10048 # development snapshots of GCC prior to 3.0. 10049 case $host_os in 10050 aix4 | aix4.[01] | aix4.[01].*) 10051 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10052 echo ' yes ' 10053 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10054 : 10055 else 10056 can_build_shared=no 10057 fi 10058 ;; 10059 esac 10060 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10061 # soname into executable. Probably we can add versioning support to 10062 # collect2, so additional links can be useful in future. 10063 if test "$aix_use_runtimelinking" = yes; then 10064 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10065 # instead of lib<name>.a to let people know that these are not 10066 # typical AIX shared libraries. 10067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10068 else 10069 # We preserve .a as extension for shared libraries through AIX4.2 10070 # and later when we are not doing run time linking. 10071 library_names_spec='${libname}${release}.a $libname.a' 10072 soname_spec='${libname}${release}${shared_ext}$major' 10073 fi 10074 shlibpath_var=LIBPATH 10075 fi 10076 ;; 10077 10078amigaos*) 10079 case $host_cpu in 10080 powerpc) 10081 # Since July 2007 AmigaOS4 officially supports .so libraries. 10082 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10084 ;; 10085 m68k) 10086 library_names_spec='$libname.ixlibrary $libname.a' 10087 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10088 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10089 ;; 10090 esac 10091 ;; 10092 10093beos*) 10094 library_names_spec='${libname}${shared_ext}' 10095 dynamic_linker="$host_os ld.so" 10096 shlibpath_var=LIBRARY_PATH 10097 ;; 10098 10099bsdi[45]*) 10100 version_type=linux # correct to gnu/linux during the next big refactor 10101 need_version=no 10102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10103 soname_spec='${libname}${release}${shared_ext}$major' 10104 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10105 shlibpath_var=LD_LIBRARY_PATH 10106 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10107 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10108 # the default ld.so.conf also contains /usr/contrib/lib and 10109 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10110 # libtool to hard-code these into programs 10111 ;; 10112 10113cygwin* | mingw* | pw32* | cegcc*) 10114 version_type=windows 10115 shrext_cmds=".dll" 10116 need_version=no 10117 need_lib_prefix=no 10118 10119 case $GCC,$cc_basename in 10120 yes,*) 10121 # gcc 10122 library_names_spec='$libname.dll.a' 10123 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10124 postinstall_cmds='base_file=`basename \${file}`~ 10125 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10126 dldir=$destdir/`dirname \$dlpath`~ 10127 test -d \$dldir || mkdir -p \$dldir~ 10128 $install_prog $dir/$dlname \$dldir/$dlname~ 10129 chmod a+x \$dldir/$dlname~ 10130 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10131 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10132 fi' 10133 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10134 dlpath=$dir/\$dldll~ 10135 $RM \$dlpath' 10136 shlibpath_overrides_runpath=yes 10137 10138 case $host_os in 10139 cygwin*) 10140 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10141 #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 10142 soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}' 10143 10144 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10145 ;; 10146 mingw* | cegcc*) 10147 # MinGW DLLs use traditional 'lib' prefix 10148 #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 10149 soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}' 10150 ;; 10151 pw32*) 10152 # pw32 DLLs use 'pw' prefix rather than 'lib' 10153 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10154 ;; 10155 esac 10156 dynamic_linker='Win32 ld.exe' 10157 ;; 10158 10159 *,cl*) 10160 # Native MSVC 10161 libname_spec='$name' 10162 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10163 library_names_spec='${libname}.dll.lib' 10164 10165 case $build_os in 10166 mingw*) 10167 sys_lib_search_path_spec= 10168 lt_save_ifs=$IFS 10169 IFS=';' 10170 for lt_path in $LIB 10171 do 10172 IFS=$lt_save_ifs 10173 # Let DOS variable expansion print the short 8.3 style file name. 10174 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10175 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10176 done 10177 IFS=$lt_save_ifs 10178 # Convert to MSYS style. 10179 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10180 ;; 10181 cygwin*) 10182 # Convert to unix form, then to dos form, then back to unix form 10183 # but this time dos style (no spaces!) so that the unix form looks 10184 # like /cygdrive/c/PROGRA~1:/cygdr... 10185 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10186 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10187 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10188 ;; 10189 *) 10190 sys_lib_search_path_spec="$LIB" 10191 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10192 # It is most probably a Windows format PATH. 10193 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10194 else 10195 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10196 fi 10197 # FIXME: find the short name or the path components, as spaces are 10198 # common. (e.g. "Program Files" -> "PROGRA~1") 10199 ;; 10200 esac 10201 10202 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10203 postinstall_cmds='base_file=`basename \${file}`~ 10204 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10205 dldir=$destdir/`dirname \$dlpath`~ 10206 test -d \$dldir || mkdir -p \$dldir~ 10207 $install_prog $dir/$dlname \$dldir/$dlname' 10208 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10209 dlpath=$dir/\$dldll~ 10210 $RM \$dlpath' 10211 shlibpath_overrides_runpath=yes 10212 dynamic_linker='Win32 link.exe' 10213 ;; 10214 10215 *) 10216 # Assume MSVC wrapper 10217 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10218 dynamic_linker='Win32 ld.exe' 10219 ;; 10220 esac 10221 # FIXME: first we should search . and the directory the executable is in 10222 shlibpath_var=PATH 10223 ;; 10224 10225darwin* | rhapsody*) 10226 dynamic_linker="$host_os dyld" 10227 version_type=darwin 10228 need_lib_prefix=no 10229 need_version=no 10230 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10231 soname_spec='${libname}${release}${major}$shared_ext' 10232 shlibpath_overrides_runpath=yes 10233 shlibpath_var=DYLD_LIBRARY_PATH 10234 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10235 10236 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10237 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10238 ;; 10239 10240dgux*) 10241 version_type=linux # correct to gnu/linux during the next big refactor 10242 need_lib_prefix=no 10243 need_version=no 10244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10245 soname_spec='${libname}${release}${shared_ext}$major' 10246 shlibpath_var=LD_LIBRARY_PATH 10247 ;; 10248 10249freebsd* | dragonfly*) 10250 # DragonFly does not have aout. When/if they implement a new 10251 # versioning mechanism, adjust this. 10252 if test -x /usr/bin/objformat; then 10253 objformat=`/usr/bin/objformat` 10254 else 10255 case $host_os in 10256 freebsd[23].*) objformat=aout ;; 10257 *) objformat=elf ;; 10258 esac 10259 fi 10260 version_type=freebsd-$objformat 10261 case $version_type in 10262 freebsd-elf*) 10263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10264 need_version=no 10265 need_lib_prefix=no 10266 ;; 10267 freebsd-*) 10268 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10269 need_version=yes 10270 ;; 10271 esac 10272 shlibpath_var=LD_LIBRARY_PATH 10273 case $host_os in 10274 freebsd2.*) 10275 shlibpath_overrides_runpath=yes 10276 ;; 10277 freebsd3.[01]* | freebsdelf3.[01]*) 10278 shlibpath_overrides_runpath=yes 10279 hardcode_into_libs=yes 10280 ;; 10281 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10282 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10283 shlibpath_overrides_runpath=no 10284 hardcode_into_libs=yes 10285 ;; 10286 *) # from 4.6 on, and DragonFly 10287 shlibpath_overrides_runpath=yes 10288 hardcode_into_libs=yes 10289 ;; 10290 esac 10291 ;; 10292 10293gnu*) 10294 version_type=linux # correct to gnu/linux during the next big refactor 10295 need_lib_prefix=no 10296 need_version=no 10297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10298 soname_spec='${libname}${release}${shared_ext}$major' 10299 shlibpath_var=LD_LIBRARY_PATH 10300 shlibpath_overrides_runpath=no 10301 hardcode_into_libs=yes 10302 ;; 10303 10304haiku*) 10305 version_type=linux # correct to gnu/linux during the next big refactor 10306 need_lib_prefix=no 10307 need_version=no 10308 dynamic_linker="$host_os runtime_loader" 10309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10310 soname_spec='${libname}${release}${shared_ext}$major' 10311 shlibpath_var=LIBRARY_PATH 10312 shlibpath_overrides_runpath=yes 10313 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10314 hardcode_into_libs=yes 10315 ;; 10316 10317hpux9* | hpux10* | hpux11*) 10318 # Give a soname corresponding to the major version so that dld.sl refuses to 10319 # link against other versions. 10320 version_type=sunos 10321 need_lib_prefix=no 10322 need_version=no 10323 case $host_cpu in 10324 ia64*) 10325 shrext_cmds='.so' 10326 hardcode_into_libs=yes 10327 dynamic_linker="$host_os dld.so" 10328 shlibpath_var=LD_LIBRARY_PATH 10329 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10331 soname_spec='${libname}${release}${shared_ext}$major' 10332 if test "X$HPUX_IA64_MODE" = X32; then 10333 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10334 else 10335 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10336 fi 10337 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10338 ;; 10339 hppa*64*) 10340 shrext_cmds='.sl' 10341 hardcode_into_libs=yes 10342 dynamic_linker="$host_os dld.sl" 10343 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10344 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10346 soname_spec='${libname}${release}${shared_ext}$major' 10347 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10348 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10349 ;; 10350 *) 10351 shrext_cmds='.sl' 10352 dynamic_linker="$host_os dld.sl" 10353 shlibpath_var=SHLIB_PATH 10354 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10356 soname_spec='${libname}${release}${shared_ext}$major' 10357 ;; 10358 esac 10359 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10360 postinstall_cmds='chmod 555 $lib' 10361 # or fails outright, so override atomically: 10362 install_override_mode=555 10363 ;; 10364 10365interix[3-9]*) 10366 version_type=linux # correct to gnu/linux during the next big refactor 10367 need_lib_prefix=no 10368 need_version=no 10369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10370 soname_spec='${libname}${release}${shared_ext}$major' 10371 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10372 shlibpath_var=LD_LIBRARY_PATH 10373 shlibpath_overrides_runpath=no 10374 hardcode_into_libs=yes 10375 ;; 10376 10377irix5* | irix6* | nonstopux*) 10378 case $host_os in 10379 nonstopux*) version_type=nonstopux ;; 10380 *) 10381 if test "$lt_cv_prog_gnu_ld" = yes; then 10382 version_type=linux # correct to gnu/linux during the next big refactor 10383 else 10384 version_type=irix 10385 fi ;; 10386 esac 10387 need_lib_prefix=no 10388 need_version=no 10389 soname_spec='${libname}${release}${shared_ext}$major' 10390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10391 case $host_os in 10392 irix5* | nonstopux*) 10393 libsuff= shlibsuff= 10394 ;; 10395 *) 10396 case $LD in # libtool.m4 will add one of these switches to LD 10397 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10398 libsuff= shlibsuff= libmagic=32-bit;; 10399 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10400 libsuff=32 shlibsuff=N32 libmagic=N32;; 10401 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10402 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10403 *) libsuff= shlibsuff= libmagic=never-match;; 10404 esac 10405 ;; 10406 esac 10407 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10408 shlibpath_overrides_runpath=no 10409 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10410 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10411 hardcode_into_libs=yes 10412 ;; 10413 10414# No shared lib support for Linux oldld, aout, or coff. 10415linux*oldld* | linux*aout* | linux*coff*) 10416 dynamic_linker=no 10417 ;; 10418 10419# This must be glibc/ELF. 10420linux* | k*bsd*-gnu | kopensolaris*-gnu) 10421 version_type=linux # correct to gnu/linux during the next big refactor 10422 need_lib_prefix=no 10423 need_version=no 10424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10425 soname_spec='${libname}${release}${shared_ext}$major' 10426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10427 shlibpath_var=LD_LIBRARY_PATH 10428 shlibpath_overrides_runpath=no 10429 10430 # Some binutils ld are patched to set DT_RUNPATH 10431 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10432 $as_echo_n "(cached) " >&6 10433else 10434 lt_cv_shlibpath_overrides_runpath=no 10435 save_LDFLAGS=$LDFLAGS 10436 save_libdir=$libdir 10437 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10438 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10440/* end confdefs.h. */ 10441 10442int 10443main () 10444{ 10445 10446 ; 10447 return 0; 10448} 10449_ACEOF 10450if ac_fn_c_try_link "$LINENO"; then : 10451 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10452 lt_cv_shlibpath_overrides_runpath=yes 10453fi 10454fi 10455rm -f core conftest.err conftest.$ac_objext \ 10456 conftest$ac_exeext conftest.$ac_ext 10457 LDFLAGS=$save_LDFLAGS 10458 libdir=$save_libdir 10459 10460fi 10461 10462 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10463 10464 # This implies no fast_install, which is unacceptable. 10465 # Some rework will be needed to allow for fast_install 10466 # before this can be enabled. 10467 hardcode_into_libs=yes 10468 10469 # Append ld.so.conf contents to the search path 10470 if test -f /etc/ld.so.conf; then 10471 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' ' '` 10472 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10473 fi 10474 10475 # We used to test for /lib/ld.so.1 and disable shared libraries on 10476 # powerpc, because MkLinux only supported shared libraries with the 10477 # GNU dynamic linker. Since this was broken with cross compilers, 10478 # most powerpc-linux boxes support dynamic linking these days and 10479 # people can always --disable-shared, the test was removed, and we 10480 # assume the GNU/Linux dynamic linker is in use. 10481 dynamic_linker='GNU/Linux ld.so' 10482 ;; 10483 10484netbsd*) 10485 version_type=sunos 10486 need_lib_prefix=no 10487 need_version=no 10488 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10490 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10491 dynamic_linker='NetBSD (a.out) ld.so' 10492 else 10493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10494 soname_spec='${libname}${release}${shared_ext}$major' 10495 dynamic_linker='NetBSD ld.elf_so' 10496 fi 10497 shlibpath_var=LD_LIBRARY_PATH 10498 shlibpath_overrides_runpath=yes 10499 hardcode_into_libs=yes 10500 ;; 10501 10502newsos6) 10503 version_type=linux # correct to gnu/linux during the next big refactor 10504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10505 shlibpath_var=LD_LIBRARY_PATH 10506 shlibpath_overrides_runpath=yes 10507 ;; 10508 10509*nto* | *qnx*) 10510 version_type=qnx 10511 need_lib_prefix=no 10512 need_version=no 10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10514 soname_spec='${libname}${release}${shared_ext}$major' 10515 shlibpath_var=LD_LIBRARY_PATH 10516 shlibpath_overrides_runpath=no 10517 hardcode_into_libs=yes 10518 dynamic_linker='ldqnx.so' 10519 ;; 10520 10521openbsd*) 10522 version_type=sunos 10523 sys_lib_dlsearch_path_spec="/usr/lib" 10524 need_lib_prefix=no 10525 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10526 case $host_os in 10527 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10528 *) need_version=no ;; 10529 esac 10530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10531 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10532 shlibpath_var=LD_LIBRARY_PATH 10533 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10534 case $host_os in 10535 openbsd2.[89] | openbsd2.[89].*) 10536 shlibpath_overrides_runpath=no 10537 ;; 10538 *) 10539 shlibpath_overrides_runpath=yes 10540 ;; 10541 esac 10542 else 10543 shlibpath_overrides_runpath=yes 10544 fi 10545 ;; 10546 10547os2*) 10548 libname_spec='$name' 10549 shrext_cmds=".dll" 10550 need_lib_prefix=no 10551 library_names_spec='$libname${shared_ext} $libname.a' 10552 dynamic_linker='OS/2 ld.exe' 10553 shlibpath_var=LIBPATH 10554 ;; 10555 10556osf3* | osf4* | osf5*) 10557 version_type=osf 10558 need_lib_prefix=no 10559 need_version=no 10560 soname_spec='${libname}${release}${shared_ext}$major' 10561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10562 shlibpath_var=LD_LIBRARY_PATH 10563 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10564 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10565 ;; 10566 10567rdos*) 10568 dynamic_linker=no 10569 ;; 10570 10571solaris*) 10572 version_type=linux # correct to gnu/linux during the next big refactor 10573 need_lib_prefix=no 10574 need_version=no 10575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10576 soname_spec='${libname}${release}${shared_ext}$major' 10577 shlibpath_var=LD_LIBRARY_PATH 10578 shlibpath_overrides_runpath=yes 10579 hardcode_into_libs=yes 10580 # ldd complains unless libraries are executable 10581 postinstall_cmds='chmod +x $lib' 10582 ;; 10583 10584sunos4*) 10585 version_type=sunos 10586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10587 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10588 shlibpath_var=LD_LIBRARY_PATH 10589 shlibpath_overrides_runpath=yes 10590 if test "$with_gnu_ld" = yes; then 10591 need_lib_prefix=no 10592 fi 10593 need_version=yes 10594 ;; 10595 10596sysv4 | sysv4.3*) 10597 version_type=linux # correct to gnu/linux during the next big refactor 10598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10599 soname_spec='${libname}${release}${shared_ext}$major' 10600 shlibpath_var=LD_LIBRARY_PATH 10601 case $host_vendor in 10602 sni) 10603 shlibpath_overrides_runpath=no 10604 need_lib_prefix=no 10605 runpath_var=LD_RUN_PATH 10606 ;; 10607 siemens) 10608 need_lib_prefix=no 10609 ;; 10610 motorola) 10611 need_lib_prefix=no 10612 need_version=no 10613 shlibpath_overrides_runpath=no 10614 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10615 ;; 10616 esac 10617 ;; 10618 10619sysv4*MP*) 10620 if test -d /usr/nec ;then 10621 version_type=linux # correct to gnu/linux during the next big refactor 10622 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10623 soname_spec='$libname${shared_ext}.$major' 10624 shlibpath_var=LD_LIBRARY_PATH 10625 fi 10626 ;; 10627 10628sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10629 version_type=freebsd-elf 10630 need_lib_prefix=no 10631 need_version=no 10632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10633 soname_spec='${libname}${release}${shared_ext}$major' 10634 shlibpath_var=LD_LIBRARY_PATH 10635 shlibpath_overrides_runpath=yes 10636 hardcode_into_libs=yes 10637 if test "$with_gnu_ld" = yes; then 10638 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10639 else 10640 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10641 case $host_os in 10642 sco3.2v5*) 10643 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10644 ;; 10645 esac 10646 fi 10647 sys_lib_dlsearch_path_spec='/usr/lib' 10648 ;; 10649 10650tpf*) 10651 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10652 version_type=linux # correct to gnu/linux during the next big refactor 10653 need_lib_prefix=no 10654 need_version=no 10655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10656 shlibpath_var=LD_LIBRARY_PATH 10657 shlibpath_overrides_runpath=no 10658 hardcode_into_libs=yes 10659 ;; 10660 10661uts4*) 10662 version_type=linux # correct to gnu/linux during the next big refactor 10663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10664 soname_spec='${libname}${release}${shared_ext}$major' 10665 shlibpath_var=LD_LIBRARY_PATH 10666 ;; 10667 10668*) 10669 dynamic_linker=no 10670 ;; 10671esac 10672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10673$as_echo "$dynamic_linker" >&6; } 10674test "$dynamic_linker" = no && can_build_shared=no 10675 10676variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10677if test "$GCC" = yes; then 10678 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10679fi 10680 10681if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10682 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10683fi 10684if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10685 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10686fi 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10780$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10781hardcode_action= 10782if test -n "$hardcode_libdir_flag_spec" || 10783 test -n "$runpath_var" || 10784 test "X$hardcode_automatic" = "Xyes" ; then 10785 10786 # We can hardcode non-existent directories. 10787 if test "$hardcode_direct" != no && 10788 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10789 # have to relink, otherwise we might link with an installed library 10790 # when we should be linking with a yet-to-be-installed one 10791 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10792 test "$hardcode_minus_L" != no; then 10793 # Linking always hardcodes the temporary library directory. 10794 hardcode_action=relink 10795 else 10796 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10797 hardcode_action=immediate 10798 fi 10799else 10800 # We cannot hardcode anything, or else we can only hardcode existing 10801 # directories. 10802 hardcode_action=unsupported 10803fi 10804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10805$as_echo "$hardcode_action" >&6; } 10806 10807if test "$hardcode_action" = relink || 10808 test "$inherit_rpath" = yes; then 10809 # Fast installation is not supported 10810 enable_fast_install=no 10811elif test "$shlibpath_overrides_runpath" = yes || 10812 test "$enable_shared" = no; then 10813 # Fast installation is not necessary 10814 enable_fast_install=needless 10815fi 10816 10817 10818 10819 10820 10821 10822 if test "x$enable_dlopen" != xyes; then 10823 enable_dlopen=unknown 10824 enable_dlopen_self=unknown 10825 enable_dlopen_self_static=unknown 10826else 10827 lt_cv_dlopen=no 10828 lt_cv_dlopen_libs= 10829 10830 case $host_os in 10831 beos*) 10832 lt_cv_dlopen="load_add_on" 10833 lt_cv_dlopen_libs= 10834 lt_cv_dlopen_self=yes 10835 ;; 10836 10837 mingw* | pw32* | cegcc*) 10838 lt_cv_dlopen="LoadLibrary" 10839 lt_cv_dlopen_libs= 10840 ;; 10841 10842 cygwin*) 10843 lt_cv_dlopen="dlopen" 10844 lt_cv_dlopen_libs= 10845 ;; 10846 10847 darwin*) 10848 # if libdl is installed we need to link against it 10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10850$as_echo_n "checking for dlopen in -ldl... " >&6; } 10851if ${ac_cv_lib_dl_dlopen+:} false; then : 10852 $as_echo_n "(cached) " >&6 10853else 10854 ac_check_lib_save_LIBS=$LIBS 10855LIBS="-ldl $LIBS" 10856cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10857/* end confdefs.h. */ 10858 10859/* Override any GCC internal prototype to avoid an error. 10860 Use char because int might match the return type of a GCC 10861 builtin and then its argument prototype would still apply. */ 10862#ifdef __cplusplus 10863extern "C" 10864#endif 10865char dlopen (); 10866int 10867main () 10868{ 10869return dlopen (); 10870 ; 10871 return 0; 10872} 10873_ACEOF 10874if ac_fn_c_try_link "$LINENO"; then : 10875 ac_cv_lib_dl_dlopen=yes 10876else 10877 ac_cv_lib_dl_dlopen=no 10878fi 10879rm -f core conftest.err conftest.$ac_objext \ 10880 conftest$ac_exeext conftest.$ac_ext 10881LIBS=$ac_check_lib_save_LIBS 10882fi 10883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10884$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10885if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10886 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10887else 10888 10889 lt_cv_dlopen="dyld" 10890 lt_cv_dlopen_libs= 10891 lt_cv_dlopen_self=yes 10892 10893fi 10894 10895 ;; 10896 10897 *) 10898 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10899if test "x$ac_cv_func_shl_load" = xyes; then : 10900 lt_cv_dlopen="shl_load" 10901else 10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10903$as_echo_n "checking for shl_load in -ldld... " >&6; } 10904if ${ac_cv_lib_dld_shl_load+:} false; then : 10905 $as_echo_n "(cached) " >&6 10906else 10907 ac_check_lib_save_LIBS=$LIBS 10908LIBS="-ldld $LIBS" 10909cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10910/* end confdefs.h. */ 10911 10912/* Override any GCC internal prototype to avoid an error. 10913 Use char because int might match the return type of a GCC 10914 builtin and then its argument prototype would still apply. */ 10915#ifdef __cplusplus 10916extern "C" 10917#endif 10918char shl_load (); 10919int 10920main () 10921{ 10922return shl_load (); 10923 ; 10924 return 0; 10925} 10926_ACEOF 10927if ac_fn_c_try_link "$LINENO"; then : 10928 ac_cv_lib_dld_shl_load=yes 10929else 10930 ac_cv_lib_dld_shl_load=no 10931fi 10932rm -f core conftest.err conftest.$ac_objext \ 10933 conftest$ac_exeext conftest.$ac_ext 10934LIBS=$ac_check_lib_save_LIBS 10935fi 10936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10937$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10938if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10939 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10940else 10941 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10942if test "x$ac_cv_func_dlopen" = xyes; then : 10943 lt_cv_dlopen="dlopen" 10944else 10945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10946$as_echo_n "checking for dlopen in -ldl... " >&6; } 10947if ${ac_cv_lib_dl_dlopen+:} false; then : 10948 $as_echo_n "(cached) " >&6 10949else 10950 ac_check_lib_save_LIBS=$LIBS 10951LIBS="-ldl $LIBS" 10952cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10953/* end confdefs.h. */ 10954 10955/* Override any GCC internal prototype to avoid an error. 10956 Use char because int might match the return type of a GCC 10957 builtin and then its argument prototype would still apply. */ 10958#ifdef __cplusplus 10959extern "C" 10960#endif 10961char dlopen (); 10962int 10963main () 10964{ 10965return dlopen (); 10966 ; 10967 return 0; 10968} 10969_ACEOF 10970if ac_fn_c_try_link "$LINENO"; then : 10971 ac_cv_lib_dl_dlopen=yes 10972else 10973 ac_cv_lib_dl_dlopen=no 10974fi 10975rm -f core conftest.err conftest.$ac_objext \ 10976 conftest$ac_exeext conftest.$ac_ext 10977LIBS=$ac_check_lib_save_LIBS 10978fi 10979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10980$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10981if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10982 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10983else 10984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10985$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10986if ${ac_cv_lib_svld_dlopen+:} false; then : 10987 $as_echo_n "(cached) " >&6 10988else 10989 ac_check_lib_save_LIBS=$LIBS 10990LIBS="-lsvld $LIBS" 10991cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10992/* end confdefs.h. */ 10993 10994/* Override any GCC internal prototype to avoid an error. 10995 Use char because int might match the return type of a GCC 10996 builtin and then its argument prototype would still apply. */ 10997#ifdef __cplusplus 10998extern "C" 10999#endif 11000char dlopen (); 11001int 11002main () 11003{ 11004return dlopen (); 11005 ; 11006 return 0; 11007} 11008_ACEOF 11009if ac_fn_c_try_link "$LINENO"; then : 11010 ac_cv_lib_svld_dlopen=yes 11011else 11012 ac_cv_lib_svld_dlopen=no 11013fi 11014rm -f core conftest.err conftest.$ac_objext \ 11015 conftest$ac_exeext conftest.$ac_ext 11016LIBS=$ac_check_lib_save_LIBS 11017fi 11018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11019$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11020if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11021 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11022else 11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11024$as_echo_n "checking for dld_link in -ldld... " >&6; } 11025if ${ac_cv_lib_dld_dld_link+:} false; then : 11026 $as_echo_n "(cached) " >&6 11027else 11028 ac_check_lib_save_LIBS=$LIBS 11029LIBS="-ldld $LIBS" 11030cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11031/* end confdefs.h. */ 11032 11033/* Override any GCC internal prototype to avoid an error. 11034 Use char because int might match the return type of a GCC 11035 builtin and then its argument prototype would still apply. */ 11036#ifdef __cplusplus 11037extern "C" 11038#endif 11039char dld_link (); 11040int 11041main () 11042{ 11043return dld_link (); 11044 ; 11045 return 0; 11046} 11047_ACEOF 11048if ac_fn_c_try_link "$LINENO"; then : 11049 ac_cv_lib_dld_dld_link=yes 11050else 11051 ac_cv_lib_dld_dld_link=no 11052fi 11053rm -f core conftest.err conftest.$ac_objext \ 11054 conftest$ac_exeext conftest.$ac_ext 11055LIBS=$ac_check_lib_save_LIBS 11056fi 11057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11058$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11059if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11060 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11061fi 11062 11063 11064fi 11065 11066 11067fi 11068 11069 11070fi 11071 11072 11073fi 11074 11075 11076fi 11077 11078 ;; 11079 esac 11080 11081 if test "x$lt_cv_dlopen" != xno; then 11082 enable_dlopen=yes 11083 else 11084 enable_dlopen=no 11085 fi 11086 11087 case $lt_cv_dlopen in 11088 dlopen) 11089 save_CPPFLAGS="$CPPFLAGS" 11090 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11091 11092 save_LDFLAGS="$LDFLAGS" 11093 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11094 11095 save_LIBS="$LIBS" 11096 LIBS="$lt_cv_dlopen_libs $LIBS" 11097 11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11099$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11100if ${lt_cv_dlopen_self+:} false; then : 11101 $as_echo_n "(cached) " >&6 11102else 11103 if test "$cross_compiling" = yes; then : 11104 lt_cv_dlopen_self=cross 11105else 11106 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11107 lt_status=$lt_dlunknown 11108 cat > conftest.$ac_ext <<_LT_EOF 11109#line $LINENO "configure" 11110#include "confdefs.h" 11111 11112#if HAVE_DLFCN_H 11113#include <dlfcn.h> 11114#endif 11115 11116#include <stdio.h> 11117 11118#ifdef RTLD_GLOBAL 11119# define LT_DLGLOBAL RTLD_GLOBAL 11120#else 11121# ifdef DL_GLOBAL 11122# define LT_DLGLOBAL DL_GLOBAL 11123# else 11124# define LT_DLGLOBAL 0 11125# endif 11126#endif 11127 11128/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11129 find out it does not work in some platform. */ 11130#ifndef LT_DLLAZY_OR_NOW 11131# ifdef RTLD_LAZY 11132# define LT_DLLAZY_OR_NOW RTLD_LAZY 11133# else 11134# ifdef DL_LAZY 11135# define LT_DLLAZY_OR_NOW DL_LAZY 11136# else 11137# ifdef RTLD_NOW 11138# define LT_DLLAZY_OR_NOW RTLD_NOW 11139# else 11140# ifdef DL_NOW 11141# define LT_DLLAZY_OR_NOW DL_NOW 11142# else 11143# define LT_DLLAZY_OR_NOW 0 11144# endif 11145# endif 11146# endif 11147# endif 11148#endif 11149 11150/* When -fvisbility=hidden is used, assume the code has been annotated 11151 correspondingly for the symbols needed. */ 11152#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11153int fnord () __attribute__((visibility("default"))); 11154#endif 11155 11156int fnord () { return 42; } 11157int main () 11158{ 11159 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11160 int status = $lt_dlunknown; 11161 11162 if (self) 11163 { 11164 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11165 else 11166 { 11167 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11168 else puts (dlerror ()); 11169 } 11170 /* dlclose (self); */ 11171 } 11172 else 11173 puts (dlerror ()); 11174 11175 return status; 11176} 11177_LT_EOF 11178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11179 (eval $ac_link) 2>&5 11180 ac_status=$? 11181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11182 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11183 (./conftest; exit; ) >&5 2>/dev/null 11184 lt_status=$? 11185 case x$lt_status in 11186 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11187 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11188 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11189 esac 11190 else : 11191 # compilation failed 11192 lt_cv_dlopen_self=no 11193 fi 11194fi 11195rm -fr conftest* 11196 11197 11198fi 11199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11200$as_echo "$lt_cv_dlopen_self" >&6; } 11201 11202 if test "x$lt_cv_dlopen_self" = xyes; then 11203 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11205$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11206if ${lt_cv_dlopen_self_static+:} false; then : 11207 $as_echo_n "(cached) " >&6 11208else 11209 if test "$cross_compiling" = yes; then : 11210 lt_cv_dlopen_self_static=cross 11211else 11212 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11213 lt_status=$lt_dlunknown 11214 cat > conftest.$ac_ext <<_LT_EOF 11215#line $LINENO "configure" 11216#include "confdefs.h" 11217 11218#if HAVE_DLFCN_H 11219#include <dlfcn.h> 11220#endif 11221 11222#include <stdio.h> 11223 11224#ifdef RTLD_GLOBAL 11225# define LT_DLGLOBAL RTLD_GLOBAL 11226#else 11227# ifdef DL_GLOBAL 11228# define LT_DLGLOBAL DL_GLOBAL 11229# else 11230# define LT_DLGLOBAL 0 11231# endif 11232#endif 11233 11234/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11235 find out it does not work in some platform. */ 11236#ifndef LT_DLLAZY_OR_NOW 11237# ifdef RTLD_LAZY 11238# define LT_DLLAZY_OR_NOW RTLD_LAZY 11239# else 11240# ifdef DL_LAZY 11241# define LT_DLLAZY_OR_NOW DL_LAZY 11242# else 11243# ifdef RTLD_NOW 11244# define LT_DLLAZY_OR_NOW RTLD_NOW 11245# else 11246# ifdef DL_NOW 11247# define LT_DLLAZY_OR_NOW DL_NOW 11248# else 11249# define LT_DLLAZY_OR_NOW 0 11250# endif 11251# endif 11252# endif 11253# endif 11254#endif 11255 11256/* When -fvisbility=hidden is used, assume the code has been annotated 11257 correspondingly for the symbols needed. */ 11258#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11259int fnord () __attribute__((visibility("default"))); 11260#endif 11261 11262int fnord () { return 42; } 11263int main () 11264{ 11265 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11266 int status = $lt_dlunknown; 11267 11268 if (self) 11269 { 11270 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11271 else 11272 { 11273 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11274 else puts (dlerror ()); 11275 } 11276 /* dlclose (self); */ 11277 } 11278 else 11279 puts (dlerror ()); 11280 11281 return status; 11282} 11283_LT_EOF 11284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11285 (eval $ac_link) 2>&5 11286 ac_status=$? 11287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11288 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11289 (./conftest; exit; ) >&5 2>/dev/null 11290 lt_status=$? 11291 case x$lt_status in 11292 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11293 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11294 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11295 esac 11296 else : 11297 # compilation failed 11298 lt_cv_dlopen_self_static=no 11299 fi 11300fi 11301rm -fr conftest* 11302 11303 11304fi 11305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11306$as_echo "$lt_cv_dlopen_self_static" >&6; } 11307 fi 11308 11309 CPPFLAGS="$save_CPPFLAGS" 11310 LDFLAGS="$save_LDFLAGS" 11311 LIBS="$save_LIBS" 11312 ;; 11313 esac 11314 11315 case $lt_cv_dlopen_self in 11316 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11317 *) enable_dlopen_self=unknown ;; 11318 esac 11319 11320 case $lt_cv_dlopen_self_static in 11321 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11322 *) enable_dlopen_self_static=unknown ;; 11323 esac 11324fi 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342striplib= 11343old_striplib= 11344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11345$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11346if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11347 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11348 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11350$as_echo "yes" >&6; } 11351else 11352# FIXME - insert some real tests, host_os isn't really good enough 11353 case $host_os in 11354 darwin*) 11355 if test -n "$STRIP" ; then 11356 striplib="$STRIP -x" 11357 old_striplib="$STRIP -S" 11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11359$as_echo "yes" >&6; } 11360 else 11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11362$as_echo "no" >&6; } 11363 fi 11364 ;; 11365 *) 11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11367$as_echo "no" >&6; } 11368 ;; 11369 esac 11370fi 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 # Report which library types will actually be built 11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11385$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11387$as_echo "$can_build_shared" >&6; } 11388 11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11390$as_echo_n "checking whether to build shared libraries... " >&6; } 11391 test "$can_build_shared" = "no" && enable_shared=no 11392 11393 # On AIX, shared libraries and static libraries use the same namespace, and 11394 # are all built from PIC. 11395 case $host_os in 11396 aix3*) 11397 test "$enable_shared" = yes && enable_static=no 11398 if test -n "$RANLIB"; then 11399 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11400 postinstall_cmds='$RANLIB $lib' 11401 fi 11402 ;; 11403 11404 aix[4-9]*) 11405 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11406 test "$enable_shared" = yes && enable_static=no 11407 fi 11408 ;; 11409 esac 11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11411$as_echo "$enable_shared" >&6; } 11412 11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11414$as_echo_n "checking whether to build static libraries... " >&6; } 11415 # Make sure either enable_shared or enable_static is yes. 11416 test "$enable_shared" = yes || enable_static=yes 11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11418$as_echo "$enable_static" >&6; } 11419 11420 11421 11422 11423fi 11424ac_ext=c 11425ac_cpp='$CPP $CPPFLAGS' 11426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11428ac_compiler_gnu=$ac_cv_c_compiler_gnu 11429 11430CC="$lt_save_CC" 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 ac_config_commands="$ac_config_commands libtool" 11447 11448 11449 11450 11451# Only expand once: 11452 11453 11454 11455LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION 11456LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE` 11457LT_REVISION=$SDL_INTERFACE_AGE 11458LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE` 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468ac_ext=c 11469ac_cpp='$CPP $CPPFLAGS' 11470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11472ac_compiler_gnu=$ac_cv_c_compiler_gnu 11473if test -n "$ac_tool_prefix"; then 11474 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 11475set dummy ${ac_tool_prefix}gcc; ac_word=$2 11476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11477$as_echo_n "checking for $ac_word... " >&6; } 11478if ${ac_cv_prog_CC+:} false; then : 11479 $as_echo_n "(cached) " >&6 11480else 11481 if test -n "$CC"; then 11482 ac_cv_prog_CC="$CC" # Let the user override the test. 11483else 11484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11485for as_dir in $PATH 11486do 11487 IFS=$as_save_IFS 11488 test -z "$as_dir" && as_dir=. 11489 for ac_exec_ext in '' $ac_executable_extensions; do 11490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11491 ac_cv_prog_CC="${ac_tool_prefix}gcc" 11492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11493 break 2 11494 fi 11495done 11496 done 11497IFS=$as_save_IFS 11498 11499fi 11500fi 11501CC=$ac_cv_prog_CC 11502if test -n "$CC"; then 11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11504$as_echo "$CC" >&6; } 11505else 11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11507$as_echo "no" >&6; } 11508fi 11509 11510 11511fi 11512if test -z "$ac_cv_prog_CC"; then 11513 ac_ct_CC=$CC 11514 # Extract the first word of "gcc", so it can be a program name with args. 11515set dummy gcc; ac_word=$2 11516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11517$as_echo_n "checking for $ac_word... " >&6; } 11518if ${ac_cv_prog_ac_ct_CC+:} false; then : 11519 $as_echo_n "(cached) " >&6 11520else 11521 if test -n "$ac_ct_CC"; then 11522 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11523else 11524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11525for as_dir in $PATH 11526do 11527 IFS=$as_save_IFS 11528 test -z "$as_dir" && as_dir=. 11529 for ac_exec_ext in '' $ac_executable_extensions; do 11530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11531 ac_cv_prog_ac_ct_CC="gcc" 11532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11533 break 2 11534 fi 11535done 11536 done 11537IFS=$as_save_IFS 11538 11539fi 11540fi 11541ac_ct_CC=$ac_cv_prog_ac_ct_CC 11542if test -n "$ac_ct_CC"; then 11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 11544$as_echo "$ac_ct_CC" >&6; } 11545else 11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11547$as_echo "no" >&6; } 11548fi 11549 11550 if test "x$ac_ct_CC" = x; then 11551 CC="" 11552 else 11553 case $cross_compiling:$ac_tool_warned in 11554yes:) 11555{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11556$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11557ac_tool_warned=yes ;; 11558esac 11559 CC=$ac_ct_CC 11560 fi 11561else 11562 CC="$ac_cv_prog_CC" 11563fi 11564 11565if test -z "$CC"; then 11566 if test -n "$ac_tool_prefix"; then 11567 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 11568set dummy ${ac_tool_prefix}cc; ac_word=$2 11569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11570$as_echo_n "checking for $ac_word... " >&6; } 11571if ${ac_cv_prog_CC+:} false; then : 11572 $as_echo_n "(cached) " >&6 11573else 11574 if test -n "$CC"; then 11575 ac_cv_prog_CC="$CC" # Let the user override the test. 11576else 11577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11578for as_dir in $PATH 11579do 11580 IFS=$as_save_IFS 11581 test -z "$as_dir" && as_dir=. 11582 for ac_exec_ext in '' $ac_executable_extensions; do 11583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11584 ac_cv_prog_CC="${ac_tool_prefix}cc" 11585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11586 break 2 11587 fi 11588done 11589 done 11590IFS=$as_save_IFS 11591 11592fi 11593fi 11594CC=$ac_cv_prog_CC 11595if test -n "$CC"; then 11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11597$as_echo "$CC" >&6; } 11598else 11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11600$as_echo "no" >&6; } 11601fi 11602 11603 11604 fi 11605fi 11606if test -z "$CC"; then 11607 # Extract the first word of "cc", so it can be a program name with args. 11608set dummy cc; ac_word=$2 11609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11610$as_echo_n "checking for $ac_word... " >&6; } 11611if ${ac_cv_prog_CC+:} false; then : 11612 $as_echo_n "(cached) " >&6 11613else 11614 if test -n "$CC"; then 11615 ac_cv_prog_CC="$CC" # Let the user override the test. 11616else 11617 ac_prog_rejected=no 11618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11619for as_dir in $PATH 11620do 11621 IFS=$as_save_IFS 11622 test -z "$as_dir" && as_dir=. 11623 for ac_exec_ext in '' $ac_executable_extensions; do 11624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11625 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 11626 ac_prog_rejected=yes 11627 continue 11628 fi 11629 ac_cv_prog_CC="cc" 11630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11631 break 2 11632 fi 11633done 11634 done 11635IFS=$as_save_IFS 11636 11637if test $ac_prog_rejected = yes; then 11638 # We found a bogon in the path, so make sure we never use it. 11639 set dummy $ac_cv_prog_CC 11640 shift 11641 if test $# != 0; then 11642 # We chose a different compiler from the bogus one. 11643 # However, it has the same basename, so the bogon will be chosen 11644 # first if we set CC to just the basename; use the full file name. 11645 shift 11646 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 11647 fi 11648fi 11649fi 11650fi 11651CC=$ac_cv_prog_CC 11652if test -n "$CC"; then 11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11654$as_echo "$CC" >&6; } 11655else 11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11657$as_echo "no" >&6; } 11658fi 11659 11660 11661fi 11662if test -z "$CC"; then 11663 if test -n "$ac_tool_prefix"; then 11664 for ac_prog in cl.exe 11665 do 11666 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11667set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11669$as_echo_n "checking for $ac_word... " >&6; } 11670if ${ac_cv_prog_CC+:} false; then : 11671 $as_echo_n "(cached) " >&6 11672else 11673 if test -n "$CC"; then 11674 ac_cv_prog_CC="$CC" # Let the user override the test. 11675else 11676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11677for as_dir in $PATH 11678do 11679 IFS=$as_save_IFS 11680 test -z "$as_dir" && as_dir=. 11681 for ac_exec_ext in '' $ac_executable_extensions; do 11682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11683 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 11684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11685 break 2 11686 fi 11687done 11688 done 11689IFS=$as_save_IFS 11690 11691fi 11692fi 11693CC=$ac_cv_prog_CC 11694if test -n "$CC"; then 11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11696$as_echo "$CC" >&6; } 11697else 11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11699$as_echo "no" >&6; } 11700fi 11701 11702 11703 test -n "$CC" && break 11704 done 11705fi 11706if test -z "$CC"; then 11707 ac_ct_CC=$CC 11708 for ac_prog in cl.exe 11709do 11710 # Extract the first word of "$ac_prog", so it can be a program name with args. 11711set dummy $ac_prog; ac_word=$2 11712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11713$as_echo_n "checking for $ac_word... " >&6; } 11714if ${ac_cv_prog_ac_ct_CC+:} false; then : 11715 $as_echo_n "(cached) " >&6 11716else 11717 if test -n "$ac_ct_CC"; then 11718 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11719else 11720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11721for as_dir in $PATH 11722do 11723 IFS=$as_save_IFS 11724 test -z "$as_dir" && as_dir=. 11725 for ac_exec_ext in '' $ac_executable_extensions; do 11726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11727 ac_cv_prog_ac_ct_CC="$ac_prog" 11728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11729 break 2 11730 fi 11731done 11732 done 11733IFS=$as_save_IFS 11734 11735fi 11736fi 11737ac_ct_CC=$ac_cv_prog_ac_ct_CC 11738if test -n "$ac_ct_CC"; then 11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 11740$as_echo "$ac_ct_CC" >&6; } 11741else 11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11743$as_echo "no" >&6; } 11744fi 11745 11746 11747 test -n "$ac_ct_CC" && break 11748done 11749 11750 if test "x$ac_ct_CC" = x; then 11751 CC="" 11752 else 11753 case $cross_compiling:$ac_tool_warned in 11754yes:) 11755{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11756$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11757ac_tool_warned=yes ;; 11758esac 11759 CC=$ac_ct_CC 11760 fi 11761fi 11762 11763fi 11764 11765 11766test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11767$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11768as_fn_error $? "no acceptable C compiler found in \$PATH 11769See \`config.log' for more details" "$LINENO" 5; } 11770 11771# Provide some information about the compiler. 11772$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 11773set X $ac_compile 11774ac_compiler=$2 11775for ac_option in --version -v -V -qversion; do 11776 { { ac_try="$ac_compiler $ac_option >&5" 11777case "(($ac_try" in 11778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11779 *) ac_try_echo=$ac_try;; 11780esac 11781eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11782$as_echo "$ac_try_echo"; } >&5 11783 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 11784 ac_status=$? 11785 if test -s conftest.err; then 11786 sed '10a\ 11787... rest of stderr output deleted ... 11788 10q' conftest.err >conftest.er1 11789 cat conftest.er1 >&5 11790 fi 11791 rm -f conftest.er1 conftest.err 11792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11793 test $ac_status = 0; } 11794done 11795 11796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 11797$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 11798if ${ac_cv_c_compiler_gnu+:} false; then : 11799 $as_echo_n "(cached) " >&6 11800else 11801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11802/* end confdefs.h. */ 11803 11804int 11805main () 11806{ 11807#ifndef __GNUC__ 11808 choke me 11809#endif 11810 11811 ; 11812 return 0; 11813} 11814_ACEOF 11815if ac_fn_c_try_compile "$LINENO"; then : 11816 ac_compiler_gnu=yes 11817else 11818 ac_compiler_gnu=no 11819fi 11820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11821ac_cv_c_compiler_gnu=$ac_compiler_gnu 11822 11823fi 11824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 11825$as_echo "$ac_cv_c_compiler_gnu" >&6; } 11826if test $ac_compiler_gnu = yes; then 11827 GCC=yes 11828else 11829 GCC= 11830fi 11831ac_test_CFLAGS=${CFLAGS+set} 11832ac_save_CFLAGS=$CFLAGS 11833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 11834$as_echo_n "checking whether $CC accepts -g... " >&6; } 11835if ${ac_cv_prog_cc_g+:} false; then : 11836 $as_echo_n "(cached) " >&6 11837else 11838 ac_save_c_werror_flag=$ac_c_werror_flag 11839 ac_c_werror_flag=yes 11840 ac_cv_prog_cc_g=no 11841 CFLAGS="-g" 11842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11843/* end confdefs.h. */ 11844 11845int 11846main () 11847{ 11848 11849 ; 11850 return 0; 11851} 11852_ACEOF 11853if ac_fn_c_try_compile "$LINENO"; then : 11854 ac_cv_prog_cc_g=yes 11855else 11856 CFLAGS="" 11857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11858/* end confdefs.h. */ 11859 11860int 11861main () 11862{ 11863 11864 ; 11865 return 0; 11866} 11867_ACEOF 11868if ac_fn_c_try_compile "$LINENO"; then : 11869 11870else 11871 ac_c_werror_flag=$ac_save_c_werror_flag 11872 CFLAGS="-g" 11873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11874/* end confdefs.h. */ 11875 11876int 11877main () 11878{ 11879 11880 ; 11881 return 0; 11882} 11883_ACEOF 11884if ac_fn_c_try_compile "$LINENO"; then : 11885 ac_cv_prog_cc_g=yes 11886fi 11887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11888fi 11889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11890fi 11891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11892 ac_c_werror_flag=$ac_save_c_werror_flag 11893fi 11894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 11895$as_echo "$ac_cv_prog_cc_g" >&6; } 11896if test "$ac_test_CFLAGS" = set; then 11897 CFLAGS=$ac_save_CFLAGS 11898elif test $ac_cv_prog_cc_g = yes; then 11899 if test "$GCC" = yes; then 11900 CFLAGS="-g -O2" 11901 else 11902 CFLAGS="-g" 11903 fi 11904else 11905 if test "$GCC" = yes; then 11906 CFLAGS="-O2" 11907 else 11908 CFLAGS= 11909 fi 11910fi 11911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 11912$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 11913if ${ac_cv_prog_cc_c89+:} false; then : 11914 $as_echo_n "(cached) " >&6 11915else 11916 ac_cv_prog_cc_c89=no 11917ac_save_CC=$CC 11918cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11919/* end confdefs.h. */ 11920#include <stdarg.h> 11921#include <stdio.h> 11922struct stat; 11923/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 11924struct buf { int x; }; 11925FILE * (*rcsopen) (struct buf *, struct stat *, int); 11926static char *e (p, i) 11927 char **p; 11928 int i; 11929{ 11930 return p[i]; 11931} 11932static char *f (char * (*g) (char **, int), char **p, ...) 11933{ 11934 char *s; 11935 va_list v; 11936 va_start (v,p); 11937 s = g (p, va_arg (v,int)); 11938 va_end (v); 11939 return s; 11940} 11941 11942/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 11943 function prototypes and stuff, but not '\xHH' hex character constants. 11944 These don't provoke an error unfortunately, instead are silently treated 11945 as 'x'. The following induces an error, until -std is added to get 11946 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 11947 array size at least. It's necessary to write '\x00'==0 to get something 11948 that's true only with -std. */ 11949int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 11950 11951/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 11952 inside strings and character constants. */ 11953#define FOO(x) 'x' 11954int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 11955 11956int test (int i, double x); 11957struct s1 {int (*f) (int a);}; 11958struct s2 {int (*f) (double a);}; 11959int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 11960int argc; 11961char **argv; 11962int 11963main () 11964{ 11965return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 11966 ; 11967 return 0; 11968} 11969_ACEOF 11970for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 11971 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 11972do 11973 CC="$ac_save_CC $ac_arg" 11974 if ac_fn_c_try_compile "$LINENO"; then : 11975 ac_cv_prog_cc_c89=$ac_arg 11976fi 11977rm -f core conftest.err conftest.$ac_objext 11978 test "x$ac_cv_prog_cc_c89" != "xno" && break 11979done 11980rm -f conftest.$ac_ext 11981CC=$ac_save_CC 11982 11983fi 11984# AC_CACHE_VAL 11985case "x$ac_cv_prog_cc_c89" in 11986 x) 11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11988$as_echo "none needed" >&6; } ;; 11989 xno) 11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11991$as_echo "unsupported" >&6; } ;; 11992 *) 11993 CC="$CC $ac_cv_prog_cc_c89" 11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 11995$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 11996esac 11997if test "x$ac_cv_prog_cc_c89" != xno; then : 11998 11999fi 12000 12001ac_ext=c 12002ac_cpp='$CPP $CPPFLAGS' 12003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12005ac_compiler_gnu=$ac_cv_c_compiler_gnu 12006 12007ac_ext=cpp 12008ac_cpp='$CXXCPP $CPPFLAGS' 12009ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12010ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12011ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12012if test -z "$CXX"; then 12013 if test -n "$CCC"; then 12014 CXX=$CCC 12015 else 12016 if test -n "$ac_tool_prefix"; then 12017 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 12018 do 12019 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12020set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12022$as_echo_n "checking for $ac_word... " >&6; } 12023if ${ac_cv_prog_CXX+:} false; then : 12024 $as_echo_n "(cached) " >&6 12025else 12026 if test -n "$CXX"; then 12027 ac_cv_prog_CXX="$CXX" # Let the user override the test. 12028else 12029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12030for as_dir in $PATH 12031do 12032 IFS=$as_save_IFS 12033 test -z "$as_dir" && as_dir=. 12034 for ac_exec_ext in '' $ac_executable_extensions; do 12035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12036 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 12037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12038 break 2 12039 fi 12040done 12041 done 12042IFS=$as_save_IFS 12043 12044fi 12045fi 12046CXX=$ac_cv_prog_CXX 12047if test -n "$CXX"; then 12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 12049$as_echo "$CXX" >&6; } 12050else 12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12052$as_echo "no" >&6; } 12053fi 12054 12055 12056 test -n "$CXX" && break 12057 done 12058fi 12059if test -z "$CXX"; then 12060 ac_ct_CXX=$CXX 12061 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 12062do 12063 # Extract the first word of "$ac_prog", so it can be a program name with args. 12064set dummy $ac_prog; ac_word=$2 12065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12066$as_echo_n "checking for $ac_word... " >&6; } 12067if ${ac_cv_prog_ac_ct_CXX+:} false; then : 12068 $as_echo_n "(cached) " >&6 12069else 12070 if test -n "$ac_ct_CXX"; then 12071 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 12072else 12073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12074for as_dir in $PATH 12075do 12076 IFS=$as_save_IFS 12077 test -z "$as_dir" && as_dir=. 12078 for ac_exec_ext in '' $ac_executable_extensions; do 12079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12080 ac_cv_prog_ac_ct_CXX="$ac_prog" 12081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12082 break 2 12083 fi 12084done 12085 done 12086IFS=$as_save_IFS 12087 12088fi 12089fi 12090ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 12091if test -n "$ac_ct_CXX"; then 12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 12093$as_echo "$ac_ct_CXX" >&6; } 12094else 12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12096$as_echo "no" >&6; } 12097fi 12098 12099 12100 test -n "$ac_ct_CXX" && break 12101done 12102 12103 if test "x$ac_ct_CXX" = x; then 12104 CXX="g++" 12105 else 12106 case $cross_compiling:$ac_tool_warned in 12107yes:) 12108{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12109$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12110ac_tool_warned=yes ;; 12111esac 12112 CXX=$ac_ct_CXX 12113 fi 12114fi 12115 12116 fi 12117fi 12118# Provide some information about the compiler. 12119$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 12120set X $ac_compile 12121ac_compiler=$2 12122for ac_option in --version -v -V -qversion; do 12123 { { ac_try="$ac_compiler $ac_option >&5" 12124case "(($ac_try" in 12125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12126 *) ac_try_echo=$ac_try;; 12127esac 12128eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12129$as_echo "$ac_try_echo"; } >&5 12130 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12131 ac_status=$? 12132 if test -s conftest.err; then 12133 sed '10a\ 12134... rest of stderr output deleted ... 12135 10q' conftest.err >conftest.er1 12136 cat conftest.er1 >&5 12137 fi 12138 rm -f conftest.er1 conftest.err 12139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12140 test $ac_status = 0; } 12141done 12142 12143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 12144$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 12145if ${ac_cv_cxx_compiler_gnu+:} false; then : 12146 $as_echo_n "(cached) " >&6 12147else 12148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12149/* end confdefs.h. */ 12150 12151int 12152main () 12153{ 12154#ifndef __GNUC__ 12155 choke me 12156#endif 12157 12158 ; 12159 return 0; 12160} 12161_ACEOF 12162if ac_fn_cxx_try_compile "$LINENO"; then : 12163 ac_compiler_gnu=yes 12164else 12165 ac_compiler_gnu=no 12166fi 12167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12168ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 12169 12170fi 12171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 12172$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 12173if test $ac_compiler_gnu = yes; then 12174 GXX=yes 12175else 12176 GXX= 12177fi 12178ac_test_CXXFLAGS=${CXXFLAGS+set} 12179ac_save_CXXFLAGS=$CXXFLAGS 12180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 12181$as_echo_n "checking whether $CXX accepts -g... " >&6; } 12182if ${ac_cv_prog_cxx_g+:} false; then : 12183 $as_echo_n "(cached) " >&6 12184else 12185 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 12186 ac_cxx_werror_flag=yes 12187 ac_cv_prog_cxx_g=no 12188 CXXFLAGS="-g" 12189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12190/* end confdefs.h. */ 12191 12192int 12193main () 12194{ 12195 12196 ; 12197 return 0; 12198} 12199_ACEOF 12200if ac_fn_cxx_try_compile "$LINENO"; then : 12201 ac_cv_prog_cxx_g=yes 12202else 12203 CXXFLAGS="" 12204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12205/* end confdefs.h. */ 12206 12207int 12208main () 12209{ 12210 12211 ; 12212 return 0; 12213} 12214_ACEOF 12215if ac_fn_cxx_try_compile "$LINENO"; then : 12216 12217else 12218 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 12219 CXXFLAGS="-g" 12220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12221/* end confdefs.h. */ 12222 12223int 12224main () 12225{ 12226 12227 ; 12228 return 0; 12229} 12230_ACEOF 12231if ac_fn_cxx_try_compile "$LINENO"; then : 12232 ac_cv_prog_cxx_g=yes 12233fi 12234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12235fi 12236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12237fi 12238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12239 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 12240fi 12241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 12242$as_echo "$ac_cv_prog_cxx_g" >&6; } 12243if test "$ac_test_CXXFLAGS" = set; then 12244 CXXFLAGS=$ac_save_CXXFLAGS 12245elif test $ac_cv_prog_cxx_g = yes; then 12246 if test "$GXX" = yes; then 12247 CXXFLAGS="-g -O2" 12248 else 12249 CXXFLAGS="-g" 12250 fi 12251else 12252 if test "$GXX" = yes; then 12253 CXXFLAGS="-O2" 12254 else 12255 CXXFLAGS= 12256 fi 12257fi 12258ac_ext=c 12259ac_cpp='$CPP $CPPFLAGS' 12260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12262ac_compiler_gnu=$ac_cv_c_compiler_gnu 12263 12264 12265 12266func_stripname_cnf () 12267{ 12268 case ${2} in 12269 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 12270 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 12271 esac 12272} # func_stripname_cnf 12273 12274 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 12275 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 12276 (test "X$CXX" != "Xg++"))) ; then 12277 ac_ext=cpp 12278ac_cpp='$CXXCPP $CPPFLAGS' 12279ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12280ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12281ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 12283$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 12284if test -z "$CXXCPP"; then 12285 if ${ac_cv_prog_CXXCPP+:} false; then : 12286 $as_echo_n "(cached) " >&6 12287else 12288 # Double quotes because CXXCPP needs to be expanded 12289 for CXXCPP in "$CXX -E" "/lib/cpp" 12290 do 12291 ac_preproc_ok=false 12292for ac_cxx_preproc_warn_flag in '' yes 12293do 12294 # Use a header file that comes with gcc, so configuring glibc 12295 # with a fresh cross-compiler works. 12296 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12297 # <limits.h> exists even on freestanding compilers. 12298 # On the NeXT, cc -E runs the code through the compiler's parser, 12299 # not just through cpp. "Syntax error" is here to catch this case. 12300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12301/* end confdefs.h. */ 12302#ifdef __STDC__ 12303# include <limits.h> 12304#else 12305# include <assert.h> 12306#endif 12307 Syntax error 12308_ACEOF 12309if ac_fn_cxx_try_cpp "$LINENO"; then : 12310 12311else 12312 # Broken: fails on valid input. 12313continue 12314fi 12315rm -f conftest.err conftest.i conftest.$ac_ext 12316 12317 # OK, works on sane cases. Now check whether nonexistent headers 12318 # can be detected and how. 12319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12320/* end confdefs.h. */ 12321#include <ac_nonexistent.h> 12322_ACEOF 12323if ac_fn_cxx_try_cpp "$LINENO"; then : 12324 # Broken: success on invalid input. 12325continue 12326else 12327 # Passes both tests. 12328ac_preproc_ok=: 12329break 12330fi 12331rm -f conftest.err conftest.i conftest.$ac_ext 12332 12333done 12334# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12335rm -f conftest.i conftest.err conftest.$ac_ext 12336if $ac_preproc_ok; then : 12337 break 12338fi 12339 12340 done 12341 ac_cv_prog_CXXCPP=$CXXCPP 12342 12343fi 12344 CXXCPP=$ac_cv_prog_CXXCPP 12345else 12346 ac_cv_prog_CXXCPP=$CXXCPP 12347fi 12348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 12349$as_echo "$CXXCPP" >&6; } 12350ac_preproc_ok=false 12351for ac_cxx_preproc_warn_flag in '' yes 12352do 12353 # Use a header file that comes with gcc, so configuring glibc 12354 # with a fresh cross-compiler works. 12355 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12356 # <limits.h> exists even on freestanding compilers. 12357 # On the NeXT, cc -E runs the code through the compiler's parser, 12358 # not just through cpp. "Syntax error" is here to catch this case. 12359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12360/* end confdefs.h. */ 12361#ifdef __STDC__ 12362# include <limits.h> 12363#else 12364# include <assert.h> 12365#endif 12366 Syntax error 12367_ACEOF 12368if ac_fn_cxx_try_cpp "$LINENO"; then : 12369 12370else 12371 # Broken: fails on valid input. 12372continue 12373fi 12374rm -f conftest.err conftest.i conftest.$ac_ext 12375 12376 # OK, works on sane cases. Now check whether nonexistent headers 12377 # can be detected and how. 12378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12379/* end confdefs.h. */ 12380#include <ac_nonexistent.h> 12381_ACEOF 12382if ac_fn_cxx_try_cpp "$LINENO"; then : 12383 # Broken: success on invalid input. 12384continue 12385else 12386 # Passes both tests. 12387ac_preproc_ok=: 12388break 12389fi 12390rm -f conftest.err conftest.i conftest.$ac_ext 12391 12392done 12393# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12394rm -f conftest.i conftest.err conftest.$ac_ext 12395if $ac_preproc_ok; then : 12396 12397else 12398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12399$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12400as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 12401See \`config.log' for more details" "$LINENO" 5; } 12402fi 12403 12404ac_ext=c 12405ac_cpp='$CPP $CPPFLAGS' 12406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12408ac_compiler_gnu=$ac_cv_c_compiler_gnu 12409 12410else 12411 _lt_caught_CXX_error=yes 12412fi 12413 12414ac_ext=cpp 12415ac_cpp='$CXXCPP $CPPFLAGS' 12416ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12417ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12418ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12419 12420archive_cmds_need_lc_CXX=no 12421allow_undefined_flag_CXX= 12422always_export_symbols_CXX=no 12423archive_expsym_cmds_CXX= 12424compiler_needs_object_CXX=no 12425export_dynamic_flag_spec_CXX= 12426hardcode_direct_CXX=no 12427hardcode_direct_absolute_CXX=no 12428hardcode_libdir_flag_spec_CXX= 12429hardcode_libdir_separator_CXX= 12430hardcode_minus_L_CXX=no 12431hardcode_shlibpath_var_CXX=unsupported 12432hardcode_automatic_CXX=no 12433inherit_rpath_CXX=no 12434module_cmds_CXX= 12435module_expsym_cmds_CXX= 12436link_all_deplibs_CXX=unknown 12437old_archive_cmds_CXX=$old_archive_cmds 12438reload_flag_CXX=$reload_flag 12439reload_cmds_CXX=$reload_cmds 12440no_undefined_flag_CXX= 12441whole_archive_flag_spec_CXX= 12442enable_shared_with_static_runtimes_CXX=no 12443 12444# Source file extension for C++ test sources. 12445ac_ext=cpp 12446 12447# Object file extension for compiled C++ test sources. 12448objext=o 12449objext_CXX=$objext 12450 12451# No sense in running all these tests if we already determined that 12452# the CXX compiler isn't working. Some variables (like enable_shared) 12453# are currently assumed to apply to all compilers on this platform, 12454# and will be corrupted by setting them based on a non-working compiler. 12455if test "$_lt_caught_CXX_error" != yes; then 12456 # Code to be used in simple compile tests 12457 lt_simple_compile_test_code="int some_variable = 0;" 12458 12459 # Code to be used in simple link tests 12460 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12461 12462 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12463 12464 12465 12466 12467 12468 12469# If no C compiler was specified, use CC. 12470LTCC=${LTCC-"$CC"} 12471 12472# If no C compiler flags were specified, use CFLAGS. 12473LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12474 12475# Allow CC to be a program name with arguments. 12476compiler=$CC 12477 12478 12479 # save warnings/boilerplate of simple test code 12480 ac_outfile=conftest.$ac_objext 12481echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12482eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12483_lt_compiler_boilerplate=`cat conftest.err` 12484$RM conftest* 12485 12486 ac_outfile=conftest.$ac_objext 12487echo "$lt_simple_link_test_code" >conftest.$ac_ext 12488eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12489_lt_linker_boilerplate=`cat conftest.err` 12490$RM -r conftest* 12491 12492 12493 # Allow CC to be a program name with arguments. 12494 lt_save_CC=$CC 12495 lt_save_CFLAGS=$CFLAGS 12496 lt_save_LD=$LD 12497 lt_save_GCC=$GCC 12498 GCC=$GXX 12499 lt_save_with_gnu_ld=$with_gnu_ld 12500 lt_save_path_LD=$lt_cv_path_LD 12501 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12502 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12503 else 12504 $as_unset lt_cv_prog_gnu_ld 12505 fi 12506 if test -n "${lt_cv_path_LDCXX+set}"; then 12507 lt_cv_path_LD=$lt_cv_path_LDCXX 12508 else 12509 $as_unset lt_cv_path_LD 12510 fi 12511 test -z "${LDCXX+set}" || LD=$LDCXX 12512 CC=${CXX-"c++"} 12513 CFLAGS=$CXXFLAGS 12514 compiler=$CC 12515 compiler_CXX=$CC 12516 for cc_temp in $compiler""; do 12517 case $cc_temp in 12518 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12519 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12520 \-*) ;; 12521 *) break;; 12522 esac 12523done 12524cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 12525 12526 12527 if test -n "$compiler"; then 12528 # We don't want -fno-exception when compiling C++ code, so set the 12529 # no_builtin_flag separately 12530 if test "$GXX" = yes; then 12531 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12532 else 12533 lt_prog_compiler_no_builtin_flag_CXX= 12534 fi 12535 12536 if test "$GXX" = yes; then 12537 # Set up default GNU C++ configuration 12538 12539 12540 12541# Check whether --with-gnu-ld was given. 12542if test "${with_gnu_ld+set}" = set; then : 12543 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12544else 12545 with_gnu_ld=no 12546fi 12547 12548ac_prog=ld 12549if test "$GCC" = yes; then 12550 # Check if gcc -print-prog-name=ld gives a path. 12551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12552$as_echo_n "checking for ld used by $CC... " >&6; } 12553 case $host in 12554 *-*-mingw*) 12555 # gcc leaves a trailing carriage return which upsets mingw 12556 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12557 *) 12558 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12559 esac 12560 case $ac_prog in 12561 # Accept absolute paths. 12562 [\\/]* | ?:[\\/]*) 12563 re_direlt='/[^/][^/]*/\.\./' 12564 # Canonicalize the pathname of ld 12565 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12566 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12567 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12568 done 12569 test -z "$LD" && LD="$ac_prog" 12570 ;; 12571 "") 12572 # If it fails, then pretend we aren't using GCC. 12573 ac_prog=ld 12574 ;; 12575 *) 12576 # If it is relative, then search for the first ld in PATH. 12577 with_gnu_ld=unknown 12578 ;; 12579 esac 12580elif test "$with_gnu_ld" = yes; then 12581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12582$as_echo_n "checking for GNU ld... " >&6; } 12583else 12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12585$as_echo_n "checking for non-GNU ld... " >&6; } 12586fi 12587if ${lt_cv_path_LD+:} false; then : 12588 $as_echo_n "(cached) " >&6 12589else 12590 if test -z "$LD"; then 12591 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12592 for ac_dir in $PATH; do 12593 IFS="$lt_save_ifs" 12594 test -z "$ac_dir" && ac_dir=. 12595 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12596 lt_cv_path_LD="$ac_dir/$ac_prog" 12597 # Check to see if the program is GNU ld. I'd rather use --version, 12598 # but apparently some variants of GNU ld only accept -v. 12599 # Break only if it was the GNU/non-GNU ld that we prefer. 12600 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12601 *GNU* | *'with BFD'*) 12602 test "$with_gnu_ld" != no && break 12603 ;; 12604 *) 12605 test "$with_gnu_ld" != yes && break 12606 ;; 12607 esac 12608 fi 12609 done 12610 IFS="$lt_save_ifs" 12611else 12612 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12613fi 12614fi 12615 12616LD="$lt_cv_path_LD" 12617if test -n "$LD"; then 12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12619$as_echo "$LD" >&6; } 12620else 12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12622$as_echo "no" >&6; } 12623fi 12624test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12626$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12627if ${lt_cv_prog_gnu_ld+:} false; then : 12628 $as_echo_n "(cached) " >&6 12629else 12630 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12631case `$LD -v 2>&1 </dev/null` in 12632*GNU* | *'with BFD'*) 12633 lt_cv_prog_gnu_ld=yes 12634 ;; 12635*) 12636 lt_cv_prog_gnu_ld=no 12637 ;; 12638esac 12639fi 12640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12641$as_echo "$lt_cv_prog_gnu_ld" >&6; } 12642with_gnu_ld=$lt_cv_prog_gnu_ld 12643 12644 12645 12646 12647 12648 12649 12650 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12651 # archiving commands below assume that GNU ld is being used. 12652 if test "$with_gnu_ld" = yes; then 12653 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12654 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12655 12656 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12657 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12658 12659 # If archive_cmds runs LD, not CC, wlarc should be empty 12660 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12661 # investigate it a little bit more. (MM) 12662 wlarc='${wl}' 12663 12664 # ancient GNU ld didn't support --whole-archive et. al. 12665 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 12666 $GREP 'no-whole-archive' > /dev/null; then 12667 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12668 else 12669 whole_archive_flag_spec_CXX= 12670 fi 12671 else 12672 with_gnu_ld=no 12673 wlarc= 12674 12675 # A generic and very simple default shared library creation 12676 # command for GNU C++ for the case where it uses the native 12677 # linker, instead of GNU ld. If possible, this setting should 12678 # overridden to take advantage of the native linker features on 12679 # the platform it is being used on. 12680 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12681 fi 12682 12683 # Commands to make compiler produce verbose output that lists 12684 # what "hidden" libraries, object files and flags are used when 12685 # linking a shared library. 12686 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12687 12688 else 12689 GXX=no 12690 with_gnu_ld=no 12691 wlarc= 12692 fi 12693 12694 # PORTME: fill in a description of your system's C++ link characteristics 12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12696$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12697 ld_shlibs_CXX=yes 12698 case $host_os in 12699 aix3*) 12700 # FIXME: insert proper C++ library support 12701 ld_shlibs_CXX=no 12702 ;; 12703 aix[4-9]*) 12704 if test "$host_cpu" = ia64; then 12705 # On IA64, the linker does run time linking by default, so we don't 12706 # have to do anything special. 12707 aix_use_runtimelinking=no 12708 exp_sym_flag='-Bexport' 12709 no_entry_flag="" 12710 else 12711 aix_use_runtimelinking=no 12712 12713 # Test if we are trying to use run time linking or normal 12714 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12715 # need to do runtime linking. 12716 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12717 for ld_flag in $LDFLAGS; do 12718 case $ld_flag in 12719 *-brtl*) 12720 aix_use_runtimelinking=yes 12721 break 12722 ;; 12723 esac 12724 done 12725 ;; 12726 esac 12727 12728 exp_sym_flag='-bexport' 12729 no_entry_flag='-bnoentry' 12730 fi 12731 12732 # When large executables or shared objects are built, AIX ld can 12733 # have problems creating the table of contents. If linking a library 12734 # or program results in "error TOC overflow" add -mminimal-toc to 12735 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12736 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12737 12738 archive_cmds_CXX='' 12739 hardcode_direct_CXX=yes 12740 hardcode_direct_absolute_CXX=yes 12741 hardcode_libdir_separator_CXX=':' 12742 link_all_deplibs_CXX=yes 12743 file_list_spec_CXX='${wl}-f,' 12744 12745 if test "$GXX" = yes; then 12746 case $host_os in aix4.[012]|aix4.[012].*) 12747 # We only want to do this on AIX 4.2 and lower, the check 12748 # below for broken collect2 doesn't work under 4.3+ 12749 collect2name=`${CC} -print-prog-name=collect2` 12750 if test -f "$collect2name" && 12751 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12752 then 12753 # We have reworked collect2 12754 : 12755 else 12756 # We have old collect2 12757 hardcode_direct_CXX=unsupported 12758 # It fails to find uninstalled libraries when the uninstalled 12759 # path is not listed in the libpath. Setting hardcode_minus_L 12760 # to unsupported forces relinking 12761 hardcode_minus_L_CXX=yes 12762 hardcode_libdir_flag_spec_CXX='-L$libdir' 12763 hardcode_libdir_separator_CXX= 12764 fi 12765 esac 12766 shared_flag='-shared' 12767 if test "$aix_use_runtimelinking" = yes; then 12768 shared_flag="$shared_flag "'${wl}-G' 12769 fi 12770 else 12771 # not using gcc 12772 if test "$host_cpu" = ia64; then 12773 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12774 # chokes on -Wl,-G. The following line is correct: 12775 shared_flag='-G' 12776 else 12777 if test "$aix_use_runtimelinking" = yes; then 12778 shared_flag='${wl}-G' 12779 else 12780 shared_flag='${wl}-bM:SRE' 12781 fi 12782 fi 12783 fi 12784 12785 export_dynamic_flag_spec_CXX='${wl}-bexpall' 12786 # It seems that -bexpall does not export symbols beginning with 12787 # underscore (_), so it is better to generate a list of symbols to 12788 # export. 12789 always_export_symbols_CXX=yes 12790 if test "$aix_use_runtimelinking" = yes; then 12791 # Warning - without using the other runtime loading flags (-brtl), 12792 # -berok will link without error, but may produce a broken library. 12793 allow_undefined_flag_CXX='-berok' 12794 # Determine the default libpath from the value encoded in an empty 12795 # executable. 12796 if test "${lt_cv_aix_libpath+set}" = set; then 12797 aix_libpath=$lt_cv_aix_libpath 12798else 12799 if ${lt_cv_aix_libpath__CXX+:} false; then : 12800 $as_echo_n "(cached) " >&6 12801else 12802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12803/* end confdefs.h. */ 12804 12805int 12806main () 12807{ 12808 12809 ; 12810 return 0; 12811} 12812_ACEOF 12813if ac_fn_cxx_try_link "$LINENO"; then : 12814 12815 lt_aix_libpath_sed=' 12816 /Import File Strings/,/^$/ { 12817 /^0/ { 12818 s/^0 *\([^ ]*\) *$/\1/ 12819 p 12820 } 12821 }' 12822 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12823 # Check for a 64-bit object if we didn't find anything. 12824 if test -z "$lt_cv_aix_libpath__CXX"; then 12825 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12826 fi 12827fi 12828rm -f core conftest.err conftest.$ac_objext \ 12829 conftest$ac_exeext conftest.$ac_ext 12830 if test -z "$lt_cv_aix_libpath__CXX"; then 12831 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 12832 fi 12833 12834fi 12835 12836 aix_libpath=$lt_cv_aix_libpath__CXX 12837fi 12838 12839 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12840 12841 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 12842 else 12843 if test "$host_cpu" = ia64; then 12844 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12845 allow_undefined_flag_CXX="-z nodefs" 12846 archive_expsym_cmds_CXX="\$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" 12847 else 12848 # Determine the default libpath from the value encoded in an 12849 # empty executable. 12850 if test "${lt_cv_aix_libpath+set}" = set; then 12851 aix_libpath=$lt_cv_aix_libpath 12852else 12853 if ${lt_cv_aix_libpath__CXX+:} false; then : 12854 $as_echo_n "(cached) " >&6 12855else 12856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12857/* end confdefs.h. */ 12858 12859int 12860main () 12861{ 12862 12863 ; 12864 return 0; 12865} 12866_ACEOF 12867if ac_fn_cxx_try_link "$LINENO"; then : 12868 12869 lt_aix_libpath_sed=' 12870 /Import File Strings/,/^$/ { 12871 /^0/ { 12872 s/^0 *\([^ ]*\) *$/\1/ 12873 p 12874 } 12875 }' 12876 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12877 # Check for a 64-bit object if we didn't find anything. 12878 if test -z "$lt_cv_aix_libpath__CXX"; then 12879 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12880 fi 12881fi 12882rm -f core conftest.err conftest.$ac_objext \ 12883 conftest$ac_exeext conftest.$ac_ext 12884 if test -z "$lt_cv_aix_libpath__CXX"; then 12885 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 12886 fi 12887 12888fi 12889 12890 aix_libpath=$lt_cv_aix_libpath__CXX 12891fi 12892 12893 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12894 # Warning - without using the other run time loading flags, 12895 # -berok will link without error, but may produce a broken library. 12896 no_undefined_flag_CXX=' ${wl}-bernotok' 12897 allow_undefined_flag_CXX=' ${wl}-berok' 12898 if test "$with_gnu_ld" = yes; then 12899 # We only use this code for GNU lds that support --whole-archive. 12900 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12901 else 12902 # Exported symbols can be pulled into shared objects from archives 12903 whole_archive_flag_spec_CXX='$convenience' 12904 fi 12905 archive_cmds_need_lc_CXX=yes 12906 # This is similar to how AIX traditionally builds its shared 12907 # libraries. 12908 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 12909 fi 12910 fi 12911 ;; 12912 12913 beos*) 12914 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12915 allow_undefined_flag_CXX=unsupported 12916 # Joseph Beckenbach <[email protected]> says some releases of gcc 12917 # support --undefined. This deserves some investigation. FIXME 12918 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12919 else 12920 ld_shlibs_CXX=no 12921 fi 12922 ;; 12923 12924 chorus*) 12925 case $cc_basename in 12926 *) 12927 # FIXME: insert proper C++ library support 12928 ld_shlibs_CXX=no 12929 ;; 12930 esac 12931 ;; 12932 12933 cygwin* | mingw* | pw32* | cegcc*) 12934 case $GXX,$cc_basename in 12935 ,cl* | no,cl*) 12936 # Native MSVC 12937 # hardcode_libdir_flag_spec is actually meaningless, as there is 12938 # no search path for DLLs. 12939 hardcode_libdir_flag_spec_CXX=' ' 12940 allow_undefined_flag_CXX=unsupported 12941 always_export_symbols_CXX=yes 12942 file_list_spec_CXX='@' 12943 # Tell ltmain to make .lib files, not .a files. 12944 libext=lib 12945 # Tell ltmain to make .dll files, not .so files. 12946 shrext_cmds=".dll" 12947 # FIXME: Setting linknames here is a bad hack. 12948 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 12949 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12950 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 12951 else 12952 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 12953 fi~ 12954 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 12955 linknames=' 12956 # The linker will not automatically build a static lib if we build a DLL. 12957 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 12958 enable_shared_with_static_runtimes_CXX=yes 12959 # Don't use ranlib 12960 old_postinstall_cmds_CXX='chmod 644 $oldlib' 12961 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 12962 lt_tool_outputfile="@TOOL_OUTPUT@"~ 12963 case $lt_outputfile in 12964 *.exe|*.EXE) ;; 12965 *) 12966 lt_outputfile="$lt_outputfile.exe" 12967 lt_tool_outputfile="$lt_tool_outputfile.exe" 12968 ;; 12969 esac~ 12970 func_to_tool_file "$lt_outputfile"~ 12971 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 12972 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12973 $RM "$lt_outputfile.manifest"; 12974 fi' 12975 ;; 12976 *) 12977 # g++ 12978 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12979 # as there is no search path for DLLs. 12980 hardcode_libdir_flag_spec_CXX='-L$libdir' 12981 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 12982 allow_undefined_flag_CXX=unsupported 12983 always_export_symbols_CXX=no 12984 enable_shared_with_static_runtimes_CXX=yes 12985 12986 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12987 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12988 # If the export-symbols file already is a .def file (1st line 12989 # is EXPORTS), use it as is; otherwise, prepend... 12990 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12991 cp $export_symbols $output_objdir/$soname.def; 12992 else 12993 echo EXPORTS > $output_objdir/$soname.def; 12994 cat $export_symbols >> $output_objdir/$soname.def; 12995 fi~ 12996 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12997 else 12998 ld_shlibs_CXX=no 12999 fi 13000 ;; 13001 esac 13002 ;; 13003 darwin* | rhapsody*) 13004 13005 13006 archive_cmds_need_lc_CXX=no 13007 hardcode_direct_CXX=no 13008 hardcode_automatic_CXX=yes 13009 hardcode_shlibpath_var_CXX=unsupported 13010 if test "$lt_cv_ld_force_load" = "yes"; then 13011 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 13012 13013 else 13014 whole_archive_flag_spec_CXX='' 13015 fi 13016 link_all_deplibs_CXX=yes 13017 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 13018 case $cc_basename in 13019 ifort*) _lt_dar_can_shared=yes ;; 13020 *) _lt_dar_can_shared=$GCC ;; 13021 esac 13022 if test "$_lt_dar_can_shared" = "yes"; then 13023 output_verbose_link_cmd=func_echo_all 13024 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 13025 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 13026 archive_expsym_cmds_CXX="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}" 13027 module_expsym_cmds_CXX="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}" 13028 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 13029 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 13030 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" 13031 fi 13032 13033 else 13034 ld_shlibs_CXX=no 13035 fi 13036 13037 ;; 13038 13039 dgux*) 13040 case $cc_basename in 13041 ec++*) 13042 # FIXME: insert proper C++ library support 13043 ld_shlibs_CXX=no 13044 ;; 13045 ghcx*) 13046 # Green Hills C++ Compiler 13047 # FIXME: insert proper C++ library support 13048 ld_shlibs_CXX=no 13049 ;; 13050 *) 13051 # FIXME: insert proper C++ library support 13052 ld_shlibs_CXX=no 13053 ;; 13054 esac 13055 ;; 13056 13057 freebsd2.*) 13058 # C++ shared libraries reported to be fairly broken before 13059 # switch to ELF 13060 ld_shlibs_CXX=no 13061 ;; 13062 13063 freebsd-elf*) 13064 archive_cmds_need_lc_CXX=no 13065 ;; 13066 13067 freebsd* | dragonfly*) 13068 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13069 # conventions 13070 ld_shlibs_CXX=yes 13071 ;; 13072 13073 gnu*) 13074 ;; 13075 13076 haiku*) 13077 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13078 link_all_deplibs_CXX=yes 13079 ;; 13080 13081 hpux9*) 13082 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13083 hardcode_libdir_separator_CXX=: 13084 export_dynamic_flag_spec_CXX='${wl}-E' 13085 hardcode_direct_CXX=yes 13086 hardcode_minus_L_CXX=yes # Not in the search PATH, 13087 # but as the default 13088 # location of the library. 13089 13090 case $cc_basename in 13091 CC*) 13092 # FIXME: insert proper C++ library support 13093 ld_shlibs_CXX=no 13094 ;; 13095 aCC*) 13096 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13097 # Commands to make compiler produce verbose output that lists 13098 # what "hidden" libraries, object files and flags are used when 13099 # linking a shared library. 13100 # 13101 # There doesn't appear to be a way to prevent this compiler from 13102 # explicitly linking system object files so we need to strip them 13103 # from the output so that they don't get included in the library 13104 # dependencies. 13105 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13106 ;; 13107 *) 13108 if test "$GXX" = yes; then 13109 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13110 else 13111 # FIXME: insert proper C++ library support 13112 ld_shlibs_CXX=no 13113 fi 13114 ;; 13115 esac 13116 ;; 13117 13118 hpux10*|hpux11*) 13119 if test $with_gnu_ld = no; then 13120 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13121 hardcode_libdir_separator_CXX=: 13122 13123 case $host_cpu in 13124 hppa*64*|ia64*) 13125 ;; 13126 *) 13127 export_dynamic_flag_spec_CXX='${wl}-E' 13128 ;; 13129 esac 13130 fi 13131 case $host_cpu in 13132 hppa*64*|ia64*) 13133 hardcode_direct_CXX=no 13134 hardcode_shlibpath_var_CXX=no 13135 ;; 13136 *) 13137 hardcode_direct_CXX=yes 13138 hardcode_direct_absolute_CXX=yes 13139 hardcode_minus_L_CXX=yes # Not in the search PATH, 13140 # but as the default 13141 # location of the library. 13142 ;; 13143 esac 13144 13145 case $cc_basename in 13146 CC*) 13147 # FIXME: insert proper C++ library support 13148 ld_shlibs_CXX=no 13149 ;; 13150 aCC*) 13151 case $host_cpu in 13152 hppa*64*) 13153 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13154 ;; 13155 ia64*) 13156 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13157 ;; 13158 *) 13159 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13160 ;; 13161 esac 13162 # Commands to make compiler produce verbose output that lists 13163 # what "hidden" libraries, object files and flags are used when 13164 # linking a shared library. 13165 # 13166 # There doesn't appear to be a way to prevent this compiler from 13167 # explicitly linking system object files so we need to strip them 13168 # from the output so that they don't get included in the library 13169 # dependencies. 13170 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13171 ;; 13172 *) 13173 if test "$GXX" = yes; then 13174 if test $with_gnu_ld = no; then 13175 case $host_cpu in 13176 hppa*64*) 13177 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13178 ;; 13179 ia64*) 13180 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13181 ;; 13182 *) 13183 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13184 ;; 13185 esac 13186 fi 13187 else 13188 # FIXME: insert proper C++ library support 13189 ld_shlibs_CXX=no 13190 fi 13191 ;; 13192 esac 13193 ;; 13194 13195 interix[3-9]*) 13196 hardcode_direct_CXX=no 13197 hardcode_shlibpath_var_CXX=no 13198 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13199 export_dynamic_flag_spec_CXX='${wl}-E' 13200 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13201 # Instead, shared libraries are loaded at an image base (0x10000000 by 13202 # default) and relocated if they conflict, which is a slow very memory 13203 # consuming and fragmenting process. To avoid this, we pick a random, 13204 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13205 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13206 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13207 archive_expsym_cmds_CXX='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' 13208 ;; 13209 irix5* | irix6*) 13210 case $cc_basename in 13211 CC*) 13212 # SGI C++ 13213 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 13214 13215 # Archives containing C++ object files must be created using 13216 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13217 # necessary to make sure instantiated templates are included 13218 # in the archive. 13219 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13220 ;; 13221 *) 13222 if test "$GXX" = yes; then 13223 if test "$with_gnu_ld" = no; then 13224 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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' 13225 else 13226 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' 13227 fi 13228 fi 13229 link_all_deplibs_CXX=yes 13230 ;; 13231 esac 13232 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13233 hardcode_libdir_separator_CXX=: 13234 inherit_rpath_CXX=yes 13235 ;; 13236 13237 linux* | k*bsd*-gnu | kopensolaris*-gnu) 13238 case $cc_basename in 13239 KCC*) 13240 # Kuck and Associates, Inc. (KAI) C++ Compiler 13241 13242 # KCC will only create a shared library if the output file 13243 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13244 # to its proper name (with version) after linking. 13245 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 13246 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 13247 # Commands to make compiler produce verbose output that lists 13248 # what "hidden" libraries, object files and flags are used when 13249 # linking a shared library. 13250 # 13251 # There doesn't appear to be a way to prevent this compiler from 13252 # explicitly linking system object files so we need to strip them 13253 # from the output so that they don't get included in the library 13254 # dependencies. 13255 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13256 13257 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13258 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13259 13260 # Archives containing C++ object files must be created using 13261 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13262 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13263 ;; 13264 icpc* | ecpc* ) 13265 # Intel C++ 13266 with_gnu_ld=yes 13267 # version 8.0 and above of icpc choke on multiply defined symbols 13268 # if we add $predep_objects and $postdep_objects, however 7.1 and 13269 # earlier do not add the objects themselves. 13270 case `$CC -V 2>&1` in 13271 *"Version 7."*) 13272 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13273 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13274 ;; 13275 *) # Version 8.0 or newer 13276 tmp_idyn= 13277 case $host_cpu in 13278 ia64*) tmp_idyn=' -i_dynamic';; 13279 esac 13280 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13281 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13282 ;; 13283 esac 13284 archive_cmds_need_lc_CXX=no 13285 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13286 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13287 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13288 ;; 13289 pgCC* | pgcpp*) 13290 # Portland Group C++ compiler 13291 case `$CC -V` in 13292 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 13293 prelink_cmds_CXX='tpldir=Template.dir~ 13294 rm -rf $tpldir~ 13295 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13296 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 13297 old_archive_cmds_CXX='tpldir=Template.dir~ 13298 rm -rf $tpldir~ 13299 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13300 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 13301 $RANLIB $oldlib' 13302 archive_cmds_CXX='tpldir=Template.dir~ 13303 rm -rf $tpldir~ 13304 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13305 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13306 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13307 rm -rf $tpldir~ 13308 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13309 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 13310 ;; 13311 *) # Version 6 and above use weak symbols 13312 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13313 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 13314 ;; 13315 esac 13316 13317 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 13318 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13319 whole_archive_flag_spec_CXX='${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' 13320 ;; 13321 cxx*) 13322 # Compaq C++ 13323 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13324 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 13325 13326 runpath_var=LD_RUN_PATH 13327 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13328 hardcode_libdir_separator_CXX=: 13329 13330 # Commands to make compiler produce verbose output that lists 13331 # what "hidden" libraries, object files and flags are used when 13332 # linking a shared library. 13333 # 13334 # There doesn't appear to be a way to prevent this compiler from 13335 # explicitly linking system object files so we need to strip them 13336 # from the output so that they don't get included in the library 13337 # dependencies. 13338 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 13339 ;; 13340 xl* | mpixl* | bgxl*) 13341 # IBM XL 8.0 on PPC, with GNU ld 13342 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13343 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13344 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13345 if test "x$supports_anon_versioning" = xyes; then 13346 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13347 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13348 echo "local: *; };" >> $output_objdir/$libname.ver~ 13349 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13350 fi 13351 ;; 13352 *) 13353 case `$CC -V 2>&1 | sed 5q` in 13354 *Sun\ C*) 13355 # Sun C++ 5.9 13356 no_undefined_flag_CXX=' -zdefs' 13357 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13358 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 13359 hardcode_libdir_flag_spec_CXX='-R$libdir' 13360 whole_archive_flag_spec_CXX='${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' 13361 compiler_needs_object_CXX=yes 13362 13363 # Not sure whether something based on 13364 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13365 # would be better. 13366 output_verbose_link_cmd='func_echo_all' 13367 13368 # Archives containing C++ object files must be created using 13369 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13370 # necessary to make sure instantiated templates are included 13371 # in the archive. 13372 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13373 ;; 13374 esac 13375 ;; 13376 esac 13377 ;; 13378 13379 lynxos*) 13380 # FIXME: insert proper C++ library support 13381 ld_shlibs_CXX=no 13382 ;; 13383 13384 m88k*) 13385 # FIXME: insert proper C++ library support 13386 ld_shlibs_CXX=no 13387 ;; 13388 13389 mvs*) 13390 case $cc_basename in 13391 cxx*) 13392 # FIXME: insert proper C++ library support 13393 ld_shlibs_CXX=no 13394 ;; 13395 *) 13396 # FIXME: insert proper C++ library support 13397 ld_shlibs_CXX=no 13398 ;; 13399 esac 13400 ;; 13401 13402 netbsd*) 13403 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13404 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13405 wlarc= 13406 hardcode_libdir_flag_spec_CXX='-R$libdir' 13407 hardcode_direct_CXX=yes 13408 hardcode_shlibpath_var_CXX=no 13409 fi 13410 # Workaround some broken pre-1.5 toolchains 13411 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13412 ;; 13413 13414 *nto* | *qnx*) 13415 ld_shlibs_CXX=yes 13416 ;; 13417 13418 openbsd2*) 13419 # C++ shared libraries are fairly broken 13420 ld_shlibs_CXX=no 13421 ;; 13422 13423 openbsd*) 13424 if test -f /usr/libexec/ld.so; then 13425 hardcode_direct_CXX=yes 13426 hardcode_shlibpath_var_CXX=no 13427 hardcode_direct_absolute_CXX=yes 13428 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13429 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13430 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13431 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 13432 export_dynamic_flag_spec_CXX='${wl}-E' 13433 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13434 fi 13435 output_verbose_link_cmd=func_echo_all 13436 else 13437 ld_shlibs_CXX=no 13438 fi 13439 ;; 13440 13441 osf3* | osf4* | osf5*) 13442 case $cc_basename in 13443 KCC*) 13444 # Kuck and Associates, Inc. (KAI) C++ Compiler 13445 13446 # KCC will only create a shared library if the output file 13447 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13448 # to its proper name (with version) after linking. 13449 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 13450 13451 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13452 hardcode_libdir_separator_CXX=: 13453 13454 # Archives containing C++ object files must be created using 13455 # the KAI C++ compiler. 13456 case $host in 13457 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13458 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13459 esac 13460 ;; 13461 RCC*) 13462 # Rational C++ 2.4.1 13463 # FIXME: insert proper C++ library support 13464 ld_shlibs_CXX=no 13465 ;; 13466 cxx*) 13467 case $host in 13468 osf3*) 13469 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13470 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 13471 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13472 ;; 13473 *) 13474 allow_undefined_flag_CXX=' -expect_unresolved \*' 13475 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 13476 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13477 echo "-hidden">> $lib.exp~ 13478 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ 13479 $RM $lib.exp' 13480 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13481 ;; 13482 esac 13483 13484 hardcode_libdir_separator_CXX=: 13485 13486 # Commands to make compiler produce verbose output that lists 13487 # what "hidden" libraries, object files and flags are used when 13488 # linking a shared library. 13489 # 13490 # There doesn't appear to be a way to prevent this compiler from 13491 # explicitly linking system object files so we need to strip them 13492 # from the output so that they don't get included in the library 13493 # dependencies. 13494 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13495 ;; 13496 *) 13497 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13498 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13499 case $host in 13500 osf3*) 13501 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' 13502 ;; 13503 *) 13504 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' 13505 ;; 13506 esac 13507 13508 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13509 hardcode_libdir_separator_CXX=: 13510 13511 # Commands to make compiler produce verbose output that lists 13512 # what "hidden" libraries, object files and flags are used when 13513 # linking a shared library. 13514 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13515 13516 else 13517 # FIXME: insert proper C++ library support 13518 ld_shlibs_CXX=no 13519 fi 13520 ;; 13521 esac 13522 ;; 13523 13524 psos*) 13525 # FIXME: insert proper C++ library support 13526 ld_shlibs_CXX=no 13527 ;; 13528 13529 sunos4*) 13530 case $cc_basename in 13531 CC*) 13532 # Sun C++ 4.x 13533 # FIXME: insert proper C++ library support 13534 ld_shlibs_CXX=no 13535 ;; 13536 lcc*) 13537 # Lucid 13538 # FIXME: insert proper C++ library support 13539 ld_shlibs_CXX=no 13540 ;; 13541 *) 13542 # FIXME: insert proper C++ library support 13543 ld_shlibs_CXX=no 13544 ;; 13545 esac 13546 ;; 13547 13548 solaris*) 13549 case $cc_basename in 13550 CC* | sunCC*) 13551 # Sun C++ 4.2, 5.x and Centerline C++ 13552 archive_cmds_need_lc_CXX=yes 13553 no_undefined_flag_CXX=' -zdefs' 13554 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13555 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13556 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13557 13558 hardcode_libdir_flag_spec_CXX='-R$libdir' 13559 hardcode_shlibpath_var_CXX=no 13560 case $host_os in 13561 solaris2.[0-5] | solaris2.[0-5].*) ;; 13562 *) 13563 # The compiler driver will combine and reorder linker options, 13564 # but understands `-z linker_flag'. 13565 # Supported since Solaris 2.6 (maybe 2.5.1?) 13566 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13567 ;; 13568 esac 13569 link_all_deplibs_CXX=yes 13570 13571 output_verbose_link_cmd='func_echo_all' 13572 13573 # Archives containing C++ object files must be created using 13574 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13575 # necessary to make sure instantiated templates are included 13576 # in the archive. 13577 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13578 ;; 13579 gcx*) 13580 # Green Hills C++ Compiler 13581 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13582 13583 # The C++ compiler must be used to create the archive. 13584 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13585 ;; 13586 *) 13587 # GNU C++ compiler with Solaris linker 13588 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13589 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 13590 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 13591 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13592 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13593 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13594 13595 # Commands to make compiler produce verbose output that lists 13596 # what "hidden" libraries, object files and flags are used when 13597 # linking a shared library. 13598 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13599 else 13600 # g++ 2.7 appears to require `-G' NOT `-shared' on this 13601 # platform. 13602 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13603 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13604 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13605 13606 # Commands to make compiler produce verbose output that lists 13607 # what "hidden" libraries, object files and flags are used when 13608 # linking a shared library. 13609 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13610 fi 13611 13612 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 13613 case $host_os in 13614 solaris2.[0-5] | solaris2.[0-5].*) ;; 13615 *) 13616 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13617 ;; 13618 esac 13619 fi 13620 ;; 13621 esac 13622 ;; 13623 13624 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13625 no_undefined_flag_CXX='${wl}-z,text' 13626 archive_cmds_need_lc_CXX=no 13627 hardcode_shlibpath_var_CXX=no 13628 runpath_var='LD_RUN_PATH' 13629 13630 case $cc_basename in 13631 CC*) 13632 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13633 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13634 ;; 13635 *) 13636 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13637 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13638 ;; 13639 esac 13640 ;; 13641 13642 sysv5* | sco3.2v5* | sco5v6*) 13643 # Note: We can NOT use -z defs as we might desire, because we do not 13644 # link with -lc, and that would cause any symbols used from libc to 13645 # always be unresolved, which means just about no library would 13646 # ever link correctly. If we're not using GNU ld we use -z text 13647 # though, which does catch some bad symbols but isn't as heavy-handed 13648 # as -z defs. 13649 no_undefined_flag_CXX='${wl}-z,text' 13650 allow_undefined_flag_CXX='${wl}-z,nodefs' 13651 archive_cmds_need_lc_CXX=no 13652 hardcode_shlibpath_var_CXX=no 13653 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 13654 hardcode_libdir_separator_CXX=':' 13655 link_all_deplibs_CXX=yes 13656 export_dynamic_flag_spec_CXX='${wl}-Bexport' 13657 runpath_var='LD_RUN_PATH' 13658 13659 case $cc_basename in 13660 CC*) 13661 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13662 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13663 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 13664 '"$old_archive_cmds_CXX" 13665 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 13666 '"$reload_cmds_CXX" 13667 ;; 13668 *) 13669 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13670 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13671 ;; 13672 esac 13673 ;; 13674 13675 tandem*) 13676 case $cc_basename in 13677 NCC*) 13678 # NonStop-UX NCC 3.20 13679 # FIXME: insert proper C++ library support 13680 ld_shlibs_CXX=no 13681 ;; 13682 *) 13683 # FIXME: insert proper C++ library support 13684 ld_shlibs_CXX=no 13685 ;; 13686 esac 13687 ;; 13688 13689 vxworks*) 13690 # FIXME: insert proper C++ library support 13691 ld_shlibs_CXX=no 13692 ;; 13693 13694 *) 13695 # FIXME: insert proper C++ library support 13696 ld_shlibs_CXX=no 13697 ;; 13698 esac 13699 13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13701$as_echo "$ld_shlibs_CXX" >&6; } 13702 test "$ld_shlibs_CXX" = no && can_build_shared=no 13703 13704 GCC_CXX="$GXX" 13705 LD_CXX="$LD" 13706 13707 ## CAVEAT EMPTOR: 13708 ## There is no encapsulation within the following macros, do not change 13709 ## the running order or otherwise move them around unless you know exactly 13710 ## what you are doing... 13711 # Dependencies to place before and after the object being linked: 13712predep_objects_CXX= 13713postdep_objects_CXX= 13714predeps_CXX= 13715postdeps_CXX= 13716compiler_lib_search_path_CXX= 13717 13718cat > conftest.$ac_ext <<_LT_EOF 13719class Foo 13720{ 13721public: 13722 Foo (void) { a = 0; } 13723private: 13724 int a; 13725}; 13726_LT_EOF 13727 13728 13729_lt_libdeps_save_CFLAGS=$CFLAGS 13730case "$CC $CFLAGS " in #( 13731*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 13732*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 13733*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 13734esac 13735 13736if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13737 (eval $ac_compile) 2>&5 13738 ac_status=$? 13739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13740 test $ac_status = 0; }; then 13741 # Parse the compiler output and extract the necessary 13742 # objects, libraries and library flags. 13743 13744 # Sentinel used to keep track of whether or not we are before 13745 # the conftest object file. 13746 pre_test_object_deps_done=no 13747 13748 for p in `eval "$output_verbose_link_cmd"`; do 13749 case ${prev}${p} in 13750 13751 -L* | -R* | -l*) 13752 # Some compilers place space between "-{L,R}" and the path. 13753 # Remove the space. 13754 if test $p = "-L" || 13755 test $p = "-R"; then 13756 prev=$p 13757 continue 13758 fi 13759 13760 # Expand the sysroot to ease extracting the directories later. 13761 if test -z "$prev"; then 13762 case $p in 13763 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 13764 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 13765 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 13766 esac 13767 fi 13768 case $p in 13769 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 13770 esac 13771 if test "$pre_test_object_deps_done" = no; then 13772 case ${prev} in 13773 -L | -R) 13774 # Internal compiler library paths should come after those 13775 # provided the user. The postdeps already come after the 13776 # user supplied libs so there is no need to process them. 13777 if test -z "$compiler_lib_search_path_CXX"; then 13778 compiler_lib_search_path_CXX="${prev}${p}" 13779 else 13780 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 13781 fi 13782 ;; 13783 # The "-l" case would never come before the object being 13784 # linked, so don't bother handling this case. 13785 esac 13786 else 13787 if test -z "$postdeps_CXX"; then 13788 postdeps_CXX="${prev}${p}" 13789 else 13790 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 13791 fi 13792 fi 13793 prev= 13794 ;; 13795 13796 *.lto.$objext) ;; # Ignore GCC LTO objects 13797 *.$objext) 13798 # This assumes that the test object file only shows up 13799 # once in the compiler output. 13800 if test "$p" = "conftest.$objext"; then 13801 pre_test_object_deps_done=yes 13802 continue 13803 fi 13804 13805 if test "$pre_test_object_deps_done" = no; then 13806 if test -z "$predep_objects_CXX"; then 13807 predep_objects_CXX="$p" 13808 else 13809 predep_objects_CXX="$predep_objects_CXX $p" 13810 fi 13811 else 13812 if test -z "$postdep_objects_CXX"; then 13813 postdep_objects_CXX="$p" 13814 else 13815 postdep_objects_CXX="$postdep_objects_CXX $p" 13816 fi 13817 fi 13818 ;; 13819 13820 *) ;; # Ignore the rest. 13821 13822 esac 13823 done 13824 13825 # Clean up. 13826 rm -f a.out a.exe 13827else 13828 echo "libtool.m4: error: problem compiling CXX test program" 13829fi 13830 13831$RM -f confest.$objext 13832CFLAGS=$_lt_libdeps_save_CFLAGS 13833 13834# PORTME: override above test on systems where it is broken 13835case $host_os in 13836interix[3-9]*) 13837 # Interix 3.5 installs completely hosed .la files for C++, so rather than 13838 # hack all around it, let's just trust "g++" to DTRT. 13839 predep_objects_CXX= 13840 postdep_objects_CXX= 13841 postdeps_CXX= 13842 ;; 13843 13844linux*) 13845 case `$CC -V 2>&1 | sed 5q` in 13846 *Sun\ C*) 13847 # Sun C++ 5.9 13848 13849 # The more standards-conforming stlport4 library is 13850 # incompatible with the Cstd library. Avoid specifying 13851 # it if it's in CXXFLAGS. Ignore libCrun as 13852 # -library=stlport4 depends on it. 13853 case " $CXX $CXXFLAGS " in 13854 *" -library=stlport4 "*) 13855 solaris_use_stlport4=yes 13856 ;; 13857 esac 13858 13859 if test "$solaris_use_stlport4" != yes; then 13860 postdeps_CXX='-library=Cstd -library=Crun' 13861 fi 13862 ;; 13863 esac 13864 ;; 13865 13866solaris*) 13867 case $cc_basename in 13868 CC* | sunCC*) 13869 # The more standards-conforming stlport4 library is 13870 # incompatible with the Cstd library. Avoid specifying 13871 # it if it's in CXXFLAGS. Ignore libCrun as 13872 # -library=stlport4 depends on it. 13873 case " $CXX $CXXFLAGS " in 13874 *" -library=stlport4 "*) 13875 solaris_use_stlport4=yes 13876 ;; 13877 esac 13878 13879 # Adding this requires a known-good setup of shared libraries for 13880 # Sun compiler versions before 5.6, else PIC objects from an old 13881 # archive will be linked into the output, leading to subtle bugs. 13882 if test "$solaris_use_stlport4" != yes; then 13883 postdeps_CXX='-library=Cstd -library=Crun' 13884 fi 13885 ;; 13886 esac 13887 ;; 13888esac 13889 13890 13891case " $postdeps_CXX " in 13892*" -lc "*) archive_cmds_need_lc_CXX=no ;; 13893esac 13894 compiler_lib_search_dirs_CXX= 13895if test -n "${compiler_lib_search_path_CXX}"; then 13896 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 13897fi 13898 13899 13900 13901 13902 13903 13904 13905 13906 13907 13908 13909 13910 13911 13912 13913 13914 13915 13916 13917 13918 13919 13920 13921 13922 13923 13924 13925 13926 13927 13928 13929 lt_prog_compiler_wl_CXX= 13930lt_prog_compiler_pic_CXX= 13931lt_prog_compiler_static_CXX= 13932 13933 13934 # C++ specific cases for pic, static, wl, etc. 13935 if test "$GXX" = yes; then 13936 lt_prog_compiler_wl_CXX='-Wl,' 13937 lt_prog_compiler_static_CXX='-static' 13938 13939 case $host_os in 13940 aix*) 13941 # All AIX code is PIC. 13942 if test "$host_cpu" = ia64; then 13943 # AIX 5 now supports IA64 processor 13944 lt_prog_compiler_static_CXX='-Bstatic' 13945 fi 13946 ;; 13947 13948 amigaos*) 13949 case $host_cpu in 13950 powerpc) 13951 # see comment about AmigaOS4 .so support 13952 lt_prog_compiler_pic_CXX='-fPIC' 13953 ;; 13954 m68k) 13955 # FIXME: we need at least 68020 code to build shared libraries, but 13956 # adding the `-m68020' flag to GCC prevents building anything better, 13957 # like `-m68040'. 13958 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 13959 ;; 13960 esac 13961 ;; 13962 13963 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13964 # PIC is the default for these OSes. 13965 ;; 13966 mingw* | cygwin* | os2* | pw32* | cegcc*) 13967 # This hack is so that the source file can tell whether it is being 13968 # built for inclusion in a dll (and should export symbols for example). 13969 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13970 # (--disable-auto-import) libraries 13971 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13972 ;; 13973 darwin* | rhapsody*) 13974 # PIC is the default on this platform 13975 # Common symbols not allowed in MH_DYLIB files 13976 lt_prog_compiler_pic_CXX='-fno-common' 13977 ;; 13978 *djgpp*) 13979 # DJGPP does not support shared libraries at all 13980 lt_prog_compiler_pic_CXX= 13981 ;; 13982 haiku*) 13983 # PIC is the default for Haiku. 13984 # The "-static" flag exists, but is broken. 13985 lt_prog_compiler_static_CXX= 13986 ;; 13987 interix[3-9]*) 13988 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13989 # Instead, we relocate shared libraries at runtime. 13990 ;; 13991 sysv4*MP*) 13992 if test -d /usr/nec; then 13993 lt_prog_compiler_pic_CXX=-Kconform_pic 13994 fi 13995 ;; 13996 hpux*) 13997 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 13998 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 13999 # sets the default TLS model and affects inlining. 14000 case $host_cpu in 14001 hppa*64*) 14002 ;; 14003 *) 14004 lt_prog_compiler_pic_CXX='-fPIC' 14005 ;; 14006 esac 14007 ;; 14008 *qnx* | *nto*) 14009 # QNX uses GNU C++, but need to define -shared option too, otherwise 14010 # it will coredump. 14011 lt_prog_compiler_pic_CXX='-fPIC -shared' 14012 ;; 14013 *) 14014 lt_prog_compiler_pic_CXX='-fPIC' 14015 ;; 14016 esac 14017 else 14018 case $host_os in 14019 aix[4-9]*) 14020 # All AIX code is PIC. 14021 if test "$host_cpu" = ia64; then 14022 # AIX 5 now supports IA64 processor 14023 lt_prog_compiler_static_CXX='-Bstatic' 14024 else 14025 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14026 fi 14027 ;; 14028 chorus*) 14029 case $cc_basename in 14030 cxch68*) 14031 # Green Hills C++ Compiler 14032 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 14033 ;; 14034 esac 14035 ;; 14036 mingw* | cygwin* | os2* | pw32* | cegcc*) 14037 # This hack is so that the source file can tell whether it is being 14038 # built for inclusion in a dll (and should export symbols for example). 14039 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14040 ;; 14041 dgux*) 14042 case $cc_basename in 14043 ec++*) 14044 lt_prog_compiler_pic_CXX='-KPIC' 14045 ;; 14046 ghcx*) 14047 # Green Hills C++ Compiler 14048 lt_prog_compiler_pic_CXX='-pic' 14049 ;; 14050 *) 14051 ;; 14052 esac 14053 ;; 14054 freebsd* | dragonfly*) 14055 # FreeBSD uses GNU C++ 14056 ;; 14057 hpux9* | hpux10* | hpux11*) 14058 case $cc_basename in 14059 CC*) 14060 lt_prog_compiler_wl_CXX='-Wl,' 14061 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14062 if test "$host_cpu" != ia64; then 14063 lt_prog_compiler_pic_CXX='+Z' 14064 fi 14065 ;; 14066 aCC*) 14067 lt_prog_compiler_wl_CXX='-Wl,' 14068 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14069 case $host_cpu in 14070 hppa*64*|ia64*) 14071 # +Z the default 14072 ;; 14073 *) 14074 lt_prog_compiler_pic_CXX='+Z' 14075 ;; 14076 esac 14077 ;; 14078 *) 14079 ;; 14080 esac 14081 ;; 14082 interix*) 14083 # This is c89, which is MS Visual C++ (no shared libs) 14084 # Anyone wants to do a port? 14085 ;; 14086 irix5* | irix6* | nonstopux*) 14087 case $cc_basename in 14088 CC*) 14089 lt_prog_compiler_wl_CXX='-Wl,' 14090 lt_prog_compiler_static_CXX='-non_shared' 14091 # CC pic flag -KPIC is the default. 14092 ;; 14093 *) 14094 ;; 14095 esac 14096 ;; 14097 linux* | k*bsd*-gnu | kopensolaris*-gnu) 14098 case $cc_basename in 14099 KCC*) 14100 # KAI C++ Compiler 14101 lt_prog_compiler_wl_CXX='--backend -Wl,' 14102 lt_prog_compiler_pic_CXX='-fPIC' 14103 ;; 14104 ecpc* ) 14105 # old Intel C++ for x86_64 which still supported -KPIC. 14106 lt_prog_compiler_wl_CXX='-Wl,' 14107 lt_prog_compiler_pic_CXX='-KPIC' 14108 lt_prog_compiler_static_CXX='-static' 14109 ;; 14110 icpc* ) 14111 # Intel C++, used to be incompatible with GCC. 14112 # ICC 10 doesn't accept -KPIC any more. 14113 lt_prog_compiler_wl_CXX='-Wl,' 14114 lt_prog_compiler_pic_CXX='-fPIC' 14115 lt_prog_compiler_static_CXX='-static' 14116 ;; 14117 pgCC* | pgcpp*) 14118 # Portland Group C++ compiler 14119 lt_prog_compiler_wl_CXX='-Wl,' 14120 lt_prog_compiler_pic_CXX='-fpic' 14121 lt_prog_compiler_static_CXX='-Bstatic' 14122 ;; 14123 cxx*) 14124 # Compaq C++ 14125 # Make sure the PIC flag is empty. It appears that all Alpha 14126 # Linux and Compaq Tru64 Unix objects are PIC. 14127 lt_prog_compiler_pic_CXX= 14128 lt_prog_compiler_static_CXX='-non_shared' 14129 ;; 14130 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 14131 # IBM XL 8.0, 9.0 on PPC and BlueGene 14132 lt_prog_compiler_wl_CXX='-Wl,' 14133 lt_prog_compiler_pic_CXX='-qpic' 14134 lt_prog_compiler_static_CXX='-qstaticlink' 14135 ;; 14136 *) 14137 case `$CC -V 2>&1 | sed 5q` in 14138 *Sun\ C*) 14139 # Sun C++ 5.9 14140 lt_prog_compiler_pic_CXX='-KPIC' 14141 lt_prog_compiler_static_CXX='-Bstatic' 14142 lt_prog_compiler_wl_CXX='-Qoption ld ' 14143 ;; 14144 esac 14145 ;; 14146 esac 14147 ;; 14148 lynxos*) 14149 ;; 14150 m88k*) 14151 ;; 14152 mvs*) 14153 case $cc_basename in 14154 cxx*) 14155 lt_prog_compiler_pic_CXX='-W c,exportall' 14156 ;; 14157 *) 14158 ;; 14159 esac 14160 ;; 14161 netbsd*) 14162 ;; 14163 *qnx* | *nto*) 14164 # QNX uses GNU C++, but need to define -shared option too, otherwise 14165 # it will coredump. 14166 lt_prog_compiler_pic_CXX='-fPIC -shared' 14167 ;; 14168 osf3* | osf4* | osf5*) 14169 case $cc_basename in 14170 KCC*) 14171 lt_prog_compiler_wl_CXX='--backend -Wl,' 14172 ;; 14173 RCC*) 14174 # Rational C++ 2.4.1 14175 lt_prog_compiler_pic_CXX='-pic' 14176 ;; 14177 cxx*) 14178 # Digital/Compaq C++ 14179 lt_prog_compiler_wl_CXX='-Wl,' 14180 # Make sure the PIC flag is empty. It appears that all Alpha 14181 # Linux and Compaq Tru64 Unix objects are PIC. 14182 lt_prog_compiler_pic_CXX= 14183 lt_prog_compiler_static_CXX='-non_shared' 14184 ;; 14185 *) 14186 ;; 14187 esac 14188 ;; 14189 psos*) 14190 ;; 14191 solaris*) 14192 case $cc_basename in 14193 CC* | sunCC*) 14194 # Sun C++ 4.2, 5.x and Centerline C++ 14195 lt_prog_compiler_pic_CXX='-KPIC' 14196 lt_prog_compiler_static_CXX='-Bstatic' 14197 lt_prog_compiler_wl_CXX='-Qoption ld ' 14198 ;; 14199 gcx*) 14200 # Green Hills C++ Compiler 14201 lt_prog_compiler_pic_CXX='-PIC' 14202 ;; 14203 *) 14204 ;; 14205 esac 14206 ;; 14207 sunos4*) 14208 case $cc_basename in 14209 CC*) 14210 # Sun C++ 4.x 14211 lt_prog_compiler_pic_CXX='-pic' 14212 lt_prog_compiler_static_CXX='-Bstatic' 14213 ;; 14214 lcc*) 14215 # Lucid 14216 lt_prog_compiler_pic_CXX='-pic' 14217 ;; 14218 *) 14219 ;; 14220 esac 14221 ;; 14222 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14223 case $cc_basename in 14224 CC*) 14225 lt_prog_compiler_wl_CXX='-Wl,' 14226 lt_prog_compiler_pic_CXX='-KPIC' 14227 lt_prog_compiler_static_CXX='-Bstatic' 14228 ;; 14229 esac 14230 ;; 14231 tandem*) 14232 case $cc_basename in 14233 NCC*) 14234 # NonStop-UX NCC 3.20 14235 lt_prog_compiler_pic_CXX='-KPIC' 14236 ;; 14237 *) 14238 ;; 14239 esac 14240 ;; 14241 vxworks*) 14242 ;; 14243 *) 14244 lt_prog_compiler_can_build_shared_CXX=no 14245 ;; 14246 esac 14247 fi 14248 14249case $host_os in 14250 # For platforms which do not support PIC, -DPIC is meaningless: 14251 *djgpp*) 14252 lt_prog_compiler_pic_CXX= 14253 ;; 14254 *) 14255 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14256 ;; 14257esac 14258 14259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14260$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14261if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 14262 $as_echo_n "(cached) " >&6 14263else 14264 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 14265fi 14266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 14267$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 14268lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 14269 14270# 14271# Check to make sure the PIC flag actually works. 14272# 14273if test -n "$lt_prog_compiler_pic_CXX"; then 14274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14275$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14276if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 14277 $as_echo_n "(cached) " >&6 14278else 14279 lt_cv_prog_compiler_pic_works_CXX=no 14280 ac_outfile=conftest.$ac_objext 14281 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14282 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 14283 # Insert the option either (1) after the last *FLAGS variable, or 14284 # (2) before a word containing "conftest.", or (3) at the end. 14285 # Note that $ac_compile itself does not contain backslashes and begins 14286 # with a dollar sign (not a hyphen), so the echo should work correctly. 14287 # The option is referenced via a variable to avoid confusing sed. 14288 lt_compile=`echo "$ac_compile" | $SED \ 14289 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14290 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14291 -e 's:$: $lt_compiler_flag:'` 14292 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14293 (eval "$lt_compile" 2>conftest.err) 14294 ac_status=$? 14295 cat conftest.err >&5 14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14297 if (exit $ac_status) && test -s "$ac_outfile"; then 14298 # The compiler can only warn and ignore the option if not recognized 14299 # So say no if there are warnings other than the usual output. 14300 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14301 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14302 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14303 lt_cv_prog_compiler_pic_works_CXX=yes 14304 fi 14305 fi 14306 $RM conftest* 14307 14308fi 14309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14310$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14311 14312if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 14313 case $lt_prog_compiler_pic_CXX in 14314 "" | " "*) ;; 14315 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14316 esac 14317else 14318 lt_prog_compiler_pic_CXX= 14319 lt_prog_compiler_can_build_shared_CXX=no 14320fi 14321 14322fi 14323 14324 14325 14326 14327 14328# 14329# Check to make sure the static flag actually works. 14330# 14331wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14333$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14334if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 14335 $as_echo_n "(cached) " >&6 14336else 14337 lt_cv_prog_compiler_static_works_CXX=no 14338 save_LDFLAGS="$LDFLAGS" 14339 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14340 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14341 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14342 # The linker can only warn and ignore the option if not recognized 14343 # So say no if there are warnings 14344 if test -s conftest.err; then 14345 # Append any errors to the config.log. 14346 cat conftest.err 1>&5 14347 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14348 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14349 if diff conftest.exp conftest.er2 >/dev/null; then 14350 lt_cv_prog_compiler_static_works_CXX=yes 14351 fi 14352 else 14353 lt_cv_prog_compiler_static_works_CXX=yes 14354 fi 14355 fi 14356 $RM -r conftest* 14357 LDFLAGS="$save_LDFLAGS" 14358 14359fi 14360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14361$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14362 14363if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 14364 : 14365else 14366 lt_prog_compiler_static_CXX= 14367fi 14368 14369 14370 14371 14372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14373$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14374if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14375 $as_echo_n "(cached) " >&6 14376else 14377 lt_cv_prog_compiler_c_o_CXX=no 14378 $RM -r conftest 2>/dev/null 14379 mkdir conftest 14380 cd conftest 14381 mkdir out 14382 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14383 14384 lt_compiler_flag="-o out/conftest2.$ac_objext" 14385 # Insert the option either (1) after the last *FLAGS variable, or 14386 # (2) before a word containing "conftest.", or (3) at the end. 14387 # Note that $ac_compile itself does not contain backslashes and begins 14388 # with a dollar sign (not a hyphen), so the echo should work correctly. 14389 lt_compile=`echo "$ac_compile" | $SED \ 14390 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14391 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14392 -e 's:$: $lt_compiler_flag:'` 14393 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14394 (eval "$lt_compile" 2>out/conftest.err) 14395 ac_status=$? 14396 cat out/conftest.err >&5 14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14398 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14399 then 14400 # The compiler can only warn and ignore the option if not recognized 14401 # So say no if there are warnings 14402 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14403 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14404 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14405 lt_cv_prog_compiler_c_o_CXX=yes 14406 fi 14407 fi 14408 chmod u+w . 2>&5 14409 $RM conftest* 14410 # SGI C++ compiler will create directory out/ii_files/ for 14411 # template instantiation 14412 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14413 $RM out/* && rmdir out 14414 cd .. 14415 $RM -r conftest 14416 $RM conftest* 14417 14418fi 14419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14420$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14421 14422 14423 14424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14425$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14426if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14427 $as_echo_n "(cached) " >&6 14428else 14429 lt_cv_prog_compiler_c_o_CXX=no 14430 $RM -r conftest 2>/dev/null 14431 mkdir conftest 14432 cd conftest 14433 mkdir out 14434 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14435 14436 lt_compiler_flag="-o out/conftest2.$ac_objext" 14437 # Insert the option either (1) after the last *FLAGS variable, or 14438 # (2) before a word containing "conftest.", or (3) at the end. 14439 # Note that $ac_compile itself does not contain backslashes and begins 14440 # with a dollar sign (not a hyphen), so the echo should work correctly. 14441 lt_compile=`echo "$ac_compile" | $SED \ 14442 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14443 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14444 -e 's:$: $lt_compiler_flag:'` 14445 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14446 (eval "$lt_compile" 2>out/conftest.err) 14447 ac_status=$? 14448 cat out/conftest.err >&5 14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14450 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14451 then 14452 # The compiler can only warn and ignore the option if not recognized 14453 # So say no if there are warnings 14454 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14455 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14456 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14457 lt_cv_prog_compiler_c_o_CXX=yes 14458 fi 14459 fi 14460 chmod u+w . 2>&5 14461 $RM conftest* 14462 # SGI C++ compiler will create directory out/ii_files/ for 14463 # template instantiation 14464 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14465 $RM out/* && rmdir out 14466 cd .. 14467 $RM -r conftest 14468 $RM conftest* 14469 14470fi 14471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14472$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14473 14474 14475 14476 14477hard_links="nottested" 14478if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 14479 # do not overwrite the value of need_locks provided by the user 14480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14481$as_echo_n "checking if we can lock with hard links... " >&6; } 14482 hard_links=yes 14483 $RM conftest* 14484 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14485 touch conftest.a 14486 ln conftest.a conftest.b 2>&5 || hard_links=no 14487 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14489$as_echo "$hard_links" >&6; } 14490 if test "$hard_links" = no; then 14491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14492$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14493 need_locks=warn 14494 fi 14495else 14496 need_locks=no 14497fi 14498 14499 14500 14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14502$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14503 14504 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14505 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14506 case $host_os in 14507 aix[4-9]*) 14508 # If we're using GNU nm, then we don't want the "-C" option. 14509 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14510 # Also, AIX nm treats weak defined symbols like other global defined 14511 # symbols, whereas GNU nm marks them as "W". 14512 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14513 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 14514 else 14515 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 14516 fi 14517 ;; 14518 pw32*) 14519 export_symbols_cmds_CXX="$ltdll_cmds" 14520 ;; 14521 cygwin* | mingw* | cegcc*) 14522 case $cc_basename in 14523 cl*) 14524 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 14525 ;; 14526 *) 14527 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 14528 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 14529 ;; 14530 esac 14531 ;; 14532 *) 14533 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14534 ;; 14535 esac 14536 14537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14538$as_echo "$ld_shlibs_CXX" >&6; } 14539test "$ld_shlibs_CXX" = no && can_build_shared=no 14540 14541with_gnu_ld_CXX=$with_gnu_ld 14542 14543 14544 14545 14546 14547 14548# 14549# Do we need to explicitly link libc? 14550# 14551case "x$archive_cmds_need_lc_CXX" in 14552x|xyes) 14553 # Assume -lc should be added 14554 archive_cmds_need_lc_CXX=yes 14555 14556 if test "$enable_shared" = yes && test "$GCC" = yes; then 14557 case $archive_cmds_CXX in 14558 *'~'*) 14559 # FIXME: we may have to deal with multi-command sequences. 14560 ;; 14561 '$CC '*) 14562 # Test whether the compiler implicitly links with -lc since on some 14563 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14564 # to ld, don't add -lc before -lgcc. 14565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14566$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14567if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 14568 $as_echo_n "(cached) " >&6 14569else 14570 $RM conftest* 14571 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14572 14573 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14574 (eval $ac_compile) 2>&5 14575 ac_status=$? 14576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14577 test $ac_status = 0; } 2>conftest.err; then 14578 soname=conftest 14579 lib=conftest 14580 libobjs=conftest.$ac_objext 14581 deplibs= 14582 wl=$lt_prog_compiler_wl_CXX 14583 pic_flag=$lt_prog_compiler_pic_CXX 14584 compiler_flags=-v 14585 linker_flags=-v 14586 verstring= 14587 output_objdir=. 14588 libname=conftest 14589 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14590 allow_undefined_flag_CXX= 14591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14592 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14593 ac_status=$? 14594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14595 test $ac_status = 0; } 14596 then 14597 lt_cv_archive_cmds_need_lc_CXX=no 14598 else 14599 lt_cv_archive_cmds_need_lc_CXX=yes 14600 fi 14601 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14602 else 14603 cat conftest.err 1>&5 14604 fi 14605 $RM conftest* 14606 14607fi 14608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 14609$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 14610 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 14611 ;; 14612 esac 14613 fi 14614 ;; 14615esac 14616 14617 14618 14619 14620 14621 14622 14623 14624 14625 14626 14627 14628 14629 14630 14631 14632 14633 14634 14635 14636 14637 14638 14639 14640 14641 14642 14643 14644 14645 14646 14647 14648 14649 14650 14651 14652 14653 14654 14655 14656 14657 14658 14659 14660 14661 14662 14663 14664 14665 14666 14667 14668 14669 14670 14671 14672 14673 14674 14675 14676 14677 14678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14679$as_echo_n "checking dynamic linker characteristics... " >&6; } 14680 14681library_names_spec= 14682libname_spec='lib$name' 14683soname_spec= 14684shrext_cmds=".so" 14685postinstall_cmds= 14686postuninstall_cmds= 14687finish_cmds= 14688finish_eval= 14689shlibpath_var= 14690shlibpath_overrides_runpath=unknown 14691version_type=none 14692dynamic_linker="$host_os ld.so" 14693sys_lib_dlsearch_path_spec="/lib /usr/lib" 14694need_lib_prefix=unknown 14695hardcode_into_libs=no 14696 14697# when you set need_version to no, make sure it does not cause -set_version 14698# flags to be left without arguments 14699need_version=unknown 14700 14701case $host_os in 14702aix3*) 14703 version_type=linux # correct to gnu/linux during the next big refactor 14704 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14705 shlibpath_var=LIBPATH 14706 14707 # AIX 3 has no versioning support, so we append a major version to the name. 14708 soname_spec='${libname}${release}${shared_ext}$major' 14709 ;; 14710 14711aix[4-9]*) 14712 version_type=linux # correct to gnu/linux during the next big refactor 14713 need_lib_prefix=no 14714 need_version=no 14715 hardcode_into_libs=yes 14716 if test "$host_cpu" = ia64; then 14717 # AIX 5 supports IA64 14718 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14719 shlibpath_var=LD_LIBRARY_PATH 14720 else 14721 # With GCC up to 2.95.x, collect2 would create an import file 14722 # for dependence libraries. The import file would start with 14723 # the line `#! .'. This would cause the generated library to 14724 # depend on `.', always an invalid library. This was fixed in 14725 # development snapshots of GCC prior to 3.0. 14726 case $host_os in 14727 aix4 | aix4.[01] | aix4.[01].*) 14728 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14729 echo ' yes ' 14730 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 14731 : 14732 else 14733 can_build_shared=no 14734 fi 14735 ;; 14736 esac 14737 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14738 # soname into executable. Probably we can add versioning support to 14739 # collect2, so additional links can be useful in future. 14740 if test "$aix_use_runtimelinking" = yes; then 14741 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14742 # instead of lib<name>.a to let people know that these are not 14743 # typical AIX shared libraries. 14744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14745 else 14746 # We preserve .a as extension for shared libraries through AIX4.2 14747 # and later when we are not doing run time linking. 14748 library_names_spec='${libname}${release}.a $libname.a' 14749 soname_spec='${libname}${release}${shared_ext}$major' 14750 fi 14751 shlibpath_var=LIBPATH 14752 fi 14753 ;; 14754 14755amigaos*) 14756 case $host_cpu in 14757 powerpc) 14758 # Since July 2007 AmigaOS4 officially supports .so libraries. 14759 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14761 ;; 14762 m68k) 14763 library_names_spec='$libname.ixlibrary $libname.a' 14764 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14765 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 14766 ;; 14767 esac 14768 ;; 14769 14770beos*) 14771 library_names_spec='${libname}${shared_ext}' 14772 dynamic_linker="$host_os ld.so" 14773 shlibpath_var=LIBRARY_PATH 14774 ;; 14775 14776bsdi[45]*) 14777 version_type=linux # correct to gnu/linux during the next big refactor 14778 need_version=no 14779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14780 soname_spec='${libname}${release}${shared_ext}$major' 14781 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14782 shlibpath_var=LD_LIBRARY_PATH 14783 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14784 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14785 # the default ld.so.conf also contains /usr/contrib/lib and 14786 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14787 # libtool to hard-code these into programs 14788 ;; 14789 14790cygwin* | mingw* | pw32* | cegcc*) 14791 version_type=windows 14792 shrext_cmds=".dll" 14793 need_version=no 14794 need_lib_prefix=no 14795 14796 case $GCC,$cc_basename in 14797 yes,*) 14798 # gcc 14799 library_names_spec='$libname.dll.a' 14800 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14801 postinstall_cmds='base_file=`basename \${file}`~ 14802 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14803 dldir=$destdir/`dirname \$dlpath`~ 14804 test -d \$dldir || mkdir -p \$dldir~ 14805 $install_prog $dir/$dlname \$dldir/$dlname~ 14806 chmod a+x \$dldir/$dlname~ 14807 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14808 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14809 fi' 14810 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14811 dlpath=$dir/\$dldll~ 14812 $RM \$dlpath' 14813 shlibpath_overrides_runpath=yes 14814 14815 case $host_os in 14816 cygwin*) 14817 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14818 #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 14819 soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}' 14820 14821 ;; 14822 mingw* | cegcc*) 14823 # MinGW DLLs use traditional 'lib' prefix 14824 #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 14825 soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}' 14826 ;; 14827 pw32*) 14828 # pw32 DLLs use 'pw' prefix rather than 'lib' 14829 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14830 ;; 14831 esac 14832 dynamic_linker='Win32 ld.exe' 14833 ;; 14834 14835 *,cl*) 14836 # Native MSVC 14837 libname_spec='$name' 14838 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14839 library_names_spec='${libname}.dll.lib' 14840 14841 case $build_os in 14842 mingw*) 14843 sys_lib_search_path_spec= 14844 lt_save_ifs=$IFS 14845 IFS=';' 14846 for lt_path in $LIB 14847 do 14848 IFS=$lt_save_ifs 14849 # Let DOS variable expansion print the short 8.3 style file name. 14850 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 14851 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 14852 done 14853 IFS=$lt_save_ifs 14854 # Convert to MSYS style. 14855 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 14856 ;; 14857 cygwin*) 14858 # Convert to unix form, then to dos form, then back to unix form 14859 # but this time dos style (no spaces!) so that the unix form looks 14860 # like /cygdrive/c/PROGRA~1:/cygdr... 14861 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 14862 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 14863 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14864 ;; 14865 *) 14866 sys_lib_search_path_spec="$LIB" 14867 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 14868 # It is most probably a Windows format PATH. 14869 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14870 else 14871 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14872 fi 14873 # FIXME: find the short name or the path components, as spaces are 14874 # common. (e.g. "Program Files" -> "PROGRA~1") 14875 ;; 14876 esac 14877 14878 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14879 postinstall_cmds='base_file=`basename \${file}`~ 14880 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14881 dldir=$destdir/`dirname \$dlpath`~ 14882 test -d \$dldir || mkdir -p \$dldir~ 14883 $install_prog $dir/$dlname \$dldir/$dlname' 14884 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14885 dlpath=$dir/\$dldll~ 14886 $RM \$dlpath' 14887 shlibpath_overrides_runpath=yes 14888 dynamic_linker='Win32 link.exe' 14889 ;; 14890 14891 *) 14892 # Assume MSVC wrapper 14893 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14894 dynamic_linker='Win32 ld.exe' 14895 ;; 14896 esac 14897 # FIXME: first we should search . and the directory the executable is in 14898 shlibpath_var=PATH 14899 ;; 14900 14901darwin* | rhapsody*) 14902 dynamic_linker="$host_os dyld" 14903 version_type=darwin 14904 need_lib_prefix=no 14905 need_version=no 14906 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14907 soname_spec='${libname}${release}${major}$shared_ext' 14908 shlibpath_overrides_runpath=yes 14909 shlibpath_var=DYLD_LIBRARY_PATH 14910 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14911 14912 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14913 ;; 14914 14915dgux*) 14916 version_type=linux # correct to gnu/linux during the next big refactor 14917 need_lib_prefix=no 14918 need_version=no 14919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14920 soname_spec='${libname}${release}${shared_ext}$major' 14921 shlibpath_var=LD_LIBRARY_PATH 14922 ;; 14923 14924freebsd* | dragonfly*) 14925 # DragonFly does not have aout. When/if they implement a new 14926 # versioning mechanism, adjust this. 14927 if test -x /usr/bin/objformat; then 14928 objformat=`/usr/bin/objformat` 14929 else 14930 case $host_os in 14931 freebsd[23].*) objformat=aout ;; 14932 *) objformat=elf ;; 14933 esac 14934 fi 14935 version_type=freebsd-$objformat 14936 case $version_type in 14937 freebsd-elf*) 14938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14939 need_version=no 14940 need_lib_prefix=no 14941 ;; 14942 freebsd-*) 14943 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14944 need_version=yes 14945 ;; 14946 esac 14947 shlibpath_var=LD_LIBRARY_PATH 14948 case $host_os in 14949 freebsd2.*) 14950 shlibpath_overrides_runpath=yes 14951 ;; 14952 freebsd3.[01]* | freebsdelf3.[01]*) 14953 shlibpath_overrides_runpath=yes 14954 hardcode_into_libs=yes 14955 ;; 14956 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14957 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14958 shlibpath_overrides_runpath=no 14959 hardcode_into_libs=yes 14960 ;; 14961 *) # from 4.6 on, and DragonFly 14962 shlibpath_overrides_runpath=yes 14963 hardcode_into_libs=yes 14964 ;; 14965 esac 14966 ;; 14967 14968gnu*) 14969 version_type=linux # correct to gnu/linux during the next big refactor 14970 need_lib_prefix=no 14971 need_version=no 14972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14973 soname_spec='${libname}${release}${shared_ext}$major' 14974 shlibpath_var=LD_LIBRARY_PATH 14975 shlibpath_overrides_runpath=no 14976 hardcode_into_libs=yes 14977 ;; 14978 14979haiku*) 14980 version_type=linux # correct to gnu/linux during the next big refactor 14981 need_lib_prefix=no 14982 need_version=no 14983 dynamic_linker="$host_os runtime_loader" 14984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14985 soname_spec='${libname}${release}${shared_ext}$major' 14986 shlibpath_var=LIBRARY_PATH 14987 shlibpath_overrides_runpath=yes 14988 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 14989 hardcode_into_libs=yes 14990 ;; 14991 14992hpux9* | hpux10* | hpux11*) 14993 # Give a soname corresponding to the major version so that dld.sl refuses to 14994 # link against other versions. 14995 version_type=sunos 14996 need_lib_prefix=no 14997 need_version=no 14998 case $host_cpu in 14999 ia64*) 15000 shrext_cmds='.so' 15001 hardcode_into_libs=yes 15002 dynamic_linker="$host_os dld.so" 15003 shlibpath_var=LD_LIBRARY_PATH 15004 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15006 soname_spec='${libname}${release}${shared_ext}$major' 15007 if test "X$HPUX_IA64_MODE" = X32; then 15008 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15009 else 15010 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15011 fi 15012 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15013 ;; 15014 hppa*64*) 15015 shrext_cmds='.sl' 15016 hardcode_into_libs=yes 15017 dynamic_linker="$host_os dld.sl" 15018 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15019 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15021 soname_spec='${libname}${release}${shared_ext}$major' 15022 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15023 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15024 ;; 15025 *) 15026 shrext_cmds='.sl' 15027 dynamic_linker="$host_os dld.sl" 15028 shlibpath_var=SHLIB_PATH 15029 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15031 soname_spec='${libname}${release}${shared_ext}$major' 15032 ;; 15033 esac 15034 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15035 postinstall_cmds='chmod 555 $lib' 15036 # or fails outright, so override atomically: 15037 install_override_mode=555 15038 ;; 15039 15040interix[3-9]*) 15041 version_type=linux # correct to gnu/linux during the next big refactor 15042 need_lib_prefix=no 15043 need_version=no 15044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15045 soname_spec='${libname}${release}${shared_ext}$major' 15046 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15047 shlibpath_var=LD_LIBRARY_PATH 15048 shlibpath_overrides_runpath=no 15049 hardcode_into_libs=yes 15050 ;; 15051 15052irix5* | irix6* | nonstopux*) 15053 case $host_os in 15054 nonstopux*) version_type=nonstopux ;; 15055 *) 15056 if test "$lt_cv_prog_gnu_ld" = yes; then 15057 version_type=linux # correct to gnu/linux during the next big refactor 15058 else 15059 version_type=irix 15060 fi ;; 15061 esac 15062 need_lib_prefix=no 15063 need_version=no 15064 soname_spec='${libname}${release}${shared_ext}$major' 15065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15066 case $host_os in 15067 irix5* | nonstopux*) 15068 libsuff= shlibsuff= 15069 ;; 15070 *) 15071 case $LD in # libtool.m4 will add one of these switches to LD 15072 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15073 libsuff= shlibsuff= libmagic=32-bit;; 15074 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15075 libsuff=32 shlibsuff=N32 libmagic=N32;; 15076 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15077 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15078 *) libsuff= shlibsuff= libmagic=never-match;; 15079 esac 15080 ;; 15081 esac 15082 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15083 shlibpath_overrides_runpath=no 15084 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15085 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15086 hardcode_into_libs=yes 15087 ;; 15088 15089# No shared lib support for Linux oldld, aout, or coff. 15090linux*oldld* | linux*aout* | linux*coff*) 15091 dynamic_linker=no 15092 ;; 15093 15094# This must be glibc/ELF. 15095linux* | k*bsd*-gnu | kopensolaris*-gnu) 15096 version_type=linux # correct to gnu/linux during the next big refactor 15097 need_lib_prefix=no 15098 need_version=no 15099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15100 soname_spec='${libname}${release}${shared_ext}$major' 15101 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15102 shlibpath_var=LD_LIBRARY_PATH 15103 shlibpath_overrides_runpath=no 15104 15105 # Some binutils ld are patched to set DT_RUNPATH 15106 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15107 $as_echo_n "(cached) " >&6 15108else 15109 lt_cv_shlibpath_overrides_runpath=no 15110 save_LDFLAGS=$LDFLAGS 15111 save_libdir=$libdir 15112 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15113 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15115/* end confdefs.h. */ 15116 15117int 15118main () 15119{ 15120 15121 ; 15122 return 0; 15123} 15124_ACEOF 15125if ac_fn_cxx_try_link "$LINENO"; then : 15126 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15127 lt_cv_shlibpath_overrides_runpath=yes 15128fi 15129fi 15130rm -f core conftest.err conftest.$ac_objext \ 15131 conftest$ac_exeext conftest.$ac_ext 15132 LDFLAGS=$save_LDFLAGS 15133 libdir=$save_libdir 15134 15135fi 15136 15137 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15138 15139 # This implies no fast_install, which is unacceptable. 15140 # Some rework will be needed to allow for fast_install 15141 # before this can be enabled. 15142 hardcode_into_libs=yes 15143 15144 # Append ld.so.conf contents to the search path 15145 if test -f /etc/ld.so.conf; then 15146 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' ' '` 15147 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15148 fi 15149 15150 # We used to test for /lib/ld.so.1 and disable shared libraries on 15151 # powerpc, because MkLinux only supported shared libraries with the 15152 # GNU dynamic linker. Since this was broken with cross compilers, 15153 # most powerpc-linux boxes support dynamic linking these days and 15154 # people can always --disable-shared, the test was removed, and we 15155 # assume the GNU/Linux dynamic linker is in use. 15156 dynamic_linker='GNU/Linux ld.so' 15157 ;; 15158 15159netbsd*) 15160 version_type=sunos 15161 need_lib_prefix=no 15162 need_version=no 15163 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15165 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15166 dynamic_linker='NetBSD (a.out) ld.so' 15167 else 15168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15169 soname_spec='${libname}${release}${shared_ext}$major' 15170 dynamic_linker='NetBSD ld.elf_so' 15171 fi 15172 shlibpath_var=LD_LIBRARY_PATH 15173 shlibpath_overrides_runpath=yes 15174 hardcode_into_libs=yes 15175 ;; 15176 15177newsos6) 15178 version_type=linux # correct to gnu/linux during the next big refactor 15179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15180 shlibpath_var=LD_LIBRARY_PATH 15181 shlibpath_overrides_runpath=yes 15182 ;; 15183 15184*nto* | *qnx*) 15185 version_type=qnx 15186 need_lib_prefix=no 15187 need_version=no 15188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15189 soname_spec='${libname}${release}${shared_ext}$major' 15190 shlibpath_var=LD_LIBRARY_PATH 15191 shlibpath_overrides_runpath=no 15192 hardcode_into_libs=yes 15193 dynamic_linker='ldqnx.so' 15194 ;; 15195 15196openbsd*) 15197 version_type=sunos 15198 sys_lib_dlsearch_path_spec="/usr/lib" 15199 need_lib_prefix=no 15200 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15201 case $host_os in 15202 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15203 *) need_version=no ;; 15204 esac 15205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15206 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15207 shlibpath_var=LD_LIBRARY_PATH 15208 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15209 case $host_os in 15210 openbsd2.[89] | openbsd2.[89].*) 15211 shlibpath_overrides_runpath=no 15212 ;; 15213 *) 15214 shlibpath_overrides_runpath=yes 15215 ;; 15216 esac 15217 else 15218 shlibpath_overrides_runpath=yes 15219 fi 15220 ;; 15221 15222os2*) 15223 libname_spec='$name' 15224 shrext_cmds=".dll" 15225 need_lib_prefix=no 15226 library_names_spec='$libname${shared_ext} $libname.a' 15227 dynamic_linker='OS/2 ld.exe' 15228 shlibpath_var=LIBPATH 15229 ;; 15230 15231osf3* | osf4* | osf5*) 15232 version_type=osf 15233 need_lib_prefix=no 15234 need_version=no 15235 soname_spec='${libname}${release}${shared_ext}$major' 15236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15237 shlibpath_var=LD_LIBRARY_PATH 15238 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15239 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15240 ;; 15241 15242rdos*) 15243 dynamic_linker=no 15244 ;; 15245 15246solaris*) 15247 version_type=linux # correct to gnu/linux during the next big refactor 15248 need_lib_prefix=no 15249 need_version=no 15250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15251 soname_spec='${libname}${release}${shared_ext}$major' 15252 shlibpath_var=LD_LIBRARY_PATH 15253 shlibpath_overrides_runpath=yes 15254 hardcode_into_libs=yes 15255 # ldd complains unless libraries are executable 15256 postinstall_cmds='chmod +x $lib' 15257 ;; 15258 15259sunos4*) 15260 version_type=sunos 15261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15262 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15263 shlibpath_var=LD_LIBRARY_PATH 15264 shlibpath_overrides_runpath=yes 15265 if test "$with_gnu_ld" = yes; then 15266 need_lib_prefix=no 15267 fi 15268 need_version=yes 15269 ;; 15270 15271sysv4 | sysv4.3*) 15272 version_type=linux # correct to gnu/linux during the next big refactor 15273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15274 soname_spec='${libname}${release}${shared_ext}$major' 15275 shlibpath_var=LD_LIBRARY_PATH 15276 case $host_vendor in 15277 sni) 15278 shlibpath_overrides_runpath=no 15279 need_lib_prefix=no 15280 runpath_var=LD_RUN_PATH 15281 ;; 15282 siemens) 15283 need_lib_prefix=no 15284 ;; 15285 motorola) 15286 need_lib_prefix=no 15287 need_version=no 15288 shlibpath_overrides_runpath=no 15289 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15290 ;; 15291 esac 15292 ;; 15293 15294sysv4*MP*) 15295 if test -d /usr/nec ;then 15296 version_type=linux # correct to gnu/linux during the next big refactor 15297 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15298 soname_spec='$libname${shared_ext}.$major' 15299 shlibpath_var=LD_LIBRARY_PATH 15300 fi 15301 ;; 15302 15303sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15304 version_type=freebsd-elf 15305 need_lib_prefix=no 15306 need_version=no 15307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15308 soname_spec='${libname}${release}${shared_ext}$major' 15309 shlibpath_var=LD_LIBRARY_PATH 15310 shlibpath_overrides_runpath=yes 15311 hardcode_into_libs=yes 15312 if test "$with_gnu_ld" = yes; then 15313 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15314 else 15315 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15316 case $host_os in 15317 sco3.2v5*) 15318 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15319 ;; 15320 esac 15321 fi 15322 sys_lib_dlsearch_path_spec='/usr/lib' 15323 ;; 15324 15325tpf*) 15326 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15327 version_type=linux # correct to gnu/linux during the next big refactor 15328 need_lib_prefix=no 15329 need_version=no 15330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15331 shlibpath_var=LD_LIBRARY_PATH 15332 shlibpath_overrides_runpath=no 15333 hardcode_into_libs=yes 15334 ;; 15335 15336uts4*) 15337 version_type=linux # correct to gnu/linux during the next big refactor 15338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15339 soname_spec='${libname}${release}${shared_ext}$major' 15340 shlibpath_var=LD_LIBRARY_PATH 15341 ;; 15342 15343*) 15344 dynamic_linker=no 15345 ;; 15346esac 15347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15348$as_echo "$dynamic_linker" >&6; } 15349test "$dynamic_linker" = no && can_build_shared=no 15350 15351variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15352if test "$GCC" = yes; then 15353 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15354fi 15355 15356if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 15357 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 15358fi 15359if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 15360 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 15361fi 15362 15363 15364 15365 15366 15367 15368 15369 15370 15371 15372 15373 15374 15375 15376 15377 15378 15379 15380 15381 15382 15383 15384 15385 15386 15387 15388 15389 15390 15391 15392 15393 15394 15395 15396 15397 15398 15399 15400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15401$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15402hardcode_action_CXX= 15403if test -n "$hardcode_libdir_flag_spec_CXX" || 15404 test -n "$runpath_var_CXX" || 15405 test "X$hardcode_automatic_CXX" = "Xyes" ; then 15406 15407 # We can hardcode non-existent directories. 15408 if test "$hardcode_direct_CXX" != no && 15409 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15410 # have to relink, otherwise we might link with an installed library 15411 # when we should be linking with a yet-to-be-installed one 15412 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 15413 test "$hardcode_minus_L_CXX" != no; then 15414 # Linking always hardcodes the temporary library directory. 15415 hardcode_action_CXX=relink 15416 else 15417 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15418 hardcode_action_CXX=immediate 15419 fi 15420else 15421 # We cannot hardcode anything, or else we can only hardcode existing 15422 # directories. 15423 hardcode_action_CXX=unsupported 15424fi 15425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 15426$as_echo "$hardcode_action_CXX" >&6; } 15427 15428if test "$hardcode_action_CXX" = relink || 15429 test "$inherit_rpath_CXX" = yes; then 15430 # Fast installation is not supported 15431 enable_fast_install=no 15432elif test "$shlibpath_overrides_runpath" = yes || 15433 test "$enable_shared" = no; then 15434 # Fast installation is not necessary 15435 enable_fast_install=needless 15436fi 15437 15438 15439 15440 15441 15442 15443 15444 fi # test -n "$compiler" 15445 15446 CC=$lt_save_CC 15447 CFLAGS=$lt_save_CFLAGS 15448 LDCXX=$LD 15449 LD=$lt_save_LD 15450 GCC=$lt_save_GCC 15451 with_gnu_ld=$lt_save_with_gnu_ld 15452 lt_cv_path_LDCXX=$lt_cv_path_LD 15453 lt_cv_path_LD=$lt_save_path_LD 15454 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15455 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15456fi # test "$_lt_caught_CXX_error" != yes 15457 15458ac_ext=c 15459ac_cpp='$CPP $CPPFLAGS' 15460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15462ac_compiler_gnu=$ac_cv_c_compiler_gnu 15463 15464 15465# Find a good install program. We prefer a C program (faster), 15466# so one script is as good as another. But avoid the broken or 15467# incompatible versions: 15468# SysV /etc/install, /usr/sbin/install 15469# SunOS /usr/etc/install 15470# IRIX /sbin/install 15471# AIX /bin/install 15472# AmigaOS /C/install, which installs bootblocks on floppy discs 15473# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 15474# AFS /usr/afsws/bin/install, which mishandles nonexistent args 15475# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 15476# OS/2's system install, which has a completely different semantic 15477# ./install, which can be erroneously created by make from ./install.sh. 15478# Reject install programs that cannot install multiple files. 15479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 15480$as_echo_n "checking for a BSD-compatible install... " >&6; } 15481if test -z "$INSTALL"; then 15482if ${ac_cv_path_install+:} false; then : 15483 $as_echo_n "(cached) " >&6 15484else 15485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15486for as_dir in $PATH 15487do 15488 IFS=$as_save_IFS 15489 test -z "$as_dir" && as_dir=. 15490 # Account for people who put trailing slashes in PATH elements. 15491case $as_dir/ in #(( 15492 ./ | .// | /[cC]/* | \ 15493 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 15494 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 15495 /usr/ucb/* ) ;; 15496 *) 15497 # OSF1 and SCO ODT 3.0 have their own names for install. 15498 # Don't use installbsd from OSF since it installs stuff as root 15499 # by default. 15500 for ac_prog in ginstall scoinst install; do 15501 for ac_exec_ext in '' $ac_executable_extensions; do 15502 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 15503 if test $ac_prog = install && 15504 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 15505 # AIX install. It has an incompatible calling convention. 15506 : 15507 elif test $ac_prog = install && 15508 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 15509 # program-specific install script used by HP pwplus--don't use. 15510 : 15511 else 15512 rm -rf conftest.one conftest.two conftest.dir 15513 echo one > conftest.one 15514 echo two > conftest.two 15515 mkdir conftest.dir 15516 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 15517 test -s conftest.one && test -s conftest.two && 15518 test -s conftest.dir/conftest.one && 15519 test -s conftest.dir/conftest.two 15520 then 15521 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 15522 break 3 15523 fi 15524 fi 15525 fi 15526 done 15527 done 15528 ;; 15529esac 15530 15531 done 15532IFS=$as_save_IFS 15533 15534rm -rf conftest.one conftest.two conftest.dir 15535 15536fi 15537 if test "${ac_cv_path_install+set}" = set; then 15538 INSTALL=$ac_cv_path_install 15539 else 15540 # As a last resort, use the slow shell script. Don't cache a 15541 # value for INSTALL within a source directory, because that will 15542 # break other packages using the cache if that directory is 15543 # removed, or if the value is a relative name. 15544 INSTALL=$ac_install_sh 15545 fi 15546fi 15547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 15548$as_echo "$INSTALL" >&6; } 15549 15550# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 15551# It thinks the first close brace ends the variable substitution. 15552test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 15553 15554test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 15555 15556test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 15557 15558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 15559$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 15560set x ${MAKE-make} 15561ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 15562if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 15563 $as_echo_n "(cached) " >&6 15564else 15565 cat >conftest.make <<\_ACEOF 15566SHELL = /bin/sh 15567all: 15568 @echo '@@@%%%=$(MAKE)=@@@%%%' 15569_ACEOF 15570# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 15571case `${MAKE-make} -f conftest.make 2>/dev/null` in 15572 *@@@%%%=?*=@@@%%%*) 15573 eval ac_cv_prog_make_${ac_make}_set=yes;; 15574 *) 15575 eval ac_cv_prog_make_${ac_make}_set=no;; 15576esac 15577rm -f conftest.make 15578fi 15579if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 15580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15581$as_echo "yes" >&6; } 15582 SET_MAKE= 15583else 15584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15585$as_echo "no" >&6; } 15586 SET_MAKE="MAKE=${MAKE-make}" 15587fi 15588 15589if test -n "$ac_tool_prefix"; then 15590 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 15591set dummy ${ac_tool_prefix}windres; ac_word=$2 15592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15593$as_echo_n "checking for $ac_word... " >&6; } 15594if ${ac_cv_prog_WINDRES+:} false; then : 15595 $as_echo_n "(cached) " >&6 15596else 15597 if test -n "$WINDRES"; then 15598 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 15599else 15600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15601for as_dir in $PATH 15602do 15603 IFS=$as_save_IFS 15604 test -z "$as_dir" && as_dir=. 15605 for ac_exec_ext in '' $ac_executable_extensions; do 15606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15607 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 15608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15609 break 2 15610 fi 15611done 15612 done 15613IFS=$as_save_IFS 15614 15615fi 15616fi 15617WINDRES=$ac_cv_prog_WINDRES 15618if test -n "$WINDRES"; then 15619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 15620$as_echo "$WINDRES" >&6; } 15621else 15622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15623$as_echo "no" >&6; } 15624fi 15625 15626 15627fi 15628if test -z "$ac_cv_prog_WINDRES"; then 15629 ac_ct_WINDRES=$WINDRES 15630 # Extract the first word of "windres", so it can be a program name with args. 15631set dummy windres; ac_word=$2 15632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15633$as_echo_n "checking for $ac_word... " >&6; } 15634if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : 15635 $as_echo_n "(cached) " >&6 15636else 15637 if test -n "$ac_ct_WINDRES"; then 15638 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 15639else 15640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15641for as_dir in $PATH 15642do 15643 IFS=$as_save_IFS 15644 test -z "$as_dir" && as_dir=. 15645 for ac_exec_ext in '' $ac_executable_extensions; do 15646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15647 ac_cv_prog_ac_ct_WINDRES="windres" 15648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15649 break 2 15650 fi 15651done 15652 done 15653IFS=$as_save_IFS 15654 15655fi 15656fi 15657ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 15658if test -n "$ac_ct_WINDRES"; then 15659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 15660$as_echo "$ac_ct_WINDRES" >&6; } 15661else 15662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15663$as_echo "no" >&6; } 15664fi 15665 15666 if test "x$ac_ct_WINDRES" = x; then 15667 WINDRES=":" 15668 else 15669 case $cross_compiling:$ac_tool_warned in 15670yes:) 15671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15673ac_tool_warned=yes ;; 15674esac 15675 WINDRES=$ac_ct_WINDRES 15676 fi 15677else 15678 WINDRES="$ac_cv_prog_WINDRES" 15679fi 15680 15681 15682case "$host" in 15683 *-*-mingw32*) 15684 # Except on msys, where make can't handle full pathnames (bug 1972) 15685 ;; 15686 *) 15687 srcdir=`cd $srcdir && pwd` 15688 ;; 15689esac 15690 15691INCLUDE="-I$srcdir/include -idirafter $srcdir/src/video/khronos" 15692if test x$srcdir != x.; then 15693 INCLUDE="-Iinclude $INCLUDE" 15694elif test -d .hg; then 15695 as_fn_error $? " 15696*** When building from Mercurial you should configure and build in a 15697 separate directory so you don't clobber SDL_config.h, SDL_revision.h 15698" "$LINENO" 5 15699fi 15700BASE_CFLAGS="" 15701BASE_LDFLAGS="" 15702case "$host" in 15703 *-*-cygwin*) 15704 # We build SDL on cygwin without the UNIX emulation layer 15705 save_CFLAGS="$CFLAGS" 15706 have_no_cygwin=no 15707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5 15708$as_echo_n "checking for GCC -mno-cygwin option... " >&6; } 15709 CFLAGS="$save_CFLAGS -mno-cygwin" 15710 15711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15712/* end confdefs.h. */ 15713 15714 15715int 15716main () 15717{ 15718 15719 15720 ; 15721 return 0; 15722} 15723_ACEOF 15724if ac_fn_c_try_compile "$LINENO"; then : 15725 15726 have_no_cygwin=yes 15727 15728fi 15729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5 15731$as_echo "$have_no_cygwin" >&6; } 15732 CFLAGS="$save_CFLAGS" 15733 15734 if test x$have_no_cygwin = xyes; then 15735 BASE_CFLAGS="-mno-cygwin" 15736 BASE_LDFLAGS="-mno-cygwin" 15737 fi 15738 BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw" 15739 ;; 15740esac 15741# Uncomment the following line if you want to force SDL and applications 15742# built with it to be compiled for a particular architecture. 15743#AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]") 15744BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H" 15745# The default optimization for SDL is -O3 (Bug #31) 15746if test "x$orig_CFLAGS" = x; then 15747 BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'` 15748fi 15749EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS" 15750BUILD_LDFLAGS="$LDFLAGS" 15751EXTRA_LDFLAGS="$BASE_LDFLAGS" 15752## These are common directories to find software packages 15753#for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do 15754# if test -d $path/include; then 15755# EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include" 15756# fi 15757# if test -d $path/lib; then 15758# EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib" 15759# fi 15760#done 15761SDL_CFLAGS="$BASE_CFLAGS" 15762SDL_LIBS="-lSDL2" 15763if test "x$BASE_LDFLAGS" != x; then 15764 SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS" 15765fi 15766if test "x$EXTRA_CFLAGS" != x; then 15767 CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS" 15768 CFLAGS="$CFLAGS $EXTRA_CFLAGS" 15769fi 15770if test "x$EXTRA_LDFLAGS" != x; then 15771 LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS" 15772fi 15773 15774base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'` 15775 15776find_lib() 15777{ 15778 gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'` 15779 gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'` 15780 env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'` 15781 if test "$cross_compiling" = yes; then 15782 host_lib_path="" 15783 else 15784 host_lib_path="/usr/$base_libdir /usr/local/$base_libdir" 15785 fi 15786 for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do 15787 lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1` 15788 if test x$lib != x; then 15789 echo $lib 15790 return 15791 fi 15792 done 15793} 15794 15795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 15796$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 15797if ${ac_cv_c_const+:} false; then : 15798 $as_echo_n "(cached) " >&6 15799else 15800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15801/* end confdefs.h. */ 15802 15803int 15804main () 15805{ 15806 15807#ifndef __cplusplus 15808 /* Ultrix mips cc rejects this sort of thing. */ 15809 typedef int charset[2]; 15810 const charset cs = { 0, 0 }; 15811 /* SunOS 4.1.1 cc rejects this. */ 15812 char const *const *pcpcc; 15813 char **ppc; 15814 /* NEC SVR4.0.2 mips cc rejects this. */ 15815 struct point {int x, y;}; 15816 static struct point const zero = {0,0}; 15817 /* AIX XL C 1.02.0.0 rejects this. 15818 It does not let you subtract one const X* pointer from another in 15819 an arm of an if-expression whose if-part is not a constant 15820 expression */ 15821 const char *g = "string"; 15822 pcpcc = &g + (g ? g-g : 0); 15823 /* HPUX 7.0 cc rejects these. */ 15824 ++pcpcc; 15825 ppc = (char**) pcpcc; 15826 pcpcc = (char const *const *) ppc; 15827 { /* SCO 3.2v4 cc rejects this sort of thing. */ 15828 char tx; 15829 char *t = &tx; 15830 char const *s = 0 ? (char *) 0 : (char const *) 0; 15831 15832 *t++ = 0; 15833 if (s) return 0; 15834 } 15835 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 15836 int x[] = {25, 17}; 15837 const int *foo = &x[0]; 15838 ++foo; 15839 } 15840 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 15841 typedef const int *iptr; 15842 iptr p = 0; 15843 ++p; 15844 } 15845 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 15846 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 15847 struct s { int j; const int *ap[3]; } bx; 15848 struct s *b = &bx; b->j = 5; 15849 } 15850 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 15851 const int foo = 10; 15852 if (!foo) return 0; 15853 } 15854 return !cs[0] && !zero.x; 15855#endif 15856 15857 ; 15858 return 0; 15859} 15860_ACEOF 15861if ac_fn_c_try_compile "$LINENO"; then : 15862 ac_cv_c_const=yes 15863else 15864 ac_cv_c_const=no 15865fi 15866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15867fi 15868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 15869$as_echo "$ac_cv_c_const" >&6; } 15870if test $ac_cv_c_const = no; then 15871 15872$as_echo "#define const /**/" >>confdefs.h 15873 15874fi 15875 15876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 15877$as_echo_n "checking for inline... " >&6; } 15878if ${ac_cv_c_inline+:} false; then : 15879 $as_echo_n "(cached) " >&6 15880else 15881 ac_cv_c_inline=no 15882for ac_kw in inline __inline__ __inline; do 15883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15884/* end confdefs.h. */ 15885#ifndef __cplusplus 15886typedef int foo_t; 15887static $ac_kw foo_t static_foo () {return 0; } 15888$ac_kw foo_t foo () {return 0; } 15889#endif 15890 15891_ACEOF 15892if ac_fn_c_try_compile "$LINENO"; then : 15893 ac_cv_c_inline=$ac_kw 15894fi 15895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15896 test "$ac_cv_c_inline" != no && break 15897done 15898 15899fi 15900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 15901$as_echo "$ac_cv_c_inline" >&6; } 15902 15903case $ac_cv_c_inline in 15904 inline | yes) ;; 15905 *) 15906 case $ac_cv_c_inline in 15907 no) ac_val=;; 15908 *) ac_val=$ac_cv_c_inline;; 15909 esac 15910 cat >>confdefs.h <<_ACEOF 15911#ifndef __cplusplus 15912#define inline $ac_val 15913#endif 15914_ACEOF 15915 ;; 15916esac 15917 15918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 15919$as_echo_n "checking for working volatile... " >&6; } 15920if ${ac_cv_c_volatile+:} false; then : 15921 $as_echo_n "(cached) " >&6 15922else 15923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15924/* end confdefs.h. */ 15925 15926int 15927main () 15928{ 15929 15930volatile int x; 15931int * volatile y = (int *) 0; 15932return !x && !y; 15933 ; 15934 return 0; 15935} 15936_ACEOF 15937if ac_fn_c_try_compile "$LINENO"; then : 15938 ac_cv_c_volatile=yes 15939else 15940 ac_cv_c_volatile=no 15941fi 15942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15943fi 15944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 15945$as_echo "$ac_cv_c_volatile" >&6; } 15946if test $ac_cv_c_volatile = no; then 15947 15948$as_echo "#define volatile /**/" >>confdefs.h 15949 15950fi 15951 15952 15953# Check whether --enable-assertions was given. 15954if test "${enable_assertions+set}" = set; then : 15955 enableval=$enable_assertions; 15956else 15957 enable_assertions=auto 15958fi 15959 15960case "$enable_assertions" in 15961 auto) # Use optimization settings to determine assertion level 15962 ;; 15963 disabled) 15964 15965$as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h 15966 15967 ;; 15968 release) 15969 15970$as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h 15971 15972 ;; 15973 enabled) 15974 15975$as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h 15976 15977 ;; 15978 paranoid) 15979 15980$as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h 15981 15982 ;; 15983 *) 15984 as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5 15985 ;; 15986esac 15987 15988# Check whether --enable-dependency-tracking was given. 15989if test "${enable_dependency_tracking+set}" = set; then : 15990 enableval=$enable_dependency_tracking; 15991else 15992 enable_dependency_tracking=yes 15993fi 15994 15995if test x$enable_dependency_tracking = xyes; then 15996 have_gcc_mmd_mt=no 15997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5 15998$as_echo_n "checking for GCC -MMD -MT option... " >&6; } 15999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16000/* end confdefs.h. */ 16001 16002 #if !defined(__GNUC__) || __GNUC__ < 3 16003 #error Dependency tracking requires GCC 3.0 or newer 16004 #endif 16005 16006int 16007main () 16008{ 16009 16010 16011 ; 16012 return 0; 16013} 16014_ACEOF 16015if ac_fn_c_try_compile "$LINENO"; then : 16016 16017 have_gcc_mmd_mt=yes 16018 16019fi 16020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5 16022$as_echo "$have_gcc_mmd_mt" >&6; } 16023 16024 if test x$have_gcc_mmd_mt = xyes; then 16025 DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@" 16026 fi 16027fi 16028 16029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5 16030$as_echo_n "checking for linker option --no-undefined... " >&6; } 16031have_no_undefined=no 16032case "$host" in 16033 *-*-openbsd*) 16034 ;; 16035 16036 *) 16037 save_LDFLAGS="$LDFLAGS" 16038 LDFLAGS="$LDFLAGS -Wl,--no-undefined" 16039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16040/* end confdefs.h. */ 16041 16042 16043int 16044main () 16045{ 16046 16047 16048 ; 16049 return 0; 16050} 16051_ACEOF 16052if ac_fn_c_try_link "$LINENO"; then : 16053 16054 have_no_undefined=yes 16055 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined" 16056 16057fi 16058rm -f core conftest.err conftest.$ac_objext \ 16059 conftest$ac_exeext conftest.$ac_ext 16060 LDFLAGS="$save_LDFLAGS" 16061 ;; 16062esac 16063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5 16064$as_echo "$have_no_undefined" >&6; } 16065 16066# Check whether --enable-libc was given. 16067if test "${enable_libc+set}" = set; then : 16068 enableval=$enable_libc; 16069else 16070 enable_libc=yes 16071fi 16072 16073if test x$enable_libc = xyes; then 16074 16075$as_echo "#define HAVE_LIBC 1" >>confdefs.h 16076 16077 16078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 16079$as_echo_n "checking for ANSI C header files... " >&6; } 16080if ${ac_cv_header_stdc+:} false; then : 16081 $as_echo_n "(cached) " >&6 16082else 16083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16084/* end confdefs.h. */ 16085#include <stdlib.h> 16086#include <stdarg.h> 16087#include <string.h> 16088#include <float.h> 16089 16090int 16091main () 16092{ 16093 16094 ; 16095 return 0; 16096} 16097_ACEOF 16098if ac_fn_c_try_compile "$LINENO"; then : 16099 ac_cv_header_stdc=yes 16100else 16101 ac_cv_header_stdc=no 16102fi 16103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16104 16105if test $ac_cv_header_stdc = yes; then 16106 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 16107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16108/* end confdefs.h. */ 16109#include <string.h> 16110 16111_ACEOF 16112if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16113 $EGREP "memchr" >/dev/null 2>&1; then : 16114 16115else 16116 ac_cv_header_stdc=no 16117fi 16118rm -f conftest* 16119 16120fi 16121 16122if test $ac_cv_header_stdc = yes; then 16123 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 16124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16125/* end confdefs.h. */ 16126#include <stdlib.h> 16127 16128_ACEOF 16129if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16130 $EGREP "free" >/dev/null 2>&1; then : 16131 16132else 16133 ac_cv_header_stdc=no 16134fi 16135rm -f conftest* 16136 16137fi 16138 16139if test $ac_cv_header_stdc = yes; then 16140 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 16141 if test "$cross_compiling" = yes; then : 16142 : 16143else 16144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16145/* end confdefs.h. */ 16146#include <ctype.h> 16147#include <stdlib.h> 16148#if ((' ' & 0x0FF) == 0x020) 16149# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 16150# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 16151#else 16152# define ISLOWER(c) \ 16153 (('a' <= (c) && (c) <= 'i') \ 16154 || ('j' <= (c) && (c) <= 'r') \ 16155 || ('s' <= (c) && (c) <= 'z')) 16156# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 16157#endif 16158 16159#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 16160int 16161main () 16162{ 16163 int i; 16164 for (i = 0; i < 256; i++) 16165 if (XOR (islower (i), ISLOWER (i)) 16166 || toupper (i) != TOUPPER (i)) 16167 return 2; 16168 return 0; 16169} 16170_ACEOF 16171if ac_fn_c_try_run "$LINENO"; then : 16172 16173else 16174 ac_cv_header_stdc=no 16175fi 16176rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16177 conftest.$ac_objext conftest.beam conftest.$ac_ext 16178fi 16179 16180fi 16181fi 16182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 16183$as_echo "$ac_cv_header_stdc" >&6; } 16184if test $ac_cv_header_stdc = yes; then 16185 16186$as_echo "#define STDC_HEADERS 1" >>confdefs.h 16187 16188fi 16189 16190 for ac_header in sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h wchar.h inttypes.h stdint.h limits.h ctype.h math.h float.h iconv.h signal.h 16191do : 16192 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16193ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16194if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16195 cat >>confdefs.h <<_ACEOF 16196#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16197_ACEOF 16198 16199fi 16200 16201done 16202 16203 16204 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 16205if test "x$ac_cv_type_size_t" = xyes; then : 16206 16207else 16208 16209cat >>confdefs.h <<_ACEOF 16210#define size_t unsigned int 16211_ACEOF 16212 16213fi 16214 16215 16216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5 16217$as_echo_n "checking for M_PI in math.h... " >&6; } 16218if ${ac_cv_define_M_PI+:} false; then : 16219 $as_echo_n "(cached) " >&6 16220else 16221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16222/* end confdefs.h. */ 16223 16224#include <math.h> 16225#ifdef M_PI 16226YES_IS_DEFINED 16227#endif 16228 16229_ACEOF 16230if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16231 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then : 16232 ac_cv_define_M_PI=yes 16233else 16234 ac_cv_define_M_PI=no 16235fi 16236rm -f conftest* 16237 16238 16239fi 16240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5 16241$as_echo "$ac_cv_define_M_PI" >&6; } 16242 if test "$ac_cv_define_M_PI" = "yes" ; then 16243 16244$as_echo "#define HAVE_M_PI /**/" >>confdefs.h 16245 16246 fi 16247 16248 16249 case "$host" in 16250 *-*-cygwin* | *-*-mingw32*) 16251 ;; 16252 *) 16253 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 16254# for constant arguments. Useless! 16255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 16256$as_echo_n "checking for working alloca.h... " >&6; } 16257if ${ac_cv_working_alloca_h+:} false; then : 16258 $as_echo_n "(cached) " >&6 16259else 16260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16261/* end confdefs.h. */ 16262#include <alloca.h> 16263int 16264main () 16265{ 16266char *p = (char *) alloca (2 * sizeof (int)); 16267 if (p) return 0; 16268 ; 16269 return 0; 16270} 16271_ACEOF 16272if ac_fn_c_try_link "$LINENO"; then : 16273 ac_cv_working_alloca_h=yes 16274else 16275 ac_cv_working_alloca_h=no 16276fi 16277rm -f core conftest.err conftest.$ac_objext \ 16278 conftest$ac_exeext conftest.$ac_ext 16279fi 16280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 16281$as_echo "$ac_cv_working_alloca_h" >&6; } 16282if test $ac_cv_working_alloca_h = yes; then 16283 16284$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 16285 16286fi 16287 16288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 16289$as_echo_n "checking for alloca... " >&6; } 16290if ${ac_cv_func_alloca_works+:} false; then : 16291 $as_echo_n "(cached) " >&6 16292else 16293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16294/* end confdefs.h. */ 16295#ifdef __GNUC__ 16296# define alloca __builtin_alloca 16297#else 16298# ifdef _MSC_VER 16299# include <malloc.h> 16300# define alloca _alloca 16301# else 16302# ifdef HAVE_ALLOCA_H 16303# include <alloca.h> 16304# else 16305# ifdef _AIX 16306 #pragma alloca 16307# else 16308# ifndef alloca /* predefined by HP cc +Olibcalls */ 16309void *alloca (size_t); 16310# endif 16311# endif 16312# endif 16313# endif 16314#endif 16315 16316int 16317main () 16318{ 16319char *p = (char *) alloca (1); 16320 if (p) return 0; 16321 ; 16322 return 0; 16323} 16324_ACEOF 16325if ac_fn_c_try_link "$LINENO"; then : 16326 ac_cv_func_alloca_works=yes 16327else 16328 ac_cv_func_alloca_works=no 16329fi 16330rm -f core conftest.err conftest.$ac_objext \ 16331 conftest$ac_exeext conftest.$ac_ext 16332fi 16333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 16334$as_echo "$ac_cv_func_alloca_works" >&6; } 16335 16336if test $ac_cv_func_alloca_works = yes; then 16337 16338$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 16339 16340else 16341 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 16342# that cause trouble. Some versions do not even contain alloca or 16343# contain a buggy version. If you still want to use their alloca, 16344# use ar to extract alloca.o from them instead of compiling alloca.c. 16345 16346ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 16347 16348$as_echo "#define C_ALLOCA 1" >>confdefs.h 16349 16350 16351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 16352$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 16353if ${ac_cv_os_cray+:} false; then : 16354 $as_echo_n "(cached) " >&6 16355else 16356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16357/* end confdefs.h. */ 16358#if defined CRAY && ! defined CRAY2 16359webecray 16360#else 16361wenotbecray 16362#endif 16363 16364_ACEOF 16365if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16366 $EGREP "webecray" >/dev/null 2>&1; then : 16367 ac_cv_os_cray=yes 16368else 16369 ac_cv_os_cray=no 16370fi 16371rm -f conftest* 16372 16373fi 16374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 16375$as_echo "$ac_cv_os_cray" >&6; } 16376if test $ac_cv_os_cray = yes; then 16377 for ac_func in _getb67 GETB67 getb67; do 16378 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16379ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16380if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16381 16382cat >>confdefs.h <<_ACEOF 16383#define CRAY_STACKSEG_END $ac_func 16384_ACEOF 16385 16386 break 16387fi 16388 16389 done 16390fi 16391 16392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 16393$as_echo_n "checking stack direction for C alloca... " >&6; } 16394if ${ac_cv_c_stack_direction+:} false; then : 16395 $as_echo_n "(cached) " >&6 16396else 16397 if test "$cross_compiling" = yes; then : 16398 ac_cv_c_stack_direction=0 16399else 16400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16401/* end confdefs.h. */ 16402$ac_includes_default 16403int 16404find_stack_direction (int *addr, int depth) 16405{ 16406 int dir, dummy = 0; 16407 if (! addr) 16408 addr = &dummy; 16409 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 16410 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 16411 return dir + dummy; 16412} 16413 16414int 16415main (int argc, char **argv) 16416{ 16417 return find_stack_direction (0, argc + !argv + 20) < 0; 16418} 16419_ACEOF 16420if ac_fn_c_try_run "$LINENO"; then : 16421 ac_cv_c_stack_direction=1 16422else 16423 ac_cv_c_stack_direction=-1 16424fi 16425rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16426 conftest.$ac_objext conftest.beam conftest.$ac_ext 16427fi 16428 16429fi 16430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 16431$as_echo "$ac_cv_c_stack_direction" >&6; } 16432cat >>confdefs.h <<_ACEOF 16433#define STACK_DIRECTION $ac_cv_c_stack_direction 16434_ACEOF 16435 16436 16437fi 16438 16439 ;; 16440 esac 16441 16442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 16443$as_echo_n "checking for working memcmp... " >&6; } 16444if ${ac_cv_func_memcmp_working+:} false; then : 16445 $as_echo_n "(cached) " >&6 16446else 16447 if test "$cross_compiling" = yes; then : 16448 ac_cv_func_memcmp_working=no 16449else 16450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16451/* end confdefs.h. */ 16452$ac_includes_default 16453int 16454main () 16455{ 16456 16457 /* Some versions of memcmp are not 8-bit clean. */ 16458 char c0 = '\100', c1 = '\200', c2 = '\201'; 16459 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 16460 return 1; 16461 16462 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 16463 or more and with at least one buffer not starting on a 4-byte boundary. 16464 William Lewis provided this test program. */ 16465 { 16466 char foo[21]; 16467 char bar[21]; 16468 int i; 16469 for (i = 0; i < 4; i++) 16470 { 16471 char *a = foo + i; 16472 char *b = bar + i; 16473 strcpy (a, "--------01111111"); 16474 strcpy (b, "--------10000000"); 16475 if (memcmp (a, b, 16) >= 0) 16476 return 1; 16477 } 16478 return 0; 16479 } 16480 16481 ; 16482 return 0; 16483} 16484_ACEOF 16485if ac_fn_c_try_run "$LINENO"; then : 16486 ac_cv_func_memcmp_working=yes 16487else 16488 ac_cv_func_memcmp_working=no 16489fi 16490rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16491 conftest.$ac_objext conftest.beam conftest.$ac_ext 16492fi 16493 16494fi 16495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 16496$as_echo "$ac_cv_func_memcmp_working" >&6; } 16497test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in 16498 *" memcmp.$ac_objext "* ) ;; 16499 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 16500 ;; 16501esac 16502 16503 16504 if test x$ac_cv_func_memcmp_working = xyes; then 16505 16506$as_echo "#define HAVE_MEMCMP 1" >>confdefs.h 16507 16508 fi 16509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 16510$as_echo_n "checking for working strtod... " >&6; } 16511if ${ac_cv_func_strtod+:} false; then : 16512 $as_echo_n "(cached) " >&6 16513else 16514 if test "$cross_compiling" = yes; then : 16515 ac_cv_func_strtod=no 16516else 16517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16518/* end confdefs.h. */ 16519 16520$ac_includes_default 16521#ifndef strtod 16522double strtod (); 16523#endif 16524int 16525main() 16526{ 16527 { 16528 /* Some versions of Linux strtod mis-parse strings with leading '+'. */ 16529 char *string = " +69"; 16530 char *term; 16531 double value; 16532 value = strtod (string, &term); 16533 if (value != 69 || term != (string + 4)) 16534 return 1; 16535 } 16536 16537 { 16538 /* Under Solaris 2.4, strtod returns the wrong value for the 16539 terminating character under some conditions. */ 16540 char *string = "NaN"; 16541 char *term; 16542 strtod (string, &term); 16543 if (term != string && *(term - 1) == 0) 16544 return 1; 16545 } 16546 return 0; 16547} 16548 16549_ACEOF 16550if ac_fn_c_try_run "$LINENO"; then : 16551 ac_cv_func_strtod=yes 16552else 16553 ac_cv_func_strtod=no 16554fi 16555rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16556 conftest.$ac_objext conftest.beam conftest.$ac_ext 16557fi 16558 16559fi 16560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 16561$as_echo "$ac_cv_func_strtod" >&6; } 16562if test $ac_cv_func_strtod = no; then 16563 case " $LIBOBJS " in 16564 *" strtod.$ac_objext "* ) ;; 16565 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" 16566 ;; 16567esac 16568 16569ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" 16570if test "x$ac_cv_func_pow" = xyes; then : 16571 16572fi 16573 16574if test $ac_cv_func_pow = no; then 16575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 16576$as_echo_n "checking for pow in -lm... " >&6; } 16577if ${ac_cv_lib_m_pow+:} false; then : 16578 $as_echo_n "(cached) " >&6 16579else 16580 ac_check_lib_save_LIBS=$LIBS 16581LIBS="-lm $LIBS" 16582cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16583/* end confdefs.h. */ 16584 16585/* Override any GCC internal prototype to avoid an error. 16586 Use char because int might match the return type of a GCC 16587 builtin and then its argument prototype would still apply. */ 16588#ifdef __cplusplus 16589extern "C" 16590#endif 16591char pow (); 16592int 16593main () 16594{ 16595return pow (); 16596 ; 16597 return 0; 16598} 16599_ACEOF 16600if ac_fn_c_try_link "$LINENO"; then : 16601 ac_cv_lib_m_pow=yes 16602else 16603 ac_cv_lib_m_pow=no 16604fi 16605rm -f core conftest.err conftest.$ac_objext \ 16606 conftest$ac_exeext conftest.$ac_ext 16607LIBS=$ac_check_lib_save_LIBS 16608fi 16609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 16610$as_echo "$ac_cv_lib_m_pow" >&6; } 16611if test "x$ac_cv_lib_m_pow" = xyes; then : 16612 POW_LIB=-lm 16613else 16614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 16615$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} 16616fi 16617 16618fi 16619 16620fi 16621 16622 if test x$ac_cv_func_strtod = xyes; then 16623 16624$as_echo "#define HAVE_STRTOD 1" >>confdefs.h 16625 16626 fi 16627 ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect" 16628if test "x$ac_cv_func_mprotect" = xyes; then : 16629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16630/* end confdefs.h. */ 16631 16632 #include <sys/types.h> 16633 #include <sys/mman.h> 16634 16635int 16636main () 16637{ 16638 16639 16640 ; 16641 return 0; 16642} 16643_ACEOF 16644if ac_fn_c_try_compile "$LINENO"; then : 16645 16646 16647$as_echo "#define HAVE_MPROTECT 1" >>confdefs.h 16648 16649 16650fi 16651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16652fi 16653 16654 for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcscmp strlen strlcpy strlcat _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval poll 16655do : 16656 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16657ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16658if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16659 cat >>confdefs.h <<_ACEOF 16660#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16661_ACEOF 16662 16663fi 16664done 16665 16666 16667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 16668$as_echo_n "checking for pow in -lm... " >&6; } 16669if ${ac_cv_lib_m_pow+:} false; then : 16670 $as_echo_n "(cached) " >&6 16671else 16672 ac_check_lib_save_LIBS=$LIBS 16673LIBS="-lm $LIBS" 16674cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16675/* end confdefs.h. */ 16676 16677/* Override any GCC internal prototype to avoid an error. 16678 Use char because int might match the return type of a GCC 16679 builtin and then its argument prototype would still apply. */ 16680#ifdef __cplusplus 16681extern "C" 16682#endif 16683char pow (); 16684int 16685main () 16686{ 16687return pow (); 16688 ; 16689 return 0; 16690} 16691_ACEOF 16692if ac_fn_c_try_link "$LINENO"; then : 16693 ac_cv_lib_m_pow=yes 16694else 16695 ac_cv_lib_m_pow=no 16696fi 16697rm -f core conftest.err conftest.$ac_objext \ 16698 conftest$ac_exeext conftest.$ac_ext 16699LIBS=$ac_check_lib_save_LIBS 16700fi 16701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 16702$as_echo "$ac_cv_lib_m_pow" >&6; } 16703if test "x$ac_cv_lib_m_pow" = xyes; then : 16704 LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm" 16705fi 16706 16707 for ac_func in acos acosf asin asinf atan atanf atan2 atan2f ceil ceilf copysign copysignf cos cosf exp expf fabs fabsf floor floorf fmod fmodf log logf log10 log10f pow powf scalbn scalbnf sin sinf sqrt sqrtf tan tanf 16708do : 16709 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16710ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16711if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16712 cat >>confdefs.h <<_ACEOF 16713#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16714_ACEOF 16715 16716fi 16717done 16718 16719 16720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5 16721$as_echo_n "checking for iconv_open in -liconv... " >&6; } 16722if ${ac_cv_lib_iconv_iconv_open+:} false; then : 16723 $as_echo_n "(cached) " >&6 16724else 16725 ac_check_lib_save_LIBS=$LIBS 16726LIBS="-liconv $LIBS" 16727cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16728/* end confdefs.h. */ 16729 16730/* Override any GCC internal prototype to avoid an error. 16731 Use char because int might match the return type of a GCC 16732 builtin and then its argument prototype would still apply. */ 16733#ifdef __cplusplus 16734extern "C" 16735#endif 16736char iconv_open (); 16737int 16738main () 16739{ 16740return iconv_open (); 16741 ; 16742 return 0; 16743} 16744_ACEOF 16745if ac_fn_c_try_link "$LINENO"; then : 16746 ac_cv_lib_iconv_iconv_open=yes 16747else 16748 ac_cv_lib_iconv_iconv_open=no 16749fi 16750rm -f core conftest.err conftest.$ac_objext \ 16751 conftest$ac_exeext conftest.$ac_ext 16752LIBS=$ac_check_lib_save_LIBS 16753fi 16754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5 16755$as_echo "$ac_cv_lib_iconv_iconv_open" >&6; } 16756if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then : 16757 LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv" 16758fi 16759 16760 for ac_func in iconv 16761do : 16762 ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv" 16763if test "x$ac_cv_func_iconv" = xyes; then : 16764 cat >>confdefs.h <<_ACEOF 16765#define HAVE_ICONV 1 16766_ACEOF 16767 16768fi 16769done 16770 16771 16772 ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h> 16773" 16774if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then : 16775 16776$as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h 16777 16778fi 16779 16780 16781 for ac_header in libunwind.h 16782do : 16783 ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default" 16784if test "x$ac_cv_header_libunwind_h" = xyes; then : 16785 cat >>confdefs.h <<_ACEOF 16786#define HAVE_LIBUNWIND_H 1 16787_ACEOF 16788 16789fi 16790 16791done 16792 16793fi 16794 16795 16796# Check whether --enable-gcc-atomics was given. 16797if test "${enable_gcc_atomics+set}" = set; then : 16798 enableval=$enable_gcc_atomics; 16799else 16800 enable_gcc_atomics=yes 16801fi 16802 16803if test x$enable_gcc_atomics = xyes; then 16804 have_gcc_atomics=no 16805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5 16806$as_echo_n "checking for GCC builtin atomic operations... " >&6; } 16807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16808/* end confdefs.h. */ 16809 16810 16811int 16812main () 16813{ 16814 16815 int a; 16816 void *x, *y, *z; 16817 __sync_lock_test_and_set(&a, 4); 16818 __sync_lock_test_and_set(&x, y); 16819 __sync_fetch_and_add(&a, 1); 16820 __sync_bool_compare_and_swap(&a, 5, 10); 16821 __sync_bool_compare_and_swap(&x, y, z); 16822 16823 ; 16824 return 0; 16825} 16826_ACEOF 16827if ac_fn_c_try_link "$LINENO"; then : 16828 16829 have_gcc_atomics=yes 16830 16831fi 16832rm -f core conftest.err conftest.$ac_objext \ 16833 conftest$ac_exeext conftest.$ac_ext 16834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5 16835$as_echo "$have_gcc_atomics" >&6; } 16836 16837 if test x$have_gcc_atomics = xyes; then 16838 16839$as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h 16840 16841 else 16842 # See if we have the minimum operation needed for GCC atomics 16843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16844/* end confdefs.h. */ 16845 16846 16847int 16848main () 16849{ 16850 16851 int a; 16852 __sync_lock_test_and_set(&a, 1); 16853 __sync_lock_release(&a); 16854 16855 ; 16856 return 0; 16857} 16858_ACEOF 16859if ac_fn_c_try_link "$LINENO"; then : 16860 16861 have_gcc_sync_lock_test_and_set=yes 16862 16863fi 16864rm -f core conftest.err conftest.$ac_objext \ 16865 conftest$ac_exeext conftest.$ac_ext 16866 if test x$have_gcc_sync_lock_test_and_set = xyes; then 16867 16868$as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h 16869 16870 fi 16871 fi 16872fi 16873 16874# Standard C sources 16875SOURCES="$SOURCES $srcdir/src/*.c" 16876SOURCES="$SOURCES $srcdir/src/atomic/*.c" 16877SOURCES="$SOURCES $srcdir/src/audio/*.c" 16878SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c" 16879SOURCES="$SOURCES $srcdir/src/dynapi/*.c" 16880SOURCES="$SOURCES $srcdir/src/events/*.c" 16881SOURCES="$SOURCES $srcdir/src/file/*.c" 16882SOURCES="$SOURCES $srcdir/src/haptic/*.c" 16883SOURCES="$SOURCES $srcdir/src/joystick/*.c" 16884SOURCES="$SOURCES $srcdir/src/libm/*.c" 16885SOURCES="$SOURCES $srcdir/src/power/*.c" 16886#SOURCES="$SOURCES $srcdir/src/filesystem/*.c" 16887SOURCES="$SOURCES $srcdir/src/render/*.c" 16888SOURCES="$SOURCES $srcdir/src/render/*/*.c" 16889SOURCES="$SOURCES $srcdir/src/sensor/*.c" 16890SOURCES="$SOURCES $srcdir/src/stdlib/*.c" 16891SOURCES="$SOURCES $srcdir/src/thread/*.c" 16892SOURCES="$SOURCES $srcdir/src/timer/*.c" 16893SOURCES="$SOURCES $srcdir/src/video/*.c" 16894SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c" 16895 16896 16897# Check whether --enable-atomic was given. 16898if test "${enable_atomic+set}" = set; then : 16899 enableval=$enable_atomic; 16900else 16901 enable_atomic=yes 16902fi 16903 16904if test x$enable_atomic != xyes; then 16905 16906$as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h 16907 16908else 16909 SUMMARY_modules="${SUMMARY_modules} atomic" 16910fi 16911# Check whether --enable-audio was given. 16912if test "${enable_audio+set}" = set; then : 16913 enableval=$enable_audio; 16914else 16915 enable_audio=yes 16916fi 16917 16918if test x$enable_audio != xyes; then 16919 16920$as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h 16921 16922else 16923 SUMMARY_modules="${SUMMARY_modules} audio" 16924fi 16925# Check whether --enable-video was given. 16926if test "${enable_video+set}" = set; then : 16927 enableval=$enable_video; 16928else 16929 enable_video=yes 16930fi 16931 16932if test x$enable_video != xyes; then 16933 16934$as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h 16935 16936else 16937 SUMMARY_modules="${SUMMARY_modules} video" 16938fi 16939# Check whether --enable-render was given. 16940if test "${enable_render+set}" = set; then : 16941 enableval=$enable_render; 16942else 16943 enable_render=yes 16944fi 16945 16946if test x$enable_render != xyes; then 16947 16948$as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h 16949 16950else 16951 SUMMARY_modules="${SUMMARY_modules} render" 16952fi 16953# Check whether --enable-events was given. 16954if test "${enable_events+set}" = set; then : 16955 enableval=$enable_events; 16956else 16957 enable_events=yes 16958fi 16959 16960if test x$enable_events != xyes; then 16961 16962$as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h 16963 16964else 16965 SUMMARY_modules="${SUMMARY_modules} events" 16966fi 16967# Check whether --enable-joystick was given. 16968if test "${enable_joystick+set}" = set; then : 16969 enableval=$enable_joystick; 16970else 16971 enable_joystick=yes 16972fi 16973 16974if test x$enable_joystick != xyes; then 16975 16976$as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h 16977 16978else 16979 SUMMARY_modules="${SUMMARY_modules} joystick" 16980fi 16981# Check whether --enable-haptic was given. 16982if test "${enable_haptic+set}" = set; then : 16983 enableval=$enable_haptic; 16984else 16985 enable_haptic=yes 16986fi 16987 16988if test x$enable_haptic != xyes; then 16989 16990$as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h 16991 16992else 16993 SUMMARY_modules="${SUMMARY_modules} haptic" 16994fi 16995# Check whether --enable-sensor was given. 16996if test "${enable_sensor+set}" = set; then : 16997 enableval=$enable_sensor; 16998else 16999 enable_sensor=yes 17000fi 17001 17002if test x$enable_sensor != xyes; then 17003 17004$as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h 17005 17006else 17007 SUMMARY_modules="${SUMMARY_modules} sensor" 17008fi 17009# Check whether --enable-power was given. 17010if test "${enable_power+set}" = set; then : 17011 enableval=$enable_power; 17012else 17013 enable_power=yes 17014fi 17015 17016if test x$enable_power != xyes; then 17017 17018$as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h 17019 17020else 17021 SUMMARY_modules="${SUMMARY_modules} power" 17022fi 17023# Check whether --enable-filesystem was given. 17024if test "${enable_filesystem+set}" = set; then : 17025 enableval=$enable_filesystem; 17026else 17027 enable_filesystem=yes 17028fi 17029 17030if test x$enable_filesystem != xyes; then 17031 17032$as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h 17033 17034else 17035 SUMMARY_modules="${SUMMARY_modules} filesystem" 17036fi 17037# Check whether --enable-threads was given. 17038if test "${enable_threads+set}" = set; then : 17039 enableval=$enable_threads; 17040else 17041 enable_threads=yes 17042fi 17043 17044if test x$enable_threads != xyes; then 17045 17046$as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h 17047 17048else 17049 SUMMARY_modules="${SUMMARY_modules} threads" 17050fi 17051# Check whether --enable-timers was given. 17052if test "${enable_timers+set}" = set; then : 17053 enableval=$enable_timers; 17054else 17055 enable_timers=yes 17056fi 17057 17058if test x$enable_timers != xyes; then 17059 17060$as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h 17061 17062else 17063 SUMMARY_modules="${SUMMARY_modules} timers" 17064fi 17065# Check whether --enable-file was given. 17066if test "${enable_file+set}" = set; then : 17067 enableval=$enable_file; 17068else 17069 enable_file=yes 17070fi 17071 17072if test x$enable_file != xyes; then 17073 17074$as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h 17075 17076else 17077 SUMMARY_modules="${SUMMARY_modules} file" 17078fi 17079# Check whether --enable-loadso was given. 17080if test "${enable_loadso+set}" = set; then : 17081 enableval=$enable_loadso; 17082else 17083 enable_loadso=yes 17084fi 17085 17086if test x$enable_loadso != xyes; then 17087 17088$as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h 17089 17090else 17091 SUMMARY_modules="${SUMMARY_modules} loadso" 17092fi 17093# Check whether --enable-cpuinfo was given. 17094if test "${enable_cpuinfo+set}" = set; then : 17095 enableval=$enable_cpuinfo; 17096else 17097 enable_cpuinfo=yes 17098fi 17099 17100if test x$enable_cpuinfo != xyes; then 17101 17102$as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h 17103 17104else 17105 SUMMARY_modules="${SUMMARY_modules} cpuinfo" 17106fi 17107# Check whether --enable-assembly was given. 17108if test "${enable_assembly+set}" = set; then : 17109 enableval=$enable_assembly; 17110else 17111 enable_assembly=yes 17112fi 17113 17114if test x$enable_assembly = xyes; then 17115 SUMMARY_modules="${SUMMARY_modules} assembly" 17116 17117 17118$as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h 17119 17120 17121 # Make sure that we don't generate floating point code that would 17122 # cause illegal instruction exceptions on older processors 17123 case "$host" in 17124 *-*-darwin*) 17125 # Don't need to worry about Apple hardware, it's all SSE capable 17126 default_ssemath=yes 17127 ;; 17128 *64-*-*) 17129 # x86 64-bit architectures all have SSE instructions 17130 default_ssemath=yes 17131 ;; 17132 *) 17133 default_ssemath=no 17134 ;; 17135 esac 17136 # Check whether --enable-ssemath was given. 17137if test "${enable_ssemath+set}" = set; then : 17138 enableval=$enable_ssemath; 17139else 17140 enable_ssemath=$default_ssemath 17141fi 17142 17143 if test x$enable_ssemath = xno; then 17144 if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then 17145 EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387" 17146 fi 17147 fi 17148 17149 # Check whether --enable-mmx was given. 17150if test "${enable_mmx+set}" = set; then : 17151 enableval=$enable_mmx; 17152else 17153 enable_mmx=yes 17154fi 17155 17156 if test x$enable_mmx = xyes; then 17157 save_CFLAGS="$CFLAGS" 17158 have_gcc_mmx=no 17159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5 17160$as_echo_n "checking for GCC -mmmx option... " >&6; } 17161 mmx_CFLAGS="-mmmx" 17162 CFLAGS="$save_CFLAGS $mmx_CFLAGS" 17163 17164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17165/* end confdefs.h. */ 17166 17167 #ifdef __MINGW32__ 17168 #include <_mingw.h> 17169 #ifdef __MINGW64_VERSION_MAJOR 17170 #include <intrin.h> 17171 #else 17172 #include <mmintrin.h> 17173 #endif 17174 #else 17175 #include <mmintrin.h> 17176 #endif 17177 #ifndef __MMX__ 17178 #error Assembler CPP flag not enabled 17179 #endif 17180 17181int 17182main () 17183{ 17184 17185 17186 ; 17187 return 0; 17188} 17189_ACEOF 17190if ac_fn_c_try_compile "$LINENO"; then : 17191 17192 have_gcc_mmx=yes 17193 17194fi 17195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5 17197$as_echo "$have_gcc_mmx" >&6; } 17198 CFLAGS="$save_CFLAGS" 17199 17200 if test x$have_gcc_mmx = xyes; then 17201 EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS" 17202 SUMMARY_math="${SUMMARY_math} mmx" 17203 fi 17204 fi 17205 17206 # Check whether --enable-3dnow was given. 17207if test "${enable_3dnow+set}" = set; then : 17208 enableval=$enable_3dnow; 17209else 17210 enable_3dnow=yes 17211fi 17212 17213 if test x$enable_3dnow = xyes; then 17214 save_CFLAGS="$CFLAGS" 17215 have_gcc_3dnow=no 17216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5 17217$as_echo_n "checking for GCC -m3dnow option... " >&6; } 17218 amd3dnow_CFLAGS="-m3dnow" 17219 CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS" 17220 17221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17222/* end confdefs.h. */ 17223 17224 #include <mm3dnow.h> 17225 #ifndef __3dNOW__ 17226 #error Assembler CPP flag not enabled 17227 #endif 17228 17229int 17230main () 17231{ 17232 17233 void *p = 0; 17234 _m_prefetch(p); 17235 17236 ; 17237 return 0; 17238} 17239_ACEOF 17240if ac_fn_c_try_link "$LINENO"; then : 17241 17242 have_gcc_3dnow=yes 17243 17244fi 17245rm -f core conftest.err conftest.$ac_objext \ 17246 conftest$ac_exeext conftest.$ac_ext 17247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5 17248$as_echo "$have_gcc_3dnow" >&6; } 17249 CFLAGS="$save_CFLAGS" 17250 17251 if test x$have_gcc_3dnow = xyes; then 17252 EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS" 17253 SUMMARY_math="${SUMMARY_math} 3dnow" 17254 fi 17255 fi 17256 17257 # Check whether --enable-sse was given. 17258if test "${enable_sse+set}" = set; then : 17259 enableval=$enable_sse; 17260else 17261 enable_sse=yes 17262fi 17263 17264 if test x$enable_sse = xyes; then 17265 save_CFLAGS="$CFLAGS" 17266 have_gcc_sse=no 17267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5 17268$as_echo_n "checking for GCC -msse option... " >&6; } 17269 sse_CFLAGS="-msse" 17270 CFLAGS="$save_CFLAGS $sse_CFLAGS" 17271 17272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17273/* end confdefs.h. */ 17274 17275 #ifdef __MINGW32__ 17276 #include <_mingw.h> 17277 #ifdef __MINGW64_VERSION_MAJOR 17278 #include <intrin.h> 17279 #else 17280 #include <xmmintrin.h> 17281 #endif 17282 #else 17283 #include <xmmintrin.h> 17284 #endif 17285 #ifndef __SSE__ 17286 #error Assembler CPP flag not enabled 17287 #endif 17288 17289int 17290main () 17291{ 17292 17293 17294 ; 17295 return 0; 17296} 17297_ACEOF 17298if ac_fn_c_try_compile "$LINENO"; then : 17299 17300 have_gcc_sse=yes 17301 17302fi 17303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5 17305$as_echo "$have_gcc_sse" >&6; } 17306 CFLAGS="$save_CFLAGS" 17307 17308 if test x$have_gcc_sse = xyes; then 17309 EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS" 17310 SUMMARY_math="${SUMMARY_math} sse" 17311 fi 17312 fi 17313 17314 # Check whether --enable-sse2 was given. 17315if test "${enable_sse2+set}" = set; then : 17316 enableval=$enable_sse2; 17317else 17318 enable_sse2=$default_ssemath 17319fi 17320 17321 if test x$enable_sse2 = xyes; then 17322 save_CFLAGS="$CFLAGS" 17323 have_gcc_sse2=no 17324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5 17325$as_echo_n "checking for GCC -msse2 option... " >&6; } 17326 sse2_CFLAGS="-msse2" 17327 CFLAGS="$save_CFLAGS $sse2_CFLAGS" 17328 17329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17330/* end confdefs.h. */ 17331 17332 #ifdef __MINGW32__ 17333 #include <_mingw.h> 17334 #ifdef __MINGW64_VERSION_MAJOR 17335 #include <intrin.h> 17336 #else 17337 #include <emmintrin.h> 17338 #endif 17339 #else 17340 #include <emmintrin.h> 17341 #endif 17342 #ifndef __SSE2__ 17343 #error Assembler CPP flag not enabled 17344 #endif 17345 17346int 17347main () 17348{ 17349 17350 17351 ; 17352 return 0; 17353} 17354_ACEOF 17355if ac_fn_c_try_compile "$LINENO"; then : 17356 17357 have_gcc_sse2=yes 17358 17359fi 17360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5 17362$as_echo "$have_gcc_sse2" >&6; } 17363 CFLAGS="$save_CFLAGS" 17364 17365 if test x$have_gcc_sse2 = xyes; then 17366 EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS" 17367 SUMMARY_math="${SUMMARY_math} sse2" 17368 fi 17369 fi 17370 17371 # Check whether --enable-sse3 was given. 17372if test "${enable_sse3+set}" = set; then : 17373 enableval=$enable_sse3; 17374else 17375 enable_sse3=$default_ssemath 17376fi 17377 17378 if test x$enable_sse3 = xyes; then 17379 save_CFLAGS="$CFLAGS" 17380 have_gcc_sse3=no 17381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5 17382$as_echo_n "checking for GCC -msse3 option... " >&6; } 17383 sse3_CFLAGS="-msse3" 17384 CFLAGS="$save_CFLAGS $sse3_CFLAGS" 17385 17386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17387/* end confdefs.h. */ 17388 17389 #ifdef __MINGW32__ 17390 #include <_mingw.h> 17391 #ifdef __MINGW64_VERSION_MAJOR 17392 #include <intrin.h> 17393 #else 17394 #include <pmmintrin.h> 17395 #endif 17396 #else 17397 #include <pmmintrin.h> 17398 #endif 17399 #ifndef __SSE2__ 17400 #error Assembler CPP flag not enabled 17401 #endif 17402 17403int 17404main () 17405{ 17406 17407 17408 ; 17409 return 0; 17410} 17411_ACEOF 17412if ac_fn_c_try_compile "$LINENO"; then : 17413 17414 have_gcc_sse3=yes 17415 17416fi 17417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5 17419$as_echo "$have_gcc_sse3" >&6; } 17420 CFLAGS="$save_CFLAGS" 17421 17422 if test x$have_gcc_sse3 = xyes; then 17423 EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS" 17424 SUMMARY_math="${SUMMARY_math} sse3" 17425 fi 17426 fi 17427 17428 ac_fn_c_check_header_mongrel "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default" 17429if test "x$ac_cv_header_immintrin_h" = xyes; then : 17430 have_immintrin_h_hdr=yes 17431else 17432 have_immintrin_h_hdr=no 17433fi 17434 17435 17436 if test x$have_immintrin_h_hdr = xyes; then 17437 17438$as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h 17439 17440 fi 17441 17442 # Check whether --enable-altivec was given. 17443if test "${enable_altivec+set}" = set; then : 17444 enableval=$enable_altivec; 17445else 17446 enable_altivec=yes 17447fi 17448 17449 if test x$enable_altivec = xyes; then 17450 save_CFLAGS="$CFLAGS" 17451 have_gcc_altivec=no 17452 have_altivec_h_hdr=no 17453 altivec_CFLAGS="-maltivec" 17454 CFLAGS="$save_CFLAGS $altivec_CFLAGS" 17455 17456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5 17457$as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; } 17458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17459/* end confdefs.h. */ 17460 17461 #include <altivec.h> 17462 vector unsigned int vzero() { 17463 return vec_splat_u32(0); 17464 } 17465 17466int 17467main () 17468{ 17469 17470 17471 ; 17472 return 0; 17473} 17474_ACEOF 17475if ac_fn_c_try_compile "$LINENO"; then : 17476 17477 have_gcc_altivec=yes 17478 have_altivec_h_hdr=yes 17479 17480fi 17481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5 17483$as_echo "$have_gcc_altivec" >&6; } 17484 17485 if test x$have_gcc_altivec = xno; then 17486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5 17487$as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; } 17488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17489/* end confdefs.h. */ 17490 17491 vector unsigned int vzero() { 17492 return vec_splat_u32(0); 17493 } 17494 17495int 17496main () 17497{ 17498 17499 17500 ; 17501 return 0; 17502} 17503_ACEOF 17504if ac_fn_c_try_compile "$LINENO"; then : 17505 17506 have_gcc_altivec=yes 17507 17508fi 17509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5 17511$as_echo "$have_gcc_altivec" >&6; } 17512 fi 17513 17514 if test x$have_gcc_altivec = xno; then 17515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5 17516$as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; } 17517 altivec_CFLAGS="-faltivec" 17518 CFLAGS="$save_CFLAGS $altivec_CFLAGS" 17519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17520/* end confdefs.h. */ 17521 17522 #include <altivec.h> 17523 vector unsigned int vzero() { 17524 return vec_splat_u32(0); 17525 } 17526 17527int 17528main () 17529{ 17530 17531 17532 ; 17533 return 0; 17534} 17535_ACEOF 17536if ac_fn_c_try_compile "$LINENO"; then : 17537 17538 have_gcc_altivec=yes 17539 have_altivec_h_hdr=yes 17540 17541fi 17542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5 17544$as_echo "$have_gcc_altivec" >&6; } 17545 fi 17546 17547 if test x$have_gcc_altivec = xno; then 17548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5 17549$as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; } 17550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17551/* end confdefs.h. */ 17552 17553 vector unsigned int vzero() { 17554 return vec_splat_u32(0); 17555 } 17556 17557int 17558main () 17559{ 17560 17561 17562 ; 17563 return 0; 17564} 17565_ACEOF 17566if ac_fn_c_try_compile "$LINENO"; then : 17567 17568 have_gcc_altivec=yes 17569 17570fi 17571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5 17573$as_echo "$have_gcc_altivec" >&6; } 17574 fi 17575 CFLAGS="$save_CFLAGS" 17576 17577 if test x$have_gcc_altivec = xyes; then 17578 17579$as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h 17580 17581 if test x$have_altivec_h_hdr = xyes; then 17582 17583$as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h 17584 17585 fi 17586 EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS" 17587 SUMMARY_math="${SUMMARY_math} altivec" 17588 fi 17589 fi 17590fi 17591 17592CheckOSS() 17593{ 17594 # Check whether --enable-oss was given. 17595if test "${enable_oss+set}" = set; then : 17596 enableval=$enable_oss; 17597else 17598 enable_oss=maybe 17599fi 17600 17601 17602 # OpenBSD "has" OSS, but it's not really for app use. They want you to 17603 # use sndio instead. So on there, we default to disabled. You can force 17604 # it on if you really want, though. 17605 if test x$enable_oss = xmaybe; then 17606 enable_oss=yes 17607 case "$host" in 17608 *-*-openbsd*) 17609 enable_oss=no;; 17610 esac 17611 fi 17612 17613 if test x$enable_audio = xyes -a x$enable_oss = xyes; then 17614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5 17615$as_echo_n "checking for OSS audio support... " >&6; } 17616 have_oss=no 17617 if test x$have_oss != xyes; then 17618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17619/* end confdefs.h. */ 17620 17621 #include <sys/soundcard.h> 17622 17623int 17624main () 17625{ 17626 17627 int arg = SNDCTL_DSP_SETFRAGMENT; 17628 17629 ; 17630 return 0; 17631} 17632_ACEOF 17633if ac_fn_c_try_compile "$LINENO"; then : 17634 17635 have_oss=yes 17636 17637fi 17638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17639 fi 17640 if test x$have_oss != xyes; then 17641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17642/* end confdefs.h. */ 17643 17644 #include <soundcard.h> 17645 17646int 17647main () 17648{ 17649 17650 int arg = SNDCTL_DSP_SETFRAGMENT; 17651 17652 ; 17653 return 0; 17654} 17655_ACEOF 17656if ac_fn_c_try_compile "$LINENO"; then : 17657 17658 have_oss=yes 17659 17660$as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h 17661 17662 17663fi 17664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17665 fi 17666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5 17667$as_echo "$have_oss" >&6; } 17668 if test x$have_oss = xyes; then 17669 SUMMARY_audio="${SUMMARY_audio} oss" 17670 17671$as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h 17672 17673 SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c" 17674 have_audio=yes 17675 17676 # We may need to link with ossaudio emulation library 17677 case "$host" in 17678 *-*-openbsd*|*-*-netbsd*) 17679 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";; 17680 esac 17681 fi 17682 fi 17683} 17684 17685CheckALSA() 17686{ 17687 # Check whether --enable-alsa was given. 17688if test "${enable_alsa+set}" = set; then : 17689 enableval=$enable_alsa; 17690else 17691 enable_alsa=yes 17692fi 17693 17694 if test x$enable_audio = xyes -a x$enable_alsa = xyes; then 17695 alsa_save_CFLAGS="$CFLAGS" 17696alsa_save_LDFLAGS="$LDFLAGS" 17697alsa_save_LIBS="$LIBS" 17698alsa_found=yes 17699 17700 17701# Check whether --with-alsa-prefix was given. 17702if test "${with_alsa_prefix+set}" = set; then : 17703 withval=$with_alsa_prefix; alsa_prefix="$withval" 17704else 17705 alsa_prefix="" 17706fi 17707 17708 17709 17710# Check whether --with-alsa-inc-prefix was given. 17711if test "${with_alsa_inc_prefix+set}" = set; then : 17712 withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval" 17713else 17714 alsa_inc_prefix="" 17715fi 17716 17717 17718# Check whether --enable-alsatest was given. 17719if test "${enable_alsatest+set}" = set; then : 17720 enableval=$enable_alsatest; enable_alsatest="$enableval" 17721else 17722 enable_alsatest=yes 17723fi 17724 17725 17726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5 17727$as_echo_n "checking for ALSA CFLAGS... " >&6; } 17728if test "$alsa_inc_prefix" != "" ; then 17729 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix" 17730 CFLAGS="$CFLAGS -I$alsa_inc_prefix" 17731fi 17732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5 17733$as_echo "$ALSA_CFLAGS" >&6; } 17734 17735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5 17736$as_echo_n "checking for ALSA LDFLAGS... " >&6; } 17737if test "$alsa_prefix" != "" ; then 17738 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix" 17739 LDFLAGS="$LDFLAGS $ALSA_LIBS" 17740fi 17741 17742ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread" 17743LIBS=`echo $LIBS | sed 's/-lm//'` 17744LIBS=`echo $LIBS | sed 's/-ldl//'` 17745LIBS=`echo $LIBS | sed 's/-lpthread//'` 17746LIBS=`echo $LIBS | sed 's/ //'` 17747LIBS="$ALSA_LIBS $LIBS" 17748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5 17749$as_echo "$ALSA_LIBS" >&6; } 17750 17751min_alsa_version=1.0.11 17752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5 17753$as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; } 17754no_alsa="" 17755 alsa_min_major_version=`echo $min_alsa_version | \ 17756 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 17757 alsa_min_minor_version=`echo $min_alsa_version | \ 17758 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 17759 alsa_min_micro_version=`echo $min_alsa_version | \ 17760 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 17761 17762 17763ac_ext=c 17764ac_cpp='$CPP $CPPFLAGS' 17765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17767ac_compiler_gnu=$ac_cv_c_compiler_gnu 17768 17769cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17770/* end confdefs.h. */ 17771 17772#include <alsa/asoundlib.h> 17773 17774int 17775main () 17776{ 17777 17778/* ensure backward compatibility */ 17779#if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR) 17780#define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR 17781#endif 17782#if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR) 17783#define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR 17784#endif 17785#if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR) 17786#define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR 17787#endif 17788 17789# if(SND_LIB_MAJOR > $alsa_min_major_version) 17790 exit(0); 17791# else 17792# if(SND_LIB_MAJOR < $alsa_min_major_version) 17793# error not present 17794# endif 17795 17796# if(SND_LIB_MINOR > $alsa_min_minor_version) 17797 exit(0); 17798# else 17799# if(SND_LIB_MINOR < $alsa_min_minor_version) 17800# error not present 17801# endif 17802 17803# if(SND_LIB_SUBMINOR < $alsa_min_micro_version) 17804# error not present 17805# endif 17806# endif 17807# endif 17808exit(0); 17809 17810 ; 17811 return 0; 17812} 17813_ACEOF 17814if ac_fn_c_try_compile "$LINENO"; then : 17815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5 17816$as_echo "found." >&6; } 17817else 17818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5 17819$as_echo "not present." >&6; } 17820 17821 alsa_found=no 17822 17823fi 17824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17825ac_ext=c 17826ac_cpp='$CPP $CPPFLAGS' 17827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17829ac_compiler_gnu=$ac_cv_c_compiler_gnu 17830 17831 17832if test "x$enable_alsatest" = "xyes"; then 17833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5 17834$as_echo_n "checking for snd_ctl_open in -lasound... " >&6; } 17835if ${ac_cv_lib_asound_snd_ctl_open+:} false; then : 17836 $as_echo_n "(cached) " >&6 17837else 17838 ac_check_lib_save_LIBS=$LIBS 17839LIBS="-lasound $LIBS" 17840cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17841/* end confdefs.h. */ 17842 17843/* Override any GCC internal prototype to avoid an error. 17844 Use char because int might match the return type of a GCC 17845 builtin and then its argument prototype would still apply. */ 17846#ifdef __cplusplus 17847extern "C" 17848#endif 17849char snd_ctl_open (); 17850int 17851main () 17852{ 17853return snd_ctl_open (); 17854 ; 17855 return 0; 17856} 17857_ACEOF 17858if ac_fn_c_try_link "$LINENO"; then : 17859 ac_cv_lib_asound_snd_ctl_open=yes 17860else 17861 ac_cv_lib_asound_snd_ctl_open=no 17862fi 17863rm -f core conftest.err conftest.$ac_objext \ 17864 conftest$ac_exeext conftest.$ac_ext 17865LIBS=$ac_check_lib_save_LIBS 17866fi 17867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5 17868$as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; } 17869if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then : 17870 cat >>confdefs.h <<_ACEOF 17871#define HAVE_LIBASOUND 1 17872_ACEOF 17873 17874 LIBS="-lasound $LIBS" 17875 17876else 17877 17878 alsa_found=no 17879 17880fi 17881 17882fi 17883 17884if test "x$alsa_found" = "xyes" ; then 17885 have_alsa=yes 17886 LIBS=`echo $LIBS | sed 's/-lasound//g'` 17887 LIBS=`echo $LIBS | sed 's/ //'` 17888 LIBS="-lasound $LIBS" 17889fi 17890if test "x$alsa_found" = "xno" ; then 17891 have_alsa=no 17892 CFLAGS="$alsa_save_CFLAGS" 17893 LDFLAGS="$alsa_save_LDFLAGS" 17894 LIBS="$alsa_save_LIBS" 17895 ALSA_CFLAGS="" 17896 ALSA_LIBS="" 17897fi 17898 17899 17900 17901 17902 # Restore all flags from before the ALSA detection runs 17903 CFLAGS="$alsa_save_CFLAGS" 17904 LDFLAGS="$alsa_save_LDFLAGS" 17905 LIBS="$alsa_save_LIBS" 17906 if test x$have_alsa = xyes; then 17907 # Check whether --enable-alsa-shared was given. 17908if test "${enable_alsa_shared+set}" = set; then : 17909 enableval=$enable_alsa_shared; 17910else 17911 enable_alsa_shared=yes 17912fi 17913 17914 alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 17915 17916 17917$as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h 17918 17919 SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c" 17920 EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS" 17921 if test x$have_loadso != xyes && \ 17922 test x$enable_alsa_shared = xyes; then 17923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5 17924$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;} 17925 fi 17926 if test x$have_loadso = xyes && \ 17927 test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then 17928 echo "-- dynamic libasound -> $alsa_lib" 17929 17930cat >>confdefs.h <<_ACEOF 17931#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib" 17932_ACEOF 17933 17934 SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)" 17935 else 17936 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS" 17937 SUMMARY_audio="${SUMMARY_audio} alsa" 17938 fi 17939 have_audio=yes 17940 fi 17941 fi 17942} 17943 17944CheckJACK() 17945{ 17946 # Check whether --enable-jack was given. 17947if test "${enable_jack+set}" = set; then : 17948 enableval=$enable_jack; 17949else 17950 enable_jack=yes 17951fi 17952 17953 if test x$enable_audio = xyes -a x$enable_jack = xyes; then 17954 audio_jack=no 17955 17956 JACK_REQUIRED_VERSION=0.125 17957 17958 # Extract the first word of "pkg-config", so it can be a program name with args. 17959set dummy pkg-config; ac_word=$2 17960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17961$as_echo_n "checking for $ac_word... " >&6; } 17962if ${ac_cv_path_PKG_CONFIG+:} false; then : 17963 $as_echo_n "(cached) " >&6 17964else 17965 case $PKG_CONFIG in 17966 [\\/]* | ?:[\\/]*) 17967 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 17968 ;; 17969 *) 17970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17971for as_dir in $PATH 17972do 17973 IFS=$as_save_IFS 17974 test -z "$as_dir" && as_dir=. 17975 for ac_exec_ext in '' $ac_executable_extensions; do 17976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17977 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 17978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17979 break 2 17980 fi 17981done 17982 done 17983IFS=$as_save_IFS 17984 17985 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 17986 ;; 17987esac 17988fi 17989PKG_CONFIG=$ac_cv_path_PKG_CONFIG 17990if test -n "$PKG_CONFIG"; then 17991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 17992$as_echo "$PKG_CONFIG" >&6; } 17993else 17994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17995$as_echo "no" >&6; } 17996fi 17997 17998 17999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK $JACK_REQUIRED_VERSION support" >&5 18000$as_echo_n "checking for JACK $JACK_REQUIRED_VERSION support... " >&6; } 18001 if test x$PKG_CONFIG != xno; then 18002 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $JACK_REQUIRED_VERSION jack; then 18003 JACK_CFLAGS=`$PKG_CONFIG --cflags jack` 18004 JACK_LIBS=`$PKG_CONFIG --libs jack` 18005 audio_jack=yes 18006 fi 18007 fi 18008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_jack" >&5 18009$as_echo "$audio_jack" >&6; } 18010 18011 if test x$audio_jack = xyes; then 18012 # Check whether --enable-jack-shared was given. 18013if test "${enable_jack_shared+set}" = set; then : 18014 enableval=$enable_jack_shared; 18015else 18016 enable_jack_shared=yes 18017fi 18018 18019 jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 18020 18021 18022$as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h 18023 18024 SOURCES="$SOURCES $srcdir/src/audio/jack/*.c" 18025 EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS" 18026 if test x$have_loadso != xyes && \ 18027 test x$enable_jack_shared = xyes; then 18028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5 18029$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;} 18030 fi 18031 if test x$have_loadso = xyes && \ 18032 test x$enable_jack_shared = xyes && test x$jack_lib != x; then 18033 echo "-- dynamic libjack -> $jack_lib" 18034 18035cat >>confdefs.h <<_ACEOF 18036#define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib" 18037_ACEOF 18038 18039 SUMMARY_audio="${SUMMARY_audio} jack(dynamic)" 18040 18041 case "$host" in 18042 # On Solaris, jack must be linked deferred explicitly 18043 # to prevent undefined symbol failures. 18044 *-*-solaris*) 18045 JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'` 18046 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred" 18047 esac 18048 else 18049 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS" 18050 SUMMARY_audio="${SUMMARY_audio} jack" 18051 fi 18052 have_audio=yes 18053 fi 18054 fi 18055} 18056 18057CheckESD() 18058{ 18059 # Check whether --enable-esd was given. 18060if test "${enable_esd+set}" = set; then : 18061 enableval=$enable_esd; 18062else 18063 enable_esd=yes 18064fi 18065 18066 if test x$enable_audio = xyes -a x$enable_esd = xyes; then 18067 18068# Check whether --with-esd-prefix was given. 18069if test "${with_esd_prefix+set}" = set; then : 18070 withval=$with_esd_prefix; esd_prefix="$withval" 18071else 18072 esd_prefix="" 18073fi 18074 18075 18076# Check whether --with-esd-exec-prefix was given. 18077if test "${with_esd_exec_prefix+set}" = set; then : 18078 withval=$with_esd_exec_prefix; esd_exec_prefix="$withval" 18079else 18080 esd_exec_prefix="" 18081fi 18082 18083# Check whether --enable-esdtest was given. 18084if test "${enable_esdtest+set}" = set; then : 18085 enableval=$enable_esdtest; 18086else 18087 enable_esdtest=yes 18088fi 18089 18090 18091 if test x$esd_exec_prefix != x ; then 18092 esd_args="$esd_args --exec-prefix=$esd_exec_prefix" 18093 if test x${ESD_CONFIG+set} != xset ; then 18094 ESD_CONFIG=$esd_exec_prefix/bin/esd-config 18095 fi 18096 fi 18097 if test x$esd_prefix != x ; then 18098 esd_args="$esd_args --prefix=$esd_prefix" 18099 if test x${ESD_CONFIG+set} != xset ; then 18100 ESD_CONFIG=$esd_prefix/bin/esd-config 18101 fi 18102 fi 18103 18104 # Extract the first word of "esd-config", so it can be a program name with args. 18105set dummy esd-config; ac_word=$2 18106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18107$as_echo_n "checking for $ac_word... " >&6; } 18108if ${ac_cv_path_ESD_CONFIG+:} false; then : 18109 $as_echo_n "(cached) " >&6 18110else 18111 case $ESD_CONFIG in 18112 [\\/]* | ?:[\\/]*) 18113 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path. 18114 ;; 18115 *) 18116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18117for as_dir in $PATH 18118do 18119 IFS=$as_save_IFS 18120 test -z "$as_dir" && as_dir=. 18121 for ac_exec_ext in '' $ac_executable_extensions; do 18122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18123 ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18125 break 2 18126 fi 18127done 18128 done 18129IFS=$as_save_IFS 18130 18131 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no" 18132 ;; 18133esac 18134fi 18135ESD_CONFIG=$ac_cv_path_ESD_CONFIG 18136if test -n "$ESD_CONFIG"; then 18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5 18138$as_echo "$ESD_CONFIG" >&6; } 18139else 18140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18141$as_echo "no" >&6; } 18142fi 18143 18144 18145 min_esd_version=0.2.8 18146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5 18147$as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; } 18148 no_esd="" 18149 if test "$ESD_CONFIG" = "no" ; then 18150 no_esd=yes 18151 else 18152 ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags` 18153 ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs` 18154 18155 esd_major_version=`$ESD_CONFIG $esd_args --version | \ 18156 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 18157 esd_minor_version=`$ESD_CONFIG $esd_args --version | \ 18158 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 18159 esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \ 18160 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 18161 if test "x$enable_esdtest" = "xyes" ; then 18162 ac_save_CFLAGS="$CFLAGS" 18163 ac_save_LIBS="$LIBS" 18164 CFLAGS="$CFLAGS $ESD_CFLAGS" 18165 LIBS="$LIBS $ESD_LIBS" 18166 rm -f conf.esdtest 18167 if test "$cross_compiling" = yes; then : 18168 echo $ac_n "cross compiling; assumed OK... $ac_c" 18169else 18170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18171/* end confdefs.h. */ 18172 18173#include <stdio.h> 18174#include <stdlib.h> 18175#include <string.h> 18176#include <esd.h> 18177 18178char* 18179my_strdup (char *str) 18180{ 18181 char *new_str; 18182 18183 if (str) 18184 { 18185 new_str = malloc ((strlen (str) + 1) * sizeof(char)); 18186 strcpy (new_str, str); 18187 } 18188 else 18189 new_str = NULL; 18190 18191 return new_str; 18192} 18193 18194int main () 18195{ 18196 int major, minor, micro; 18197 char *tmp_version; 18198 18199 system ("touch conf.esdtest"); 18200 18201 /* HP/UX 9 (%@#!) writes to sscanf strings */ 18202 tmp_version = my_strdup("$min_esd_version"); 18203 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) { 18204 printf("%s, bad version string\n", "$min_esd_version"); 18205 exit(1); 18206 } 18207 18208 if (($esd_major_version > major) || 18209 (($esd_major_version == major) && ($esd_minor_version > minor)) || 18210 (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro))) 18211 { 18212 return 0; 18213 } 18214 else 18215 { 18216 printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version); 18217 printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro); 18218 printf("*** best to upgrade to the required version.\n"); 18219 printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n"); 18220 printf("*** to point to the correct copy of esd-config, and remove the file\n"); 18221 printf("*** config.cache before re-running configure\n"); 18222 return 1; 18223 } 18224} 18225 18226 18227_ACEOF 18228if ac_fn_c_try_run "$LINENO"; then : 18229 18230else 18231 no_esd=yes 18232fi 18233rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18234 conftest.$ac_objext conftest.beam conftest.$ac_ext 18235fi 18236 18237 CFLAGS="$ac_save_CFLAGS" 18238 LIBS="$ac_save_LIBS" 18239 fi 18240 fi 18241 if test "x$no_esd" = x ; then 18242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18243$as_echo "yes" >&6; } 18244 have_esd=yes 18245 else 18246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18247$as_echo "no" >&6; } 18248 if test "$ESD_CONFIG" = "no" ; then 18249 echo "*** The esd-config script installed by ESD could not be found" 18250 echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in" 18251 echo "*** your path, or set the ESD_CONFIG environment variable to the" 18252 echo "*** full path to esd-config." 18253 else 18254 if test -f conf.esdtest ; then 18255 : 18256 else 18257 echo "*** Could not run ESD test program, checking why..." 18258 CFLAGS="$CFLAGS $ESD_CFLAGS" 18259 LIBS="$LIBS $ESD_LIBS" 18260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18261/* end confdefs.h. */ 18262 18263#include <stdio.h> 18264#include <esd.h> 18265 18266int 18267main () 18268{ 18269 return 0; 18270 ; 18271 return 0; 18272} 18273_ACEOF 18274if ac_fn_c_try_link "$LINENO"; then : 18275 echo "*** The test program compiled, but did not run. This usually means" 18276 echo "*** that the run-time linker is not finding ESD or finding the wrong" 18277 echo "*** version of ESD. If it is not finding ESD, you'll need to set your" 18278 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 18279 echo "*** to the installed location Also, make sure you have run ldconfig if that" 18280 echo "*** is required on your system" 18281 echo "***" 18282 echo "*** If you have an old version installed, it is best to remove it, although" 18283 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 18284else 18285 echo "*** The test program failed to compile or link. See the file config.log for the" 18286 echo "*** exact error that occured. This usually means ESD was incorrectly installed" 18287 echo "*** or that you have moved ESD since it was installed. In the latter case, you" 18288 echo "*** may want to edit the esd-config script: $ESD_CONFIG" 18289fi 18290rm -f core conftest.err conftest.$ac_objext \ 18291 conftest$ac_exeext conftest.$ac_ext 18292 CFLAGS="$ac_save_CFLAGS" 18293 LIBS="$ac_save_LIBS" 18294 fi 18295 fi 18296 ESD_CFLAGS="" 18297 ESD_LIBS="" 18298 have_esd=no 18299 fi 18300 18301 18302 rm -f conf.esdtest 18303 18304 if test x$have_esd = xyes; then 18305 # Check whether --enable-esd-shared was given. 18306if test "${enable_esd_shared+set}" = set; then : 18307 enableval=$enable_esd_shared; 18308else 18309 enable_esd_shared=yes 18310fi 18311 18312 esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 18313 18314 18315$as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h 18316 18317 SOURCES="$SOURCES $srcdir/src/audio/esd/*.c" 18318 EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS" 18319 if test x$have_loadso != xyes && \ 18320 test x$enable_esd_shared = xyes; then 18321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5 18322$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;} 18323 fi 18324 if test x$have_loadso = xyes && \ 18325 test x$enable_esd_shared = xyes && test x$esd_lib != x; then 18326 echo "-- dynamic libesd -> $esd_lib" 18327 18328cat >>confdefs.h <<_ACEOF 18329#define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib" 18330_ACEOF 18331 18332 SUMMARY_audio="${SUMMARY_audio} esd(dynamic)" 18333 else 18334 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS" 18335 SUMMARY_audio="${SUMMARY_audio} esd" 18336 fi 18337 have_audio=yes 18338 fi 18339 fi 18340} 18341 18342CheckPulseAudio() 18343{ 18344 # Check whether --enable-pulseaudio was given. 18345if test "${enable_pulseaudio+set}" = set; then : 18346 enableval=$enable_pulseaudio; 18347else 18348 enable_pulseaudio=yes 18349fi 18350 18351 if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then 18352 audio_pulseaudio=no 18353 18354 PULSEAUDIO_REQUIRED_VERSION=0.9 18355 18356 # Extract the first word of "pkg-config", so it can be a program name with args. 18357set dummy pkg-config; ac_word=$2 18358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18359$as_echo_n "checking for $ac_word... " >&6; } 18360if ${ac_cv_path_PKG_CONFIG+:} false; then : 18361 $as_echo_n "(cached) " >&6 18362else 18363 case $PKG_CONFIG in 18364 [\\/]* | ?:[\\/]*) 18365 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 18366 ;; 18367 *) 18368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18369for as_dir in $PATH 18370do 18371 IFS=$as_save_IFS 18372 test -z "$as_dir" && as_dir=. 18373 for ac_exec_ext in '' $ac_executable_extensions; do 18374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18375 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18377 break 2 18378 fi 18379done 18380 done 18381IFS=$as_save_IFS 18382 18383 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 18384 ;; 18385esac 18386fi 18387PKG_CONFIG=$ac_cv_path_PKG_CONFIG 18388if test -n "$PKG_CONFIG"; then 18389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 18390$as_echo "$PKG_CONFIG" >&6; } 18391else 18392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18393$as_echo "no" >&6; } 18394fi 18395 18396 18397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5 18398$as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; } 18399 if test x$PKG_CONFIG != xno; then 18400 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then 18401 PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple` 18402 PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple` 18403 audio_pulseaudio=yes 18404 fi 18405 fi 18406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5 18407$as_echo "$audio_pulseaudio" >&6; } 18408 18409 if test x$audio_pulseaudio = xyes; then 18410 # Check whether --enable-pulseaudio-shared was given. 18411if test "${enable_pulseaudio_shared+set}" = set; then : 18412 enableval=$enable_pulseaudio_shared; 18413else 18414 enable_pulseaudio_shared=yes 18415fi 18416 18417 pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 18418 18419 18420$as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h 18421 18422 SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c" 18423 EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS" 18424 if test x$have_loadso != xyes && \ 18425 test x$enable_pulseaudio_shared = xyes; then 18426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5 18427$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;} 18428 fi 18429 if test x$have_loadso = xyes && \ 18430 test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then 18431 echo "-- dynamic libpulse-simple -> $pulseaudio_lib" 18432 18433cat >>confdefs.h <<_ACEOF 18434#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib" 18435_ACEOF 18436 18437 SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)" 18438 18439 case "$host" in 18440 # On Solaris, pulseaudio must be linked deferred explicitly 18441 # to prevent undefined symbol failures. 18442 *-*-solaris*) 18443 PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'` 18444 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred" 18445 esac 18446 else 18447 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS" 18448 SUMMARY_audio="${SUMMARY_audio} pulse" 18449 fi 18450 have_audio=yes 18451 fi 18452 fi 18453} 18454 18455CheckARTSC() 18456{ 18457 # Check whether --enable-arts was given. 18458if test "${enable_arts+set}" = set; then : 18459 enableval=$enable_arts; 18460else 18461 enable_arts=yes 18462fi 18463 18464 if test x$enable_audio = xyes -a x$enable_arts = xyes; then 18465 # Extract the first word of "artsc-config", so it can be a program name with args. 18466set dummy artsc-config; ac_word=$2 18467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18468$as_echo_n "checking for $ac_word... " >&6; } 18469if ${ac_cv_path_ARTSCONFIG+:} false; then : 18470 $as_echo_n "(cached) " >&6 18471else 18472 case $ARTSCONFIG in 18473 [\\/]* | ?:[\\/]*) 18474 ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path. 18475 ;; 18476 *) 18477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18478for as_dir in $PATH 18479do 18480 IFS=$as_save_IFS 18481 test -z "$as_dir" && as_dir=. 18482 for ac_exec_ext in '' $ac_executable_extensions; do 18483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18484 ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext" 18485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18486 break 2 18487 fi 18488done 18489 done 18490IFS=$as_save_IFS 18491 18492 ;; 18493esac 18494fi 18495ARTSCONFIG=$ac_cv_path_ARTSCONFIG 18496if test -n "$ARTSCONFIG"; then 18497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5 18498$as_echo "$ARTSCONFIG" >&6; } 18499else 18500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18501$as_echo "no" >&6; } 18502fi 18503 18504 18505 if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then 18506 : # arts isn't installed 18507 else 18508 ARTS_CFLAGS=`$ARTSCONFIG --cflags` 18509 ARTS_LIBS=`$ARTSCONFIG --libs` 18510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5 18511$as_echo_n "checking for aRts development environment... " >&6; } 18512 audio_arts=no 18513 save_CFLAGS="$CFLAGS" 18514 CFLAGS="$CFLAGS $ARTS_CFLAGS" 18515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18516/* end confdefs.h. */ 18517 18518 #include <artsc.h> 18519 18520int 18521main () 18522{ 18523 18524 arts_stream_t stream; 18525 18526 ; 18527 return 0; 18528} 18529_ACEOF 18530if ac_fn_c_try_compile "$LINENO"; then : 18531 18532 audio_arts=yes 18533 18534fi 18535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18536 CFLAGS="$save_CFLAGS" 18537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5 18538$as_echo "$audio_arts" >&6; } 18539 if test x$audio_arts = xyes; then 18540 # Check whether --enable-arts-shared was given. 18541if test "${enable_arts_shared+set}" = set; then : 18542 enableval=$enable_arts_shared; 18543else 18544 enable_arts_shared=yes 18545fi 18546 18547 arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 18548 18549 18550$as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h 18551 18552 SOURCES="$SOURCES $srcdir/src/audio/arts/*.c" 18553 EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS" 18554 if test x$have_loadso != xyes && \ 18555 test x$enable_arts_shared = xyes; then 18556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5 18557$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;} 18558 fi 18559 if test x$have_loadso = xyes && \ 18560 test x$enable_arts_shared = xyes && test x$arts_lib != x; then 18561 echo "-- dynamic libartsc -> $arts_lib" 18562 18563cat >>confdefs.h <<_ACEOF 18564#define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib" 18565_ACEOF 18566 18567 SUMMARY_audio="${SUMMARY_audio} arts(dynamic)" 18568 else 18569 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS" 18570 SUMMARY_audio="${SUMMARY_audio} arts" 18571 fi 18572 have_audio=yes 18573 fi 18574 fi 18575 fi 18576} 18577 18578CheckNAS() 18579{ 18580 # Check whether --enable-nas was given. 18581if test "${enable_nas+set}" = set; then : 18582 enableval=$enable_nas; 18583else 18584 enable_nas=yes 18585fi 18586 18587 if test x$enable_audio = xyes -a x$enable_nas = xyes; then 18588 ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default" 18589if test "x$ac_cv_header_audio_audiolib_h" = xyes; then : 18590 have_nas_hdr=yes 18591fi 18592 18593 18594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5 18595$as_echo_n "checking for AuOpenServer in -laudio... " >&6; } 18596if ${ac_cv_lib_audio_AuOpenServer+:} false; then : 18597 $as_echo_n "(cached) " >&6 18598else 18599 ac_check_lib_save_LIBS=$LIBS 18600LIBS="-laudio $LIBS" 18601cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18602/* end confdefs.h. */ 18603 18604/* Override any GCC internal prototype to avoid an error. 18605 Use char because int might match the return type of a GCC 18606 builtin and then its argument prototype would still apply. */ 18607#ifdef __cplusplus 18608extern "C" 18609#endif 18610char AuOpenServer (); 18611int 18612main () 18613{ 18614return AuOpenServer (); 18615 ; 18616 return 0; 18617} 18618_ACEOF 18619if ac_fn_c_try_link "$LINENO"; then : 18620 ac_cv_lib_audio_AuOpenServer=yes 18621else 18622 ac_cv_lib_audio_AuOpenServer=no 18623fi 18624rm -f core conftest.err conftest.$ac_objext \ 18625 conftest$ac_exeext conftest.$ac_ext 18626LIBS=$ac_check_lib_save_LIBS 18627fi 18628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5 18629$as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; } 18630if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then : 18631 have_nas_lib=yes 18632fi 18633 18634 18635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5 18636$as_echo_n "checking for NAS audio support... " >&6; } 18637 have_nas=no 18638 18639 if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then 18640 have_nas=yes 18641 NAS_LIBS="-laudio" 18642 18643 elif test -r /usr/X11R6/include/audio/audiolib.h; then 18644 have_nas=yes 18645 NAS_CFLAGS="-I/usr/X11R6/include/" 18646 NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt" 18647 18648 fi 18649 18650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5 18651$as_echo "$have_nas" >&6; } 18652 18653 if test x$have_nas = xyes; then 18654 # Check whether --enable-nas-shared was given. 18655if test "${enable_nas_shared+set}" = set; then : 18656 enableval=$enable_nas_shared; 18657else 18658 enable_nas_shared=yes 18659fi 18660 18661 nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 18662 18663 if test x$have_loadso != xyes && \ 18664 test x$enable_nas_shared = xyes; then 18665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5 18666$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;} 18667 fi 18668 if test x$have_loadso = xyes && \ 18669 test x$enable_nas_shared = xyes && test x$nas_lib != x; then 18670 echo "-- dynamic libaudio -> $nas_lib" 18671 18672cat >>confdefs.h <<_ACEOF 18673#define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib" 18674_ACEOF 18675 18676 SUMMARY_audio="${SUMMARY_audio} nas(dynamic)" 18677 else 18678 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS" 18679 SUMMARY_audio="${SUMMARY_audio} nas" 18680 fi 18681 18682 18683$as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h 18684 18685 SOURCES="$SOURCES $srcdir/src/audio/nas/*.c" 18686 EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS" 18687 have_audio=yes 18688 fi 18689 fi 18690} 18691 18692CheckSNDIO() 18693{ 18694 # Check whether --enable-sndio was given. 18695if test "${enable_sndio+set}" = set; then : 18696 enableval=$enable_sndio; 18697else 18698 enable_sndio=yes 18699fi 18700 18701 if test x$enable_audio = xyes -a x$enable_sndio = xyes; then 18702 ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default" 18703if test "x$ac_cv_header_sndio_h" = xyes; then : 18704 have_sndio_hdr=yes 18705fi 18706 18707 18708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5 18709$as_echo_n "checking for sio_open in -lsndio... " >&6; } 18710if ${ac_cv_lib_sndio_sio_open+:} false; then : 18711 $as_echo_n "(cached) " >&6 18712else 18713 ac_check_lib_save_LIBS=$LIBS 18714LIBS="-lsndio $LIBS" 18715cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18716/* end confdefs.h. */ 18717 18718/* Override any GCC internal prototype to avoid an error. 18719 Use char because int might match the return type of a GCC 18720 builtin and then its argument prototype would still apply. */ 18721#ifdef __cplusplus 18722extern "C" 18723#endif 18724char sio_open (); 18725int 18726main () 18727{ 18728return sio_open (); 18729 ; 18730 return 0; 18731} 18732_ACEOF 18733if ac_fn_c_try_link "$LINENO"; then : 18734 ac_cv_lib_sndio_sio_open=yes 18735else 18736 ac_cv_lib_sndio_sio_open=no 18737fi 18738rm -f core conftest.err conftest.$ac_objext \ 18739 conftest$ac_exeext conftest.$ac_ext 18740LIBS=$ac_check_lib_save_LIBS 18741fi 18742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5 18743$as_echo "$ac_cv_lib_sndio_sio_open" >&6; } 18744if test "x$ac_cv_lib_sndio_sio_open" = xyes; then : 18745 have_sndio_lib=yes 18746fi 18747 18748 18749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5 18750$as_echo_n "checking for sndio audio support... " >&6; } 18751 have_sndio=no 18752 18753 if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then 18754 have_sndio=yes 18755 SNDIO_LIBS="-lsndio" 18756 fi 18757 18758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5 18759$as_echo "$have_sndio" >&6; } 18760 18761 if test x$have_sndio = xyes; then 18762 # Check whether --enable-sndio-shared was given. 18763if test "${enable_sndio_shared+set}" = set; then : 18764 enableval=$enable_sndio_shared; 18765else 18766 enable_sndio_shared=yes 18767fi 18768 18769 sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 18770 18771 if test x$have_loadso != xyes && \ 18772 test x$enable_sndio_shared = xyes; then 18773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5 18774$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;} 18775 fi 18776 if test x$have_loadso = xyes && \ 18777 test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then 18778 echo "-- dynamic libsndio -> $sndio_lib" 18779 18780cat >>confdefs.h <<_ACEOF 18781#define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib" 18782_ACEOF 18783 18784 SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)" 18785 else 18786 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS" 18787 SUMMARY_audio="${SUMMARY_audio} sndio" 18788 fi 18789 18790 18791$as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h 18792 18793 SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c" 18794 EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS" 18795 have_audio=yes 18796 fi 18797 fi 18798} 18799 18800CheckFusionSound() 18801{ 18802 # Check whether --enable-fusionsound was given. 18803if test "${enable_fusionsound+set}" = set; then : 18804 enableval=$enable_fusionsound; 18805else 18806 enable_fusionsound=no 18807fi 18808 18809 if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then 18810 fusionsound=no 18811 18812 FUSIONSOUND_REQUIRED_VERSION=1.1.1 18813 18814 # Extract the first word of "pkg-config", so it can be a program name with args. 18815set dummy pkg-config; ac_word=$2 18816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18817$as_echo_n "checking for $ac_word... " >&6; } 18818if ${ac_cv_path_PKG_CONFIG+:} false; then : 18819 $as_echo_n "(cached) " >&6 18820else 18821 case $PKG_CONFIG in 18822 [\\/]* | ?:[\\/]*) 18823 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 18824 ;; 18825 *) 18826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18827for as_dir in $PATH 18828do 18829 IFS=$as_save_IFS 18830 test -z "$as_dir" && as_dir=. 18831 for ac_exec_ext in '' $ac_executable_extensions; do 18832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18833 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18835 break 2 18836 fi 18837done 18838 done 18839IFS=$as_save_IFS 18840 18841 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 18842 ;; 18843esac 18844fi 18845PKG_CONFIG=$ac_cv_path_PKG_CONFIG 18846if test -n "$PKG_CONFIG"; then 18847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 18848$as_echo "$PKG_CONFIG" >&6; } 18849else 18850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18851$as_echo "no" >&6; } 18852fi 18853 18854 18855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5 18856$as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; } 18857 if test x$PKG_CONFIG != xno; then 18858 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then 18859 FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound` 18860 FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound` 18861 fusionsound=yes 18862 fi 18863 fi 18864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5 18865$as_echo "$fusionsound" >&6; } 18866 18867 if test x$fusionsound = xyes; then 18868 18869$as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h 18870 18871 SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c" 18872 EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS" 18873 18874 # Check whether --enable-fusionsound-shared was given. 18875if test "${enable_fusionsound_shared+set}" = set; then : 18876 enableval=$enable_fusionsound_shared; 18877else 18878 enable_fusionsound_shared=yes 18879fi 18880 18881 fusionsound_shared=no 18882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5 18883$as_echo_n "checking for FusionSound dynamic loading support... " >&6; } 18884 if test x$have_loadso != xyes && \ 18885 test x$enable_fusionsound_shared = xyes; then 18886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5 18887$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;} 18888 fi 18889 if test x$have_loadso = xyes && \ 18890 test x$enable_fusionsound_shared = xyes; then 18891 18892cat >>confdefs.h <<_ACEOF 18893#define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so" 18894_ACEOF 18895 18896 fusionsound_shared=yes 18897 SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)" 18898 else 18899 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS" 18900 SUMMARY_audio="${SUMMARY_audio} fusionsound" 18901 fi 18902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5 18903$as_echo "$fusionsound_shared" >&6; } 18904 18905 have_audio=yes 18906 fi 18907 fi 18908} 18909 18910CheckDiskAudio() 18911{ 18912 # Check whether --enable-diskaudio was given. 18913if test "${enable_diskaudio+set}" = set; then : 18914 enableval=$enable_diskaudio; 18915else 18916 enable_diskaudio=yes 18917fi 18918 18919 if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then 18920 18921$as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h 18922 18923 SOURCES="$SOURCES $srcdir/src/audio/disk/*.c" 18924 SUMMARY_audio="${SUMMARY_audio} disk" 18925 fi 18926} 18927 18928CheckDummyAudio() 18929{ 18930 # Check whether --enable-dummyaudio was given. 18931if test "${enable_dummyaudio+set}" = set; then : 18932 enableval=$enable_dummyaudio; 18933else 18934 enable_dummyaudio=yes 18935fi 18936 18937 if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then 18938 18939$as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h 18940 18941 SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c" 18942 SUMMARY_audio="${SUMMARY_audio} dummy" 18943 fi 18944} 18945 18946CheckLibSampleRate() 18947{ 18948 # Check whether --enable-libsamplerate was given. 18949if test "${enable_libsamplerate+set}" = set; then : 18950 enableval=$enable_libsamplerate; 18951else 18952 enable_libsamplerate=yes 18953fi 18954 18955 if test x$enable_libsamplerate = xyes; then 18956 ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default" 18957if test "x$ac_cv_header_samplerate_h" = xyes; then : 18958 have_samplerate_h_hdr=yes 18959else 18960 have_samplerate_h_hdr=no 18961fi 18962 18963 18964 if test x$have_samplerate_h_hdr = xyes; then 18965 18966$as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h 18967 18968 18969 # Check whether --enable-libsamplerate-shared was given. 18970if test "${enable_libsamplerate_shared+set}" = set; then : 18971 enableval=$enable_libsamplerate_shared; 18972else 18973 enable_libsamplerate_shared=yes 18974fi 18975 18976 18977 samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'` 18978 18979 if test x$have_loadso != xyes && \ 18980 test x$enable_libsamplerate_shared = xyes; then 18981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5 18982$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;} 18983 fi 18984 if test x$have_loadso = xyes && \ 18985 test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then 18986 echo "-- dynamic libsamplerate -> $samplerate_lib" 18987 18988cat >>confdefs.h <<_ACEOF 18989#define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib" 18990_ACEOF 18991 18992 else 18993 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate" 18994 fi 18995 fi 18996 fi 18997} 18998 18999CheckVisibilityHidden() 19000{ 19001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5 19002$as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; } 19003 have_gcc_fvisibility=no 19004 19005 visibility_CFLAGS="-fvisibility=hidden" 19006 save_CFLAGS="$CFLAGS" 19007 CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror" 19008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19009/* end confdefs.h. */ 19010 19011 #if !defined(__GNUC__) || __GNUC__ < 4 19012 #error SDL only uses visibility attributes in GCC 4 or newer 19013 #endif 19014 19015int 19016main () 19017{ 19018 19019 19020 ; 19021 return 0; 19022} 19023_ACEOF 19024if ac_fn_c_try_compile "$LINENO"; then : 19025 19026 have_gcc_fvisibility=yes 19027 19028fi 19029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5 19031$as_echo "$have_gcc_fvisibility" >&6; } 19032 CFLAGS="$save_CFLAGS" 19033 19034 if test x$have_gcc_fvisibility = xyes; then 19035 EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS" 19036 fi 19037} 19038 19039CheckStackBoundary() 19040{ 19041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5 19042$as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; } 19043 have_gcc_preferred_stack_boundary=no 19044 19045 save_CFLAGS="$CFLAGS" 19046 CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2" 19047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19048/* end confdefs.h. */ 19049 19050 int x = 0; 19051 19052int 19053main () 19054{ 19055 19056 19057 ; 19058 return 0; 19059} 19060_ACEOF 19061if ac_fn_c_try_compile "$LINENO"; then : 19062 19063 have_gcc_preferred_stack_boundary=yes 19064 19065fi 19066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5 19068$as_echo "$have_gcc_preferred_stack_boundary" >&6; } 19069 CFLAGS="$save_CFLAGS" 19070 19071 if test x$have_gcc_preferred_stack_boundary = xyes; then 19072 EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2" 19073 fi 19074} 19075 19076CheckDeclarationAfterStatement() 19077{ 19078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5 19079$as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; } 19080 have_gcc_declaration_after_statement=no 19081 19082 save_CFLAGS="$CFLAGS" 19083 CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement" 19084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19085/* end confdefs.h. */ 19086 19087 int x = 0; 19088 19089int 19090main () 19091{ 19092 19093 19094 ; 19095 return 0; 19096} 19097_ACEOF 19098if ac_fn_c_try_compile "$LINENO"; then : 19099 19100 have_gcc_declaration_after_statement=yes 19101 19102fi 19103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5 19105$as_echo "$have_gcc_declaration_after_statement" >&6; } 19106 CFLAGS="$save_CFLAGS" 19107 19108 if test x$have_gcc_declaration_after_statement = xyes; then 19109 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement" 19110 fi 19111} 19112 19113CheckWarnAll() 19114{ 19115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5 19116$as_echo_n "checking for GCC -Wall option... " >&6; } 19117 have_gcc_Wall=no 19118 19119 save_CFLAGS="$CFLAGS" 19120 CFLAGS="$save_CFLAGS -Wall" 19121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19122/* end confdefs.h. */ 19123 19124 int x = 0; 19125 19126int 19127main () 19128{ 19129 19130 19131 ; 19132 return 0; 19133} 19134_ACEOF 19135if ac_fn_c_try_compile "$LINENO"; then : 19136 19137 have_gcc_Wall=yes 19138 19139fi 19140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5 19142$as_echo "$have_gcc_Wall" >&6; } 19143 CFLAGS="$save_CFLAGS" 19144 19145 if test x$have_gcc_Wall = xyes; then 19146 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall" 19147 19148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5 19149$as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; } 19150 need_gcc_Wno_multichar=no 19151 case "$host" in 19152 *-*-haiku*) 19153 need_gcc_Wno_multichar=yes 19154 ;; 19155 esac 19156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5 19157$as_echo "$need_gcc_Wno_multichar" >&6; } 19158 if test x$need_gcc_Wno_multichar = xyes; then 19159 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar" 19160 fi 19161 fi 19162} 19163 19164CheckWayland() 19165{ 19166 # Check whether --enable-video-wayland was given. 19167if test "${enable_video_wayland+set}" = set; then : 19168 enableval=$enable_video_wayland; 19169else 19170 enable_video_wayland=yes 19171fi 19172 19173 19174 # Check whether --enable-video-wayland-qt-touch was given. 19175if test "${enable_video_wayland_qt_touch+set}" = set; then : 19176 enableval=$enable_video_wayland_qt_touch; 19177else 19178 enable_video_wayland_qt_touch=yes 19179fi 19180 19181 19182 if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then 19183 # Extract the first word of "pkg-config", so it can be a program name with args. 19184set dummy pkg-config; ac_word=$2 19185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19186$as_echo_n "checking for $ac_word... " >&6; } 19187if ${ac_cv_path_PKG_CONFIG+:} false; then : 19188 $as_echo_n "(cached) " >&6 19189else 19190 case $PKG_CONFIG in 19191 [\\/]* | ?:[\\/]*) 19192 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19193 ;; 19194 *) 19195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19196for as_dir in $PATH 19197do 19198 IFS=$as_save_IFS 19199 test -z "$as_dir" && as_dir=. 19200 for ac_exec_ext in '' $ac_executable_extensions; do 19201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19202 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19204 break 2 19205 fi 19206done 19207 done 19208IFS=$as_save_IFS 19209 19210 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 19211 ;; 19212esac 19213fi 19214PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19215if test -n "$PKG_CONFIG"; then 19216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 19217$as_echo "$PKG_CONFIG" >&6; } 19218else 19219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19220$as_echo "no" >&6; } 19221fi 19222 19223 19224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5 19225$as_echo_n "checking for Wayland support... " >&6; } 19226 video_wayland=no 19227 if test x$PKG_CONFIG != xno && \ 19228 test x$video_opengl_egl = xyes && \ 19229 test x$video_opengles_v2 = xyes; then 19230 if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-protocols wayland-egl wayland-cursor egl xkbcommon ; then 19231 WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon` 19232 WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon` 19233 WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner` 19234 video_wayland=yes 19235 fi 19236 fi 19237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5 19238$as_echo "$video_wayland" >&6; } 19239 19240 if test x$video_wayland = xyes; then 19241 19242$as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h 19243 19244 if test x$enable_video_wayland_qt_touch = xyes; then 19245 19246$as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h 19247 19248 fi 19249 19250 WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c" 19251 SOURCES="$SOURCES $WAYLAND_SOURCES" 19252 EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)" 19253 # Check whether --enable-wayland-shared was given. 19254if test "${enable_wayland_shared+set}" = set; then : 19255 enableval=$enable_wayland_shared; 19256else 19257 enable_wayland_shared=maybe 19258fi 19259 19260 19261 case "$host" in 19262 *) 19263 wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 19264 wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 19265 if test x$wayland_egl_lib = x; then 19266 wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 19267 fi 19268 wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 19269 xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 19270 ;; 19271 esac 19272 19273 if test x$enable_wayland_shared = xmaybe; then 19274 enable_wayland_shared=yes 19275 fi 19276 if test x$have_loadso != xyes && \ 19277 test x$enable_wayland_shared = xyes; then 19278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5 19279$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;} 19280 enable_wayland_shared=no 19281 fi 19282 if test x$have_loadso = xyes && \ 19283 test x$enable_wayland_shared = xyes && \ 19284 test x$wayland_client_lib != x && \ 19285 test x$wayland_egl_lib != x && \ 19286 test x$wayland_cursor_lib != x && \ 19287 test x$xkbcommon_lib != x; then 19288 echo "-- dynamic libwayland-client -> $wayland_client_lib" 19289 echo "-- dynamic libwayland-egl -> $wayland_egl_lib" 19290 echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib" 19291 echo "-- dynamic libxkbcommon -> $xkbcommon_lib" 19292 19293cat >>confdefs.h <<_ACEOF 19294#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib" 19295_ACEOF 19296 19297 19298cat >>confdefs.h <<_ACEOF 19299#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib" 19300_ACEOF 19301 19302 19303cat >>confdefs.h <<_ACEOF 19304#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib" 19305_ACEOF 19306 19307 19308cat >>confdefs.h <<_ACEOF 19309#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib" 19310_ACEOF 19311 19312 SUMMARY_video="${SUMMARY_video} wayland(dynamic)" 19313 else 19314 enable_wayland_shared=no 19315 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS" 19316 SUMMARY_video="${SUMMARY_video} wayland" 19317 fi 19318 have_video=yes 19319 fi 19320 fi 19321} 19322 19323CheckMir() 19324{ 19325 # Check whether --enable-video-mir was given. 19326if test "${enable_video_mir+set}" = set; then : 19327 enableval=$enable_video_mir; 19328else 19329 enable_video_mir=no 19330fi 19331 19332 19333 if test x$enable_video = xyes -a x$enable_video_mir = xyes; then 19334 # Extract the first word of "pkg-config", so it can be a program name with args. 19335set dummy pkg-config; ac_word=$2 19336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19337$as_echo_n "checking for $ac_word... " >&6; } 19338if ${ac_cv_path_PKG_CONFIG+:} false; then : 19339 $as_echo_n "(cached) " >&6 19340else 19341 case $PKG_CONFIG in 19342 [\\/]* | ?:[\\/]*) 19343 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19344 ;; 19345 *) 19346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19347for as_dir in $PATH 19348do 19349 IFS=$as_save_IFS 19350 test -z "$as_dir" && as_dir=. 19351 for ac_exec_ext in '' $ac_executable_extensions; do 19352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19353 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19355 break 2 19356 fi 19357done 19358 done 19359IFS=$as_save_IFS 19360 19361 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 19362 ;; 19363esac 19364fi 19365PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19366if test -n "$PKG_CONFIG"; then 19367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 19368$as_echo "$PKG_CONFIG" >&6; } 19369else 19370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19371$as_echo "no" >&6; } 19372fi 19373 19374 19375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mir support" >&5 19376$as_echo_n "checking for Mir support... " >&6; } 19377 video_mir=no 19378 if test x$PKG_CONFIG != xno; then 19379 if $PKG_CONFIG --exists mirclient egl xkbcommon ; then 19380 MIR_CFLAGS=`$PKG_CONFIG --cflags mirclient egl xkbcommon` 19381 MIR_LIBS=`$PKG_CONFIG --libs mirclient egl xkbcommon` 19382 save_CFLAGS="$CFLAGS" 19383 CFLAGS="$save_CFLAGS $MIR_CFLAGS" 19384 19385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19386/* end confdefs.h. */ 19387 19388 #include <mir_toolkit/mir_client_library.h> 19389 19390int 19391main () 19392{ 19393 19394 MirWindowAttrib attrib = mir_window_attrib_state 19395 19396 ; 19397 return 0; 19398} 19399_ACEOF 19400if ac_fn_c_try_compile "$LINENO"; then : 19401 19402 video_mir=yes 19403 19404fi 19405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19406 CFLAGS="$save_CFLAGS" 19407 fi 19408 fi 19409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_mir" >&5 19410$as_echo "$video_mir" >&6; } 19411 19412 if test x$video_mir = xyes; then 19413 19414$as_echo "#define SDL_VIDEO_DRIVER_MIR 1" >>confdefs.h 19415 19416 SOURCES="$SOURCES $srcdir/src/video/mir/*.c" 19417 EXTRA_CFLAGS="$EXTRA_CFLAGS $MIR_CFLAGS" 19418 # Check whether --enable-mir-shared was given. 19419if test "${enable_mir_shared+set}" = set; then : 19420 enableval=$enable_mir_shared; 19421else 19422 enable_mir_shared=maybe 19423fi 19424 19425 19426 case "$host" in 19427 *) 19428 mirclient_lib=`find_lib "libmirclient.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 19429 xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 19430 ;; 19431 esac 19432 19433 if test x$enable_mir_shared = xmaybe; then 19434 enable_mir_shared=yes 19435 fi 19436 if test x$have_loadso != xyes && \ 19437 test x$enable_mir_shared = xyes; then 19438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&5 19439$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&2;} 19440 enable_mir_shared=no 19441 fi 19442 if test x$have_loadso = xyes && \ 19443 test x$enable_mir_shared = xyes && \ 19444 test x$mirclient_lib != x && \ 19445 test x$xkbcommon_lib != x; then 19446 echo "-- dynamic libmirclient -> $mirclient_lib" 19447 echo "-- dynamic libxkbcommon -> $xkbcommon_lib" 19448 19449cat >>confdefs.h <<_ACEOF 19450#define SDL_VIDEO_DRIVER_MIR_DYNAMIC "$mirclient_lib" 19451_ACEOF 19452 19453 19454cat >>confdefs.h <<_ACEOF 19455#define SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON "$xkbcommon_lib" 19456_ACEOF 19457 19458 SUMMARY_video="${SUMMARY_video} mir(dynamic)" 19459 else 19460 enable_mir_shared=no 19461 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MIR_LIBS" 19462 SUMMARY_video="${SUMMARY_video} mir" 19463 fi 19464 have_video=yes 19465 fi 19466 fi 19467} 19468 19469CheckNativeClient() 19470{ 19471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19472/* end confdefs.h. */ 19473 19474 #if !defined(__native_client__) 19475 #error "NO NACL" 19476 #endif 19477 19478int 19479main () 19480{ 19481 19482 19483 ; 19484 return 0; 19485} 19486_ACEOF 19487if ac_fn_c_try_compile "$LINENO"; then : 19488 19489 19490$as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h 19491 19492 19493$as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h 19494 19495 19496$as_echo "#define HAVE_POW 1" >>confdefs.h 19497 19498 19499$as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h 19500 19501 19502$as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h 19503 19504 19505$as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h 19506 19507 19508 SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS" 19509 19510 SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c" 19511 SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c" 19512 SUMMARY_audio="${SUMMARY_audio} nacl" 19513 SOURCES="$SOURCES $srcdir/src/video/nacl/*.c" 19514 SUMMARY_video="${SUMMARY_video} nacl opengles2" 19515 19516fi 19517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19518} 19519 19520 19521CheckRPI() 19522{ 19523 # Check whether --enable-video-rpi was given. 19524if test "${enable_video_rpi+set}" = set; then : 19525 enableval=$enable_video_rpi; 19526else 19527 enable_video_rpi=yes 19528fi 19529 19530 if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then 19531 # Extract the first word of "pkg-config", so it can be a program name with args. 19532set dummy pkg-config; ac_word=$2 19533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19534$as_echo_n "checking for $ac_word... " >&6; } 19535if ${ac_cv_path_PKG_CONFIG+:} false; then : 19536 $as_echo_n "(cached) " >&6 19537else 19538 case $PKG_CONFIG in 19539 [\\/]* | ?:[\\/]*) 19540 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19541 ;; 19542 *) 19543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19544for as_dir in $PATH 19545do 19546 IFS=$as_save_IFS 19547 test -z "$as_dir" && as_dir=. 19548 for ac_exec_ext in '' $ac_executable_extensions; do 19549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19550 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19552 break 2 19553 fi 19554done 19555 done 19556IFS=$as_save_IFS 19557 19558 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 19559 ;; 19560esac 19561fi 19562PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19563if test -n "$PKG_CONFIG"; then 19564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 19565$as_echo "$PKG_CONFIG" >&6; } 19566else 19567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19568$as_echo "no" >&6; } 19569fi 19570 19571 19572 if test x$PKG_CONFIG != xno && $PKG_CONFIG --exists bcm_host; then 19573 RPI_CFLAGS=`$PKG_CONFIG --cflags bcm_host brcmegl` 19574 RPI_LDFLAGS=`$PKG_CONFIG --libs bcm_host brcmegl` 19575 elif test x$ARCH = xnetbsd; then 19576 RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux" 19577 RPI_LDFLAGS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host" 19578 else 19579 RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux" 19580 RPI_LDFLAGS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host" 19581 fi 19582 19583 # Save the original compiler flags and libraries 19584 ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS" 19585 19586 # Add the Raspberry Pi compiler flags and libraries 19587 CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LDFLAGS" 19588 19589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5 19590$as_echo_n "checking for Raspberry Pi... " >&6; } 19591 have_video_rpi=no 19592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19593/* end confdefs.h. */ 19594 19595 #include <bcm_host.h> 19596 19597int 19598main () 19599{ 19600 19601 bcm_host_init(); 19602 19603 ; 19604 return 0; 19605} 19606_ACEOF 19607if ac_fn_c_try_link "$LINENO"; then : 19608 19609 have_video_rpi=yes 19610 19611fi 19612rm -f core conftest.err conftest.$ac_objext \ 19613 conftest$ac_exeext conftest.$ac_ext 19614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5 19615$as_echo "$have_video_rpi" >&6; } 19616 19617 # Restore the compiler flags and libraries 19618 CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs" 19619 19620 if test x$have_video_rpi = xyes; then 19621 CFLAGS="$CFLAGS $RPI_CFLAGS" 19622 SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS" 19623 EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS" 19624 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LDFLAGS" 19625 SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c" 19626 19627$as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h 19628 19629 SUMMARY_video="${SUMMARY_video} rpi" 19630 fi 19631 fi 19632} 19633 19634CheckX11() 19635{ 19636 # Check whether --enable-video-x11 was given. 19637if test "${enable_video_x11+set}" = set; then : 19638 enableval=$enable_video_x11; 19639else 19640 enable_video_x11=yes 19641fi 19642 19643 if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then 19644 case "$host" in 19645 *-*-darwin*) 19646 # This isn't necessary for X11, but fixes GLX detection 19647 if test "x$x_includes" = xNONE && \ 19648 test "x$x_libraries" = xNONE && \ 19649 test -d /usr/X11R6/include && \ 19650 test -d /usr/X11R6/lib; then 19651 x_includes="/usr/X11R6/include" 19652 x_libraries="/usr/X11R6/lib" 19653 fi 19654 ;; 19655 esac 19656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 19657$as_echo_n "checking for X... " >&6; } 19658 19659 19660# Check whether --with-x was given. 19661if test "${with_x+set}" = set; then : 19662 withval=$with_x; 19663fi 19664 19665# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 19666if test "x$with_x" = xno; then 19667 # The user explicitly disabled X. 19668 have_x=disabled 19669else 19670 case $x_includes,$x_libraries in #( 19671 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 19672 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 19673 $as_echo_n "(cached) " >&6 19674else 19675 # One or both of the vars are not set, and there is no cached value. 19676ac_x_includes=no ac_x_libraries=no 19677rm -f -r conftest.dir 19678if mkdir conftest.dir; then 19679 cd conftest.dir 19680 cat >Imakefile <<'_ACEOF' 19681incroot: 19682 @echo incroot='${INCROOT}' 19683usrlibdir: 19684 @echo usrlibdir='${USRLIBDIR}' 19685libdir: 19686 @echo libdir='${LIBDIR}' 19687_ACEOF 19688 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 19689 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 19690 for ac_var in incroot usrlibdir libdir; do 19691 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 19692 done 19693 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 19694 for ac_extension in a so sl dylib la dll; do 19695 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 19696 test -f "$ac_im_libdir/libX11.$ac_extension"; then 19697 ac_im_usrlibdir=$ac_im_libdir; break 19698 fi 19699 done 19700 # Screen out bogus values from the imake configuration. They are 19701 # bogus both because they are the default anyway, and because 19702 # using them would break gcc on systems where it needs fixed includes. 19703 case $ac_im_incroot in 19704 /usr/include) ac_x_includes= ;; 19705 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 19706 esac 19707 case $ac_im_usrlibdir in 19708 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 19709 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 19710 esac 19711 fi 19712 cd .. 19713 rm -f -r conftest.dir 19714fi 19715 19716# Standard set of common directories for X headers. 19717# Check X11 before X11Rn because it is often a symlink to the current release. 19718ac_x_header_dirs=' 19719/usr/X11/include 19720/usr/X11R7/include 19721/usr/X11R6/include 19722/usr/X11R5/include 19723/usr/X11R4/include 19724 19725/usr/include/X11 19726/usr/include/X11R7 19727/usr/include/X11R6 19728/usr/include/X11R5 19729/usr/include/X11R4 19730 19731/usr/local/X11/include 19732/usr/local/X11R7/include 19733/usr/local/X11R6/include 19734/usr/local/X11R5/include 19735/usr/local/X11R4/include 19736 19737/usr/local/include/X11 19738/usr/local/include/X11R7 19739/usr/local/include/X11R6 19740/usr/local/include/X11R5 19741/usr/local/include/X11R4 19742 19743/usr/X386/include 19744/usr/x386/include 19745/usr/XFree86/include/X11 19746 19747/usr/include 19748/usr/local/include 19749/usr/unsupported/include 19750/usr/athena/include 19751/usr/local/x11r5/include 19752/usr/lpp/Xamples/include 19753 19754/usr/openwin/include 19755/usr/openwin/share/include' 19756 19757if test "$ac_x_includes" = no; then 19758 # Guess where to find include files, by looking for Xlib.h. 19759 # First, try using that file with no special directory specified. 19760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19761/* end confdefs.h. */ 19762#include <X11/Xlib.h> 19763_ACEOF 19764if ac_fn_c_try_cpp "$LINENO"; then : 19765 # We can compile using X headers with no special include directory. 19766ac_x_includes= 19767else 19768 for ac_dir in $ac_x_header_dirs; do 19769 if test -r "$ac_dir/X11/Xlib.h"; then 19770 ac_x_includes=$ac_dir 19771 break 19772 fi 19773done 19774fi 19775rm -f conftest.err conftest.i conftest.$ac_ext 19776fi # $ac_x_includes = no 19777 19778if test "$ac_x_libraries" = no; then 19779 # Check for the libraries. 19780 # See if we find them without any special options. 19781 # Don't add to $LIBS permanently. 19782 ac_save_LIBS=$LIBS 19783 LIBS="-lX11 $LIBS" 19784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19785/* end confdefs.h. */ 19786#include <X11/Xlib.h> 19787int 19788main () 19789{ 19790XrmInitialize () 19791 ; 19792 return 0; 19793} 19794_ACEOF 19795if ac_fn_c_try_link "$LINENO"; then : 19796 LIBS=$ac_save_LIBS 19797# We can link X programs with no special library path. 19798ac_x_libraries= 19799else 19800 LIBS=$ac_save_LIBS 19801for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 19802do 19803 # Don't even attempt the hair of trying to link an X program! 19804 for ac_extension in a so sl dylib la dll; do 19805 if test -r "$ac_dir/libX11.$ac_extension"; then 19806 ac_x_libraries=$ac_dir 19807 break 2 19808 fi 19809 done 19810done 19811fi 19812rm -f core conftest.err conftest.$ac_objext \ 19813 conftest$ac_exeext conftest.$ac_ext 19814fi # $ac_x_libraries = no 19815 19816case $ac_x_includes,$ac_x_libraries in #( 19817 no,* | *,no | *\'*) 19818 # Didn't find X, or a directory has "'" in its name. 19819 ac_cv_have_x="have_x=no";; #( 19820 *) 19821 # Record where we found X for the cache. 19822 ac_cv_have_x="have_x=yes\ 19823 ac_x_includes='$ac_x_includes'\ 19824 ac_x_libraries='$ac_x_libraries'" 19825esac 19826fi 19827;; #( 19828 *) have_x=yes;; 19829 esac 19830 eval "$ac_cv_have_x" 19831fi # $with_x != no 19832 19833if test "$have_x" != yes; then 19834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 19835$as_echo "$have_x" >&6; } 19836 no_x=yes 19837else 19838 # If each of the values was on the command line, it overrides each guess. 19839 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 19840 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 19841 # Update the cache value to reflect the command line values. 19842 ac_cv_have_x="have_x=yes\ 19843 ac_x_includes='$x_includes'\ 19844 ac_x_libraries='$x_libraries'" 19845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 19846$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 19847fi 19848 19849 if test "$no_x" = yes; then 19850 # Not all programs may use this symbol, but it does not hurt to define it. 19851 19852$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 19853 19854 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 19855else 19856 if test -n "$x_includes"; then 19857 X_CFLAGS="$X_CFLAGS -I$x_includes" 19858 fi 19859 19860 # It would also be nice to do this for all -L options, not just this one. 19861 if test -n "$x_libraries"; then 19862 X_LIBS="$X_LIBS -L$x_libraries" 19863 # For Solaris; some versions of Sun CC require a space after -R and 19864 # others require no space. Words are not sufficient . . . . 19865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 19866$as_echo_n "checking whether -R must be followed by a space... " >&6; } 19867 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 19868 ac_xsave_c_werror_flag=$ac_c_werror_flag 19869 ac_c_werror_flag=yes 19870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19871/* end confdefs.h. */ 19872 19873int 19874main () 19875{ 19876 19877 ; 19878 return 0; 19879} 19880_ACEOF 19881if ac_fn_c_try_link "$LINENO"; then : 19882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19883$as_echo "no" >&6; } 19884 X_LIBS="$X_LIBS -R$x_libraries" 19885else 19886 LIBS="$ac_xsave_LIBS -R $x_libraries" 19887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19888/* end confdefs.h. */ 19889 19890int 19891main () 19892{ 19893 19894 ; 19895 return 0; 19896} 19897_ACEOF 19898if ac_fn_c_try_link "$LINENO"; then : 19899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19900$as_echo "yes" >&6; } 19901 X_LIBS="$X_LIBS -R $x_libraries" 19902else 19903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 19904$as_echo "neither works" >&6; } 19905fi 19906rm -f core conftest.err conftest.$ac_objext \ 19907 conftest$ac_exeext conftest.$ac_ext 19908fi 19909rm -f core conftest.err conftest.$ac_objext \ 19910 conftest$ac_exeext conftest.$ac_ext 19911 ac_c_werror_flag=$ac_xsave_c_werror_flag 19912 LIBS=$ac_xsave_LIBS 19913 fi 19914 19915 # Check for system-dependent libraries X programs must link with. 19916 # Do this before checking for the system-independent R6 libraries 19917 # (-lICE), since we may need -lsocket or whatever for X linking. 19918 19919 if test "$ISC" = yes; then 19920 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 19921 else 19922 # Martyn Johnson says this is needed for Ultrix, if the X 19923 # libraries were built with DECnet support. And Karl Berry says 19924 # the Alpha needs dnet_stub (dnet does not exist). 19925 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 19926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19927/* end confdefs.h. */ 19928 19929/* Override any GCC internal prototype to avoid an error. 19930 Use char because int might match the return type of a GCC 19931 builtin and then its argument prototype would still apply. */ 19932#ifdef __cplusplus 19933extern "C" 19934#endif 19935char XOpenDisplay (); 19936int 19937main () 19938{ 19939return XOpenDisplay (); 19940 ; 19941 return 0; 19942} 19943_ACEOF 19944if ac_fn_c_try_link "$LINENO"; then : 19945 19946else 19947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 19948$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 19949if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 19950 $as_echo_n "(cached) " >&6 19951else 19952 ac_check_lib_save_LIBS=$LIBS 19953LIBS="-ldnet $LIBS" 19954cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19955/* end confdefs.h. */ 19956 19957/* Override any GCC internal prototype to avoid an error. 19958 Use char because int might match the return type of a GCC 19959 builtin and then its argument prototype would still apply. */ 19960#ifdef __cplusplus 19961extern "C" 19962#endif 19963char dnet_ntoa (); 19964int 19965main () 19966{ 19967return dnet_ntoa (); 19968 ; 19969 return 0; 19970} 19971_ACEOF 19972if ac_fn_c_try_link "$LINENO"; then : 19973 ac_cv_lib_dnet_dnet_ntoa=yes 19974else 19975 ac_cv_lib_dnet_dnet_ntoa=no 19976fi 19977rm -f core conftest.err conftest.$ac_objext \ 19978 conftest$ac_exeext conftest.$ac_ext 19979LIBS=$ac_check_lib_save_LIBS 19980fi 19981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 19982$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 19983if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 19984 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 19985fi 19986 19987 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 19988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 19989$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 19990if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 19991 $as_echo_n "(cached) " >&6 19992else 19993 ac_check_lib_save_LIBS=$LIBS 19994LIBS="-ldnet_stub $LIBS" 19995cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19996/* end confdefs.h. */ 19997 19998/* Override any GCC internal prototype to avoid an error. 19999 Use char because int might match the return type of a GCC 20000 builtin and then its argument prototype would still apply. */ 20001#ifdef __cplusplus 20002extern "C" 20003#endif 20004char dnet_ntoa (); 20005int 20006main () 20007{ 20008return dnet_ntoa (); 20009 ; 20010 return 0; 20011} 20012_ACEOF 20013if ac_fn_c_try_link "$LINENO"; then : 20014 ac_cv_lib_dnet_stub_dnet_ntoa=yes 20015else 20016 ac_cv_lib_dnet_stub_dnet_ntoa=no 20017fi 20018rm -f core conftest.err conftest.$ac_objext \ 20019 conftest$ac_exeext conftest.$ac_ext 20020LIBS=$ac_check_lib_save_LIBS 20021fi 20022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 20023$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 20024if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 20025 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 20026fi 20027 20028 fi 20029fi 20030rm -f core conftest.err conftest.$ac_objext \ 20031 conftest$ac_exeext conftest.$ac_ext 20032 LIBS="$ac_xsave_LIBS" 20033 20034 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT, 20035 # to get the SysV transport functions. 20036 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 20037 # needs -lnsl. 20038 # The nsl library prevents programs from opening the X display 20039 # on Irix 5.2, according to T.E. Dickey. 20040 # The functions gethostbyname, getservbyname, and inet_addr are 20041 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 20042 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 20043if test "x$ac_cv_func_gethostbyname" = xyes; then : 20044 20045fi 20046 20047 if test $ac_cv_func_gethostbyname = no; then 20048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 20049$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 20050if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 20051 $as_echo_n "(cached) " >&6 20052else 20053 ac_check_lib_save_LIBS=$LIBS 20054LIBS="-lnsl $LIBS" 20055cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20056/* end confdefs.h. */ 20057 20058/* Override any GCC internal prototype to avoid an error. 20059 Use char because int might match the return type of a GCC 20060 builtin and then its argument prototype would still apply. */ 20061#ifdef __cplusplus 20062extern "C" 20063#endif 20064char gethostbyname (); 20065int 20066main () 20067{ 20068return gethostbyname (); 20069 ; 20070 return 0; 20071} 20072_ACEOF 20073if ac_fn_c_try_link "$LINENO"; then : 20074 ac_cv_lib_nsl_gethostbyname=yes 20075else 20076 ac_cv_lib_nsl_gethostbyname=no 20077fi 20078rm -f core conftest.err conftest.$ac_objext \ 20079 conftest$ac_exeext conftest.$ac_ext 20080LIBS=$ac_check_lib_save_LIBS 20081fi 20082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 20083$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 20084if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 20085 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 20086fi 20087 20088 if test $ac_cv_lib_nsl_gethostbyname = no; then 20089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 20090$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 20091if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 20092 $as_echo_n "(cached) " >&6 20093else 20094 ac_check_lib_save_LIBS=$LIBS 20095LIBS="-lbsd $LIBS" 20096cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20097/* end confdefs.h. */ 20098 20099/* Override any GCC internal prototype to avoid an error. 20100 Use char because int might match the return type of a GCC 20101 builtin and then its argument prototype would still apply. */ 20102#ifdef __cplusplus 20103extern "C" 20104#endif 20105char gethostbyname (); 20106int 20107main () 20108{ 20109return gethostbyname (); 20110 ; 20111 return 0; 20112} 20113_ACEOF 20114if ac_fn_c_try_link "$LINENO"; then : 20115 ac_cv_lib_bsd_gethostbyname=yes 20116else 20117 ac_cv_lib_bsd_gethostbyname=no 20118fi 20119rm -f core conftest.err conftest.$ac_objext \ 20120 conftest$ac_exeext conftest.$ac_ext 20121LIBS=$ac_check_lib_save_LIBS 20122fi 20123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 20124$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 20125if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 20126 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 20127fi 20128 20129 fi 20130 fi 20131 20132 # [email protected] says without -lsocket, 20133 # socket/setsockopt and other routines are undefined under SCO ODT 20134 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 20135 # on later versions), says Simon Leinen: it contains gethostby* 20136 # variants that don't use the name server (or something). -lsocket 20137 # must be given before -lnsl if both are needed. We assume that 20138 # if connect needs -lnsl, so does gethostbyname. 20139 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 20140if test "x$ac_cv_func_connect" = xyes; then : 20141 20142fi 20143 20144 if test $ac_cv_func_connect = no; then 20145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 20146$as_echo_n "checking for connect in -lsocket... " >&6; } 20147if ${ac_cv_lib_socket_connect+:} false; then : 20148 $as_echo_n "(cached) " >&6 20149else 20150 ac_check_lib_save_LIBS=$LIBS 20151LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 20152cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20153/* end confdefs.h. */ 20154 20155/* Override any GCC internal prototype to avoid an error. 20156 Use char because int might match the return type of a GCC 20157 builtin and then its argument prototype would still apply. */ 20158#ifdef __cplusplus 20159extern "C" 20160#endif 20161char connect (); 20162int 20163main () 20164{ 20165return connect (); 20166 ; 20167 return 0; 20168} 20169_ACEOF 20170if ac_fn_c_try_link "$LINENO"; then : 20171 ac_cv_lib_socket_connect=yes 20172else 20173 ac_cv_lib_socket_connect=no 20174fi 20175rm -f core conftest.err conftest.$ac_objext \ 20176 conftest$ac_exeext conftest.$ac_ext 20177LIBS=$ac_check_lib_save_LIBS 20178fi 20179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 20180$as_echo "$ac_cv_lib_socket_connect" >&6; } 20181if test "x$ac_cv_lib_socket_connect" = xyes; then : 20182 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 20183fi 20184 20185 fi 20186 20187 # Guillermo Gomez says -lposix is necessary on A/UX. 20188 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 20189if test "x$ac_cv_func_remove" = xyes; then : 20190 20191fi 20192 20193 if test $ac_cv_func_remove = no; then 20194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 20195$as_echo_n "checking for remove in -lposix... " >&6; } 20196if ${ac_cv_lib_posix_remove+:} false; then : 20197 $as_echo_n "(cached) " >&6 20198else 20199 ac_check_lib_save_LIBS=$LIBS 20200LIBS="-lposix $LIBS" 20201cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20202/* end confdefs.h. */ 20203 20204/* Override any GCC internal prototype to avoid an error. 20205 Use char because int might match the return type of a GCC 20206 builtin and then its argument prototype would still apply. */ 20207#ifdef __cplusplus 20208extern "C" 20209#endif 20210char remove (); 20211int 20212main () 20213{ 20214return remove (); 20215 ; 20216 return 0; 20217} 20218_ACEOF 20219if ac_fn_c_try_link "$LINENO"; then : 20220 ac_cv_lib_posix_remove=yes 20221else 20222 ac_cv_lib_posix_remove=no 20223fi 20224rm -f core conftest.err conftest.$ac_objext \ 20225 conftest$ac_exeext conftest.$ac_ext 20226LIBS=$ac_check_lib_save_LIBS 20227fi 20228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 20229$as_echo "$ac_cv_lib_posix_remove" >&6; } 20230if test "x$ac_cv_lib_posix_remove" = xyes; then : 20231 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 20232fi 20233 20234 fi 20235 20236 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 20237 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 20238if test "x$ac_cv_func_shmat" = xyes; then : 20239 20240fi 20241 20242 if test $ac_cv_func_shmat = no; then 20243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 20244$as_echo_n "checking for shmat in -lipc... " >&6; } 20245if ${ac_cv_lib_ipc_shmat+:} false; then : 20246 $as_echo_n "(cached) " >&6 20247else 20248 ac_check_lib_save_LIBS=$LIBS 20249LIBS="-lipc $LIBS" 20250cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20251/* end confdefs.h. */ 20252 20253/* Override any GCC internal prototype to avoid an error. 20254 Use char because int might match the return type of a GCC 20255 builtin and then its argument prototype would still apply. */ 20256#ifdef __cplusplus 20257extern "C" 20258#endif 20259char shmat (); 20260int 20261main () 20262{ 20263return shmat (); 20264 ; 20265 return 0; 20266} 20267_ACEOF 20268if ac_fn_c_try_link "$LINENO"; then : 20269 ac_cv_lib_ipc_shmat=yes 20270else 20271 ac_cv_lib_ipc_shmat=no 20272fi 20273rm -f core conftest.err conftest.$ac_objext \ 20274 conftest$ac_exeext conftest.$ac_ext 20275LIBS=$ac_check_lib_save_LIBS 20276fi 20277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 20278$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 20279if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 20280 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 20281fi 20282 20283 fi 20284 fi 20285 20286 # Check for libraries that X11R6 Xt/Xaw programs need. 20287 ac_save_LDFLAGS=$LDFLAGS 20288 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 20289 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 20290 # check for ICE first), but we must link in the order -lSM -lICE or 20291 # we get undefined symbols. So assume we have SM if we have ICE. 20292 # These have to be linked with before -lX11, unlike the other 20293 # libraries we check for below, so use a different variable. 20294 # John Interrante, Karl Berry 20295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 20296$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 20297if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 20298 $as_echo_n "(cached) " >&6 20299else 20300 ac_check_lib_save_LIBS=$LIBS 20301LIBS="-lICE $X_EXTRA_LIBS $LIBS" 20302cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20303/* end confdefs.h. */ 20304 20305/* Override any GCC internal prototype to avoid an error. 20306 Use char because int might match the return type of a GCC 20307 builtin and then its argument prototype would still apply. */ 20308#ifdef __cplusplus 20309extern "C" 20310#endif 20311char IceConnectionNumber (); 20312int 20313main () 20314{ 20315return IceConnectionNumber (); 20316 ; 20317 return 0; 20318} 20319_ACEOF 20320if ac_fn_c_try_link "$LINENO"; then : 20321 ac_cv_lib_ICE_IceConnectionNumber=yes 20322else 20323 ac_cv_lib_ICE_IceConnectionNumber=no 20324fi 20325rm -f core conftest.err conftest.$ac_objext \ 20326 conftest$ac_exeext conftest.$ac_ext 20327LIBS=$ac_check_lib_save_LIBS 20328fi 20329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 20330$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 20331if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 20332 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 20333fi 20334 20335 LDFLAGS=$ac_save_LDFLAGS 20336 20337fi 20338 20339 if test x$have_x = xyes; then 20340 # Check whether --enable-x11-shared was given. 20341if test "${enable_x11_shared+set}" = set; then : 20342 enableval=$enable_x11_shared; 20343else 20344 enable_x11_shared=maybe 20345fi 20346 20347 20348 case "$host" in 20349 *-*-darwin*) 20350 x11_lib='/usr/X11R6/lib/libX11.6.dylib' 20351 x11ext_lib='/usr/X11R6/lib/libXext.6.dylib' 20352 xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib' 20353 xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib' 20354 xinput_lib='/usr/X11R6/lib/libXi.6.dylib' 20355 xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib' 20356 xrender_lib='/usr/X11R6/lib/libXrender.1.dylib' 20357 xss_lib='/usr/X11R6/lib/libXss.1.dylib' 20358 xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib' 20359 ;; 20360 *-*-openbsd*) 20361 x11_lib='libX11.so' 20362 x11ext_lib='libXext.so' 20363 xcursor_lib='libXcursor.so' 20364 xinerama_lib='libXinerama.so' 20365 xinput_lib='libXi.so' 20366 xrandr_lib='libXrandr.so' 20367 xrender_lib='libXrender.so' 20368 xss_lib='libXss.so' 20369 xvidmode_lib='libXxf86vm.so' 20370 ;; 20371 *) 20372 x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'` 20373 x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'` 20374 xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'` 20375 xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'` 20376 xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'` 20377 xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'` 20378 xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'` 20379 xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'` 20380 xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'` 20381 ;; 20382 esac 20383 20384 if test x$ac_cv_func_shmat != xyes; then 20385 X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY" 20386 fi 20387 CFLAGS="$CFLAGS $X_CFLAGS" 20388 LDFLAGS="$LDFLAGS $X_LIBS" 20389 20390 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h> 20391 #include <X11/Xproto.h> 20392 20393" 20394if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then : 20395 have_xext_h_hdr=yes 20396else 20397 have_xext_h_hdr=no 20398fi 20399 20400 20401 if test x$have_xext_h_hdr != xyes; then 20402 as_fn_error $? " 20403*** Missing Xext.h, maybe you need to install the libxext-dev package? 20404 " "$LINENO" 5 20405 fi 20406 20407 20408$as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h 20409 20410 SOURCES="$SOURCES $srcdir/src/video/x11/*.c" 20411 EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS" 20412 20413 # Needed so SDL applications can include SDL_syswm.h 20414 SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS" 20415 20416 if test x$enable_x11_shared = xmaybe; then 20417 enable_x11_shared=yes 20418 fi 20419 if test x$have_loadso != xyes && \ 20420 test x$enable_x11_shared = xyes; then 20421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5 20422$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;} 20423 enable_x11_shared=no 20424 fi 20425 if test x$have_loadso = xyes && \ 20426 test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then 20427 echo "-- dynamic libX11 -> $x11_lib" 20428 echo "-- dynamic libX11ext -> $x11ext_lib" 20429 20430cat >>confdefs.h <<_ACEOF 20431#define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib" 20432_ACEOF 20433 20434 20435cat >>confdefs.h <<_ACEOF 20436#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib" 20437_ACEOF 20438 20439 SUMMARY_video="${SUMMARY_video} x11(dynamic)" 20440 else 20441 enable_x11_shared=no 20442 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext" 20443 SUMMARY_video="${SUMMARY_video} x11" 20444 fi 20445 have_video=yes 20446 20447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5 20448$as_echo_n "checking for const parameter to XextAddDisplay... " >&6; } 20449 have_const_param_XextAddDisplay=no 20450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20451/* end confdefs.h. */ 20452 20453 #include <X11/Xlib.h> 20454 #include <X11/Xproto.h> 20455 #include <X11/extensions/Xext.h> 20456 #include <X11/extensions/extutil.h> 20457 extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f); 20458 20459int 20460main () 20461{ 20462 20463 20464 ; 20465 return 0; 20466} 20467_ACEOF 20468if ac_fn_c_try_compile "$LINENO"; then : 20469 20470 have_const_param_XextAddDisplay=yes 20471 20472$as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h 20473 20474 20475fi 20476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5 20478$as_echo "$have_const_param_XextAddDisplay" >&6; } 20479 20480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5 20481$as_echo_n "checking for XGenericEvent... " >&6; } 20482 have_XGenericEvent=no 20483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20484/* end confdefs.h. */ 20485 20486 #include <X11/Xlib.h> 20487 20488int 20489main () 20490{ 20491 20492Display *display; 20493XEvent event; 20494XGenericEventCookie *cookie = &event.xcookie; 20495XNextEvent(display, &event); 20496XGetEventData(display, cookie); 20497XFreeEventData(display, cookie); 20498 20499 ; 20500 return 0; 20501} 20502_ACEOF 20503if ac_fn_c_try_compile "$LINENO"; then : 20504 20505 have_XGenericEvent=yes 20506 20507$as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h 20508 20509 20510fi 20511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5 20513$as_echo "$have_XGenericEvent" >&6; } 20514 20515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5 20516$as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; } 20517if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then : 20518 $as_echo_n "(cached) " >&6 20519else 20520 ac_check_lib_save_LIBS=$LIBS 20521LIBS="-lX11 $LIBS" 20522cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20523/* end confdefs.h. */ 20524 20525/* Override any GCC internal prototype to avoid an error. 20526 Use char because int might match the return type of a GCC 20527 builtin and then its argument prototype would still apply. */ 20528#ifdef __cplusplus 20529extern "C" 20530#endif 20531char XkbKeycodeToKeysym (); 20532int 20533main () 20534{ 20535return XkbKeycodeToKeysym (); 20536 ; 20537 return 0; 20538} 20539_ACEOF 20540if ac_fn_c_try_link "$LINENO"; then : 20541 ac_cv_lib_X11_XkbKeycodeToKeysym=yes 20542else 20543 ac_cv_lib_X11_XkbKeycodeToKeysym=no 20544fi 20545rm -f core conftest.err conftest.$ac_objext \ 20546 conftest$ac_exeext conftest.$ac_ext 20547LIBS=$ac_check_lib_save_LIBS 20548fi 20549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5 20550$as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; } 20551if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then : 20552 20553$as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h 20554 20555fi 20556 20557 20558 # Check whether --enable-video-x11-xcursor was given. 20559if test "${enable_video_x11_xcursor+set}" = set; then : 20560 enableval=$enable_video_x11_xcursor; 20561else 20562 enable_video_x11_xcursor=yes 20563fi 20564 20565 if test x$enable_video_x11_xcursor = xyes; then 20566 definitely_enable_video_x11_xcursor=no 20567 ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h> 20568 20569" 20570if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then : 20571 have_xcursor_h_hdr=yes 20572else 20573 have_xcursor_h_hdr=no 20574fi 20575 20576 20577 if test x$have_xcursor_h_hdr = xyes; then 20578 if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then 20579 echo "-- dynamic libXcursor -> $xcursor_lib" 20580 20581cat >>confdefs.h <<_ACEOF 20582#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib" 20583_ACEOF 20584 20585 definitely_enable_video_x11_xcursor=yes 20586 else 20587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5 20588$as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; } 20589if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then : 20590 $as_echo_n "(cached) " >&6 20591else 20592 ac_check_lib_save_LIBS=$LIBS 20593LIBS="-lXcursor $LIBS" 20594cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20595/* end confdefs.h. */ 20596 20597/* Override any GCC internal prototype to avoid an error. 20598 Use char because int might match the return type of a GCC 20599 builtin and then its argument prototype would still apply. */ 20600#ifdef __cplusplus 20601extern "C" 20602#endif 20603char XcursorImageCreate (); 20604int 20605main () 20606{ 20607return XcursorImageCreate (); 20608 ; 20609 return 0; 20610} 20611_ACEOF 20612if ac_fn_c_try_link "$LINENO"; then : 20613 ac_cv_lib_Xcursor_XcursorImageCreate=yes 20614else 20615 ac_cv_lib_Xcursor_XcursorImageCreate=no 20616fi 20617rm -f core conftest.err conftest.$ac_objext \ 20618 conftest$ac_exeext conftest.$ac_ext 20619LIBS=$ac_check_lib_save_LIBS 20620fi 20621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5 20622$as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; } 20623if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then : 20624 have_xcursor_lib=yes 20625fi 20626 20627 if test x$have_xcursor_lib = xyes ; then 20628 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor" 20629 definitely_enable_video_x11_xcursor=yes 20630 fi 20631 fi 20632 fi 20633 fi 20634 if test x$definitely_enable_video_x11_xcursor = xyes; then 20635 20636$as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h 20637 20638 SUMMARY_video_x11="${SUMMARY_video_x11} xcursor" 20639 fi 20640 # Check whether --enable-video-x11-xdbe was given. 20641if test "${enable_video_x11_xdbe+set}" = set; then : 20642 enableval=$enable_video_x11_xdbe; 20643else 20644 enable_video_x11_xdbe=yes 20645fi 20646 20647 if test x$enable_video_x11_xdbe = xyes; then 20648 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h> 20649 20650" 20651if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then : 20652 have_dbe_h_hdr=yes 20653else 20654 have_dbe_h_hdr=no 20655fi 20656 20657 20658 if test x$have_dbe_h_hdr = xyes; then 20659 20660$as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h 20661 20662 SUMMARY_video_x11="${SUMMARY_video_x11} xdbe" 20663 fi 20664 fi 20665 # Check whether --enable-video-x11-xinerama was given. 20666if test "${enable_video_x11_xinerama+set}" = set; then : 20667 enableval=$enable_video_x11_xinerama; 20668else 20669 enable_video_x11_xinerama=yes 20670fi 20671 20672 if test x$enable_video_x11_xinerama = xyes; then 20673 definitely_enable_video_x11_xinerama=no 20674 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h> 20675 20676" 20677if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then : 20678 have_xinerama_h_hdr=yes 20679else 20680 have_xinerama_h_hdr=no 20681fi 20682 20683 20684 if test x$have_xinerama_h_hdr = xyes; then 20685 if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then 20686 echo "-- dynamic libXinerama -> $xinerama_lib" 20687 20688cat >>confdefs.h <<_ACEOF 20689#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib" 20690_ACEOF 20691 20692 definitely_enable_video_x11_xinerama=yes 20693 else 20694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5 20695$as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; } 20696if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then : 20697 $as_echo_n "(cached) " >&6 20698else 20699 ac_check_lib_save_LIBS=$LIBS 20700LIBS="-lXinerama $LIBS" 20701cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20702/* end confdefs.h. */ 20703 20704/* Override any GCC internal prototype to avoid an error. 20705 Use char because int might match the return type of a GCC 20706 builtin and then its argument prototype would still apply. */ 20707#ifdef __cplusplus 20708extern "C" 20709#endif 20710char XineramaQueryExtension (); 20711int 20712main () 20713{ 20714return XineramaQueryExtension (); 20715 ; 20716 return 0; 20717} 20718_ACEOF 20719if ac_fn_c_try_link "$LINENO"; then : 20720 ac_cv_lib_Xinerama_XineramaQueryExtension=yes 20721else 20722 ac_cv_lib_Xinerama_XineramaQueryExtension=no 20723fi 20724rm -f core conftest.err conftest.$ac_objext \ 20725 conftest$ac_exeext conftest.$ac_ext 20726LIBS=$ac_check_lib_save_LIBS 20727fi 20728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5 20729$as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; } 20730if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then : 20731 have_xinerama_lib=yes 20732fi 20733 20734 if test x$have_xinerama_lib = xyes ; then 20735 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama" 20736 definitely_enable_video_x11_xinerama=yes 20737 fi 20738 fi 20739 fi 20740 fi 20741 if test x$definitely_enable_video_x11_xinerama = xyes; then 20742 20743$as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h 20744 20745 SUMMARY_video_x11="${SUMMARY_video_x11} xinerama" 20746 fi 20747 # Check whether --enable-video-x11-xinput was given. 20748if test "${enable_video_x11_xinput+set}" = set; then : 20749 enableval=$enable_video_x11_xinput; 20750else 20751 enable_video_x11_xinput=yes 20752fi 20753 20754 if test x$enable_video_x11_xinput = xyes; then 20755 definitely_enable_video_x11_xinput=no 20756 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h> 20757 20758" 20759if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then : 20760 have_xinput_h_hdr=yes 20761else 20762 have_xinput_h_hdr=no 20763fi 20764 20765 20766 if test x$have_xinput_h_hdr = xyes; then 20767 if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then 20768 echo "-- dynamic libXi -> $xinput_lib" 20769 20770cat >>confdefs.h <<_ACEOF 20771#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib" 20772_ACEOF 20773 20774 definitely_enable_video_x11_xinput=yes 20775 else 20776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5 20777$as_echo_n "checking for XOpenDevice in -lXi... " >&6; } 20778if ${ac_cv_lib_Xi_XOpenDevice+:} false; then : 20779 $as_echo_n "(cached) " >&6 20780else 20781 ac_check_lib_save_LIBS=$LIBS 20782LIBS="-lXi $LIBS" 20783cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20784/* end confdefs.h. */ 20785 20786/* Override any GCC internal prototype to avoid an error. 20787 Use char because int might match the return type of a GCC 20788 builtin and then its argument prototype would still apply. */ 20789#ifdef __cplusplus 20790extern "C" 20791#endif 20792char XOpenDevice (); 20793int 20794main () 20795{ 20796return XOpenDevice (); 20797 ; 20798 return 0; 20799} 20800_ACEOF 20801if ac_fn_c_try_link "$LINENO"; then : 20802 ac_cv_lib_Xi_XOpenDevice=yes 20803else 20804 ac_cv_lib_Xi_XOpenDevice=no 20805fi 20806rm -f core conftest.err conftest.$ac_objext \ 20807 conftest$ac_exeext conftest.$ac_ext 20808LIBS=$ac_check_lib_save_LIBS 20809fi 20810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5 20811$as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; } 20812if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then : 20813 have_xinput_lib=yes 20814fi 20815 20816 if test x$have_xinput_lib = xyes ; then 20817 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi" 20818 definitely_enable_video_x11_xinput=yes 20819 fi 20820 fi 20821 fi 20822 fi 20823 if test x$definitely_enable_video_x11_xinput = xyes; then 20824 SUMMARY_video_x11="${SUMMARY_video_x11} xinput2" 20825 20826$as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h 20827 20828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5 20829$as_echo_n "checking for xinput2 multitouch... " >&6; } 20830 have_xinput2_multitouch=no 20831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20832/* end confdefs.h. */ 20833 20834 #include <X11/Xlib.h> 20835 #include <X11/Xproto.h> 20836 #include <X11/extensions/XInput2.h> 20837 20838int 20839main () 20840{ 20841 20842int event_type = XI_TouchBegin; 20843XITouchClassInfo *t; 20844 20845 ; 20846 return 0; 20847} 20848_ACEOF 20849if ac_fn_c_try_compile "$LINENO"; then : 20850 20851 have_xinput2_multitouch=yes 20852 $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h 20853 20854 SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch" 20855 20856fi 20857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5 20859$as_echo "$have_xinput2_multitouch" >&6; } 20860 fi 20861 # Check whether --enable-video-x11-xrandr was given. 20862if test "${enable_video_x11_xrandr+set}" = set; then : 20863 enableval=$enable_video_x11_xrandr; 20864else 20865 enable_video_x11_xrandr=yes 20866fi 20867 20868 if test x$enable_video_x11_xrandr = xyes; then 20869 definitely_enable_video_x11_xrandr=no 20870 have_xrandr_h_hdr=no 20871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20872/* end confdefs.h. */ 20873 20874 #include <X11/Xlib.h> 20875 #include <X11/extensions/Xrandr.h> 20876 20877int 20878main () 20879{ 20880 20881 XRRScreenResources *res = NULL; 20882 20883 ; 20884 return 0; 20885} 20886_ACEOF 20887if ac_fn_c_try_compile "$LINENO"; then : 20888 20889 have_xrandr_h_hdr=yes 20890 20891fi 20892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20893 if test x$have_xrandr_h_hdr = xyes; then 20894 if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then 20895 echo "-- dynamic libXrandr -> $xrandr_lib" 20896 20897cat >>confdefs.h <<_ACEOF 20898#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib" 20899_ACEOF 20900 20901 definitely_enable_video_x11_xrandr=yes 20902 else 20903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5 20904$as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; } 20905if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then : 20906 $as_echo_n "(cached) " >&6 20907else 20908 ac_check_lib_save_LIBS=$LIBS 20909LIBS="-lXrandr $LIBS" 20910cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20911/* end confdefs.h. */ 20912 20913/* Override any GCC internal prototype to avoid an error. 20914 Use char because int might match the return type of a GCC 20915 builtin and then its argument prototype would still apply. */ 20916#ifdef __cplusplus 20917extern "C" 20918#endif 20919char XRRQueryExtension (); 20920int 20921main () 20922{ 20923return XRRQueryExtension (); 20924 ; 20925 return 0; 20926} 20927_ACEOF 20928if ac_fn_c_try_link "$LINENO"; then : 20929 ac_cv_lib_Xrandr_XRRQueryExtension=yes 20930else 20931 ac_cv_lib_Xrandr_XRRQueryExtension=no 20932fi 20933rm -f core conftest.err conftest.$ac_objext \ 20934 conftest$ac_exeext conftest.$ac_ext 20935LIBS=$ac_check_lib_save_LIBS 20936fi 20937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5 20938$as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; } 20939if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then : 20940 have_xrandr_lib=yes 20941fi 20942 20943 if test x$have_xrandr_lib = xyes ; then 20944 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr" 20945 definitely_enable_video_x11_xrandr=yes 20946 fi 20947 fi 20948 fi 20949 fi 20950 if test x$definitely_enable_video_x11_xrandr = xyes; then 20951 20952$as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h 20953 20954 SUMMARY_video_x11="${SUMMARY_video_x11} xrandr" 20955 fi 20956 # Check whether --enable-video-x11-scrnsaver was given. 20957if test "${enable_video_x11_scrnsaver+set}" = set; then : 20958 enableval=$enable_video_x11_scrnsaver; 20959else 20960 enable_video_x11_scrnsaver=yes 20961fi 20962 20963 if test x$enable_video_x11_scrnsaver = xyes; then 20964 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h> 20965 20966" 20967if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then : 20968 have_scrnsaver_h_hdr=yes 20969else 20970 have_scrnsaver_h_hdr=no 20971fi 20972 20973 20974 if test x$have_scrnsaver_h_hdr = xyes; then 20975 if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then 20976 echo "-- dynamic libXss -> $xss_lib" 20977 20978cat >>confdefs.h <<_ACEOF 20979#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib" 20980_ACEOF 20981 20982 definitely_enable_video_x11_scrnsaver=yes 20983 else 20984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5 20985$as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; } 20986if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then : 20987 $as_echo_n "(cached) " >&6 20988else 20989 ac_check_lib_save_LIBS=$LIBS 20990LIBS="-lXss $LIBS" 20991cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20992/* end confdefs.h. */ 20993 20994/* Override any GCC internal prototype to avoid an error. 20995 Use char because int might match the return type of a GCC 20996 builtin and then its argument prototype would still apply. */ 20997#ifdef __cplusplus 20998extern "C" 20999#endif 21000char XScreenSaverSuspend (); 21001int 21002main () 21003{ 21004return XScreenSaverSuspend (); 21005 ; 21006 return 0; 21007} 21008_ACEOF 21009if ac_fn_c_try_link "$LINENO"; then : 21010 ac_cv_lib_Xss_XScreenSaverSuspend=yes 21011else 21012 ac_cv_lib_Xss_XScreenSaverSuspend=no 21013fi 21014rm -f core conftest.err conftest.$ac_objext \ 21015 conftest$ac_exeext conftest.$ac_ext 21016LIBS=$ac_check_lib_save_LIBS 21017fi 21018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5 21019$as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; } 21020if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then : 21021 have_xss_lib=yes 21022fi 21023 21024 if test x$have_xss_lib = xyes ; then 21025 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss" 21026 definitely_enable_video_x11_scrnsaver=yes 21027 fi 21028 fi 21029 fi 21030 fi 21031 if test x$definitely_enable_video_x11_scrnsaver = xyes; then 21032 21033$as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h 21034 21035 SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver" 21036 fi 21037 # Check whether --enable-video-x11-xshape was given. 21038if test "${enable_video_x11_xshape+set}" = set; then : 21039 enableval=$enable_video_x11_xshape; 21040else 21041 enable_video_x11_xshape=yes 21042fi 21043 21044 if test x$enable_video_x11_xshape = xyes; then 21045 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h> 21046 21047" 21048if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then : 21049 have_shape_h_hdr=yes 21050else 21051 have_shape_h_hdr=no 21052fi 21053 21054 21055 if test x$have_shape_h_hdr = xyes; then 21056 21057$as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h 21058 21059 SUMMARY_video_x11="${SUMMARY_video_x11} xshape" 21060 fi 21061 fi 21062 # Check whether --enable-video-x11-vm was given. 21063if test "${enable_video_x11_vm+set}" = set; then : 21064 enableval=$enable_video_x11_vm; 21065else 21066 enable_video_x11_vm=yes 21067fi 21068 21069 if test x$enable_video_x11_vm = xyes; then 21070 definitely_enable_video_x11_vm=no 21071 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h> 21072 21073" 21074if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then : 21075 have_vm_h_hdr=yes 21076else 21077 have_vm_h_hdr=no 21078fi 21079 21080 21081 if test x$have_vm_h_hdr = xyes; then 21082 if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then 21083 echo "-- dynamic libXxf86vm -> $xvidmode_lib" 21084 21085cat >>confdefs.h <<_ACEOF 21086#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib" 21087_ACEOF 21088 21089 definitely_enable_video_x11_vm=yes 21090 else 21091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5 21092$as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; } 21093if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then : 21094 $as_echo_n "(cached) " >&6 21095else 21096 ac_check_lib_save_LIBS=$LIBS 21097LIBS="-lXxf86vm $LIBS" 21098cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21099/* end confdefs.h. */ 21100 21101/* Override any GCC internal prototype to avoid an error. 21102 Use char because int might match the return type of a GCC 21103 builtin and then its argument prototype would still apply. */ 21104#ifdef __cplusplus 21105extern "C" 21106#endif 21107char XF86VidModeQueryVersion (); 21108int 21109main () 21110{ 21111return XF86VidModeQueryVersion (); 21112 ; 21113 return 0; 21114} 21115_ACEOF 21116if ac_fn_c_try_link "$LINENO"; then : 21117 ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes 21118else 21119 ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no 21120fi 21121rm -f core conftest.err conftest.$ac_objext \ 21122 conftest$ac_exeext conftest.$ac_ext 21123LIBS=$ac_check_lib_save_LIBS 21124fi 21125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5 21126$as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; } 21127if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then : 21128 have_vm_lib=yes 21129fi 21130 21131 if test x$have_vm_lib = xyes ; then 21132 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm" 21133 definitely_enable_video_x11_vm=yes 21134 fi 21135 fi 21136 fi 21137 fi 21138 if test x$definitely_enable_video_x11_vm = xyes; then 21139 21140$as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h 21141 21142 SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode" 21143 fi 21144 fi 21145 fi 21146} 21147 21148CheckVivanteVideo() 21149{ 21150 # Check whether --enable-video-vivante was given. 21151if test "${enable_video_vivante+set}" = set; then : 21152 enableval=$enable_video_vivante; 21153else 21154 enable_video_vivante=yes 21155fi 21156 21157 if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then 21158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5 21159$as_echo_n "checking for Vivante VDK API... " >&6; } 21160 have_vivante_vdk=no 21161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21162/* end confdefs.h. */ 21163 21164 #define LINUX 21165 #define EGL_API_FB 21166 #include <gc_vdk.h> 21167 21168int 21169main () 21170{ 21171 21172 21173 ; 21174 return 0; 21175} 21176_ACEOF 21177if ac_fn_c_try_compile "$LINENO"; then : 21178 21179 have_vivante_vdk=yes 21180 21181fi 21182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5 21184$as_echo "$have_vivante_vdk" >&6; } 21185 21186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5 21187$as_echo_n "checking for Vivante FB API... " >&6; } 21188 have_vivante_egl=no 21189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21190/* end confdefs.h. */ 21191 21192 #define LINUX 21193 #define EGL_API_FB 21194 #include <EGL/eglvivante.h> 21195 21196int 21197main () 21198{ 21199 21200 21201 ; 21202 return 0; 21203} 21204_ACEOF 21205if ac_fn_c_try_compile "$LINENO"; then : 21206 21207 have_vivante_egl=yes 21208 21209fi 21210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5 21212$as_echo "$have_vivante_egl" >&6; } 21213 21214 if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then 21215 21216$as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h 21217 21218 EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB" 21219 if test x$have_vivante_vdk = xyes; then 21220 21221$as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h 21222 21223 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK" 21224 fi 21225 SOURCES="$SOURCES $srcdir/src/video/vivante/*.c" 21226 SUMMARY_video="${SUMMARY_video} vivante" 21227 have_video=yes 21228 fi 21229 fi 21230} 21231 21232CheckHaikuVideo() 21233{ 21234 if test x$enable_video = xyes; then 21235 21236$as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h 21237 21238 SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc" 21239 have_video=yes 21240 SUMMARY_video="${SUMMARY_video} haiku" 21241 fi 21242} 21243 21244CheckCOCOA() 21245{ 21246 # Check whether --enable-video-cocoa was given. 21247if test "${enable_video_cocoa+set}" = set; then : 21248 enableval=$enable_video_cocoa; 21249else 21250 enable_video_cocoa=yes 21251fi 21252 21253 if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then 21254 save_CFLAGS="$CFLAGS" 21255 CFLAGS="$CFLAGS -x objective-c" 21256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5 21257$as_echo_n "checking for Cocoa framework... " >&6; } 21258 have_cocoa=no 21259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21260/* end confdefs.h. */ 21261 21262 #import <Cocoa/Cocoa.h> 21263 21264int 21265main () 21266{ 21267 21268 21269 ; 21270 return 0; 21271} 21272_ACEOF 21273if ac_fn_c_try_compile "$LINENO"; then : 21274 21275 have_cocoa=yes 21276 21277fi 21278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5 21280$as_echo "$have_cocoa" >&6; } 21281 CFLAGS="$save_CFLAGS" 21282 if test x$have_cocoa = xyes; then 21283 21284$as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h 21285 21286 SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m" 21287 SUMMARY_video="${SUMMARY_video} cocoa" 21288 have_video=yes 21289 fi 21290 fi 21291} 21292 21293CheckMETAL() 21294{ 21295 # Check whether --enable-render-metal was given. 21296if test "${enable_render_metal+set}" = set; then : 21297 enableval=$enable_render_metal; 21298else 21299 enable_render_metal=yes 21300fi 21301 21302 if test x$enable_render = xyes -a x$enable_render_metal = xyes; then 21303 save_CFLAGS="$CFLAGS" 21304 CFLAGS="$CFLAGS -x objective-c" 21305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5 21306$as_echo_n "checking for Metal framework... " >&6; } 21307 have_metal=no 21308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21309/* end confdefs.h. */ 21310 21311 #import <Cocoa/Cocoa.h> 21312 #import <Metal/Metal.h> 21313 #import <QuartzCore/CAMetalLayer.h> 21314 21315 #if !TARGET_CPU_X86_64 21316 #error Metal doesn't work on this configuration 21317 #endif 21318 21319int 21320main () 21321{ 21322 21323 21324 ; 21325 return 0; 21326} 21327_ACEOF 21328if ac_fn_c_try_compile "$LINENO"; then : 21329 21330 have_metal=yes 21331 21332fi 21333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21334 CFLAGS="$save_CFLAGS" 21335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5 21336$as_echo "$have_metal" >&6; } 21337 if test x$have_metal = xyes; then 21338 21339$as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h 21340 21341 SOURCES="$SOURCES $srcdir/src/render/metal/*.m" 21342 SUMMARY_video="${SUMMARY_video} metal" 21343 else 21344 enable_render_metal=no 21345 fi 21346 fi 21347} 21348 21349 21350CheckDirectFB() 21351{ 21352 # Check whether --enable-video-directfb was given. 21353if test "${enable_video_directfb+set}" = set; then : 21354 enableval=$enable_video_directfb; 21355else 21356 enable_video_directfb=no 21357fi 21358 21359 if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then 21360 video_directfb=no 21361 21362 DIRECTFB_REQUIRED_VERSION=1.0.0 21363 for ac_prog in directfb-config 21364do 21365 # Extract the first word of "$ac_prog", so it can be a program name with args. 21366set dummy $ac_prog; ac_word=$2 21367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21368$as_echo_n "checking for $ac_word... " >&6; } 21369if ${ac_cv_path_DIRECTFBCONFIG+:} false; then : 21370 $as_echo_n "(cached) " >&6 21371else 21372 case $DIRECTFBCONFIG in 21373 [\\/]* | ?:[\\/]*) 21374 ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path. 21375 ;; 21376 *) 21377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21378as_dummy="$prefix/bin:$PATH" 21379for as_dir in $as_dummy 21380do 21381 IFS=$as_save_IFS 21382 test -z "$as_dir" && as_dir=. 21383 for ac_exec_ext in '' $ac_executable_extensions; do 21384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21385 ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext" 21386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21387 break 2 21388 fi 21389done 21390 done 21391IFS=$as_save_IFS 21392 21393 ;; 21394esac 21395fi 21396DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG 21397if test -n "$DIRECTFBCONFIG"; then 21398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5 21399$as_echo "$DIRECTFBCONFIG" >&6; } 21400else 21401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21402$as_echo "no" >&6; } 21403fi 21404 21405 21406 test -n "$DIRECTFBCONFIG" && break 21407done 21408test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no" 21409 21410 if test x$DIRECTFBCONFIG = xno; then 21411 # Extract the first word of "pkg-config", so it can be a program name with args. 21412set dummy pkg-config; ac_word=$2 21413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21414$as_echo_n "checking for $ac_word... " >&6; } 21415if ${ac_cv_path_PKG_CONFIG+:} false; then : 21416 $as_echo_n "(cached) " >&6 21417else 21418 case $PKG_CONFIG in 21419 [\\/]* | ?:[\\/]*) 21420 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 21421 ;; 21422 *) 21423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21424for as_dir in $PATH 21425do 21426 IFS=$as_save_IFS 21427 test -z "$as_dir" && as_dir=. 21428 for ac_exec_ext in '' $ac_executable_extensions; do 21429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21430 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21432 break 2 21433 fi 21434done 21435 done 21436IFS=$as_save_IFS 21437 21438 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 21439 ;; 21440esac 21441fi 21442PKG_CONFIG=$ac_cv_path_PKG_CONFIG 21443if test -n "$PKG_CONFIG"; then 21444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 21445$as_echo "$PKG_CONFIG" >&6; } 21446else 21447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21448$as_echo "no" >&6; } 21449fi 21450 21451 21452 if test x$PKG_CONFIG != xno; then 21453 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then 21454 DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb` 21455 DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb` 21456 DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb` 21457 video_directfb=yes 21458 fi 21459 fi 21460 else 21461 set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'` 21462 NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3` 21463 set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'` 21464 HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3` 21465 if test $HAVE_VERSION -ge $NEED_VERSION; then 21466 DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags` 21467 DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs` 21468 DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix` 21469 video_directfb=yes 21470 fi 21471 fi 21472 if test x$video_directfb = xyes; then 21473 # SuSE 11.1 installs directfb-config without directfb-devel 21474 save_CPPFLAGS="$CPPFLAGS" 21475 CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS" 21476 ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default" 21477if test "x$ac_cv_header_directfb_h" = xyes; then : 21478 have_directfb_hdr=yes 21479else 21480 have_directfb_hdr=no 21481fi 21482 21483 21484 CPPFLAGS="$save_CPPFLAGS" 21485 video_directfb=$have_directfb_hdr 21486 fi 21487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5 21488$as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; } 21489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5 21490$as_echo "$video_directfb" >&6; } 21491 21492 if test x$video_directfb = xyes; then 21493 # Check whether --enable-directfb-shared was given. 21494if test "${enable_directfb_shared+set}" = set; then : 21495 enableval=$enable_directfb_shared; 21496else 21497 enable_directfb_shared=yes 21498fi 21499 21500 21501 21502$as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h 21503 21504 SOURCES="$SOURCES $srcdir/src/video/directfb/*.c" 21505 EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS" 21506 21507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5 21508$as_echo_n "checking for directfb dynamic loading support... " >&6; } 21509 directfb_shared=no 21510 directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS"` 21511 # | sed 's/.*\/\(.*\)/\1/; q'`] 21512{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5 21513$as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;} 21514 if test x$have_loadso != xyes && \ 21515 test x$enable_directfb_shared = xyes; then 21516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5 21517$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;} 21518 fi 21519 if test x$have_loadso = xyes && \ 21520 test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then 21521 directfb_shared=yes 21522 echo "-- $directfb_lib_spec -> $directfb_lib" 21523 21524cat >>confdefs.h <<_ACEOF 21525#define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib" 21526_ACEOF 21527 21528 SUMMARY_video="${SUMMARY_video} directfb(dynamic)" 21529 else 21530 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS" 21531 SUMMARY_video="${SUMMARY_video} directfb" 21532 fi 21533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5 21534$as_echo "$directfb_shared" >&6; } 21535 SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS" 21536 have_video=yes 21537 fi 21538 fi 21539} 21540 21541CheckKMSDRM() 21542{ 21543 # Check whether --enable-video-kmsdrm was given. 21544if test "${enable_video_kmsdrm+set}" = set; then : 21545 enableval=$enable_video_kmsdrm; 21546else 21547 enable_video_kmsdrm=no 21548fi 21549 21550 21551 if test x$enable_video = xyes -a x$enable_video_kmsdrm = xyes; then 21552 video_kmsdrm=no 21553 libdrm_avail=no 21554 libgbm_avail=no 21555 21556 LIBDRM_REQUIRED_VERSION=2.4.46 21557 LIBGBM_REQUIRED_VERSION=9.0.0 21558 21559 # Extract the first word of "pkg-config", so it can be a program name with args. 21560set dummy pkg-config; ac_word=$2 21561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21562$as_echo_n "checking for $ac_word... " >&6; } 21563if ${ac_cv_path_PKG_CONFIG+:} false; then : 21564 $as_echo_n "(cached) " >&6 21565else 21566 case $PKG_CONFIG in 21567 [\\/]* | ?:[\\/]*) 21568 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 21569 ;; 21570 *) 21571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21572for as_dir in $PATH 21573do 21574 IFS=$as_save_IFS 21575 test -z "$as_dir" && as_dir=. 21576 for ac_exec_ext in '' $ac_executable_extensions; do 21577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21578 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21580 break 2 21581 fi 21582done 21583 done 21584IFS=$as_save_IFS 21585 21586 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 21587 ;; 21588esac 21589fi 21590PKG_CONFIG=$ac_cv_path_PKG_CONFIG 21591if test -n "$PKG_CONFIG"; then 21592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 21593$as_echo "$PKG_CONFIG" >&6; } 21594else 21595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21596$as_echo "no" >&6; } 21597fi 21598 21599 21600 if test x$PKG_CONFIG != xno; then 21601 if $PKG_CONFIG --atleast-pkgconfig-version 0.7; then 21602 if $PKG_CONFIG --atleast-version $LIBDRM_REQUIRED_VERSION libdrm; then 21603 LIBDRM_CFLAGS=`$PKG_CONFIG --cflags libdrm` 21604 LIBDRM_LIBS=`$PKG_CONFIG --libs libdrm` 21605 LIBDRM_PREFIX=`$PKG_CONFIG --variable=prefix libdrm` 21606 libdrm_avail=yes 21607 fi 21608 if $PKG_CONFIG --atleast-version $LIBGBM_REQUIRED_VERSION gbm; then 21609 LIBGBM_CFLAGS=`$PKG_CONFIG --cflags gbm` 21610 LIBGBM_LIBS=`$PKG_CONFIG --libs gbm` 21611 LIBGBM_PREFIX=`$PKG_CONFIG --variable=prefix gbm` 21612 libgbm_avail=yes 21613 fi 21614 if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then 21615 video_kmsdrm=yes 21616 fi 21617 21618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm $LIBDRM_REQUIRED_VERSION library for kmsdrm support" >&5 21619$as_echo_n "checking for libdrm $LIBDRM_REQUIRED_VERSION library for kmsdrm support... " >&6; } 21620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libdrm_avail" >&5 21621$as_echo "$libdrm_avail" >&6; } 21622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgbm $LIBGBM_REQUIRED_VERSION library for kmsdrm support" >&5 21623$as_echo_n "checking for libgbm $LIBGBM_REQUIRED_VERSION library for kmsdrm support... " >&6; } 21624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgbm_avail" >&5 21625$as_echo "$libgbm_avail" >&6; } 21626 21627 if test x$video_kmsdrm = xyes; then 21628 # Check whether --enable-kmsdrm-shared was given. 21629if test "${enable_kmsdrm_shared+set}" = set; then : 21630 enableval=$enable_kmsdrm_shared; 21631else 21632 enable_kmsdrm_shared=yes 21633fi 21634 21635 21636 21637$as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h 21638 21639 SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c" 21640 EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS" 21641 21642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5 21643$as_echo_n "checking for kmsdrm dynamic loading support... " >&6; } 21644 kmsdrm_shared=no 21645 drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"` 21646 gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"` 21647 if test x$have_loadso != xyes && \ 21648 test x$enable_kmsdrm_shared = xyes; then 21649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5 21650$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;} 21651 fi 21652 if test x$have_loadso = xyes && \ 21653 test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then 21654 kmsdrm_shared=yes 21655 21656cat >>confdefs.h <<_ACEOF 21657#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib" 21658_ACEOF 21659 21660 21661cat >>confdefs.h <<_ACEOF 21662#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib" 21663_ACEOF 21664 21665 21666cat >>confdefs.h <<_ACEOF 21667#define HAVE_KMSDRM_SHARED "TRUE" 21668_ACEOF 21669 21670 SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)" 21671 else 21672 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS" 21673 SUMMARY_video="${SUMMARY_video} kmsdrm" 21674 fi 21675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5 21676$as_echo "$kmsdrm_shared" >&6; } 21677 have_video=yes 21678 fi 21679 fi 21680 fi 21681 fi 21682} 21683 21684CheckDummyVideo() 21685{ 21686 # Check whether --enable-video-dummy was given. 21687if test "${enable_video_dummy+set}" = set; then : 21688 enableval=$enable_video_dummy; 21689else 21690 enable_video_dummy=yes 21691fi 21692 21693 if test x$enable_video_dummy = xyes; then 21694 21695$as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h 21696 21697 SOURCES="$SOURCES $srcdir/src/video/dummy/*.c" 21698 have_video=yes 21699 SUMMARY_video="${SUMMARY_video} dummy" 21700 fi 21701} 21702 21703CheckQNXVideo() 21704{ 21705 if test x$enable_video = xyes; then 21706 21707$as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h 21708 21709 SOURCES="$SOURCES $srcdir/src/video/qnx/*.c" 21710 have_video=yes 21711 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2" 21712 SUMMARY_video="${SUMMARY_video} qnx" 21713 fi 21714} 21715 21716CheckQNXAudio() 21717{ 21718 if test x$enable_audio = xyes; then 21719 21720$as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h 21721 21722 SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c" 21723 have_audio=yes 21724 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound" 21725 SUMMARY_audio="${SUMMARY_audio} qsa" 21726 fi 21727} 21728 21729# Check whether --enable-video-opengl was given. 21730if test "${enable_video_opengl+set}" = set; then : 21731 enableval=$enable_video_opengl; 21732else 21733 enable_video_opengl=yes 21734fi 21735 21736 21737CheckOpenGLX11() 21738{ 21739 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then 21740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5 21741$as_echo_n "checking for OpenGL (GLX) support... " >&6; } 21742 video_opengl=no 21743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21744/* end confdefs.h. */ 21745 21746 #include <GL/gl.h> 21747 #include <GL/glx.h> 21748 21749int 21750main () 21751{ 21752 21753 21754 ; 21755 return 0; 21756} 21757_ACEOF 21758if ac_fn_c_try_compile "$LINENO"; then : 21759 21760 video_opengl=yes 21761 21762fi 21763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5 21765$as_echo "$video_opengl" >&6; } 21766 if test x$video_opengl = xyes; then 21767 21768$as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h 21769 21770 21771$as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h 21772 21773 21774$as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h 21775 21776 SUMMARY_video="${SUMMARY_video} opengl" 21777 fi 21778 fi 21779} 21780 21781# Check whether --enable-video-opengles was given. 21782if test "${enable_video_opengles+set}" = set; then : 21783 enableval=$enable_video_opengles; 21784else 21785 enable_video_opengles=yes 21786fi 21787 21788# Check whether --enable-video-opengles1 was given. 21789if test "${enable_video_opengles1+set}" = set; then : 21790 enableval=$enable_video_opengles1; 21791else 21792 enable_video_opengles1=yes 21793fi 21794 21795# Check whether --enable-video-opengles2 was given. 21796if test "${enable_video_opengles2+set}" = set; then : 21797 enableval=$enable_video_opengles2; 21798else 21799 enable_video_opengles2=yes 21800fi 21801 21802 21803CheckOpenGLESX11() 21804{ 21805 if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then 21806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5 21807$as_echo_n "checking for EGL support... " >&6; } 21808 video_opengl_egl=no 21809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21810/* end confdefs.h. */ 21811 21812 #define LINUX 21813 #define EGL_API_FB 21814 #include <EGL/egl.h> 21815 #include <EGL/eglext.h> 21816 21817int 21818main () 21819{ 21820 21821 21822 ; 21823 return 0; 21824} 21825_ACEOF 21826if ac_fn_c_try_compile "$LINENO"; then : 21827 21828 video_opengl_egl=yes 21829 21830fi 21831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5 21833$as_echo "$video_opengl_egl" >&6; } 21834 if test x$video_opengl_egl = xyes; then 21835 21836$as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h 21837 21838 fi 21839 21840 if test x$enable_video_opengles1 = xyes; then 21841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5 21842$as_echo_n "checking for OpenGL ES v1 headers... " >&6; } 21843 video_opengles_v1=no 21844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21845/* end confdefs.h. */ 21846 21847 #include <GLES/gl.h> 21848 #include <GLES/glext.h> 21849 21850int 21851main () 21852{ 21853 21854 21855 ; 21856 return 0; 21857} 21858_ACEOF 21859if ac_fn_c_try_compile "$LINENO"; then : 21860 21861 video_opengles_v1=yes 21862 21863fi 21864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5 21866$as_echo "$video_opengles_v1" >&6; } 21867 if test x$video_opengles_v1 = xyes; then 21868 21869$as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h 21870 21871 21872$as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h 21873 21874 SUMMARY_video="${SUMMARY_video} opengl_es1" 21875 fi 21876 fi 21877 21878 if test x$enable_video_opengles2 = xyes; then 21879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5 21880$as_echo_n "checking for OpenGL ES v2 headers... " >&6; } 21881 video_opengles_v2=no 21882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21883/* end confdefs.h. */ 21884 21885 #include <GLES2/gl2.h> 21886 #include <GLES2/gl2ext.h> 21887 21888int 21889main () 21890{ 21891 21892 21893 ; 21894 return 0; 21895} 21896_ACEOF 21897if ac_fn_c_try_compile "$LINENO"; then : 21898 21899 video_opengles_v2=yes 21900 21901fi 21902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5 21904$as_echo "$video_opengles_v2" >&6; } 21905 if test x$video_opengles_v2 = xyes; then 21906 21907$as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h 21908 21909 21910$as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h 21911 21912 SUMMARY_video="${SUMMARY_video} opengl_es2" 21913 fi 21914 fi 21915 fi 21916} 21917 21918CheckWINDOWSGL() 21919{ 21920 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then 21921 21922$as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h 21923 21924 21925$as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h 21926 21927 21928$as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h 21929 21930 SUMMARY_video="${SUMMARY_video} opengl" 21931 fi 21932} 21933 21934CheckWINDOWSGLES() 21935{ 21936 if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then 21937 21938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5 21939$as_echo_n "checking for EGL support... " >&6; } 21940 video_opengl_egl=no 21941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21942/* end confdefs.h. */ 21943 21944 #include <EGL/egl.h> 21945 21946int 21947main () 21948{ 21949 21950 21951 ; 21952 return 0; 21953} 21954_ACEOF 21955if ac_fn_c_try_compile "$LINENO"; then : 21956 21957 video_opengl_egl=yes 21958 21959fi 21960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5 21962$as_echo "$video_opengl_egl" >&6; } 21963 if test x$video_opengl_egl = xyes; then 21964 21965$as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h 21966 21967 21968$as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h 21969 21970 SUMMARY_video="${SUMMARY_video} opengl_es1" 21971 fi 21972 21973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5 21974$as_echo_n "checking for OpenGL ES v2 headers... " >&6; } 21975 video_opengles_v2=no 21976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21977/* end confdefs.h. */ 21978 21979 #include <GLES2/gl2.h> 21980 #include <GLES2/gl2ext.h> 21981 21982int 21983main () 21984{ 21985 21986 21987 ; 21988 return 0; 21989} 21990_ACEOF 21991if ac_fn_c_try_compile "$LINENO"; then : 21992 21993 video_opengles_v2=yes 21994 21995fi 21996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5 21998$as_echo "$video_opengles_v2" >&6; } 21999 if test x$video_opengles_v2 = xyes; then 22000 22001$as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h 22002 22003 22004$as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h 22005 22006 22007$as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h 22008 22009 SUMMARY_video="${SUMMARY_video} opengl_es2" 22010 fi 22011 fi 22012} 22013 22014CheckHaikuGL() 22015{ 22016 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then 22017 22018$as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h 22019 22020 22021$as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h 22022 22023 22024$as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h 22025 22026 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL" 22027 SUMMARY_video="${SUMMARY_video} opengl" 22028 fi 22029} 22030 22031CheckMacGL() 22032{ 22033 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then 22034 22035$as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h 22036 22037 22038$as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h 22039 22040 22041$as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h 22042 22043 SUMMARY_video="${SUMMARY_video} opengl" 22044 fi 22045} 22046 22047CheckMacGLES() 22048{ 22049 if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then 22050 video_opengl_egl=yes 22051 22052$as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h 22053 22054 video_opengles_v2=yes 22055 22056$as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h 22057 22058 22059$as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h 22060 22061 SUMMARY_video="${SUMMARY_video} opengl_es2" 22062 fi 22063} 22064 22065CheckEmscriptenGLES() 22066{ 22067 if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then 22068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5 22069$as_echo_n "checking for EGL support... " >&6; } 22070 video_opengl_egl=no 22071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22072/* end confdefs.h. */ 22073 22074 #include <EGL/egl.h> 22075 22076int 22077main () 22078{ 22079 22080 22081 ; 22082 return 0; 22083} 22084_ACEOF 22085if ac_fn_c_try_compile "$LINENO"; then : 22086 22087 video_opengl_egl=yes 22088 22089fi 22090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5 22092$as_echo "$video_opengl_egl" >&6; } 22093 if test x$video_opengl_egl = xyes; then 22094 22095$as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h 22096 22097 fi 22098 22099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5 22100$as_echo_n "checking for OpenGL ES v2 headers... " >&6; } 22101 video_opengles_v2=no 22102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22103/* end confdefs.h. */ 22104 22105 #include <GLES2/gl2.h> 22106 #include <GLES2/gl2ext.h> 22107 22108int 22109main () 22110{ 22111 22112 22113 ; 22114 return 0; 22115} 22116_ACEOF 22117if ac_fn_c_try_compile "$LINENO"; then : 22118 22119 video_opengles_v2=yes 22120 22121fi 22122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5 22124$as_echo "$video_opengles_v2" >&6; } 22125 if test x$video_opengles_v2 = xyes; then 22126 22127$as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h 22128 22129 22130$as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h 22131 22132 SUMMARY_video="${SUMMARY_video} opengl_es2" 22133 fi 22134 fi 22135} 22136 22137# Check whether --enable-video-vulkan was given. 22138if test "${enable_video_vulkan+set}" = set; then : 22139 enableval=$enable_video_vulkan; 22140else 22141 enable_video_vulkan=yes 22142fi 22143 22144 22145CheckVulkan() 22146{ 22147 if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then 22148 case "$host" in 22149 *-*-android*) 22150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22151/* end confdefs.h. */ 22152 22153 #if defined(__ARM_ARCH) && __ARM_ARCH < 7 22154 #error Vulkan doesn't work on this configuration 22155 #endif 22156 22157int 22158main () 22159{ 22160 22161 22162 ; 22163 return 0; 22164} 22165_ACEOF 22166if ac_fn_c_try_compile "$LINENO"; then : 22167 22168 22169else 22170 22171 enable_video_vulkan=no 22172 22173fi 22174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22175 ;; 22176 *-*-darwin*) 22177 save_CFLAGS="$CFLAGS" 22178 CFLAGS="$CFLAGS -x objective-c" 22179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22180/* end confdefs.h. */ 22181 22182 #include <Cocoa/Cocoa.h> 22183 #include <Metal/Metal.h> 22184 #include <QuartzCore/CAMetalLayer.h> 22185 22186 #if !TARGET_CPU_X86_64 22187 #error Vulkan doesn't work on this configuration 22188 #endif 22189 22190int 22191main () 22192{ 22193 22194 22195 ; 22196 return 0; 22197} 22198_ACEOF 22199if ac_fn_c_try_compile "$LINENO"; then : 22200 22201 22202else 22203 22204 enable_video_vulkan=no 22205 22206fi 22207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22208 CFLAGS="$save_CFLAGS" 22209 ;; 22210 *) 22211 ;; 22212 esac 22213 if test x$enable_video_vulkan = xno; then 22214 # For reasons I am totally unable to see, I get an undefined macro error if 22215 # I put this in the AC_TRY_COMPILE. 22216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5 22217$as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;} 22218 fi 22219 fi 22220 if test x$enable_video_vulkan = xyes; then 22221 22222$as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h 22223 22224 SUMMARY_video="${SUMMARY_video} vulkan" 22225 fi 22226} 22227 22228CheckInputEvents() 22229{ 22230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5 22231$as_echo_n "checking for Linux 2.4 unified input interface... " >&6; } 22232 use_input_events=no 22233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22234/* end confdefs.h. */ 22235 22236 #include <linux/input.h> 22237 22238int 22239main () 22240{ 22241 22242 #ifndef EVIOCGNAME 22243 #error EVIOCGNAME() ioctl not available 22244 #endif 22245 22246 ; 22247 return 0; 22248} 22249_ACEOF 22250if ac_fn_c_try_compile "$LINENO"; then : 22251 22252 use_input_events=yes 22253 22254fi 22255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5 22257$as_echo "$use_input_events" >&6; } 22258 if test x$use_input_events = xyes; then 22259 22260$as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h 22261 22262 SUMMARY_input="${SUMMARY_input} linuxev" 22263 fi 22264} 22265 22266CheckInputKD() 22267{ 22268 22269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5 22270$as_echo_n "checking for Linux kd.h... " >&6; } 22271 use_input_kd=no 22272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22273/* end confdefs.h. */ 22274 22275 #include <linux/kd.h> 22276 #include <linux/keyboard.h> 22277 22278int 22279main () 22280{ 22281 22282 struct kbentry kbe; 22283 kbe.kb_table = KG_CTRL; 22284 ioctl(0, KDGKBENT, &kbe); 22285 22286 ; 22287 return 0; 22288} 22289_ACEOF 22290if ac_fn_c_try_compile "$LINENO"; then : 22291 22292 use_input_kd=yes 22293 22294fi 22295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5 22297$as_echo "$use_input_kd" >&6; } 22298 if test x$use_input_kd = xyes; then 22299 22300$as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h 22301 22302 SUMMARY_input="${SUMMARY_input} linuxkd" 22303 fi 22304} 22305 22306CheckLibUDev() 22307{ 22308 # Check whether --enable-libudev was given. 22309if test "${enable_libudev+set}" = set; then : 22310 enableval=$enable_libudev; 22311else 22312 enable_libudev=yes 22313fi 22314 22315 if test x$enable_libudev = xyes; then 22316 ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default" 22317if test "x$ac_cv_header_libudev_h" = xyes; then : 22318 have_libudev_h_hdr=yes 22319else 22320 have_libudev_h_hdr=no 22321fi 22322 22323 22324 if test x$have_libudev_h_hdr = xyes; then 22325 22326$as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h 22327 22328 22329 udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'` 22330 if test x$udev_lib != x; then 22331 echo "-- dynamic udev -> $udev_lib" 22332 22333cat >>confdefs.h <<_ACEOF 22334#define SDL_UDEV_DYNAMIC "$udev_lib" 22335_ACEOF 22336 22337 fi 22338 fi 22339 fi 22340} 22341 22342CheckDBus() 22343{ 22344 # Check whether --enable-dbus was given. 22345if test "${enable_dbus+set}" = set; then : 22346 enableval=$enable_dbus; 22347else 22348 enable_dbus=yes 22349fi 22350 22351 if test x$enable_dbus = xyes; then 22352 # Extract the first word of "pkg-config", so it can be a program name with args. 22353set dummy pkg-config; ac_word=$2 22354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22355$as_echo_n "checking for $ac_word... " >&6; } 22356if ${ac_cv_path_PKG_CONFIG+:} false; then : 22357 $as_echo_n "(cached) " >&6 22358else 22359 case $PKG_CONFIG in 22360 [\\/]* | ?:[\\/]*) 22361 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 22362 ;; 22363 *) 22364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22365for as_dir in $PATH 22366do 22367 IFS=$as_save_IFS 22368 test -z "$as_dir" && as_dir=. 22369 for ac_exec_ext in '' $ac_executable_extensions; do 22370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22371 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 22372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22373 break 2 22374 fi 22375done 22376 done 22377IFS=$as_save_IFS 22378 22379 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 22380 ;; 22381esac 22382fi 22383PKG_CONFIG=$ac_cv_path_PKG_CONFIG 22384if test -n "$PKG_CONFIG"; then 22385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 22386$as_echo "$PKG_CONFIG" >&6; } 22387else 22388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22389$as_echo "no" >&6; } 22390fi 22391 22392 22393 if test x$PKG_CONFIG != xno; then 22394 DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1` 22395 save_CFLAGS="$CFLAGS" 22396 CFLAGS="$save_CFLAGS $DBUS_CFLAGS" 22397 ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default" 22398if test "x$ac_cv_header_dbus_dbus_h" = xyes; then : 22399 have_dbus_dbus_h_hdr=yes 22400else 22401 have_dbus_dbus_h_hdr=no 22402fi 22403 22404 22405 CFLAGS="$save_CFLAGS" 22406 if test x$have_dbus_dbus_h_hdr = xyes; then 22407 22408$as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h 22409 22410 EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS" 22411 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c" 22412 fi 22413 fi 22414 fi 22415} 22416 22417CheckIME() 22418{ 22419 # Check whether --enable-ime was given. 22420if test "${enable_ime+set}" = set; then : 22421 enableval=$enable_ime; 22422else 22423 enable_ime=yes 22424fi 22425 22426 if test x$enable_ime = xyes; then 22427 22428$as_echo "#define SDL_USE_IME 1" >>confdefs.h 22429 22430 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c" 22431 fi 22432} 22433 22434CheckIBus() 22435{ 22436 # Check whether --enable-ibus was given. 22437if test "${enable_ibus+set}" = set; then : 22438 enableval=$enable_ibus; 22439else 22440 enable_ibus=yes 22441fi 22442 22443 if test x$enable_ibus = xyes; then 22444 # Extract the first word of "pkg-config", so it can be a program name with args. 22445set dummy pkg-config; ac_word=$2 22446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22447$as_echo_n "checking for $ac_word... " >&6; } 22448if ${ac_cv_path_PKG_CONFIG+:} false; then : 22449 $as_echo_n "(cached) " >&6 22450else 22451 case $PKG_CONFIG in 22452 [\\/]* | ?:[\\/]*) 22453 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 22454 ;; 22455 *) 22456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22457for as_dir in $PATH 22458do 22459 IFS=$as_save_IFS 22460 test -z "$as_dir" && as_dir=. 22461 for ac_exec_ext in '' $ac_executable_extensions; do 22462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22463 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 22464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22465 break 2 22466 fi 22467done 22468 done 22469IFS=$as_save_IFS 22470 22471 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 22472 ;; 22473esac 22474fi 22475PKG_CONFIG=$ac_cv_path_PKG_CONFIG 22476if test -n "$PKG_CONFIG"; then 22477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 22478$as_echo "$PKG_CONFIG" >&6; } 22479else 22480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22481$as_echo "no" >&6; } 22482fi 22483 22484 22485 if test x$PKG_CONFIG != xno; then 22486 IBUS_CFLAGS=`$PKG_CONFIG --cflags ibus-1.0` 22487 save_CFLAGS="$CFLAGS" 22488 CFLAGS="$save_CFLAGS $IBUS_CFLAGS" 22489 ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default" 22490if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then : 22491 have_ibus_ibus_h_hdr=yes 22492else 22493 have_ibus_ibus_h_hdr=no 22494fi 22495 22496 22497 ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default" 22498if test "x$ac_cv_header_sys_inotify_h" = xyes; then : 22499 have_inotify_inotify_h_hdr=yes 22500else 22501 have_inotify_inotify_h_hdr=no 22502fi 22503 22504 22505 CFLAGS="$save_CFLAGS" 22506 if test x$have_ibus_ibus_h_hdr = xyes; then 22507 if test x$enable_ime != xyes; then 22508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5 22509$as_echo "$as_me: WARNING: IME support is required for IBus." >&2;} 22510 have_ibus_ibus_h_hdr=no 22511 elif test x$enable_dbus != xyes; then 22512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5 22513$as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;} 22514 have_ibus_ibus_h_hdr=no 22515 elif test x$have_inotify_inotify_h_hdr != xyes; then 22516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5 22517$as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;} 22518 have_ibus_ibus_h_hdr=no 22519 else 22520 22521$as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h 22522 22523 EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS" 22524 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c" 22525 fi 22526 fi 22527 fi 22528 fi 22529} 22530 22531CheckFcitx() 22532{ 22533 # Check whether --enable-fcitx was given. 22534if test "${enable_fcitx+set}" = set; then : 22535 enableval=$enable_fcitx; 22536else 22537 enable_fcitx=yes 22538fi 22539 22540 if test x$enable_fcitx = xyes; then 22541 # Extract the first word of "pkg-config", so it can be a program name with args. 22542set dummy pkg-config; ac_word=$2 22543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22544$as_echo_n "checking for $ac_word... " >&6; } 22545if ${ac_cv_path_PKG_CONFIG+:} false; then : 22546 $as_echo_n "(cached) " >&6 22547else 22548 case $PKG_CONFIG in 22549 [\\/]* | ?:[\\/]*) 22550 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 22551 ;; 22552 *) 22553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22554for as_dir in $PATH 22555do 22556 IFS=$as_save_IFS 22557 test -z "$as_dir" && as_dir=. 22558 for ac_exec_ext in '' $ac_executable_extensions; do 22559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22560 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 22561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22562 break 2 22563 fi 22564done 22565 done 22566IFS=$as_save_IFS 22567 22568 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 22569 ;; 22570esac 22571fi 22572PKG_CONFIG=$ac_cv_path_PKG_CONFIG 22573if test -n "$PKG_CONFIG"; then 22574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 22575$as_echo "$PKG_CONFIG" >&6; } 22576else 22577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22578$as_echo "no" >&6; } 22579fi 22580 22581 22582 if test x$PKG_CONFIG != xno; then 22583 FCITX_CFLAGS=`$PKG_CONFIG --cflags fcitx` 22584 CFLAGS="$CFLAGS $FCITX_CFLAGS" 22585 ac_fn_c_check_header_mongrel "$LINENO" "fcitx/frontend.h" "ac_cv_header_fcitx_frontend_h" "$ac_includes_default" 22586if test "x$ac_cv_header_fcitx_frontend_h" = xyes; then : 22587 have_fcitx_frontend_h_hdr=yes 22588else 22589 have_fcitx_frontend_h_hdr=no 22590fi 22591 22592 22593 CFLAGS="$save_CFLAGS" 22594 if test x$have_fcitx_frontend_h_hdr = xyes; then 22595 if test x$enable_ime != xyes; then 22596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5 22597$as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;} 22598 have_fcitx_frontend_h_hdr=no 22599 elif test x$enable_dbus != xyes; then 22600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5 22601$as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;} 22602 have_fcitx_frontend_h_hdr=no 22603 else 22604 22605$as_echo "#define HAVE_FCITX_FRONTEND_H 1" >>confdefs.h 22606 22607 EXTRA_CFLAGS="$EXTRA_CFLAGS $FCITX_CFLAGS" 22608 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c" 22609 fi 22610 fi 22611 fi 22612 fi 22613} 22614 22615CheckTslib() 22616{ 22617 # Check whether --enable-input-tslib was given. 22618if test "${enable_input_tslib+set}" = set; then : 22619 enableval=$enable_input_tslib; 22620else 22621 enable_input_tslib=yes 22622fi 22623 22624 if test x$enable_input_tslib = xyes; then 22625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5 22626$as_echo_n "checking for Touchscreen library support... " >&6; } 22627 enable_input_tslib=no 22628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22629/* end confdefs.h. */ 22630 22631 #include "tslib.h" 22632 22633int 22634main () 22635{ 22636 22637 22638 ; 22639 return 0; 22640} 22641_ACEOF 22642if ac_fn_c_try_compile "$LINENO"; then : 22643 22644 enable_input_tslib=yes 22645 22646fi 22647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5 22649$as_echo "$enable_input_tslib" >&6; } 22650 if test x$enable_input_tslib = xyes; then 22651 22652$as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h 22653 22654 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts" 22655 SUMMARY_input="${SUMMARY_input} ts" 22656 fi 22657 fi 22658} 22659 22660CheckPTHREAD() 22661{ 22662 # Check whether --enable-pthreads was given. 22663if test "${enable_pthreads+set}" = set; then : 22664 enableval=$enable_pthreads; 22665else 22666 enable_pthreads=yes 22667fi 22668 22669 # Check whether --enable-pthread-sem was given. 22670if test "${enable_pthread_sem+set}" = set; then : 22671 enableval=$enable_pthread_sem; 22672else 22673 enable_pthread_sem=yes 22674fi 22675 22676 case "$host" in 22677 *-*-android*) 22678 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE" 22679 pthread_lib="" 22680 ;; 22681 *-*-linux*|*-*-uclinux*) 22682 pthread_cflags="-D_REENTRANT" 22683 pthread_lib="-lpthread" 22684 ;; 22685 *-*-bsdi*) 22686 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE" 22687 pthread_lib="" 22688 ;; 22689 *-*-darwin*) 22690 pthread_cflags="-D_THREAD_SAFE" 22691# causes Carbon.p complaints? 22692# pthread_cflags="-D_REENTRANT -D_THREAD_SAFE" 22693 ;; 22694 *-*-freebsd*|*-*-dragonfly*) 22695 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE" 22696 pthread_lib="-pthread" 22697 ;; 22698 *-*-netbsd*) 22699 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE" 22700 pthread_lib="-lpthread" 22701 ;; 22702 *-*-openbsd*) 22703 pthread_cflags="-D_REENTRANT" 22704 pthread_lib="-pthread" 22705 ;; 22706 *-*-solaris2.9) 22707 # From Solaris 9+, posix4's preferred name is rt. 22708 pthread_cflags="-D_REENTRANT" 22709 pthread_lib="-lpthread -lrt" 22710 ;; 22711 *-*-solaris2.10) 22712 # Solaris 10+ merged pthread into libc. 22713 pthread_cflags="-D_REENTRANT" 22714 pthread_lib="-lrt" 22715 ;; 22716 *-*-solaris*) 22717 # Solaris 11+ merged rt into libc. 22718 pthread_cflags="-D_REENTRANT" 22719 pthread_lib="" 22720 ;; 22721 *-*-sysv5*) 22722 pthread_cflags="-D_REENTRANT -Kthread" 22723 pthread_lib="" 22724 ;; 22725 *-*-aix*) 22726 pthread_cflags="-D_REENTRANT -mthreads" 22727 pthread_lib="-lpthread" 22728 ;; 22729 *-*-hpux11*) 22730 pthread_cflags="-D_REENTRANT" 22731 pthread_lib="-L/usr/lib -lpthread" 22732 ;; 22733 *-*-haiku*) 22734 pthread_cflags="-D_REENTRANT" 22735 pthread_lib="" 22736 ;; 22737 *-*-nto*) 22738 pthread_cflags="-D_REENTRANT" 22739 pthread_lib="" 22740 ;; 22741 *) 22742 pthread_cflags="-D_REENTRANT" 22743 pthread_lib="-lpthread" 22744 ;; 22745 esac 22746 if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then 22747 # Save the original compiler flags and libraries 22748 ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS" 22749 # Add the pthread compiler flags and libraries 22750 CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib" 22751 # Check to see if we have pthread support on this system 22752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5 22753$as_echo_n "checking for pthreads... " >&6; } 22754 use_pthreads=no 22755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22756/* end confdefs.h. */ 22757 22758 #include <pthread.h> 22759 22760int 22761main () 22762{ 22763 22764 pthread_attr_t type; 22765 pthread_attr_init(&type); 22766 22767 ; 22768 return 0; 22769} 22770_ACEOF 22771if ac_fn_c_try_link "$LINENO"; then : 22772 22773 use_pthreads=yes 22774 22775fi 22776rm -f core conftest.err conftest.$ac_objext \ 22777 conftest$ac_exeext conftest.$ac_ext 22778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5 22779$as_echo "$use_pthreads" >&6; } 22780 # Restore the compiler flags and libraries 22781 CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs" 22782 22783 # Do futher testing if we have pthread support... 22784 if test x$use_pthreads = xyes; then 22785 22786$as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h 22787 22788 EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags" 22789 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib" 22790 SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags" 22791 22792 # Save the original compiler flags and libraries 22793 ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS" 22794 # Add the pthread compiler flags and libraries 22795 CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib" 22796 22797 # Check to see if recursive mutexes are available 22798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5 22799$as_echo_n "checking for recursive mutexes... " >&6; } 22800 has_recursive_mutexes=no 22801 if test x$has_recursive_mutexes = xno; then 22802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22803/* end confdefs.h. */ 22804 22805 #define _GNU_SOURCE 1 22806 #include <pthread.h> 22807 22808int 22809main () 22810{ 22811 22812 pthread_mutexattr_t attr; 22813 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); 22814 22815 ; 22816 return 0; 22817} 22818_ACEOF 22819if ac_fn_c_try_link "$LINENO"; then : 22820 22821 has_recursive_mutexes=yes 22822 22823$as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h 22824 22825 22826fi 22827rm -f core conftest.err conftest.$ac_objext \ 22828 conftest$ac_exeext conftest.$ac_ext 22829 fi 22830 if test x$has_recursive_mutexes = xno; then 22831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22832/* end confdefs.h. */ 22833 22834 #define _GNU_SOURCE 1 22835 #include <pthread.h> 22836 22837int 22838main () 22839{ 22840 22841 pthread_mutexattr_t attr; 22842 pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP); 22843 22844 ; 22845 return 0; 22846} 22847_ACEOF 22848if ac_fn_c_try_link "$LINENO"; then : 22849 22850 has_recursive_mutexes=yes 22851 22852$as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h 22853 22854 22855fi 22856rm -f core conftest.err conftest.$ac_objext \ 22857 conftest$ac_exeext conftest.$ac_ext 22858 fi 22859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5 22860$as_echo "$has_recursive_mutexes" >&6; } 22861 22862 # Check to see if pthread semaphore support is missing 22863 if test x$enable_pthread_sem = xyes; then 22864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5 22865$as_echo_n "checking for pthread semaphores... " >&6; } 22866 have_pthread_sem=no 22867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22868/* end confdefs.h. */ 22869 22870 #include <pthread.h> 22871 #include <semaphore.h> 22872 22873int 22874main () 22875{ 22876 22877 22878 ; 22879 return 0; 22880} 22881_ACEOF 22882if ac_fn_c_try_compile "$LINENO"; then : 22883 22884 have_pthread_sem=yes 22885 22886fi 22887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5 22889$as_echo "$have_pthread_sem" >&6; } 22890 fi 22891 if test x$have_pthread_sem = xyes; then 22892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5 22893$as_echo_n "checking for sem_timedwait... " >&6; } 22894 have_sem_timedwait=no 22895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22896/* end confdefs.h. */ 22897 22898 #include <pthread.h> 22899 #include <semaphore.h> 22900 22901int 22902main () 22903{ 22904 22905 sem_timedwait(NULL, NULL); 22906 22907 ; 22908 return 0; 22909} 22910_ACEOF 22911if ac_fn_c_try_link "$LINENO"; then : 22912 22913 have_sem_timedwait=yes 22914 22915$as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h 22916 22917 22918fi 22919rm -f core conftest.err conftest.$ac_objext \ 22920 conftest$ac_exeext conftest.$ac_ext 22921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5 22922$as_echo "$have_sem_timedwait" >&6; } 22923 fi 22924 22925 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h> 22926" 22927if test "x$ac_cv_header_pthread_np_h" = xyes; then : 22928 have_pthread_np_h=yes 22929else 22930 have_pthread_np_h=no 22931fi 22932 22933 22934 if test x$have_pthread_np_h = xyes; then 22935 22936$as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h 22937 22938 fi 22939 22940 # Check to see if pthread naming is available 22941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5 22942$as_echo_n "checking for pthread_setname_np... " >&6; } 22943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22944/* end confdefs.h. */ 22945 22946/* Override any GCC internal prototype to avoid an error. 22947 Use char because int might match the return type of a GCC 22948 builtin and then its argument prototype would still apply. */ 22949#ifdef __cplusplus 22950extern "C" 22951#endif 22952char pthread_setname_np (); 22953int 22954main () 22955{ 22956return pthread_setname_np (); 22957 ; 22958 return 0; 22959} 22960_ACEOF 22961if ac_fn_c_try_link "$LINENO"; then : 22962 22963 has_pthread_setname_np=yes 22964 22965$as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h 22966 22967 22968else 22969 22970 has_pthread_setname_np=no 22971 22972fi 22973rm -f core conftest.err conftest.$ac_objext \ 22974 conftest$ac_exeext conftest.$ac_ext 22975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5 22976$as_echo "$has_pthread_setname_np" >&6; } 22977 22978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5 22979$as_echo_n "checking for pthread_set_name_np... " >&6; } 22980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22981/* end confdefs.h. */ 22982 22983/* Override any GCC internal prototype to avoid an error. 22984 Use char because int might match the return type of a GCC 22985 builtin and then its argument prototype would still apply. */ 22986#ifdef __cplusplus 22987extern "C" 22988#endif 22989char pthread_set_name_np (); 22990int 22991main () 22992{ 22993return pthread_set_name_np (); 22994 ; 22995 return 0; 22996} 22997_ACEOF 22998if ac_fn_c_try_link "$LINENO"; then : 22999 23000 has_pthread_set_name_np=yes 23001 23002$as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h 23003 23004 23005else 23006 23007 has_pthread_set_name_np=no 23008 23009fi 23010rm -f core conftest.err conftest.$ac_objext \ 23011 conftest$ac_exeext conftest.$ac_ext 23012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5 23013$as_echo "$has_pthread_set_name_np" >&6; } 23014 23015 # Restore the compiler flags and libraries 23016 CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs" 23017 23018 # Basic thread creation functions 23019 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c" 23020 23021 # Semaphores 23022 # We can fake these with mutexes and condition variables if necessary 23023 if test x$have_pthread_sem = xyes; then 23024 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c" 23025 else 23026 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c" 23027 fi 23028 23029 # Mutexes 23030 # We can fake these with semaphores if necessary 23031 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c" 23032 23033 # Condition variables 23034 # We can fake these with semaphores and mutexes if necessary 23035 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c" 23036 23037 # Thread local storage 23038 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c" 23039 23040 have_threads=yes 23041 fi 23042 fi 23043} 23044 23045CheckWINDOWS() 23046{ 23047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5 23048$as_echo_n "checking Windows compiler... " >&6; } 23049 have_win32_gcc=no 23050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23051/* end confdefs.h. */ 23052 23053 #include <windows.h> 23054 23055int 23056main () 23057{ 23058 23059 23060 ; 23061 return 0; 23062} 23063_ACEOF 23064if ac_fn_c_try_compile "$LINENO"; then : 23065 23066 have_win32_gcc=yes 23067 23068fi 23069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5 23071$as_echo "$have_win32_gcc" >&6; } 23072 if test x$have_win32_gcc != xyes; then 23073 as_fn_error $? " 23074*** Your compiler ($CC) does not produce Windows executables! 23075 " "$LINENO" 5 23076 fi 23077 23078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5 23079$as_echo_n "checking Windows CE... " >&6; } 23080 have_wince=no 23081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23082/* end confdefs.h. */ 23083 23084#if !defined(_WIN32_WCE) && !defined(__MINGW32CE__) 23085#error This is not Windows CE 23086#endif 23087 23088int 23089main () 23090{ 23091 23092 23093 ; 23094 return 0; 23095} 23096_ACEOF 23097if ac_fn_c_try_compile "$LINENO"; then : 23098 23099 have_wince=yes 23100 as_fn_error $? " 23101*** Sorry, Windows CE is no longer supported. 23102 " "$LINENO" 5 23103 23104fi 23105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5 23107$as_echo "$have_wince" >&6; } 23108 23109 # This fixes Windows stack alignment with newer GCC 23110 CheckStackBoundary 23111} 23112 23113CheckDIRECTX() 23114{ 23115 # Check whether --enable-directx was given. 23116if test "${enable_directx+set}" = set; then : 23117 enableval=$enable_directx; 23118else 23119 enable_directx=yes 23120fi 23121 23122 if test x$enable_directx = xyes; then 23123 ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default" 23124if test "x$ac_cv_header_d3d9_h" = xyes; then : 23125 have_d3d=yes 23126fi 23127 23128 23129 ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default" 23130if test "x$ac_cv_header_d3d11_1_h" = xyes; then : 23131 have_d3d11=yes 23132fi 23133 23134 23135 ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default" 23136if test "x$ac_cv_header_ddraw_h" = xyes; then : 23137 have_ddraw=yes 23138fi 23139 23140 23141 ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default" 23142if test "x$ac_cv_header_dsound_h" = xyes; then : 23143 have_dsound=yes 23144fi 23145 23146 23147 ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default" 23148if test "x$ac_cv_header_dinput_h" = xyes; then : 23149 have_dinput=yes 23150fi 23151 23152 23153 ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default" 23154if test "x$ac_cv_header_dxgi_h" = xyes; then : 23155 have_dxgi=yes 23156fi 23157 23158 23159 ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default" 23160if test "x$ac_cv_header_xinput_h" = xyes; then : 23161 have_xinput=yes 23162fi 23163 23164 23165 ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default" 23166if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then : 23167 have_wasapi=yes 23168fi 23169 23170 23171 ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default" 23172if test "x$ac_cv_header_audioclient_h" = xyes; then : 23173 23174else 23175 have_wasapi=no 23176fi 23177 23178 23179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23180/* end confdefs.h. */ 23181 23182#include <windows.h> 23183#include <xinput.h> 23184XINPUT_GAMEPAD_EX x1; 23185 23186int 23187main () 23188{ 23189 23190 ; 23191 return 0; 23192} 23193_ACEOF 23194if ac_fn_c_try_compile "$LINENO"; then : 23195 have_xinput_gamepadex=yes 23196fi 23197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23199/* end confdefs.h. */ 23200 23201#include <windows.h> 23202#include <xinput.h> 23203XINPUT_STATE_EX s1; 23204 23205int 23206main () 23207{ 23208 23209 ; 23210 return 0; 23211} 23212_ACEOF 23213if ac_fn_c_try_compile "$LINENO"; then : 23214 have_xinput_stateex=yes 23215fi 23216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23217 23218 if test x$have_ddraw = xyes; then 23219 23220$as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h 23221 23222 fi 23223 if test x$have_dinput = xyes; then 23224 23225$as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h 23226 23227 fi 23228 if test x$have_dsound = xyes; then 23229 23230$as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h 23231 23232 fi 23233 if test x$have_dxgi = xyes; then 23234 23235$as_echo "#define HAVE_DXGI_H 1" >>confdefs.h 23236 23237 fi 23238 if test x$have_xinput = xyes; then 23239 23240$as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h 23241 23242 fi 23243 if test x$have_xinput_gamepadex = xyes; then 23244 23245$as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h 23246 23247 fi 23248 if test x$have_xinput_stateex = xyes; then 23249 23250$as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h 23251 23252 fi 23253 23254 SUMMARY_video="${SUMMARY_video} directx" 23255 SUMMARY_audio="${SUMMARY_audio} directx" 23256 23257 # Check whether --enable-wasapi was given. 23258if test "${enable_wasapi+set}" = set; then : 23259 enableval=$enable_wasapi; 23260else 23261 enable_wasapi=yes 23262fi 23263 23264 23265 # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers. 23266 # FIXME: ...so force it off for now. 23267 case "$host" in 23268 *-*-cygwin*) 23269 have_dinput=false 23270 ;; 23271 esac 23272 fi 23273} 23274 23275CheckDLOPEN() 23276{ 23277 # Check whether --enable-sdl-dlopen was given. 23278if test "${enable_sdl_dlopen+set}" = set; then : 23279 enableval=$enable_sdl_dlopen; 23280else 23281 enable_sdl_dlopen=yes 23282fi 23283 23284 if test x$enable_sdl_dlopen = xyes; then 23285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5 23286$as_echo_n "checking for dlopen... " >&6; } 23287 have_dlopen=no 23288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23289/* end confdefs.h. */ 23290 23291 #include <dlfcn.h> 23292 23293int 23294main () 23295{ 23296 23297 void *handle = dlopen("", RTLD_NOW); 23298 const char *loaderror = (char *) dlerror(); 23299 23300 ; 23301 return 0; 23302} 23303_ACEOF 23304if ac_fn_c_try_compile "$LINENO"; then : 23305 23306 have_dlopen=yes 23307 23308fi 23309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5 23311$as_echo "$have_dlopen" >&6; } 23312 23313 if test x$have_dlopen = xyes; then 23314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5 23315$as_echo_n "checking for dlopen in -lc... " >&6; } 23316if ${ac_cv_lib_c_dlopen+:} false; then : 23317 $as_echo_n "(cached) " >&6 23318else 23319 ac_check_lib_save_LIBS=$LIBS 23320LIBS="-lc $LIBS" 23321cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23322/* end confdefs.h. */ 23323 23324/* Override any GCC internal prototype to avoid an error. 23325 Use char because int might match the return type of a GCC 23326 builtin and then its argument prototype would still apply. */ 23327#ifdef __cplusplus 23328extern "C" 23329#endif 23330char dlopen (); 23331int 23332main () 23333{ 23334return dlopen (); 23335 ; 23336 return 0; 23337} 23338_ACEOF 23339if ac_fn_c_try_link "$LINENO"; then : 23340 ac_cv_lib_c_dlopen=yes 23341else 23342 ac_cv_lib_c_dlopen=no 23343fi 23344rm -f core conftest.err conftest.$ac_objext \ 23345 conftest$ac_exeext conftest.$ac_ext 23346LIBS=$ac_check_lib_save_LIBS 23347fi 23348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5 23349$as_echo "$ac_cv_lib_c_dlopen" >&6; } 23350if test "x$ac_cv_lib_c_dlopen" = xyes; then : 23351 EXTRA_LDFLAGS="$EXTRA_LDFLAGS" 23352else 23353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 23354$as_echo_n "checking for dlopen in -ldl... " >&6; } 23355if ${ac_cv_lib_dl_dlopen+:} false; then : 23356 $as_echo_n "(cached) " >&6 23357else 23358 ac_check_lib_save_LIBS=$LIBS 23359LIBS="-ldl $LIBS" 23360cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23361/* end confdefs.h. */ 23362 23363/* Override any GCC internal prototype to avoid an error. 23364 Use char because int might match the return type of a GCC 23365 builtin and then its argument prototype would still apply. */ 23366#ifdef __cplusplus 23367extern "C" 23368#endif 23369char dlopen (); 23370int 23371main () 23372{ 23373return dlopen (); 23374 ; 23375 return 0; 23376} 23377_ACEOF 23378if ac_fn_c_try_link "$LINENO"; then : 23379 ac_cv_lib_dl_dlopen=yes 23380else 23381 ac_cv_lib_dl_dlopen=no 23382fi 23383rm -f core conftest.err conftest.$ac_objext \ 23384 conftest$ac_exeext conftest.$ac_ext 23385LIBS=$ac_check_lib_save_LIBS 23386fi 23387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 23388$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 23389if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 23390 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl" 23391else 23392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5 23393$as_echo_n "checking for dlopen in -lltdl... " >&6; } 23394if ${ac_cv_lib_ltdl_dlopen+:} false; then : 23395 $as_echo_n "(cached) " >&6 23396else 23397 ac_check_lib_save_LIBS=$LIBS 23398LIBS="-lltdl $LIBS" 23399cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23400/* end confdefs.h. */ 23401 23402/* Override any GCC internal prototype to avoid an error. 23403 Use char because int might match the return type of a GCC 23404 builtin and then its argument prototype would still apply. */ 23405#ifdef __cplusplus 23406extern "C" 23407#endif 23408char dlopen (); 23409int 23410main () 23411{ 23412return dlopen (); 23413 ; 23414 return 0; 23415} 23416_ACEOF 23417if ac_fn_c_try_link "$LINENO"; then : 23418 ac_cv_lib_ltdl_dlopen=yes 23419else 23420 ac_cv_lib_ltdl_dlopen=no 23421fi 23422rm -f core conftest.err conftest.$ac_objext \ 23423 conftest$ac_exeext conftest.$ac_ext 23424LIBS=$ac_check_lib_save_LIBS 23425fi 23426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5 23427$as_echo "$ac_cv_lib_ltdl_dlopen" >&6; } 23428if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then : 23429 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl" 23430fi 23431 23432fi 23433 23434fi 23435 23436 23437$as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h 23438 23439 SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c" 23440 have_loadso=yes 23441 fi 23442 fi 23443} 23444 23445CheckUSBHID() 23446{ 23447 case "$host" in 23448 *-*-*bsd*) 23449 if test x$enable_joystick = xyes; then 23450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5 23451$as_echo_n "checking for hid_init in -lusbhid... " >&6; } 23452if ${ac_cv_lib_usbhid_hid_init+:} false; then : 23453 $as_echo_n "(cached) " >&6 23454else 23455 ac_check_lib_save_LIBS=$LIBS 23456LIBS="-lusbhid $LIBS" 23457cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23458/* end confdefs.h. */ 23459 23460/* Override any GCC internal prototype to avoid an error. 23461 Use char because int might match the return type of a GCC 23462 builtin and then its argument prototype would still apply. */ 23463#ifdef __cplusplus 23464extern "C" 23465#endif 23466char hid_init (); 23467int 23468main () 23469{ 23470return hid_init (); 23471 ; 23472 return 0; 23473} 23474_ACEOF 23475if ac_fn_c_try_link "$LINENO"; then : 23476 ac_cv_lib_usbhid_hid_init=yes 23477else 23478 ac_cv_lib_usbhid_hid_init=no 23479fi 23480rm -f core conftest.err conftest.$ac_objext \ 23481 conftest$ac_exeext conftest.$ac_ext 23482LIBS=$ac_check_lib_save_LIBS 23483fi 23484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5 23485$as_echo "$ac_cv_lib_usbhid_hid_init" >&6; } 23486if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then : 23487 have_libusbhid=yes 23488fi 23489 23490 if test x$have_libusbhid = xyes; then 23491 ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default" 23492if test "x$ac_cv_header_usbhid_h" = xyes; then : 23493 USB_CFLAGS="-DHAVE_USBHID_H" 23494fi 23495 23496 23497 ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default" 23498if test "x$ac_cv_header_libusbhid_h" = xyes; then : 23499 USB_CFLAGS="-DHAVE_LIBUSBHID_H" 23500fi 23501 23502 23503 USB_LIBS="$USB_LIBS -lusbhid" 23504 else 23505 ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default" 23506if test "x$ac_cv_header_usb_h" = xyes; then : 23507 USB_CFLAGS="-DHAVE_USB_H" 23508fi 23509 23510 23511 ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default" 23512if test "x$ac_cv_header_libusb_h" = xyes; then : 23513 USB_CFLAGS="-DHAVE_LIBUSB_H" 23514fi 23515 23516 23517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5 23518$as_echo_n "checking for hid_init in -lusb... " >&6; } 23519if ${ac_cv_lib_usb_hid_init+:} false; then : 23520 $as_echo_n "(cached) " >&6 23521else 23522 ac_check_lib_save_LIBS=$LIBS 23523LIBS="-lusb $LIBS" 23524cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23525/* end confdefs.h. */ 23526 23527/* Override any GCC internal prototype to avoid an error. 23528 Use char because int might match the return type of a GCC 23529 builtin and then its argument prototype would still apply. */ 23530#ifdef __cplusplus 23531extern "C" 23532#endif 23533char hid_init (); 23534int 23535main () 23536{ 23537return hid_init (); 23538 ; 23539 return 0; 23540} 23541_ACEOF 23542if ac_fn_c_try_link "$LINENO"; then : 23543 ac_cv_lib_usb_hid_init=yes 23544else 23545 ac_cv_lib_usb_hid_init=no 23546fi 23547rm -f core conftest.err conftest.$ac_objext \ 23548 conftest$ac_exeext conftest.$ac_ext 23549LIBS=$ac_check_lib_save_LIBS 23550fi 23551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5 23552$as_echo "$ac_cv_lib_usb_hid_init" >&6; } 23553if test "x$ac_cv_lib_usb_hid_init" = xyes; then : 23554 USB_LIBS="$USB_LIBS -lusb" 23555fi 23556 23557 fi 23558 23559 save_CFLAGS="$CFLAGS" 23560 CFLAGS="$CFLAGS $USB_CFLAGS" 23561 23562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5 23563$as_echo_n "checking for usbhid... " >&6; } 23564 have_usbhid=no 23565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23566/* end confdefs.h. */ 23567 23568 #include <sys/types.h> 23569 #if defined(HAVE_USB_H) 23570 #include <usb.h> 23571 #endif 23572 #ifdef __DragonFly__ 23573 # include <bus/usb/usb.h> 23574 # include <bus/usb/usbhid.h> 23575 #else 23576 # include <dev/usb/usb.h> 23577 # include <dev/usb/usbhid.h> 23578 #endif 23579 #if defined(HAVE_USBHID_H) 23580 #include <usbhid.h> 23581 #elif defined(HAVE_LIBUSB_H) 23582 #include <libusb.h> 23583 #elif defined(HAVE_LIBUSBHID_H) 23584 #include <libusbhid.h> 23585 #endif 23586 23587int 23588main () 23589{ 23590 23591 struct report_desc *repdesc; 23592 struct usb_ctl_report *repbuf; 23593 hid_kind_t hidkind; 23594 23595 ; 23596 return 0; 23597} 23598_ACEOF 23599if ac_fn_c_try_compile "$LINENO"; then : 23600 23601 have_usbhid=yes 23602 23603fi 23604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5 23606$as_echo "$have_usbhid" >&6; } 23607 23608 if test x$have_usbhid = xyes; then 23609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5 23610$as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; } 23611 have_usbhid_ucr_data=no 23612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23613/* end confdefs.h. */ 23614 23615 #include <sys/types.h> 23616 #if defined(HAVE_USB_H) 23617 #include <usb.h> 23618 #endif 23619 #ifdef __DragonFly__ 23620 # include <bus/usb/usb.h> 23621 # include <bus/usb/usbhid.h> 23622 #else 23623 # include <dev/usb/usb.h> 23624 # include <dev/usb/usbhid.h> 23625 #endif 23626 #if defined(HAVE_USBHID_H) 23627 #include <usbhid.h> 23628 #elif defined(HAVE_LIBUSB_H) 23629 #include <libusb.h> 23630 #elif defined(HAVE_LIBUSBHID_H) 23631 #include <libusbhid.h> 23632 #endif 23633 23634int 23635main () 23636{ 23637 23638 struct usb_ctl_report buf; 23639 if (buf.ucr_data) { } 23640 23641 ; 23642 return 0; 23643} 23644_ACEOF 23645if ac_fn_c_try_compile "$LINENO"; then : 23646 23647 have_usbhid_ucr_data=yes 23648 23649fi 23650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23651 if test x$have_usbhid_ucr_data = xyes; then 23652 USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA" 23653 fi 23654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5 23655$as_echo "$have_usbhid_ucr_data" >&6; } 23656 23657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5 23658$as_echo_n "checking for new usbhid API... " >&6; } 23659 have_usbhid_new=no 23660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23661/* end confdefs.h. */ 23662 23663 #include <sys/types.h> 23664 #if defined(HAVE_USB_H) 23665 #include <usb.h> 23666 #endif 23667 #ifdef __DragonFly__ 23668 #include <bus/usb/usb.h> 23669 #include <bus/usb/usbhid.h> 23670 #else 23671 #include <dev/usb/usb.h> 23672 #include <dev/usb/usbhid.h> 23673 #endif 23674 #if defined(HAVE_USBHID_H) 23675 #include <usbhid.h> 23676 #elif defined(HAVE_LIBUSB_H) 23677 #include <libusb.h> 23678 #elif defined(HAVE_LIBUSBHID_H) 23679 #include <libusbhid.h> 23680 #endif 23681 23682int 23683main () 23684{ 23685 23686 report_desc_t d; 23687 hid_start_parse(d, 1, 1); 23688 23689 ; 23690 return 0; 23691} 23692_ACEOF 23693if ac_fn_c_try_compile "$LINENO"; then : 23694 23695 have_usbhid_new=yes 23696 23697fi 23698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23699 if test x$have_usbhid_new = xyes; then 23700 USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW" 23701 fi 23702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5 23703$as_echo "$have_usbhid_new" >&6; } 23704 23705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5 23706$as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; } 23707 have_machine_joystick=no 23708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23709/* end confdefs.h. */ 23710 23711 #include <machine/joystick.h> 23712 23713int 23714main () 23715{ 23716 23717 struct joystick t; 23718 23719 ; 23720 return 0; 23721} 23722_ACEOF 23723if ac_fn_c_try_compile "$LINENO"; then : 23724 23725 have_machine_joystick=yes 23726 23727fi 23728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23729 if test x$have_machine_joystick = xyes; then 23730 23731$as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h 23732 23733 fi 23734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5 23735$as_echo "$have_machine_joystick" >&6; } 23736 23737 23738$as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h 23739 23740 SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c" 23741 EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS" 23742 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS" 23743 have_joystick=yes 23744 fi 23745 CFLAGS="$save_CFLAGS" 23746 fi 23747 ;; 23748 esac 23749} 23750 23751CheckHIDAPI() 23752{ 23753 # The hidraw support doesn't catch Xbox, PS4 and Nintendo controllers, 23754 # so we'll just use libusb when it's available. 23755 # 23756 # Except that libusb requires root permissions to open devices, so that's not generally useful, and we'll disable this by default. 23757 # Check whether --enable-hidapi was given. 23758if test "${enable_hidapi+set}" = set; then : 23759 enableval=$enable_hidapi; 23760else 23761 enable_hidapi=no 23762fi 23763 23764 if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then 23765 hidapi_support=no 23766 # Extract the first word of "pkg-config", so it can be a program name with args. 23767set dummy pkg-config; ac_word=$2 23768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23769$as_echo_n "checking for $ac_word... " >&6; } 23770if ${ac_cv_path_PKG_CONFIG+:} false; then : 23771 $as_echo_n "(cached) " >&6 23772else 23773 case $PKG_CONFIG in 23774 [\\/]* | ?:[\\/]*) 23775 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 23776 ;; 23777 *) 23778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23779for as_dir in $PATH 23780do 23781 IFS=$as_save_IFS 23782 test -z "$as_dir" && as_dir=. 23783 for ac_exec_ext in '' $ac_executable_extensions; do 23784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23785 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 23786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23787 break 2 23788 fi 23789done 23790 done 23791IFS=$as_save_IFS 23792 23793 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 23794 ;; 23795esac 23796fi 23797PKG_CONFIG=$ac_cv_path_PKG_CONFIG 23798if test -n "$PKG_CONFIG"; then 23799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 23800$as_echo "$PKG_CONFIG" >&6; } 23801else 23802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23803$as_echo "no" >&6; } 23804fi 23805 23806 23807 if test x$PKG_CONFIG != xno; then 23808 LIBUSB_CFLAGS=`$PKG_CONFIG --cflags libusb-1.0` 23809 LIBUSB_LDFLAGS=`$PKG_CONFIG --libs libusb-1.0` 23810 save_CFLAGS="$CFLAGS" 23811 CFLAGS="$save_CFLAGS $LIBUSB_CFLAGS" 23812 ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default" 23813if test "x$ac_cv_header_libusb_h" = xyes; then : 23814 have_libusb_h=yes 23815fi 23816 23817 23818 CFLAGS="$save_CFLAGS" 23819 fi 23820 if test x$have_libusb_h = xyes; then 23821 hidapi_support=yes 23822 23823$as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h 23824 23825 EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi" 23826 SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c" 23827 SOURCES="$SOURCES $srcdir/src/hidapi/libusb/hid.c" 23828 EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS" 23829 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LDFLAGS" 23830 fi 23831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi support" >&5 23832$as_echo_n "checking for hidapi support... " >&6; } 23833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5 23834$as_echo "$hidapi_support" >&6; } 23835 fi 23836} 23837 23838CheckClockGettime() 23839{ 23840 # Check whether --enable-clock_gettime was given. 23841if test "${enable_clock_gettime+set}" = set; then : 23842 enableval=$enable_clock_gettime; 23843else 23844 enable_clock_gettime=yes 23845fi 23846 23847 if test x$enable_clock_gettime = xyes; then 23848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 23849$as_echo_n "checking for clock_gettime in -lrt... " >&6; } 23850if ${ac_cv_lib_rt_clock_gettime+:} false; then : 23851 $as_echo_n "(cached) " >&6 23852else 23853 ac_check_lib_save_LIBS=$LIBS 23854LIBS="-lrt $LIBS" 23855cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23856/* end confdefs.h. */ 23857 23858/* Override any GCC internal prototype to avoid an error. 23859 Use char because int might match the return type of a GCC 23860 builtin and then its argument prototype would still apply. */ 23861#ifdef __cplusplus 23862extern "C" 23863#endif 23864char clock_gettime (); 23865int 23866main () 23867{ 23868return clock_gettime (); 23869 ; 23870 return 0; 23871} 23872_ACEOF 23873if ac_fn_c_try_link "$LINENO"; then : 23874 ac_cv_lib_rt_clock_gettime=yes 23875else 23876 ac_cv_lib_rt_clock_gettime=no 23877fi 23878rm -f core conftest.err conftest.$ac_objext \ 23879 conftest$ac_exeext conftest.$ac_ext 23880LIBS=$ac_check_lib_save_LIBS 23881fi 23882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 23883$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } 23884if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : 23885 have_clock_gettime=yes 23886fi 23887 23888 if test x$have_clock_gettime = xyes; then 23889 23890$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 23891 23892 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt" 23893 else 23894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5 23895$as_echo_n "checking for clock_gettime in -lc... " >&6; } 23896if ${ac_cv_lib_c_clock_gettime+:} false; then : 23897 $as_echo_n "(cached) " >&6 23898else 23899 ac_check_lib_save_LIBS=$LIBS 23900LIBS="-lc $LIBS" 23901cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23902/* end confdefs.h. */ 23903 23904/* Override any GCC internal prototype to avoid an error. 23905 Use char because int might match the return type of a GCC 23906 builtin and then its argument prototype would still apply. */ 23907#ifdef __cplusplus 23908extern "C" 23909#endif 23910char clock_gettime (); 23911int 23912main () 23913{ 23914return clock_gettime (); 23915 ; 23916 return 0; 23917} 23918_ACEOF 23919if ac_fn_c_try_link "$LINENO"; then : 23920 ac_cv_lib_c_clock_gettime=yes 23921else 23922 ac_cv_lib_c_clock_gettime=no 23923fi 23924rm -f core conftest.err conftest.$ac_objext \ 23925 conftest$ac_exeext conftest.$ac_ext 23926LIBS=$ac_check_lib_save_LIBS 23927fi 23928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5 23929$as_echo "$ac_cv_lib_c_clock_gettime" >&6; } 23930if test "x$ac_cv_lib_c_clock_gettime" = xyes; then : 23931 have_clock_gettime=yes 23932fi 23933 23934 if test x$have_clock_gettime = xyes; then 23935 23936$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 23937 23938 EXTRA_LDFLAGS="$EXTRA_LDFLAGS" 23939 fi 23940 fi 23941 fi 23942} 23943 23944CheckLinuxVersion() 23945{ 23946 ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default" 23947if test "x$ac_cv_header_linux_version_h" = xyes; then : 23948 have_linux_version_h=yes 23949fi 23950 23951 23952 if test x$have_linux_version_h = xyes; then 23953 EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H" 23954 fi 23955} 23956 23957CheckRPATH() 23958{ 23959 # Check whether --enable-rpath was given. 23960if test "${enable_rpath+set}" = set; then : 23961 enableval=$enable_rpath; 23962else 23963 enable_rpath=yes 23964fi 23965 23966} 23967 23968CheckWarnAll 23969 23970case "$host" in 23971 *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*) 23972 case "$host" in 23973 *-*-android*) 23974 # Android 23975 ARCH=android 23976 ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES" 23977 CFLAGS="$CFLAGS $ANDROID_CFLAGS" 23978 SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS" 23979 EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS" 23980 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid" 23981 SDLMAIN_SOURCES="$srcdir/src/main/android/*.c" 23982 23983 if test x$enable_video = xyes; then 23984 SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c" 23985 # FIXME: confdefs? Not AC_DEFINE? 23986 $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h 23987 SUMMARY_video="${SUMMARY_video} android" 23988 fi 23989 ;; 23990 *-*-linux*) ARCH=linux ;; 23991 *-*-uclinux*) ARCH=linux ;; 23992 *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;; 23993 *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;; 23994 *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;; 23995 *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants 23996 *-*-bsdi*) ARCH=bsdi ;; 23997 *-*-freebsd*) ARCH=freebsd ;; 23998 *-*-dragonfly*) ARCH=freebsd ;; 23999 *-*-netbsd*) ARCH=netbsd ;; 24000 *-*-openbsd*) ARCH=openbsd ;; 24001 *-*-sysv5*) ARCH=sysv5 ;; 24002 *-*-solaris*) ARCH=solaris ;; 24003 *-*-hpux*) ARCH=hpux ;; 24004 *-*-aix*) ARCH=aix ;; 24005 *-*-minix*) ARCH=minix ;; 24006 *-*-nto*) ARCH=nto 24007 CheckQNXVideo 24008 ;; 24009 esac 24010 CheckVisibilityHidden 24011 CheckDeclarationAfterStatement 24012 CheckDummyVideo 24013 CheckDiskAudio 24014 CheckDummyAudio 24015 CheckDLOPEN 24016 CheckOSS 24017 CheckALSA 24018 CheckPulseAudio 24019 CheckJACK 24020 CheckARTSC 24021 CheckESD 24022 CheckNAS 24023 CheckSNDIO 24024 CheckFusionSound 24025 CheckLibSampleRate 24026 # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails! 24027 CheckRPI 24028 CheckX11 24029 CheckDirectFB 24030 CheckKMSDRM 24031 CheckOpenGLX11 24032 CheckOpenGLESX11 24033 CheckVulkan 24034 CheckMir 24035 CheckWayland 24036 CheckLibUDev 24037 CheckDBus 24038 CheckIME 24039 CheckIBus 24040 CheckFcitx 24041 case $ARCH in 24042 linux) 24043 CheckInputEvents 24044 CheckInputKD 24045 ;; 24046 esac 24047 CheckTslib 24048 CheckUSBHID 24049 CheckHIDAPI 24050 CheckPTHREAD 24051 CheckClockGettime 24052 CheckLinuxVersion 24053 CheckRPATH 24054 CheckVivanteVideo 24055 24056 # Set up files for the audio library 24057 if test x$enable_audio = xyes; then 24058 case $ARCH in 24059 sysv5|solaris|hpux) 24060 24061$as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h 24062 24063 SOURCES="$SOURCES $srcdir/src/audio/sun/*.c" 24064 SUMMARY_audio="${SUMMARY_audio} sun" 24065 have_audio=yes 24066 ;; 24067 netbsd) # Don't use this on OpenBSD, it's busted. 24068 24069$as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h 24070 24071 SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c" 24072 SUMMARY_audio="${SUMMARY_audio} netbsd" 24073 have_audio=yes 24074 ;; 24075 aix) 24076 24077$as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h 24078 24079 SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c" 24080 SUMMARY_audio="${SUMMARY_audio} paudio" 24081 have_audio=yes 24082 ;; 24083 android) 24084 24085$as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h 24086 24087 SOURCES="$SOURCES $srcdir/src/audio/android/*.c" 24088 SUMMARY_audio="${SUMMARY_audio} android" 24089 have_audio=yes 24090 ;; 24091 nto) 24092 CheckQNXAudio 24093 ;; 24094 esac 24095 fi 24096 # Set up files for the joystick library 24097 if test x$enable_joystick = xyes; then 24098 case $ARCH in 24099 linux) 24100 24101$as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h 24102 24103 SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c" 24104 SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c" 24105 have_joystick=yes 24106 ;; 24107 android) 24108 24109$as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h 24110 24111 SOURCES="$SOURCES $srcdir/src/joystick/android/*.c" 24112 SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c" 24113 have_joystick=yes 24114 ;; 24115 esac 24116 fi 24117 # Set up files for the haptic library 24118 if test x$enable_haptic = xyes; then 24119 case $ARCH in 24120 linux) 24121 if test x$use_input_events = xyes; then 24122 24123$as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h 24124 24125 SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c" 24126 have_haptic=yes 24127 fi 24128 ;; 24129 android) 24130 24131$as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h 24132 24133 SOURCES="$SOURCES $srcdir/src/haptic/android/*.c" 24134 have_haptic=yes 24135 ;; 24136 esac 24137 fi 24138 # Set up files for the sensor library 24139 if test x$enable_sensor = xyes; then 24140 case $ARCH in 24141 android) 24142 24143$as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h 24144 24145 SOURCES="$SOURCES $srcdir/src/sensor/android/*.c" 24146 have_sensor=yes 24147 ;; 24148 esac 24149 fi 24150 # Set up files for the power library 24151 if test x$enable_power = xyes; then 24152 case $ARCH in 24153 linux) 24154 24155$as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h 24156 24157 SOURCES="$SOURCES $srcdir/src/power/linux/*.c" 24158 have_power=yes 24159 ;; 24160 android) 24161 24162$as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h 24163 24164 SOURCES="$SOURCES $srcdir/src/power/android/*.c" 24165 have_power=yes 24166 ;; 24167 esac 24168 fi 24169 # Set up files for the filesystem library 24170 if test x$enable_filesystem = xyes; then 24171 case $ARCH in 24172 android) 24173 24174$as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h 24175 24176 SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c" 24177 have_filesystem=yes 24178 ;; 24179 *) 24180 24181$as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h 24182 24183 SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c" 24184 have_filesystem=yes 24185 ;; 24186 esac 24187 fi 24188 # Set up files for the timer library 24189 if test x$enable_timers = xyes; then 24190 24191$as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h 24192 24193 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" 24194 have_timers=yes 24195 fi 24196 # Set up files for udev hotplugging support 24197 if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then 24198 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c" 24199 fi 24200 # Set up files for evdev input 24201 if test x$use_input_events = xyes; then 24202 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev*.c" 24203 fi 24204 # Set up other core UNIX files 24205 SOURCES="$SOURCES $srcdir/src/core/unix/*.c" 24206 ;; 24207 *-*-cygwin* | *-*-mingw32*) 24208 ARCH=win32 24209 if test "$build" != "$host"; then # cross-compiling 24210 # Default cross-compile location 24211 ac_default_prefix=/usr/local/cross-tools/$host 24212 else 24213 # Look for the location of the tools and install there 24214 if test "$BUILD_PREFIX" != ""; then 24215 ac_default_prefix=$BUILD_PREFIX 24216 fi 24217 fi 24218 CheckDeclarationAfterStatement 24219 CheckDummyVideo 24220 CheckDiskAudio 24221 CheckDummyAudio 24222 CheckWINDOWS 24223 CheckWINDOWSGL 24224 CheckWINDOWSGLES 24225 CheckVulkan 24226 CheckDIRECTX 24227 24228 # Set up the core platform files 24229 SOURCES="$SOURCES $srcdir/src/core/windows/*.c" 24230 24231 # Set up files for the video library 24232 if test x$enable_video = xyes; then 24233 24234$as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h 24235 24236 SOURCES="$SOURCES $srcdir/src/video/windows/*.c" 24237 have_video=yes 24238 # Check whether --enable-render-d3d was given. 24239if test "${enable_render_d3d+set}" = set; then : 24240 enableval=$enable_render_d3d; 24241else 24242 enable_render_d3d=yes 24243fi 24244 24245 if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then 24246 24247$as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h 24248 24249 fi 24250 if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then 24251 24252$as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h 24253 24254 fi 24255 fi 24256 # Set up files for the audio library 24257 if test x$enable_audio = xyes; then 24258 24259$as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h 24260 24261 SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c" 24262 if test x$have_dsound = xyes; then 24263 24264$as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h 24265 24266 SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c" 24267 fi 24268 if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then 24269 24270$as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h 24271 24272 SUMMARY_audio="${SUMMARY_audio} wasapi" 24273 SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c" 24274 fi 24275 have_audio=yes 24276 fi 24277 # Set up files for the joystick library 24278 if test x$enable_joystick = xyes; then 24279 if test x$have_dinput = xyes -o x$have_xinput = xyes; then 24280 if test x$have_xinput = xyes; then 24281 24282$as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h 24283 24284 fi 24285 if test x$have_dinput = xyes; then 24286 24287$as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h 24288 24289 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8" 24290 fi 24291 else 24292 24293$as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h 24294 24295 fi 24296 SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c" 24297 have_joystick=yes 24298 fi 24299 if test x$enable_haptic = xyes; then 24300 if test x$have_dinput = xyes -o x$have_xinput = xyes; then 24301 if test x$have_xinput = xyes; then 24302 24303$as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h 24304 24305 fi 24306 if test x$have_dinput = xyes; then 24307 24308$as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h 24309 24310 fi 24311 SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c" 24312 have_haptic=yes 24313 fi 24314 fi 24315 if test x$enable_power = xyes; then 24316 24317$as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h 24318 24319 SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c" 24320 have_power=yes 24321 fi 24322 if test x$enable_filesystem = xyes; then 24323 24324$as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h 24325 24326 SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c" 24327 have_filesystem=yes 24328 fi 24329 # Set up files for the thread library 24330 if test x$enable_threads = xyes; then 24331 24332$as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h 24333 24334 SOURCES="$SOURCES $srcdir/src/thread/windows/*.c" 24335 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c" 24336 have_threads=yes 24337 fi 24338 # Set up files for the timer library 24339 if test x$enable_timers = xyes; then 24340 24341$as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h 24342 24343 SOURCES="$SOURCES $srcdir/src/timer/windows/*.c" 24344 have_timers=yes 24345 fi 24346 # Set up files for the shared object loading library 24347 if test x$enable_loadso = xyes; then 24348 24349$as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h 24350 24351 SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c" 24352 have_loadso=yes 24353 fi 24354 # Set up the system libraries we need 24355 if test -f /lib/w32api/libuuid.a; then 24356 LIBUUID=/lib/w32api/libuuid.a 24357 else 24358 LIBUUID=-luuid 24359 fi 24360 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion $LIBUUID -static-libgcc" 24361 # The Windows platform requires special setup 24362 VERSION_SOURCES="$srcdir/src/main/windows/*.rc" 24363 SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c" 24364 SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main" 24365 SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows" 24366 24367 # Check to see if this is a mingw or cygwin build 24368 have_mingw32= 24369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5 24370$as_echo_n "checking for main in -lmingw32... " >&6; } 24371if ${ac_cv_lib_mingw32_main+:} false; then : 24372 $as_echo_n "(cached) " >&6 24373else 24374 ac_check_lib_save_LIBS=$LIBS 24375LIBS="-lmingw32 $LIBS" 24376cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24377/* end confdefs.h. */ 24378 24379 24380int 24381main () 24382{ 24383return main (); 24384 ; 24385 return 0; 24386} 24387_ACEOF 24388if ac_fn_c_try_link "$LINENO"; then : 24389 ac_cv_lib_mingw32_main=yes 24390else 24391 ac_cv_lib_mingw32_main=no 24392fi 24393rm -f core conftest.err conftest.$ac_objext \ 24394 conftest$ac_exeext conftest.$ac_ext 24395LIBS=$ac_check_lib_save_LIBS 24396fi 24397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5 24398$as_echo "$ac_cv_lib_mingw32_main" >&6; } 24399if test "x$ac_cv_lib_mingw32_main" = xyes; then : 24400 have_mingw32=yes 24401fi 24402 24403 if test x$have_mingw32 = xyes; then 24404 SDL_LIBS="-lmingw32 $SDL_LIBS" 24405 else 24406 SDL_LIBS="-lcygwin $SDL_LIBS" 24407 fi 24408 ;; 24409 24410 *-*-beos*) 24411 as_fn_error $? " 24412*** BeOS support has been removed as of SDL 2.0.2. 24413 " "$LINENO" 5 24414 ;; 24415 24416 *-*-haiku*) 24417 ARCH=haiku 24418 ac_default_prefix=/boot/system 24419 CheckDummyVideo 24420 CheckDiskAudio 24421 CheckDummyAudio 24422 CheckDLOPEN 24423 CheckHaikuVideo 24424 CheckHaikuGL 24425 CheckPTHREAD 24426 24427 # Set up files for the audio library 24428 if test x$enable_audio = xyes; then 24429 24430$as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h 24431 24432 SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc" 24433 SUMMARY_audio="${SUMMARY_audio} haiku" 24434 have_audio=yes 24435 fi 24436 # Set up files for the joystick library 24437 if test x$enable_joystick = xyes; then 24438 24439$as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h 24440 24441 SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc" 24442 have_joystick=yes 24443 fi 24444 # Set up files for the timer library 24445 if test x$enable_timers = xyes; then 24446 24447$as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h 24448 24449 SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c" 24450 have_timers=yes 24451 fi 24452 # Set up files for the system power library 24453 if test x$enable_power = xyes; then 24454 24455$as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h 24456 24457 SOURCES="$SOURCES $srcdir/src/power/haiku/*.c" 24458 have_power=yes 24459 fi 24460 # Set up files for the system filesystem library 24461 if test x$enable_filesystem = xyes; then 24462 24463$as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h 24464 24465 SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc" 24466 have_filesystem=yes 24467 fi 24468 # The Haiku platform requires special setup. 24469 SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES" 24470 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding" 24471 # Haiku's x86 spins use libstdc++.r4.so (for binary compat?), but 24472 # other spins, like x86-64, use a more standard "libstdc++.so.*" 24473 as_ac_File=`$as_echo "ac_cv_file_"/boot/system/lib/libstdc++.r4.so"" | $as_tr_sh` 24474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/boot/system/lib/libstdc++.r4.so\"" >&5 24475$as_echo_n "checking for \"/boot/system/lib/libstdc++.r4.so\"... " >&6; } 24476if eval \${$as_ac_File+:} false; then : 24477 $as_echo_n "(cached) " >&6 24478else 24479 test "$cross_compiling" = yes && 24480 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 24481if test -r ""/boot/system/lib/libstdc++.r4.so""; then 24482 eval "$as_ac_File=yes" 24483else 24484 eval "$as_ac_File=no" 24485fi 24486fi 24487eval ac_res=\$$as_ac_File 24488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 24489$as_echo "$ac_res" >&6; } 24490if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 24491 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++.r4" 24492else 24493 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++" 24494fi 24495 24496 ;; 24497 arm*-apple-darwin*|*-ios-*) 24498 ARCH=ios 24499 24500 CheckVisibilityHidden 24501 CheckDeclarationAfterStatement 24502 CheckDummyVideo 24503 CheckDiskAudio 24504 CheckDummyAudio 24505 CheckDLOPEN 24506 CheckMETAL 24507 CheckVulkan 24508 CheckPTHREAD 24509 24510 # Set up files for the audio library 24511 if test x$enable_audio = xyes; then 24512 24513$as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h 24514 24515 SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m" 24516 SUMMARY_audio="${SUMMARY_audio} coreaudio" 24517 have_audio=yes 24518 fi 24519 # Set up files for the joystick library 24520 if test x$enable_joystick = xyes; then 24521 24522$as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h 24523 24524 SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m" 24525 SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c" 24526 have_joystick=yes 24527 fi 24528 # Set up files for the haptic library 24529 #if test x$enable_haptic = xyes; then 24530 # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c" 24531 # have_haptic=yes 24532 # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback" 24533 #fi 24534 # Set up files for the power library 24535 if test x$enable_power = xyes; then 24536 24537$as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h 24538 24539 SOURCES="$SOURCES $srcdir/src/power/uikit/*.m" 24540 have_power=yes 24541 fi 24542 # Set up files for the filesystem library 24543 if test x$enable_filesystem = xyes; then 24544 SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m" 24545 have_filesystem=yes 24546 fi 24547 # Set up additional files for the file library 24548 if test x$enable_file = xyes; then 24549 24550$as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h 24551 24552 SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m" 24553 fi 24554 # Set up files for the timer library 24555 if test x$enable_timers = xyes; then 24556 24557$as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h 24558 24559 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" 24560 have_timers=yes 24561 fi 24562 # Set up other core UNIX files 24563 SOURCES="$SOURCES $srcdir/src/core/unix/*.c" 24564 # The iOS platform requires special setup. 24565 24566$as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h 24567 24568 24569$as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h 24570 24571 24572$as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h 24573 24574 24575$as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h 24576 24577 24578$as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h 24579 24580 SOURCES="$SOURCES $srcdir/src/video/uikit/*.m" 24581 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc" 24582 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation" 24583 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox" 24584 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio" 24585 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics" 24586 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion" 24587 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation" 24588 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController" 24589 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES" 24590 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore" 24591 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit" 24592 24593 if test x$enable_render = xyes -a x$enable_render_metal = xyes; then 24594 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal" 24595 fi 24596 ;; 24597 *-*-darwin* ) 24598 # This could be either full "Mac OS X", or plain "Darwin" which is 24599 # just the OS X kernel sans upper layers like Carbon and Cocoa. 24600 # Next line is broken, and a few files below require Mac OS X (full) 24601 ARCH=macosx 24602 24603 # Mac OS X builds with both the Carbon and OSX APIs at the moment 24604 EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON" 24605 EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX" 24606 24607 CheckVisibilityHidden 24608 CheckDeclarationAfterStatement 24609 CheckDummyVideo 24610 CheckDiskAudio 24611 CheckDummyAudio 24612 CheckDLOPEN 24613 CheckCOCOA 24614 CheckMETAL 24615 CheckX11 24616 CheckMacGL 24617 CheckMacGLES 24618 CheckOpenGLX11 24619 CheckVulkan 24620 CheckPTHREAD 24621 24622 # Set up files for the audio library 24623 if test x$enable_audio = xyes; then 24624 24625$as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h 24626 24627 SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m" 24628 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox" 24629 SUMMARY_audio="${SUMMARY_audio} coreaudio" 24630 have_audio=yes 24631 fi 24632 # Set up files for the joystick library 24633 if test x$enable_joystick = xyes; then 24634 24635$as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h 24636 24637 24638$as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h 24639 24640 SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c" 24641 SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c" 24642 SOURCES="$SOURCES $srcdir/src/hidapi/mac/hid.c" 24643 EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi" 24644 have_joystick=yes 24645 fi 24646 # Set up files for the haptic library 24647 if test x$enable_haptic = xyes; then 24648 24649$as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h 24650 24651 SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c" 24652 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback" 24653 have_haptic=yes 24654 fi 24655 # Set up files for the power library 24656 if test x$enable_power = xyes; then 24657 24658$as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h 24659 24660 SOURCES="$SOURCES $srcdir/src/power/macosx/*.c" 24661 have_power=yes 24662 fi 24663 # Set up files for the filesystem library 24664 if test x$enable_filesystem = xyes; then 24665 24666$as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h 24667 24668 SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m" 24669 have_filesystem=yes 24670 fi 24671 # Set up files for the timer library 24672 if test x$enable_timers = xyes; then 24673 24674$as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h 24675 24676 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" 24677 have_timers=yes 24678 fi 24679 # Set up additional files for the file library 24680 if test x$enable_file = xyes; then 24681 SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m" 24682 fi 24683 # Set up other core UNIX files 24684 SOURCES="$SOURCES $srcdir/src/core/unix/*.c" 24685 # The Mac OS X platform requires special setup. 24686 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc" 24687 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo" 24688 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa" 24689 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon" 24690 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit" 24691 24692 if test x$enable_render = xyes -a x$enable_render_metal = xyes; then 24693 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal" 24694 fi 24695 ;; 24696 *-nacl|*-pnacl) 24697 ARCH=nacl 24698 CheckNativeClient 24699 CheckDummyAudio 24700 CheckDummyVideo 24701 CheckInputEvents 24702 CheckPTHREAD 24703 24704 # Set up files for the timer library 24705 if test x$enable_timers = xyes; then 24706 24707$as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h 24708 24709 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" 24710 have_timers=yes 24711 fi 24712 24713 if test x$enable_filesystem = xyes; then 24714 24715$as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h 24716 24717 SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c" 24718 have_filesystem=yes 24719 fi 24720 ;; 24721 *-*-emscripten* ) 24722 if test x$enable_video = xyes; then 24723 24724$as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h 24725 24726 SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c" 24727 have_video=yes 24728 SUMMARY_video="${SUMMARY_video} emscripten" 24729 fi 24730 24731 if test x$enable_audio = xyes; then 24732 24733$as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h 24734 24735 SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c" 24736 have_audio=yes 24737 SUMMARY_audio="${SUMMARY_audio} emscripten" 24738 fi 24739 24740 CheckVisibilityHidden 24741 CheckDeclarationAfterStatement 24742 CheckDummyVideo 24743 CheckDiskAudio 24744 CheckDummyAudio 24745 CheckDLOPEN 24746 CheckClockGettime 24747 CheckEmscriptenGLES 24748 24749 # Set up files for the power library 24750 if test x$enable_power = xyes; then 24751 24752$as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h 24753 24754 SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c" 24755 have_power=yes 24756 fi 24757 24758 # Set up files for the power library 24759 if test x$enable_joystick = xyes; then 24760 24761$as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h 24762 24763 SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c" 24764 have_joystick=yes 24765 fi 24766 24767 # Set up files for the filesystem library 24768 if test x$enable_filesystem = xyes; then 24769 24770$as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h 24771 24772 SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c" 24773 have_filesystem=yes 24774 fi 24775 # Set up files for the timer library 24776 if test x$enable_timers = xyes; then 24777 24778$as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h 24779 24780 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" 24781 have_timers=yes 24782 fi 24783 ;; 24784 *) 24785 as_fn_error $? " 24786*** Unsupported host: Please add to configure.in 24787 " "$LINENO" 5 24788 ;; 24789esac 24790 24791# Verify that we have all the platform specific files we need 24792 24793if test x$have_joystick != xyes; then 24794 if test x$enable_joystick = xyes; then 24795 24796$as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h 24797 24798 fi 24799 SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c" 24800fi 24801if test x$have_haptic != xyes; then 24802 if test x$enable_haptic = xyes; then 24803 24804$as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h 24805 24806 fi 24807 SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c" 24808fi 24809if test x$have_sensor != xyes; then 24810 if test x$enable_sensor = xyes; then 24811 24812$as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h 24813 24814 fi 24815 SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c" 24816fi 24817if test x$have_threads != xyes; then 24818 if test x$enable_threads = xyes; then 24819 24820$as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h 24821 24822 fi 24823 SOURCES="$SOURCES $srcdir/src/thread/generic/*.c" 24824fi 24825if test x$have_timers != xyes; then 24826 if test x$enable_timers = xyes; then 24827 24828$as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h 24829 24830 fi 24831 SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c" 24832fi 24833if test x$have_filesystem != xyes; then 24834 if test x$enable_filesystem = xyes; then 24835 24836$as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h 24837 24838 fi 24839 SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c" 24840fi 24841if test x$have_loadso != xyes; then 24842 if test x$enable_loadso = xyes; then 24843 24844$as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h 24845 24846 fi 24847 SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c" 24848fi 24849if test x$SDLMAIN_SOURCES = x; then 24850 SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c" 24851fi 24852SDLTEST_SOURCES="$srcdir/src/test/*.c" 24853 24854if test x$video_wayland = xyes; then 24855 WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do echo -n "\$p" |sed 's,\\.xml\$, ,g' ; done` 24856 WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-protocol.c " ; done` 24857 WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-client-protocol.h " ; done` 24858 GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES" 24859 GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS" 24860 24861 WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\ 24862 echo ;\ 24863 echo "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\ 24864 echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\ 24865 echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\ 24866 echo ;\ 24867 echo "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\ 24868 echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\ 24869 echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@" ;\ 24870 echo ;\ 24871 echo "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\ 24872 echo " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\ 24873 done ;\ 24874 echo ;\ 24875 for s in $WAYLAND_SOURCES ; do echo -n "\$s:" ; for p in $WAYLAND_PROTOCOLS ; do echo -n " \\$(gen)/\$p-client-protocol.h" ; done ; echo ; done ; echo` 24876fi 24877 24878OBJECTS=`echo $SOURCES` 24879DEPENDS=`echo $SOURCES | tr ' ' '\n'` 24880for EXT in asm cc m c S; do 24881 OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'` 24882 DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\ 24883\\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\ 24884 \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"` 24885done 24886 24887GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'` 24888 24889VERSION_OBJECTS=`echo $VERSION_SOURCES` 24890VERSION_DEPENDS=`echo $VERSION_SOURCES` 24891VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'` 24892VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\ 24893\\$(objects)/\\2.o: \\1/\\2.rc\\\\ 24894 \\$(WINDRES) \\$< \\$@,g"` 24895 24896SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES` 24897SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES` 24898SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'` 24899SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\ 24900\\$(objects)/\\2.lo: \\1/\\2.c\\\\ 24901 \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"` 24902 24903SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES` 24904SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES` 24905SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'` 24906SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\ 24907\\$(objects)/\\2.lo: \\1/\\2.c\\\\ 24908 \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"` 24909 24910# Set runtime shared library paths as needed 24911 24912if test "x$enable_rpath" = "xyes"; then 24913 if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then 24914 SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}" 24915 24916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5 24917$as_echo_n "checking for linker option --enable-new-dtags... " >&6; } 24918 have_enable_new_dtags=no 24919 save_LDFLAGS="$LDFLAGS" 24920 LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags" 24921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24922/* end confdefs.h. */ 24923 24924 24925int 24926main () 24927{ 24928 24929 24930 ; 24931 return 0; 24932} 24933_ACEOF 24934if ac_fn_c_try_link "$LINENO"; then : 24935 24936 have_enable_new_dtags=yes 24937 SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags" 24938 24939fi 24940rm -f core conftest.err conftest.$ac_objext \ 24941 conftest$ac_exeext conftest.$ac_ext 24942 LDFLAGS="$save_LDFLAGS" 24943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5 24944$as_echo "$have_enable_new_dtags" >&6; } 24945 fi 24946 if test $ARCH = solaris; then 24947 SDL_RLD_FLAGS="-R\${libdir}" 24948 fi 24949else 24950 SDL_RLD_FLAGS="" 24951fi 24952 24953SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS" 24954 24955 24956 24957 24958 24959if test x$enable_shared = xyes; then 24960 ENABLE_SHARED_TRUE= 24961 ENABLE_SHARED_FALSE="#" 24962else 24963 ENABLE_SHARED_TRUE="#" 24964 ENABLE_SHARED_FALSE= 24965fi 24966if test x$enable_static = xyes; then 24967 ENABLE_STATIC_TRUE= 24968 ENABLE_STATIC_FALSE="#" 24969else 24970 ENABLE_STATIC_TRUE="#" 24971 ENABLE_STATIC_FALSE= 24972fi 24973 24974 24975 24976 24977 24978 24979 24980 24981 24982 24983 24984 24985 24986 24987 24988 24989 24990 24991 24992 24993cat >Makefile.rules <<__EOF__ 24994 24995# Build rules for objects 24996-include \$(OBJECTS:.lo=.d) 24997 24998# Special dependency for SDL.c, since it depends on SDL_revision.h 24999$srcdir/src/SDL.c: update-revision 25000$DEPENDS 25001$VERSION_DEPENDS 25002$SDLMAIN_DEPENDS 25003$SDLTEST_DEPENDS 25004$WAYLAND_PROTOCOLS_DEPENDS 25005__EOF__ 25006 25007ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake SDL2.spec sdl2.pc" 25008 25009ac_config_commands="$ac_config_commands sdl2_config" 25010 25011 25012SUMMARY="SDL2 Configure Summary:\n" 25013if test x$enable_shared = xyes; then 25014 SUMMARY="${SUMMARY}Building Shared Libraries\n" 25015fi 25016if test x$enable_static = xyes; then 25017 SUMMARY="${SUMMARY}Building Static Libraries\n" 25018fi 25019SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n" 25020SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n" 25021SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n" 25022SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n" 25023if test x$have_x = xyes; then 25024 SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n" 25025fi 25026SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n" 25027if test x$have_samplerate_h_hdr = xyes; then 25028 SUMMARY="${SUMMARY}Using libsamplerate : YES\n" 25029else 25030 SUMMARY="${SUMMARY}Using libsamplerate : NO\n" 25031fi 25032if test x$have_libudev_h_hdr = xyes; then 25033 SUMMARY="${SUMMARY}Using libudev : YES\n" 25034else 25035 SUMMARY="${SUMMARY}Using libudev : NO\n" 25036fi 25037if test x$have_dbus_dbus_h_hdr = xyes; then 25038 SUMMARY="${SUMMARY}Using dbus : YES\n" 25039else 25040 SUMMARY="${SUMMARY}Using dbus : NO\n" 25041fi 25042if test x$enable_ime = xyes; then 25043 SUMMARY="${SUMMARY}Using ime : YES\n" 25044else 25045 SUMMARY="${SUMMARY}Using ime : NO\n" 25046fi 25047if test x$have_ibus_ibus_h_hdr = xyes; then 25048 SUMMARY="${SUMMARY}Using ibus : YES\n" 25049else 25050 SUMMARY="${SUMMARY}Using ibus : NO\n" 25051fi 25052if test x$have_fcitx_frontend_h_hdr = xyes; then 25053 SUMMARY="${SUMMARY}Using fcitx : YES\n" 25054else 25055 SUMMARY="${SUMMARY}Using fcitx : NO\n" 25056fi 25057ac_config_commands="$ac_config_commands summary" 25058 25059 25060cat >confcache <<\_ACEOF 25061# This file is a shell script that caches the results of configure 25062# tests run on this system so they can be shared between configure 25063# scripts and configure runs, see configure's option --config-cache. 25064# It is not useful on other systems. If it contains results you don't 25065# want to keep, you may remove or edit it. 25066# 25067# config.status only pays attention to the cache file if you give it 25068# the --recheck option to rerun configure. 25069# 25070# `ac_cv_env_foo' variables (set or unset) will be overridden when 25071# loading this file, other *unset* `ac_cv_foo' will be assigned the 25072# following values. 25073 25074_ACEOF 25075 25076# The following way of writing the cache mishandles newlines in values, 25077# but we know of no workaround that is simple, portable, and efficient. 25078# So, we kill variables containing newlines. 25079# Ultrix sh set writes to stderr and can't be redirected directly, 25080# and sets the high bit in the cache file unless we assign to the vars. 25081( 25082 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 25083 eval ac_val=\$$ac_var 25084 case $ac_val in #( 25085 *${as_nl}*) 25086 case $ac_var in #( 25087 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 25088$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 25089 esac 25090 case $ac_var in #( 25091 _ | IFS | as_nl) ;; #( 25092 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 25093 *) { eval $ac_var=; unset $ac_var;} ;; 25094 esac ;; 25095 esac 25096 done 25097 25098 (set) 2>&1 | 25099 case $as_nl`(ac_space=' '; set) 2>&1` in #( 25100 *${as_nl}ac_space=\ *) 25101 # `set' does not quote correctly, so add quotes: double-quote 25102 # substitution turns \\\\ into \\, and sed turns \\ into \. 25103 sed -n \ 25104 "s/'/'\\\\''/g; 25105 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 25106 ;; #( 25107 *) 25108 # `set' quotes correctly as required by POSIX, so do not add quotes. 25109 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 25110 ;; 25111 esac | 25112 sort 25113) | 25114 sed ' 25115 /^ac_cv_env_/b end 25116 t clear 25117 :clear 25118 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 25119 t end 25120 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 25121 :end' >>confcache 25122if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 25123 if test -w "$cache_file"; then 25124 if test "x$cache_file" != "x/dev/null"; then 25125 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 25126$as_echo "$as_me: updating cache $cache_file" >&6;} 25127 if test ! -f "$cache_file" || test -h "$cache_file"; then 25128 cat confcache >"$cache_file" 25129 else 25130 case $cache_file in #( 25131 */* | ?:*) 25132 mv -f confcache "$cache_file"$$ && 25133 mv -f "$cache_file"$$ "$cache_file" ;; #( 25134 *) 25135 mv -f confcache "$cache_file" ;; 25136 esac 25137 fi 25138 fi 25139 else 25140 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 25141$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 25142 fi 25143fi 25144rm -f confcache 25145 25146test "x$prefix" = xNONE && prefix=$ac_default_prefix 25147# Let make expand exec_prefix. 25148test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 25149 25150DEFS=-DHAVE_CONFIG_H 25151 25152ac_libobjs= 25153ac_ltlibobjs= 25154U= 25155for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 25156 # 1. Remove the extension, and $U if already installed. 25157 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 25158 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 25159 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 25160 # will be set to the directory where LIBOBJS objects are built. 25161 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 25162 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 25163done 25164LIBOBJS=$ac_libobjs 25165 25166LTLIBOBJS=$ac_ltlibobjs 25167 25168 25169 25170: "${CONFIG_STATUS=./config.status}" 25171ac_write_fail=0 25172ac_clean_files_save=$ac_clean_files 25173ac_clean_files="$ac_clean_files $CONFIG_STATUS" 25174{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 25175$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 25176as_write_fail=0 25177cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 25178#! $SHELL 25179# Generated by $as_me. 25180# Run this file to recreate the current configuration. 25181# Compiler output produced by configure, useful for debugging 25182# configure, is in config.log if it exists. 25183 25184debug=false 25185ac_cs_recheck=false 25186ac_cs_silent=false 25187 25188SHELL=\${CONFIG_SHELL-$SHELL} 25189export SHELL 25190_ASEOF 25191cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 25192## -------------------- ## 25193## M4sh Initialization. ## 25194## -------------------- ## 25195 25196# Be more Bourne compatible 25197DUALCASE=1; export DUALCASE # for MKS sh 25198if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 25199 emulate sh 25200 NULLCMD=: 25201 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25202 # is contrary to our usage. Disable this feature. 25203 alias -g '${1+"$@"}'='"$@"' 25204 setopt NO_GLOB_SUBST 25205else 25206 case `(set -o) 2>/dev/null` in #( 25207 *posix*) : 25208 set -o posix ;; #( 25209 *) : 25210 ;; 25211esac 25212fi 25213 25214 25215as_nl=' 25216' 25217export as_nl 25218# Printing a long string crashes Solaris 7 /usr/bin/printf. 25219as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 25220as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 25221as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 25222# Prefer a ksh shell builtin over an external printf program on Solaris, 25223# but without wasting forks for bash or zsh. 25224if test -z "$BASH_VERSION$ZSH_VERSION" \ 25225 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 25226 as_echo='print -r --' 25227 as_echo_n='print -rn --' 25228elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 25229 as_echo='printf %s\n' 25230 as_echo_n='printf %s' 25231else 25232 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 25233 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 25234 as_echo_n='/usr/ucb/echo -n' 25235 else 25236 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 25237 as_echo_n_body='eval 25238 arg=$1; 25239 case $arg in #( 25240 *"$as_nl"*) 25241 expr "X$arg" : "X\\(.*\\)$as_nl"; 25242 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 25243 esac; 25244 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 25245 ' 25246 export as_echo_n_body 25247 as_echo_n='sh -c $as_echo_n_body as_echo' 25248 fi 25249 export as_echo_body 25250 as_echo='sh -c $as_echo_body as_echo' 25251fi 25252 25253# The user is always right. 25254if test "${PATH_SEPARATOR+set}" != set; then 25255 PATH_SEPARATOR=: 25256 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 25257 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 25258 PATH_SEPARATOR=';' 25259 } 25260fi 25261 25262 25263# IFS 25264# We need space, tab and new line, in precisely that order. Quoting is 25265# there to prevent editors from complaining about space-tab. 25266# (If _AS_PATH_WALK were called with IFS unset, it would disable word 25267# splitting by setting IFS to empty value.) 25268IFS=" "" $as_nl" 25269 25270# Find who we are. Look in the path if we contain no directory separator. 25271as_myself= 25272case $0 in #(( 25273 *[\\/]* ) as_myself=$0 ;; 25274 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25275for as_dir in $PATH 25276do 25277 IFS=$as_save_IFS 25278 test -z "$as_dir" && as_dir=. 25279 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 25280 done 25281IFS=$as_save_IFS 25282 25283 ;; 25284esac 25285# We did not find ourselves, most probably we were run as `sh COMMAND' 25286# in which case we are not to be found in the path. 25287if test "x$as_myself" = x; then 25288 as_myself=$0 25289fi 25290if test ! -f "$as_myself"; then 25291 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 25292 exit 1 25293fi 25294 25295# Unset variables that we do not need and which cause bugs (e.g. in 25296# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 25297# suppresses any "Segmentation fault" message there. '((' could 25298# trigger a bug in pdksh 5.2.14. 25299for as_var in BASH_ENV ENV MAIL MAILPATH 25300do eval test x\${$as_var+set} = xset \ 25301 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 25302done 25303PS1='$ ' 25304PS2='> ' 25305PS4='+ ' 25306 25307# NLS nuisances. 25308LC_ALL=C 25309export LC_ALL 25310LANGUAGE=C 25311export LANGUAGE 25312 25313# CDPATH. 25314(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 25315 25316 25317# as_fn_error STATUS ERROR [LINENO LOG_FD] 25318# ---------------------------------------- 25319# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 25320# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 25321# script with STATUS, using 1 if that was 0. 25322as_fn_error () 25323{ 25324 as_status=$1; test $as_status -eq 0 && as_status=1 25325 if test "$4"; then 25326 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 25327 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 25328 fi 25329 $as_echo "$as_me: error: $2" >&2 25330 as_fn_exit $as_status 25331} # as_fn_error 25332 25333 25334# as_fn_set_status STATUS 25335# ----------------------- 25336# Set $? to STATUS, without forking. 25337as_fn_set_status () 25338{ 25339 return $1 25340} # as_fn_set_status 25341 25342# as_fn_exit STATUS 25343# ----------------- 25344# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 25345as_fn_exit () 25346{ 25347 set +e 25348 as_fn_set_status $1 25349 exit $1 25350} # as_fn_exit 25351 25352# as_fn_unset VAR 25353# --------------- 25354# Portably unset VAR. 25355as_fn_unset () 25356{ 25357 { eval $1=; unset $1;} 25358} 25359as_unset=as_fn_unset 25360# as_fn_append VAR VALUE 25361# ---------------------- 25362# Append the text in VALUE to the end of the definition contained in VAR. Take 25363# advantage of any shell optimizations that allow amortized linear growth over 25364# repeated appends, instead of the typical quadratic growth present in naive 25365# implementations. 25366if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 25367 eval 'as_fn_append () 25368 { 25369 eval $1+=\$2 25370 }' 25371else 25372 as_fn_append () 25373 { 25374 eval $1=\$$1\$2 25375 } 25376fi # as_fn_append 25377 25378# as_fn_arith ARG... 25379# ------------------ 25380# Perform arithmetic evaluation on the ARGs, and store the result in the 25381# global $as_val. Take advantage of shells that can avoid forks. The arguments 25382# must be portable across $(()) and expr. 25383if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 25384 eval 'as_fn_arith () 25385 { 25386 as_val=$(( $* )) 25387 }' 25388else 25389 as_fn_arith () 25390 { 25391 as_val=`expr "$@" || test $? -eq 1` 25392 } 25393fi # as_fn_arith 25394 25395 25396if expr a : '\(a\)' >/dev/null 2>&1 && 25397 test "X`expr 00001 : '.*\(...\)'`" = X001; then 25398 as_expr=expr 25399else 25400 as_expr=false 25401fi 25402 25403if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 25404 as_basename=basename 25405else 25406 as_basename=false 25407fi 25408 25409if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 25410 as_dirname=dirname 25411else 25412 as_dirname=false 25413fi 25414 25415as_me=`$as_basename -- "$0" || 25416$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 25417 X"$0" : 'X\(//\)$' \| \ 25418 X"$0" : 'X\(/\)' \| . 2>/dev/null || 25419$as_echo X/"$0" | 25420 sed '/^.*\/\([^/][^/]*\)\/*$/{ 25421 s//\1/ 25422 q 25423 } 25424 /^X\/\(\/\/\)$/{ 25425 s//\1/ 25426 q 25427 } 25428 /^X\/\(\/\).*/{ 25429 s//\1/ 25430 q 25431 } 25432 s/.*/./; q'` 25433 25434# Avoid depending upon Character Ranges. 25435as_cr_letters='abcdefghijklmnopqrstuvwxyz' 25436as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 25437as_cr_Letters=$as_cr_letters$as_cr_LETTERS 25438as_cr_digits='0123456789' 25439as_cr_alnum=$as_cr_Letters$as_cr_digits 25440 25441ECHO_C= ECHO_N= ECHO_T= 25442case `echo -n x` in #((((( 25443-n*) 25444 case `echo 'xy\c'` in 25445 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 25446 xy) ECHO_C='\c';; 25447 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 25448 ECHO_T=' ';; 25449 esac;; 25450*) 25451 ECHO_N='-n';; 25452esac 25453 25454rm -f conf$$ conf$$.exe conf$$.file 25455if test -d conf$$.dir; then 25456 rm -f conf$$.dir/conf$$.file 25457else 25458 rm -f conf$$.dir 25459 mkdir conf$$.dir 2>/dev/null 25460fi 25461if (echo >conf$$.file) 2>/dev/null; then 25462 if ln -s conf$$.file conf$$ 2>/dev/null; then 25463 as_ln_s='ln -s' 25464 # ... but there are two gotchas: 25465 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 25466 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 25467 # In both cases, we have to default to `cp -pR'. 25468 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 25469 as_ln_s='cp -pR' 25470 elif ln conf$$.file conf$$ 2>/dev/null; then 25471 as_ln_s=ln 25472 else 25473 as_ln_s='cp -pR' 25474 fi 25475else 25476 as_ln_s='cp -pR' 25477fi 25478rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 25479rmdir conf$$.dir 2>/dev/null 25480 25481 25482# as_fn_mkdir_p 25483# ------------- 25484# Create "$as_dir" as a directory, including parents if necessary. 25485as_fn_mkdir_p () 25486{ 25487 25488 case $as_dir in #( 25489 -*) as_dir=./$as_dir;; 25490 esac 25491 test -d "$as_dir" || eval $as_mkdir_p || { 25492 as_dirs= 25493 while :; do 25494 case $as_dir in #( 25495 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 25496 *) as_qdir=$as_dir;; 25497 esac 25498 as_dirs="'$as_qdir' $as_dirs" 25499 as_dir=`$as_dirname -- "$as_dir" || 25500$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25501 X"$as_dir" : 'X\(//\)[^/]' \| \ 25502 X"$as_dir" : 'X\(//\)$' \| \ 25503 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 25504$as_echo X"$as_dir" | 25505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25506 s//\1/ 25507 q 25508 } 25509 /^X\(\/\/\)[^/].*/{ 25510 s//\1/ 25511 q 25512 } 25513 /^X\(\/\/\)$/{ 25514 s//\1/ 25515 q 25516 } 25517 /^X\(\/\).*/{ 25518 s//\1/ 25519 q 25520 } 25521 s/.*/./; q'` 25522 test -d "$as_dir" && break 25523 done 25524 test -z "$as_dirs" || eval "mkdir $as_dirs" 25525 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 25526 25527 25528} # as_fn_mkdir_p 25529if mkdir -p . 2>/dev/null; then 25530 as_mkdir_p='mkdir -p "$as_dir"' 25531else 25532 test -d ./-p && rmdir ./-p 25533 as_mkdir_p=false 25534fi 25535 25536 25537# as_fn_executable_p FILE 25538# ----------------------- 25539# Test if FILE is an executable regular file. 25540as_fn_executable_p () 25541{ 25542 test -f "$1" && test -x "$1" 25543} # as_fn_executable_p 25544as_test_x='test -x' 25545as_executable_p=as_fn_executable_p 25546 25547# Sed expression to map a string onto a valid CPP name. 25548as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 25549 25550# Sed expression to map a string onto a valid variable name. 25551as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 25552 25553 25554exec 6>&1 25555## ----------------------------------- ## 25556## Main body of $CONFIG_STATUS script. ## 25557## ----------------------------------- ## 25558_ASEOF 25559test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 25560 25561cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25562# Save the log message, to keep $0 and so on meaningful, and to 25563# report actual input values of CONFIG_FILES etc. instead of their 25564# values after options handling. 25565ac_log=" 25566This file was extended by $as_me, which was 25567generated by GNU Autoconf 2.69. Invocation command line was 25568 25569 CONFIG_FILES = $CONFIG_FILES 25570 CONFIG_HEADERS = $CONFIG_HEADERS 25571 CONFIG_LINKS = $CONFIG_LINKS 25572 CONFIG_COMMANDS = $CONFIG_COMMANDS 25573 $ $0 $@ 25574 25575on `(hostname || uname -n) 2>/dev/null | sed 1q` 25576" 25577 25578_ACEOF 25579 25580case $ac_config_files in *" 25581"*) set x $ac_config_files; shift; ac_config_files=$*;; 25582esac 25583 25584case $ac_config_headers in *" 25585"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 25586esac 25587 25588 25589cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25590# Files that config.status was made for. 25591config_files="$ac_config_files" 25592config_headers="$ac_config_headers" 25593config_commands="$ac_config_commands" 25594 25595_ACEOF 25596 25597cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25598ac_cs_usage="\ 25599\`$as_me' instantiates files and other configuration actions 25600from templates according to the current configuration. Unless the files 25601and actions are specified as TAGs, all are instantiated by default. 25602 25603Usage: $0 [OPTION]... [TAG]... 25604 25605 -h, --help print this help, then exit 25606 -V, --version print version number and configuration settings, then exit 25607 --config print configuration, then exit 25608 -q, --quiet, --silent 25609 do not print progress messages 25610 -d, --debug don't remove temporary files 25611 --recheck update $as_me by reconfiguring in the same conditions 25612 --file=FILE[:TEMPLATE] 25613 instantiate the configuration file FILE 25614 --header=FILE[:TEMPLATE] 25615 instantiate the configuration header FILE 25616 25617Configuration files: 25618$config_files 25619 25620Configuration headers: 25621$config_headers 25622 25623Configuration commands: 25624$config_commands 25625 25626Report bugs to the package provider." 25627 25628_ACEOF 25629cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25630ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 25631ac_cs_version="\\ 25632config.status 25633configured by $0, generated by GNU Autoconf 2.69, 25634 with options \\"\$ac_cs_config\\" 25635 25636Copyright (C) 2012 Free Software Foundation, Inc. 25637This config.status script is free software; the Free Software Foundation 25638gives unlimited permission to copy, distribute and modify it." 25639 25640ac_pwd='$ac_pwd' 25641srcdir='$srcdir' 25642INSTALL='$INSTALL' 25643AWK='$AWK' 25644test -n "\$AWK" || AWK=awk 25645_ACEOF 25646 25647cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25648# The default lists apply if the user does not specify any file. 25649ac_need_defaults=: 25650while test $# != 0 25651do 25652 case $1 in 25653 --*=?*) 25654 ac_option=`expr "X$1" : 'X\([^=]*\)='` 25655 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 25656 ac_shift=: 25657 ;; 25658 --*=) 25659 ac_option=`expr "X$1" : 'X\([^=]*\)='` 25660 ac_optarg= 25661 ac_shift=: 25662 ;; 25663 *) 25664 ac_option=$1 25665 ac_optarg=$2 25666 ac_shift=shift 25667 ;; 25668 esac 25669 25670 case $ac_option in 25671 # Handling of the options. 25672 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 25673 ac_cs_recheck=: ;; 25674 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 25675 $as_echo "$ac_cs_version"; exit ;; 25676 --config | --confi | --conf | --con | --co | --c ) 25677 $as_echo "$ac_cs_config"; exit ;; 25678 --debug | --debu | --deb | --de | --d | -d ) 25679 debug=: ;; 25680 --file | --fil | --fi | --f ) 25681 $ac_shift 25682 case $ac_optarg in 25683 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 25684 '') as_fn_error $? "missing file argument" ;; 25685 esac 25686 as_fn_append CONFIG_FILES " '$ac_optarg'" 25687 ac_need_defaults=false;; 25688 --header | --heade | --head | --hea ) 25689 $ac_shift 25690 case $ac_optarg in 25691 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 25692 esac 25693 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 25694 ac_need_defaults=false;; 25695 --he | --h) 25696 # Conflict between --help and --header 25697 as_fn_error $? "ambiguous option: \`$1' 25698Try \`$0 --help' for more information.";; 25699 --help | --hel | -h ) 25700 $as_echo "$ac_cs_usage"; exit ;; 25701 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 25702 | -silent | --silent | --silen | --sile | --sil | --si | --s) 25703 ac_cs_silent=: ;; 25704 25705 # This is an error. 25706 -*) as_fn_error $? "unrecognized option: \`$1' 25707Try \`$0 --help' for more information." ;; 25708 25709 *) as_fn_append ac_config_targets " $1" 25710 ac_need_defaults=false ;; 25711 25712 esac 25713 shift 25714done 25715 25716ac_configure_extra_args= 25717 25718if $ac_cs_silent; then 25719 exec 6>/dev/null 25720 ac_configure_extra_args="$ac_configure_extra_args --silent" 25721fi 25722 25723_ACEOF 25724cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25725if \$ac_cs_recheck; then 25726 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 25727 shift 25728 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 25729 CONFIG_SHELL='$SHELL' 25730 export CONFIG_SHELL 25731 exec "\$@" 25732fi 25733 25734_ACEOF 25735cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25736exec 5>>config.log 25737{ 25738 echo 25739 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 25740## Running $as_me. ## 25741_ASBOX 25742 $as_echo "$ac_log" 25743} >&5 25744 25745_ACEOF 25746cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25747# 25748# INIT-COMMANDS 25749# 25750 25751 25752# The HP-UX ksh and POSIX shell print the target directory to stdout 25753# if CDPATH is set. 25754(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 25755 25756sed_quote_subst='$sed_quote_subst' 25757double_quote_subst='$double_quote_subst' 25758delay_variable_subst='$delay_variable_subst' 25759macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 25760macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 25761AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 25762DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 25763OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 25764enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 25765enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 25766pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 25767enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 25768SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 25769ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 25770PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 25771host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 25772host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 25773host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 25774build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 25775build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 25776build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 25777SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 25778Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 25779GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 25780EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 25781FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 25782LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 25783NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 25784LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 25785max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 25786ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 25787exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 25788lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 25789lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 25790lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 25791lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 25792lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 25793reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 25794reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 25795deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 25796file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 25797file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 25798want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 25799sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 25800AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 25801AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 25802archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 25803STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 25804RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 25805old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 25806old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 25807old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 25808lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 25809CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 25810CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 25811compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 25812GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 25813lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 25814lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 25815lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 25816lt_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"`' 25817nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 25818lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 25819objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 25820MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 25821lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 25822lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 25823lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 25824lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 25825lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 25826need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 25827MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 25828DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 25829NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 25830LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 25831OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 25832OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 25833libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 25834shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 25835extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 25836archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 25837enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 25838export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 25839whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 25840compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 25841old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 25842old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 25843archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 25844archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 25845module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 25846module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 25847with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 25848allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 25849no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 25850hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 25851hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 25852hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 25853hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 25854hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 25855hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 25856hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 25857inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 25858link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 25859always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 25860export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 25861exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 25862include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 25863prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 25864postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 25865file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 25866variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 25867need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 25868need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 25869version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 25870runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 25871shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 25872shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 25873libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 25874library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 25875soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 25876install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 25877postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 25878postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 25879finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 25880finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 25881hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 25882sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 25883sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 25884hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 25885enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 25886enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 25887enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 25888old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 25889striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 25890compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 25891predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 25892postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 25893predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 25894postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 25895compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 25896LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 25897reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 25898reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25899old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25900compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 25901GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 25902lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 25903lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 25904lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 25905lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 25906lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 25907archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 25908enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 25909export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 25910whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 25911compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 25912old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25913old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25914archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25915archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25916module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25917module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25918with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 25919allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 25920no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 25921hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 25922hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 25923hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 25924hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 25925hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 25926hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 25927hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 25928inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 25929link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 25930always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 25931export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25932exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 25933include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 25934prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25935postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25936file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 25937hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 25938compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 25939predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 25940postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 25941predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 25942postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 25943compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 25944 25945LTCC='$LTCC' 25946LTCFLAGS='$LTCFLAGS' 25947compiler='$compiler_DEFAULT' 25948 25949# A function that is used when there is no print builtin or printf. 25950func_fallback_echo () 25951{ 25952 eval 'cat <<_LTECHO_EOF 25953\$1 25954_LTECHO_EOF' 25955} 25956 25957# Quote evaled strings. 25958for var in AS \ 25959DLLTOOL \ 25960OBJDUMP \ 25961SHELL \ 25962ECHO \ 25963PATH_SEPARATOR \ 25964SED \ 25965GREP \ 25966EGREP \ 25967FGREP \ 25968LD \ 25969NM \ 25970LN_S \ 25971lt_SP2NL \ 25972lt_NL2SP \ 25973reload_flag \ 25974deplibs_check_method \ 25975file_magic_cmd \ 25976file_magic_glob \ 25977want_nocaseglob \ 25978sharedlib_from_linklib_cmd \ 25979AR \ 25980AR_FLAGS \ 25981archiver_list_spec \ 25982STRIP \ 25983RANLIB \ 25984CC \ 25985CFLAGS \ 25986compiler \ 25987lt_cv_sys_global_symbol_pipe \ 25988lt_cv_sys_global_symbol_to_cdecl \ 25989lt_cv_sys_global_symbol_to_c_name_address \ 25990lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 25991nm_file_list_spec \ 25992lt_prog_compiler_no_builtin_flag \ 25993lt_prog_compiler_pic \ 25994lt_prog_compiler_wl \ 25995lt_prog_compiler_static \ 25996lt_cv_prog_compiler_c_o \ 25997need_locks \ 25998MANIFEST_TOOL \ 25999DSYMUTIL \ 26000NMEDIT \ 26001LIPO \ 26002OTOOL \ 26003OTOOL64 \ 26004shrext_cmds \ 26005export_dynamic_flag_spec \ 26006whole_archive_flag_spec \ 26007compiler_needs_object \ 26008with_gnu_ld \ 26009allow_undefined_flag \ 26010no_undefined_flag \ 26011hardcode_libdir_flag_spec \ 26012hardcode_libdir_separator \ 26013exclude_expsyms \ 26014include_expsyms \ 26015file_list_spec \ 26016variables_saved_for_relink \ 26017libname_spec \ 26018library_names_spec \ 26019soname_spec \ 26020install_override_mode \ 26021finish_eval \ 26022old_striplib \ 26023striplib \ 26024compiler_lib_search_dirs \ 26025predep_objects \ 26026postdep_objects \ 26027predeps \ 26028postdeps \ 26029compiler_lib_search_path \ 26030LD_CXX \ 26031reload_flag_CXX \ 26032compiler_CXX \ 26033lt_prog_compiler_no_builtin_flag_CXX \ 26034lt_prog_compiler_pic_CXX \ 26035lt_prog_compiler_wl_CXX \ 26036lt_prog_compiler_static_CXX \ 26037lt_cv_prog_compiler_c_o_CXX \ 26038export_dynamic_flag_spec_CXX \ 26039whole_archive_flag_spec_CXX \ 26040compiler_needs_object_CXX \ 26041with_gnu_ld_CXX \ 26042allow_undefined_flag_CXX \ 26043no_undefined_flag_CXX \ 26044hardcode_libdir_flag_spec_CXX \ 26045hardcode_libdir_separator_CXX \ 26046exclude_expsyms_CXX \ 26047include_expsyms_CXX \ 26048file_list_spec_CXX \ 26049compiler_lib_search_dirs_CXX \ 26050predep_objects_CXX \ 26051postdep_objects_CXX \ 26052predeps_CXX \ 26053postdeps_CXX \ 26054compiler_lib_search_path_CXX; do 26055 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 26056 *[\\\\\\\`\\"\\\$]*) 26057 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 26058 ;; 26059 *) 26060 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 26061 ;; 26062 esac 26063done 26064 26065# Double-quote double-evaled strings. 26066for var in reload_cmds \ 26067old_postinstall_cmds \ 26068old_postuninstall_cmds \ 26069old_archive_cmds \ 26070extract_expsyms_cmds \ 26071old_archive_from_new_cmds \ 26072old_archive_from_expsyms_cmds \ 26073archive_cmds \ 26074archive_expsym_cmds \ 26075module_cmds \ 26076module_expsym_cmds \ 26077export_symbols_cmds \ 26078prelink_cmds \ 26079postlink_cmds \ 26080postinstall_cmds \ 26081postuninstall_cmds \ 26082finish_cmds \ 26083sys_lib_search_path_spec \ 26084sys_lib_dlsearch_path_spec \ 26085reload_cmds_CXX \ 26086old_archive_cmds_CXX \ 26087old_archive_from_new_cmds_CXX \ 26088old_archive_from_expsyms_cmds_CXX \ 26089archive_cmds_CXX \ 26090archive_expsym_cmds_CXX \ 26091module_cmds_CXX \ 26092module_expsym_cmds_CXX \ 26093export_symbols_cmds_CXX \ 26094prelink_cmds_CXX \ 26095postlink_cmds_CXX; do 26096 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 26097 *[\\\\\\\`\\"\\\$]*) 26098 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 26099 ;; 26100 *) 26101 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 26102 ;; 26103 esac 26104done 26105 26106ac_aux_dir='$ac_aux_dir' 26107xsi_shell='$xsi_shell' 26108lt_shell_append='$lt_shell_append' 26109 26110# See if we are running on zsh, and set the options which allow our 26111# commands through without removal of \ escapes INIT. 26112if test -n "\${ZSH_VERSION+set}" ; then 26113 setopt NO_GLOB_SUBST 26114fi 26115 26116 26117 PACKAGE='$PACKAGE' 26118 VERSION='$VERSION' 26119 TIMESTAMP='$TIMESTAMP' 26120 RM='$RM' 26121 ofile='$ofile' 26122 26123 26124 26125 26126 26127SUMMARY="$SUMMARY" 26128 26129_ACEOF 26130 26131cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26132 26133# Handling of arguments. 26134for ac_config_target in $ac_config_targets 26135do 26136 case $ac_config_target in 26137 "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;; 26138 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 26139 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;; 26140 "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;; 26141 "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;; 26142 "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;; 26143 "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;; 26144 "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;; 26145 "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;; 26146 26147 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 26148 esac 26149done 26150 26151 26152# If the user did not use the arguments to specify the items to instantiate, 26153# then the envvar interface is used. Set only those that are not. 26154# We use the long form for the default assignment because of an extremely 26155# bizarre bug on SunOS 4.1.3. 26156if $ac_need_defaults; then 26157 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 26158 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 26159 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 26160fi 26161 26162# Have a temporary directory for convenience. Make it in the build tree 26163# simply because there is no reason against having it here, and in addition, 26164# creating and moving files from /tmp can sometimes cause problems. 26165# Hook for its removal unless debugging. 26166# Note that there is a small window in which the directory will not be cleaned: 26167# after its creation but before its name has been assigned to `$tmp'. 26168$debug || 26169{ 26170 tmp= ac_tmp= 26171 trap 'exit_status=$? 26172 : "${ac_tmp:=$tmp}" 26173 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 26174' 0 26175 trap 'as_fn_exit 1' 1 2 13 15 26176} 26177# Create a (secure) tmp directory for tmp files. 26178 26179{ 26180 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 26181 test -d "$tmp" 26182} || 26183{ 26184 tmp=./conf$$-$RANDOM 26185 (umask 077 && mkdir "$tmp") 26186} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 26187ac_tmp=$tmp 26188 26189# Set up the scripts for CONFIG_FILES section. 26190# No need to generate them if there are no CONFIG_FILES. 26191# This happens for instance with `./config.status config.h'. 26192if test -n "$CONFIG_FILES"; then 26193 26194 26195ac_cr=`echo X | tr X '\015'` 26196# On cygwin, bash can eat \r inside `` if the user requested igncr. 26197# But we know of no other shell where ac_cr would be empty at this 26198# point, so we can use a bashism as a fallback. 26199if test "x$ac_cr" = x; then 26200 eval ac_cr=\$\'\\r\' 26201fi 26202ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 26203if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 26204 ac_cs_awk_cr='\\r' 26205else 26206 ac_cs_awk_cr=$ac_cr 26207fi 26208 26209echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 26210_ACEOF 26211 26212 26213{ 26214 echo "cat >conf$$subs.awk <<_ACEOF" && 26215 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 26216 echo "_ACEOF" 26217} >conf$$subs.sh || 26218 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 26219ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 26220ac_delim='%!_!# ' 26221for ac_last_try in false false false false false :; do 26222 . ./conf$$subs.sh || 26223 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 26224 26225 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 26226 if test $ac_delim_n = $ac_delim_num; then 26227 break 26228 elif $ac_last_try; then 26229 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 26230 else 26231 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 26232 fi 26233done 26234rm -f conf$$subs.sh 26235 26236cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26237cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 26238_ACEOF 26239sed -n ' 26240h 26241s/^/S["/; s/!.*/"]=/ 26242p 26243g 26244s/^[^!]*!// 26245:repl 26246t repl 26247s/'"$ac_delim"'$// 26248t delim 26249:nl 26250h 26251s/\(.\{148\}\)..*/\1/ 26252t more1 26253s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 26254p 26255n 26256b repl 26257:more1 26258s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 26259p 26260g 26261s/.\{148\}// 26262t nl 26263:delim 26264h 26265s/\(.\{148\}\)..*/\1/ 26266t more2 26267s/["\\]/\\&/g; s/^/"/; s/$/"/ 26268p 26269b 26270:more2 26271s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 26272p 26273g 26274s/.\{148\}// 26275t delim 26276' <conf$$subs.awk | sed ' 26277/^[^""]/{ 26278 N 26279 s/\n// 26280} 26281' >>$CONFIG_STATUS || ac_write_fail=1 26282rm -f conf$$subs.awk 26283cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26284_ACAWK 26285cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 26286 for (key in S) S_is_set[key] = 1 26287 FS = "" 26288 26289} 26290{ 26291 line = $ 0 26292 nfields = split(line, field, "@") 26293 substed = 0 26294 len = length(field[1]) 26295 for (i = 2; i < nfields; i++) { 26296 key = field[i] 26297 keylen = length(key) 26298 if (S_is_set[key]) { 26299 value = S[key] 26300 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 26301 len += length(value) + length(field[++i]) 26302 substed = 1 26303 } else 26304 len += 1 + keylen 26305 } 26306 26307 print line 26308} 26309 26310_ACAWK 26311_ACEOF 26312cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26313if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 26314 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 26315else 26316 cat 26317fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 26318 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 26319_ACEOF 26320 26321# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 26322# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 26323# trailing colons and then remove the whole line if VPATH becomes empty 26324# (actually we leave an empty line to preserve line numbers). 26325if test "x$srcdir" = x.; then 26326 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 26327h 26328s/// 26329s/^/:/ 26330s/[ ]*$/:/ 26331s/:\$(srcdir):/:/g 26332s/:\${srcdir}:/:/g 26333s/:@srcdir@:/:/g 26334s/^:*// 26335s/:*$// 26336x 26337s/\(=[ ]*\).*/\1/ 26338G 26339s/\n// 26340s/^[^=]*=[ ]*$// 26341}' 26342fi 26343 26344cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26345fi # test -n "$CONFIG_FILES" 26346 26347# Set up the scripts for CONFIG_HEADERS section. 26348# No need to generate them if there are no CONFIG_HEADERS. 26349# This happens for instance with `./config.status Makefile'. 26350if test -n "$CONFIG_HEADERS"; then 26351cat >"$ac_tmp/defines.awk" <<\_ACAWK || 26352BEGIN { 26353_ACEOF 26354 26355# Transform confdefs.h into an awk script `defines.awk', embedded as 26356# here-document in config.status, that substitutes the proper values into 26357# config.h.in to produce config.h. 26358 26359# Create a delimiter string that does not exist in confdefs.h, to ease 26360# handling of long lines. 26361ac_delim='%!_!# ' 26362for ac_last_try in false false :; do 26363 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 26364 if test -z "$ac_tt"; then 26365 break 26366 elif $ac_last_try; then 26367 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 26368 else 26369 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 26370 fi 26371done 26372 26373# For the awk script, D is an array of macro values keyed by name, 26374# likewise P contains macro parameters if any. Preserve backslash 26375# newline sequences. 26376 26377ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 26378sed -n ' 26379s/.\{148\}/&'"$ac_delim"'/g 26380t rset 26381:rset 26382s/^[ ]*#[ ]*define[ ][ ]*/ / 26383t def 26384d 26385:def 26386s/\\$// 26387t bsnl 26388s/["\\]/\\&/g 26389s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 26390D["\1"]=" \3"/p 26391s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 26392d 26393:bsnl 26394s/["\\]/\\&/g 26395s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 26396D["\1"]=" \3\\\\\\n"\\/p 26397t cont 26398s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 26399t cont 26400d 26401:cont 26402n 26403s/.\{148\}/&'"$ac_delim"'/g 26404t clear 26405:clear 26406s/\\$// 26407t bsnlc 26408s/["\\]/\\&/g; s/^/"/; s/$/"/p 26409d 26410:bsnlc 26411s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 26412b cont 26413' <confdefs.h | sed ' 26414s/'"$ac_delim"'/"\\\ 26415"/g' >>$CONFIG_STATUS || ac_write_fail=1 26416 26417cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26418 for (key in D) D_is_set[key] = 1 26419 FS = "" 26420} 26421/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 26422 line = \$ 0 26423 split(line, arg, " ") 26424 if (arg[1] == "#") { 26425 defundef = arg[2] 26426 mac1 = arg[3] 26427 } else { 26428 defundef = substr(arg[1], 2) 26429 mac1 = arg[2] 26430 } 26431 split(mac1, mac2, "(") #) 26432 macro = mac2[1] 26433 prefix = substr(line, 1, index(line, defundef) - 1) 26434 if (D_is_set[macro]) { 26435 # Preserve the white space surrounding the "#". 26436 print prefix "define", macro P[macro] D[macro] 26437 next 26438 } else { 26439 # Replace #undef with comments. This is necessary, for example, 26440 # in the case of _POSIX_SOURCE, which is predefined and required 26441 # on some systems where configure will not decide to define it. 26442 if (defundef == "undef") { 26443 print "/*", prefix defundef, macro, "*/" 26444 next 26445 } 26446 } 26447} 26448{ print } 26449_ACAWK 26450_ACEOF 26451cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26452 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 26453fi # test -n "$CONFIG_HEADERS" 26454 26455 26456eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 26457shift 26458for ac_tag 26459do 26460 case $ac_tag in 26461 :[FHLC]) ac_mode=$ac_tag; continue;; 26462 esac 26463 case $ac_mode$ac_tag in 26464 :[FHL]*:*);; 26465 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 26466 :[FH]-) ac_tag=-:-;; 26467 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 26468 esac 26469 ac_save_IFS=$IFS 26470 IFS=: 26471 set x $ac_tag 26472 IFS=$ac_save_IFS 26473 shift 26474 ac_file=$1 26475 shift 26476 26477 case $ac_mode in 26478 :L) ac_source=$1;; 26479 :[FH]) 26480 ac_file_inputs= 26481 for ac_f 26482 do 26483 case $ac_f in 26484 -) ac_f="$ac_tmp/stdin";; 26485 *) # Look for the file first in the build tree, then in the source tree 26486 # (if the path is not absolute). The absolute path cannot be DOS-style, 26487 # because $ac_f cannot contain `:'. 26488 test -f "$ac_f" || 26489 case $ac_f in 26490 [\\/$]*) false;; 26491 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 26492 esac || 26493 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 26494 esac 26495 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 26496 as_fn_append ac_file_inputs " '$ac_f'" 26497 done 26498 26499 # Let's still pretend it is `configure' which instantiates (i.e., don't 26500 # use $as_me), people would be surprised to read: 26501 # /* config.h. Generated by config.status. */ 26502 configure_input='Generated from '` 26503 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 26504 `' by configure.' 26505 if test x"$ac_file" != x-; then 26506 configure_input="$ac_file. $configure_input" 26507 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 26508$as_echo "$as_me: creating $ac_file" >&6;} 26509 fi 26510 # Neutralize special characters interpreted by sed in replacement strings. 26511 case $configure_input in #( 26512 *\&* | *\|* | *\\* ) 26513 ac_sed_conf_input=`$as_echo "$configure_input" | 26514 sed 's/[\\\\&|]/\\\\&/g'`;; #( 26515 *) ac_sed_conf_input=$configure_input;; 26516 esac 26517 26518 case $ac_tag in 26519 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 26520 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 26521 esac 26522 ;; 26523 esac 26524 26525 ac_dir=`$as_dirname -- "$ac_file" || 26526$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26527 X"$ac_file" : 'X\(//\)[^/]' \| \ 26528 X"$ac_file" : 'X\(//\)$' \| \ 26529 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 26530$as_echo X"$ac_file" | 26531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 26532 s//\1/ 26533 q 26534 } 26535 /^X\(\/\/\)[^/].*/{ 26536 s//\1/ 26537 q 26538 } 26539 /^X\(\/\/\)$/{ 26540 s//\1/ 26541 q 26542 } 26543 /^X\(\/\).*/{ 26544 s//\1/ 26545 q 26546 } 26547 s/.*/./; q'` 26548 as_dir="$ac_dir"; as_fn_mkdir_p 26549 ac_builddir=. 26550 26551case "$ac_dir" in 26552.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 26553*) 26554 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 26555 # A ".." for each directory in $ac_dir_suffix. 26556 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 26557 case $ac_top_builddir_sub in 26558 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 26559 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 26560 esac ;; 26561esac 26562ac_abs_top_builddir=$ac_pwd 26563ac_abs_builddir=$ac_pwd$ac_dir_suffix 26564# for backward compatibility: 26565ac_top_builddir=$ac_top_build_prefix 26566 26567case $srcdir in 26568 .) # We are building in place. 26569 ac_srcdir=. 26570 ac_top_srcdir=$ac_top_builddir_sub 26571 ac_abs_top_srcdir=$ac_pwd ;; 26572 [\\/]* | ?:[\\/]* ) # Absolute name. 26573 ac_srcdir=$srcdir$ac_dir_suffix; 26574 ac_top_srcdir=$srcdir 26575 ac_abs_top_srcdir=$srcdir ;; 26576 *) # Relative name. 26577 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 26578 ac_top_srcdir=$ac_top_build_prefix$srcdir 26579 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 26580esac 26581ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 26582 26583 26584 case $ac_mode in 26585 :F) 26586 # 26587 # CONFIG_FILE 26588 # 26589 26590 case $INSTALL in 26591 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 26592 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 26593 esac 26594_ACEOF 26595 26596cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26597# If the template does not know about datarootdir, expand it. 26598# FIXME: This hack should be removed a few years after 2.60. 26599ac_datarootdir_hack=; ac_datarootdir_seen= 26600ac_sed_dataroot=' 26601/datarootdir/ { 26602 p 26603 q 26604} 26605/@datadir@/p 26606/@docdir@/p 26607/@infodir@/p 26608/@localedir@/p 26609/@mandir@/p' 26610case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 26611*datarootdir*) ac_datarootdir_seen=yes;; 26612*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 26613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 26614$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 26615_ACEOF 26616cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26617 ac_datarootdir_hack=' 26618 s&@datadir@&$datadir&g 26619 s&@docdir@&$docdir&g 26620 s&@infodir@&$infodir&g 26621 s&@localedir@&$localedir&g 26622 s&@mandir@&$mandir&g 26623 s&\\\${datarootdir}&$datarootdir&g' ;; 26624esac 26625_ACEOF 26626 26627# Neutralize VPATH when `$srcdir' = `.'. 26628# Shell code in configure.ac might set extrasub. 26629# FIXME: do we really want to maintain this feature? 26630cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26631ac_sed_extra="$ac_vpsub 26632$extrasub 26633_ACEOF 26634cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26635:t 26636/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 26637s|@configure_input@|$ac_sed_conf_input|;t t 26638s&@top_builddir@&$ac_top_builddir_sub&;t t 26639s&@top_build_prefix@&$ac_top_build_prefix&;t t 26640s&@srcdir@&$ac_srcdir&;t t 26641s&@abs_srcdir@&$ac_abs_srcdir&;t t 26642s&@top_srcdir@&$ac_top_srcdir&;t t 26643s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 26644s&@builddir@&$ac_builddir&;t t 26645s&@abs_builddir@&$ac_abs_builddir&;t t 26646s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 26647s&@INSTALL@&$ac_INSTALL&;t t 26648$ac_datarootdir_hack 26649" 26650eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 26651 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26652 26653test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 26654 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 26655 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 26656 "$ac_tmp/out"`; test -z "$ac_out"; } && 26657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 26658which seems to be undefined. Please make sure it is defined" >&5 26659$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 26660which seems to be undefined. Please make sure it is defined" >&2;} 26661 26662 rm -f "$ac_tmp/stdin" 26663 case $ac_file in 26664 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 26665 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 26666 esac \ 26667 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26668 ;; 26669 :H) 26670 # 26671 # CONFIG_HEADER 26672 # 26673 if test x"$ac_file" != x-; then 26674 { 26675 $as_echo "/* $configure_input */" \ 26676 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 26677 } >"$ac_tmp/config.h" \ 26678 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26679 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 26680 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 26681$as_echo "$as_me: $ac_file is unchanged" >&6;} 26682 else 26683 rm -f "$ac_file" 26684 mv "$ac_tmp/config.h" "$ac_file" \ 26685 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26686 fi 26687 else 26688 $as_echo "/* $configure_input */" \ 26689 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 26690 || as_fn_error $? "could not create -" "$LINENO" 5 26691 fi 26692 ;; 26693 26694 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 26695$as_echo "$as_me: executing $ac_file commands" >&6;} 26696 ;; 26697 esac 26698 26699 26700 case $ac_file$ac_mode in 26701 "libtool":C) 26702 26703 # See if we are running on zsh, and set the options which allow our 26704 # commands through without removal of \ escapes. 26705 if test -n "${ZSH_VERSION+set}" ; then 26706 setopt NO_GLOB_SUBST 26707 fi 26708 26709 cfgfile="${ofile}T" 26710 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 26711 $RM "$cfgfile" 26712 26713 cat <<_LT_EOF >> "$cfgfile" 26714#! $SHELL 26715 26716# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 26717# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 26718# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 26719# NOTE: Changes made to this file will be lost: look at ltmain.sh. 26720# 26721# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 26722# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 26723# Foundation, Inc. 26724# Written by Gordon Matzigkeit, 1996 26725# 26726# This file is part of GNU Libtool. 26727# 26728# GNU Libtool is free software; you can redistribute it and/or 26729# modify it under the terms of the GNU General Public License as 26730# published by the Free Software Foundation; either version 2 of 26731# the License, or (at your option) any later version. 26732# 26733# As a special exception to the GNU General Public License, 26734# if you distribute this file as part of a program or library that 26735# is built using GNU Libtool, you may include this file under the 26736# same distribution terms that you use for the rest of that program. 26737# 26738# GNU Libtool is distributed in the hope that it will be useful, 26739# but WITHOUT ANY WARRANTY; without even the implied warranty of 26740# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 26741# GNU General Public License for more details. 26742# 26743# You should have received a copy of the GNU General Public License 26744# along with GNU Libtool; see the file COPYING. If not, a copy 26745# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 26746# obtained by writing to the Free Software Foundation, Inc., 26747# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 26748 26749 26750# The names of the tagged configurations supported by this script. 26751available_tags="CXX " 26752 26753# ### BEGIN LIBTOOL CONFIG 26754 26755# Which release of libtool.m4 was used? 26756macro_version=$macro_version 26757macro_revision=$macro_revision 26758 26759# Assembler program. 26760AS=$lt_AS 26761 26762# DLL creation program. 26763DLLTOOL=$lt_DLLTOOL 26764 26765# Object dumper program. 26766OBJDUMP=$lt_OBJDUMP 26767 26768# Whether or not to build shared libraries. 26769build_libtool_libs=$enable_shared 26770 26771# Whether or not to build static libraries. 26772build_old_libs=$enable_static 26773 26774# What type of objects to build. 26775pic_mode=$pic_mode 26776 26777# Whether or not to optimize for fast installation. 26778fast_install=$enable_fast_install 26779 26780# Shell to use when invoking shell scripts. 26781SHELL=$lt_SHELL 26782 26783# An echo program that protects backslashes. 26784ECHO=$lt_ECHO 26785 26786# The PATH separator for the build system. 26787PATH_SEPARATOR=$lt_PATH_SEPARATOR 26788 26789# The host system. 26790host_alias=$host_alias 26791host=$host 26792host_os=$host_os 26793 26794# The build system. 26795build_alias=$build_alias 26796build=$build 26797build_os=$build_os 26798 26799# A sed program that does not truncate output. 26800SED=$lt_SED 26801 26802# Sed that helps us avoid accidentally triggering echo(1) options like -n. 26803Xsed="\$SED -e 1s/^X//" 26804 26805# A grep program that handles long lines. 26806GREP=$lt_GREP 26807 26808# An ERE matcher. 26809EGREP=$lt_EGREP 26810 26811# A literal string matcher. 26812FGREP=$lt_FGREP 26813 26814# A BSD- or MS-compatible name lister. 26815NM=$lt_NM 26816 26817# Whether we need soft or hard links. 26818LN_S=$lt_LN_S 26819 26820# What is the maximum length of a command? 26821max_cmd_len=$max_cmd_len 26822 26823# Object file suffix (normally "o"). 26824objext=$ac_objext 26825 26826# Executable file suffix (normally ""). 26827exeext=$exeext 26828 26829# whether the shell understands "unset". 26830lt_unset=$lt_unset 26831 26832# turn spaces into newlines. 26833SP2NL=$lt_lt_SP2NL 26834 26835# turn newlines into spaces. 26836NL2SP=$lt_lt_NL2SP 26837 26838# convert \$build file names to \$host format. 26839to_host_file_cmd=$lt_cv_to_host_file_cmd 26840 26841# convert \$build files to toolchain format. 26842to_tool_file_cmd=$lt_cv_to_tool_file_cmd 26843 26844# Method to check whether dependent libraries are shared objects. 26845deplibs_check_method=$lt_deplibs_check_method 26846 26847# Command to use when deplibs_check_method = "file_magic". 26848file_magic_cmd=$lt_file_magic_cmd 26849 26850# How to find potential files when deplibs_check_method = "file_magic". 26851file_magic_glob=$lt_file_magic_glob 26852 26853# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 26854want_nocaseglob=$lt_want_nocaseglob 26855 26856# Command to associate shared and link libraries. 26857sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 26858 26859# The archiver. 26860AR=$lt_AR 26861 26862# Flags to create an archive. 26863AR_FLAGS=$lt_AR_FLAGS 26864 26865# How to feed a file listing to the archiver. 26866archiver_list_spec=$lt_archiver_list_spec 26867 26868# A symbol stripping program. 26869STRIP=$lt_STRIP 26870 26871# Commands used to install an old-style archive. 26872RANLIB=$lt_RANLIB 26873old_postinstall_cmds=$lt_old_postinstall_cmds 26874old_postuninstall_cmds=$lt_old_postuninstall_cmds 26875 26876# Whether to use a lock for old archive extraction. 26877lock_old_archive_extraction=$lock_old_archive_extraction 26878 26879# A C compiler. 26880LTCC=$lt_CC 26881 26882# LTCC compiler flags. 26883LTCFLAGS=$lt_CFLAGS 26884 26885# Take the output of nm and produce a listing of raw symbols and C names. 26886global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 26887 26888# Transform the output of nm in a proper C declaration. 26889global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 26890 26891# Transform the output of nm in a C name address pair. 26892global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 26893 26894# Transform the output of nm in a C name address pair when lib prefix is needed. 26895global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 26896 26897# Specify filename containing input files for \$NM. 26898nm_file_list_spec=$lt_nm_file_list_spec 26899 26900# The root where to search for dependent libraries,and in which our libraries should be installed. 26901lt_sysroot=$lt_sysroot 26902 26903# The name of the directory that contains temporary libtool files. 26904objdir=$objdir 26905 26906# Used to examine libraries when file_magic_cmd begins with "file". 26907MAGIC_CMD=$MAGIC_CMD 26908 26909# Must we lock files when doing compilation? 26910need_locks=$lt_need_locks 26911 26912# Manifest tool. 26913MANIFEST_TOOL=$lt_MANIFEST_TOOL 26914 26915# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 26916DSYMUTIL=$lt_DSYMUTIL 26917 26918# Tool to change global to local symbols on Mac OS X. 26919NMEDIT=$lt_NMEDIT 26920 26921# Tool to manipulate fat objects and archives on Mac OS X. 26922LIPO=$lt_LIPO 26923 26924# ldd/readelf like tool for Mach-O binaries on Mac OS X. 26925OTOOL=$lt_OTOOL 26926 26927# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 26928OTOOL64=$lt_OTOOL64 26929 26930# Old archive suffix (normally "a"). 26931libext=$libext 26932 26933# Shared library suffix (normally ".so"). 26934shrext_cmds=$lt_shrext_cmds 26935 26936# The commands to extract the exported symbol list from a shared archive. 26937extract_expsyms_cmds=$lt_extract_expsyms_cmds 26938 26939# Variables whose values should be saved in libtool wrapper scripts and 26940# restored at link time. 26941variables_saved_for_relink=$lt_variables_saved_for_relink 26942 26943# Do we need the "lib" prefix for modules? 26944need_lib_prefix=$need_lib_prefix 26945 26946# Do we need a version for libraries? 26947need_version=$need_version 26948 26949# Library versioning type. 26950version_type=$version_type 26951 26952# Shared library runtime path variable. 26953runpath_var=$runpath_var 26954 26955# Shared library path variable. 26956shlibpath_var=$shlibpath_var 26957 26958# Is shlibpath searched before the hard-coded library search path? 26959shlibpath_overrides_runpath=$shlibpath_overrides_runpath 26960 26961# Format of library name prefix. 26962libname_spec=$lt_libname_spec 26963 26964# List of archive names. First name is the real one, the rest are links. 26965# The last name is the one that the linker finds with -lNAME 26966library_names_spec=$lt_library_names_spec 26967 26968# The coded name of the library, if different from the real name. 26969soname_spec=$lt_soname_spec 26970 26971# Permission mode override for installation of shared libraries. 26972install_override_mode=$lt_install_override_mode 26973 26974# Command to use after installation of a shared archive. 26975postinstall_cmds=$lt_postinstall_cmds 26976 26977# Command to use after uninstallation of a shared archive. 26978postuninstall_cmds=$lt_postuninstall_cmds 26979 26980# Commands used to finish a libtool library installation in a directory. 26981finish_cmds=$lt_finish_cmds 26982 26983# As "finish_cmds", except a single script fragment to be evaled but 26984# not shown. 26985finish_eval=$lt_finish_eval 26986 26987# Whether we should hardcode library paths into libraries. 26988hardcode_into_libs=$hardcode_into_libs 26989 26990# Compile-time system search path for libraries. 26991sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 26992 26993# Run-time system search path for libraries. 26994sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 26995 26996# Whether dlopen is supported. 26997dlopen_support=$enable_dlopen 26998 26999# Whether dlopen of programs is supported. 27000dlopen_self=$enable_dlopen_self 27001 27002# Whether dlopen of statically linked programs is supported. 27003dlopen_self_static=$enable_dlopen_self_static 27004 27005# Commands to strip libraries. 27006old_striplib=$lt_old_striplib 27007striplib=$lt_striplib 27008 27009 27010# The linker used to build libraries. 27011LD=$lt_LD 27012 27013# How to create reloadable object files. 27014reload_flag=$lt_reload_flag 27015reload_cmds=$lt_reload_cmds 27016 27017# Commands used to build an old-style archive. 27018old_archive_cmds=$lt_old_archive_cmds 27019 27020# A language specific compiler. 27021CC=$lt_compiler 27022 27023# Is the compiler the GNU compiler? 27024with_gcc=$GCC 27025 27026# Compiler flag to turn off builtin functions. 27027no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 27028 27029# Additional compiler flags for building library objects. 27030pic_flag=$lt_lt_prog_compiler_pic 27031 27032# How to pass a linker flag through the compiler. 27033wl=$lt_lt_prog_compiler_wl 27034 27035# Compiler flag to prevent dynamic linking. 27036link_static_flag=$lt_lt_prog_compiler_static 27037 27038# Does compiler simultaneously support -c and -o options? 27039compiler_c_o=$lt_lt_cv_prog_compiler_c_o 27040 27041# Whether or not to add -lc for building shared libraries. 27042build_libtool_need_lc=$archive_cmds_need_lc 27043 27044# Whether or not to disallow shared libs when runtime libs are static. 27045allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 27046 27047# Compiler flag to allow reflexive dlopens. 27048export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 27049 27050# Compiler flag to generate shared objects directly from archives. 27051whole_archive_flag_spec=$lt_whole_archive_flag_spec 27052 27053# Whether the compiler copes with passing no objects directly. 27054compiler_needs_object=$lt_compiler_needs_object 27055 27056# Create an old-style archive from a shared archive. 27057old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 27058 27059# Create a temporary old-style archive to link instead of a shared archive. 27060old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 27061 27062# Commands used to build a shared archive. 27063archive_cmds=$lt_archive_cmds 27064archive_expsym_cmds=$lt_archive_expsym_cmds 27065 27066# Commands used to build a loadable module if different from building 27067# a shared archive. 27068module_cmds=$lt_module_cmds 27069module_expsym_cmds=$lt_module_expsym_cmds 27070 27071# Whether we are building with GNU ld or not. 27072with_gnu_ld=$lt_with_gnu_ld 27073 27074# Flag that allows shared libraries with undefined symbols to be built. 27075allow_undefined_flag=$lt_allow_undefined_flag 27076 27077# Flag that enforces no undefined symbols. 27078no_undefined_flag=$lt_no_undefined_flag 27079 27080# Flag to hardcode \$libdir into a binary during linking. 27081# This must work even if \$libdir does not exist 27082hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 27083 27084# Whether we need a single "-rpath" flag with a separated argument. 27085hardcode_libdir_separator=$lt_hardcode_libdir_separator 27086 27087# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 27088# DIR into the resulting binary. 27089hardcode_direct=$hardcode_direct 27090 27091# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 27092# DIR into the resulting binary and the resulting library dependency is 27093# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 27094# library is relocated. 27095hardcode_direct_absolute=$hardcode_direct_absolute 27096 27097# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 27098# into the resulting binary. 27099hardcode_minus_L=$hardcode_minus_L 27100 27101# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 27102# into the resulting binary. 27103hardcode_shlibpath_var=$hardcode_shlibpath_var 27104 27105# Set to "yes" if building a shared library automatically hardcodes DIR 27106# into the library and all subsequent libraries and executables linked 27107# against it. 27108hardcode_automatic=$hardcode_automatic 27109 27110# Set to yes if linker adds runtime paths of dependent libraries 27111# to runtime path list. 27112inherit_rpath=$inherit_rpath 27113 27114# Whether libtool must link a program against all its dependency libraries. 27115link_all_deplibs=$link_all_deplibs 27116 27117# Set to "yes" if exported symbols are required. 27118always_export_symbols=$always_export_symbols 27119 27120# The commands to list exported symbols. 27121export_symbols_cmds=$lt_export_symbols_cmds 27122 27123# Symbols that should not be listed in the preloaded symbols. 27124exclude_expsyms=$lt_exclude_expsyms 27125 27126# Symbols that must always be exported. 27127include_expsyms=$lt_include_expsyms 27128 27129# Commands necessary for linking programs (against libraries) with templates. 27130prelink_cmds=$lt_prelink_cmds 27131 27132# Commands necessary for finishing linking programs. 27133postlink_cmds=$lt_postlink_cmds 27134 27135# Specify filename containing input files. 27136file_list_spec=$lt_file_list_spec 27137 27138# How to hardcode a shared library path into an executable. 27139hardcode_action=$hardcode_action 27140 27141# The directories searched by this compiler when creating a shared library. 27142compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 27143 27144# Dependencies to place before and after the objects being linked to 27145# create a shared library. 27146predep_objects=$lt_predep_objects 27147postdep_objects=$lt_postdep_objects 27148predeps=$lt_predeps 27149postdeps=$lt_postdeps 27150 27151# The library search path used internally by the compiler when linking 27152# a shared library. 27153compiler_lib_search_path=$lt_compiler_lib_search_path 27154 27155# ### END LIBTOOL CONFIG 27156 27157_LT_EOF 27158 27159 case $host_os in 27160 aix3*) 27161 cat <<\_LT_EOF >> "$cfgfile" 27162# AIX sometimes has problems with the GCC collect2 program. For some 27163# reason, if we set the COLLECT_NAMES environment variable, the problems 27164# vanish in a puff of smoke. 27165if test "X${COLLECT_NAMES+set}" != Xset; then 27166 COLLECT_NAMES= 27167 export COLLECT_NAMES 27168fi 27169_LT_EOF 27170 ;; 27171 esac 27172 27173 27174ltmain="$ac_aux_dir/ltmain.sh" 27175 27176 27177 # We use sed instead of cat because bash on DJGPP gets confused if 27178 # if finds mixed CR/LF and LF-only lines. Since sed operates in 27179 # text mode, it properly converts lines to CR/LF. This bash problem 27180 # is reportedly fixed, but why not run on old versions too? 27181 sed '$q' "$ltmain" >> "$cfgfile" \ 27182 || (rm -f "$cfgfile"; exit 1) 27183 27184 if test x"$xsi_shell" = xyes; then 27185 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 27186func_dirname ()\ 27187{\ 27188\ case ${1} in\ 27189\ */*) func_dirname_result="${1%/*}${2}" ;;\ 27190\ * ) func_dirname_result="${3}" ;;\ 27191\ esac\ 27192} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 27193 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27194 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27195test 0 -eq $? || _lt_function_replace_fail=: 27196 27197 27198 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 27199func_basename ()\ 27200{\ 27201\ func_basename_result="${1##*/}"\ 27202} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 27203 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27204 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27205test 0 -eq $? || _lt_function_replace_fail=: 27206 27207 27208 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 27209func_dirname_and_basename ()\ 27210{\ 27211\ case ${1} in\ 27212\ */*) func_dirname_result="${1%/*}${2}" ;;\ 27213\ * ) func_dirname_result="${3}" ;;\ 27214\ esac\ 27215\ func_basename_result="${1##*/}"\ 27216} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 27217 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27218 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27219test 0 -eq $? || _lt_function_replace_fail=: 27220 27221 27222 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 27223func_stripname ()\ 27224{\ 27225\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 27226\ # positional parameters, so assign one to ordinary parameter first.\ 27227\ func_stripname_result=${3}\ 27228\ func_stripname_result=${func_stripname_result#"${1}"}\ 27229\ func_stripname_result=${func_stripname_result%"${2}"}\ 27230} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 27231 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27232 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27233test 0 -eq $? || _lt_function_replace_fail=: 27234 27235 27236 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 27237func_split_long_opt ()\ 27238{\ 27239\ func_split_long_opt_name=${1%%=*}\ 27240\ func_split_long_opt_arg=${1#*=}\ 27241} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 27242 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27243 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27244test 0 -eq $? || _lt_function_replace_fail=: 27245 27246 27247 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 27248func_split_short_opt ()\ 27249{\ 27250\ func_split_short_opt_arg=${1#??}\ 27251\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 27252} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 27253 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27254 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27255test 0 -eq $? || _lt_function_replace_fail=: 27256 27257 27258 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 27259func_lo2o ()\ 27260{\ 27261\ case ${1} in\ 27262\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 27263\ *) func_lo2o_result=${1} ;;\ 27264\ esac\ 27265} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 27266 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27267 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27268test 0 -eq $? || _lt_function_replace_fail=: 27269 27270 27271 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 27272func_xform ()\ 27273{\ 27274 func_xform_result=${1%.*}.lo\ 27275} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 27276 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27277 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27278test 0 -eq $? || _lt_function_replace_fail=: 27279 27280 27281 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 27282func_arith ()\ 27283{\ 27284 func_arith_result=$(( $* ))\ 27285} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 27286 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27287 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27288test 0 -eq $? || _lt_function_replace_fail=: 27289 27290 27291 sed -e '/^func_len ()$/,/^} # func_len /c\ 27292func_len ()\ 27293{\ 27294 func_len_result=${#1}\ 27295} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 27296 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27297 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27298test 0 -eq $? || _lt_function_replace_fail=: 27299 27300fi 27301 27302if test x"$lt_shell_append" = xyes; then 27303 sed -e '/^func_append ()$/,/^} # func_append /c\ 27304func_append ()\ 27305{\ 27306 eval "${1}+=\\${2}"\ 27307} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 27308 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27309 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27310test 0 -eq $? || _lt_function_replace_fail=: 27311 27312 27313 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 27314func_append_quoted ()\ 27315{\ 27316\ func_quote_for_eval "${2}"\ 27317\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 27318} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 27319 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27320 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27321test 0 -eq $? || _lt_function_replace_fail=: 27322 27323 27324 # Save a `func_append' function call where possible by direct use of '+=' 27325 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 27326 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27327 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27328 test 0 -eq $? || _lt_function_replace_fail=: 27329else 27330 # Save a `func_append' function call even when '+=' is not available 27331 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 27332 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27333 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27334 test 0 -eq $? || _lt_function_replace_fail=: 27335fi 27336 27337if test x"$_lt_function_replace_fail" = x":"; then 27338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 27339$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 27340fi 27341 27342 27343 mv -f "$cfgfile" "$ofile" || 27344 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 27345 chmod +x "$ofile" 27346 27347 27348 cat <<_LT_EOF >> "$ofile" 27349 27350# ### BEGIN LIBTOOL TAG CONFIG: CXX 27351 27352# The linker used to build libraries. 27353LD=$lt_LD_CXX 27354 27355# How to create reloadable object files. 27356reload_flag=$lt_reload_flag_CXX 27357reload_cmds=$lt_reload_cmds_CXX 27358 27359# Commands used to build an old-style archive. 27360old_archive_cmds=$lt_old_archive_cmds_CXX 27361 27362# A language specific compiler. 27363CC=$lt_compiler_CXX 27364 27365# Is the compiler the GNU compiler? 27366with_gcc=$GCC_CXX 27367 27368# Compiler flag to turn off builtin functions. 27369no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 27370 27371# Additional compiler flags for building library objects. 27372pic_flag=$lt_lt_prog_compiler_pic_CXX 27373 27374# How to pass a linker flag through the compiler. 27375wl=$lt_lt_prog_compiler_wl_CXX 27376 27377# Compiler flag to prevent dynamic linking. 27378link_static_flag=$lt_lt_prog_compiler_static_CXX 27379 27380# Does compiler simultaneously support -c and -o options? 27381compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 27382 27383# Whether or not to add -lc for building shared libraries. 27384build_libtool_need_lc=$archive_cmds_need_lc_CXX 27385 27386# Whether or not to disallow shared libs when runtime libs are static. 27387allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 27388 27389# Compiler flag to allow reflexive dlopens. 27390export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 27391 27392# Compiler flag to generate shared objects directly from archives. 27393whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 27394 27395# Whether the compiler copes with passing no objects directly. 27396compiler_needs_object=$lt_compiler_needs_object_CXX 27397 27398# Create an old-style archive from a shared archive. 27399old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 27400 27401# Create a temporary old-style archive to link instead of a shared archive. 27402old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 27403 27404# Commands used to build a shared archive. 27405archive_cmds=$lt_archive_cmds_CXX 27406archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 27407 27408# Commands used to build a loadable module if different from building 27409# a shared archive. 27410module_cmds=$lt_module_cmds_CXX 27411module_expsym_cmds=$lt_module_expsym_cmds_CXX 27412 27413# Whether we are building with GNU ld or not. 27414with_gnu_ld=$lt_with_gnu_ld_CXX 27415 27416# Flag that allows shared libraries with undefined symbols to be built. 27417allow_undefined_flag=$lt_allow_undefined_flag_CXX 27418 27419# Flag that enforces no undefined symbols. 27420no_undefined_flag=$lt_no_undefined_flag_CXX 27421 27422# Flag to hardcode \$libdir into a binary during linking. 27423# This must work even if \$libdir does not exist 27424hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 27425 27426# Whether we need a single "-rpath" flag with a separated argument. 27427hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 27428 27429# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 27430# DIR into the resulting binary. 27431hardcode_direct=$hardcode_direct_CXX 27432 27433# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 27434# DIR into the resulting binary and the resulting library dependency is 27435# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 27436# library is relocated. 27437hardcode_direct_absolute=$hardcode_direct_absolute_CXX 27438 27439# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 27440# into the resulting binary. 27441hardcode_minus_L=$hardcode_minus_L_CXX 27442 27443# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 27444# into the resulting binary. 27445hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 27446 27447# Set to "yes" if building a shared library automatically hardcodes DIR 27448# into the library and all subsequent libraries and executables linked 27449# against it. 27450hardcode_automatic=$hardcode_automatic_CXX 27451 27452# Set to yes if linker adds runtime paths of dependent libraries 27453# to runtime path list. 27454inherit_rpath=$inherit_rpath_CXX 27455 27456# Whether libtool must link a program against all its dependency libraries. 27457link_all_deplibs=$link_all_deplibs_CXX 27458 27459# Set to "yes" if exported symbols are required. 27460always_export_symbols=$always_export_symbols_CXX 27461 27462# The commands to list exported symbols. 27463export_symbols_cmds=$lt_export_symbols_cmds_CXX 27464 27465# Symbols that should not be listed in the preloaded symbols. 27466exclude_expsyms=$lt_exclude_expsyms_CXX 27467 27468# Symbols that must always be exported. 27469include_expsyms=$lt_include_expsyms_CXX 27470 27471# Commands necessary for linking programs (against libraries) with templates. 27472prelink_cmds=$lt_prelink_cmds_CXX 27473 27474# Commands necessary for finishing linking programs. 27475postlink_cmds=$lt_postlink_cmds_CXX 27476 27477# Specify filename containing input files. 27478file_list_spec=$lt_file_list_spec_CXX 27479 27480# How to hardcode a shared library path into an executable. 27481hardcode_action=$hardcode_action_CXX 27482 27483# The directories searched by this compiler when creating a shared library. 27484compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 27485 27486# Dependencies to place before and after the objects being linked to 27487# create a shared library. 27488predep_objects=$lt_predep_objects_CXX 27489postdep_objects=$lt_postdep_objects_CXX 27490predeps=$lt_predeps_CXX 27491postdeps=$lt_postdeps_CXX 27492 27493# The library search path used internally by the compiler when linking 27494# a shared library. 27495compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 27496 27497# ### END LIBTOOL TAG CONFIG: CXX 27498_LT_EOF 27499 27500 ;; 27501 "sdl2_config":C) chmod a+x sdl2-config ;; 27502 "summary":C) echo -en "$SUMMARY" ;; 27503 27504 esac 27505done # for ac_tag 27506 27507 27508as_fn_exit 0 27509_ACEOF 27510ac_clean_files=$ac_clean_files_save 27511 27512test $ac_write_fail = 0 || 27513 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 27514 27515 27516# configure is writing to config.log, and then calls config.status. 27517# config.status does its own redirection, appending to config.log. 27518# Unfortunately, on DOS this fails, as config.log is still kept open 27519# by configure, so config.status won't be able to write to it; its 27520# output is simply discarded. So we exec the FD to /dev/null, 27521# effectively closing config.log, so it can be properly (re)opened and 27522# appended to by config.status. When coming back to configure, we 27523# need to make the FD available again. 27524if test "$no_create" != yes; then 27525 ac_cs_success=: 27526 ac_config_status_args= 27527 test "$silent" = yes && 27528 ac_config_status_args="$ac_config_status_args --quiet" 27529 exec 5>/dev/null 27530 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 27531 exec 5>>config.log 27532 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 27533 # would make configure fail if this is the last instruction. 27534 $ac_cs_success || as_fn_exit 1 27535fi 27536if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 27537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 27538$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 27539fi 27540 27541
[FILE END]
(C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.