🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32565 lines
955 KiB

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.71.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
  7. # Inc.
  8. #
  9. #
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. ## -------------------- ##
  13. ## M4sh Initialization. ##
  14. ## -------------------- ##
  15. # Be more Bourne compatible
  16. DUALCASE=1; export DUALCASE # for MKS sh
  17. as_nop=:
  18. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  19. then :
  20. emulate sh
  21. NULLCMD=:
  22. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23. # is contrary to our usage. Disable this feature.
  24. alias -g '${1+"$@"}'='"$@"'
  25. setopt NO_GLOB_SUBST
  26. else $as_nop
  27. case `(set -o) 2>/dev/null` in #(
  28. *posix*) :
  29. set -o posix ;; #(
  30. *) :
  31. ;;
  32. esac
  33. fi
  34. # Reset variables that may have inherited troublesome values from
  35. # the environment.
  36. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  37. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  38. # side effect of setting IFS to empty, thus disabling word splitting.)
  39. # Quoting is to prevent editors from complaining about space-tab.
  40. as_nl='
  41. '
  42. export as_nl
  43. IFS=" "" $as_nl"
  44. PS1='$ '
  45. PS2='> '
  46. PS4='+ '
  47. # Ensure predictable behavior from utilities with locale-dependent output.
  48. LC_ALL=C
  49. export LC_ALL
  50. LANGUAGE=C
  51. export LANGUAGE
  52. # We cannot yet rely on "unset" to work, but we need these variables
  53. # to be unset--not just set to an empty or harmless value--now, to
  54. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  55. # also avoids known problems related to "unset" and subshell syntax
  56. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  57. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  58. do eval test \${$as_var+y} \
  59. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  60. done
  61. # Ensure that fds 0, 1, and 2 are open.
  62. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  63. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  64. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  65. # The user is always right.
  66. if ${PATH_SEPARATOR+false} :; then
  67. PATH_SEPARATOR=:
  68. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  69. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  70. PATH_SEPARATOR=';'
  71. }
  72. fi
  73. # Find who we are. Look in the path if we contain no directory separator.
  74. as_myself=
  75. case $0 in #((
  76. *[\\/]* ) as_myself=$0 ;;
  77. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  78. for as_dir in $PATH
  79. do
  80. IFS=$as_save_IFS
  81. case $as_dir in #(((
  82. '') as_dir=./ ;;
  83. */) ;;
  84. *) as_dir=$as_dir/ ;;
  85. esac
  86. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  87. done
  88. IFS=$as_save_IFS
  89. ;;
  90. esac
  91. # We did not find ourselves, most probably we were run as `sh COMMAND'
  92. # in which case we are not to be found in the path.
  93. if test "x$as_myself" = x; then
  94. as_myself=$0
  95. fi
  96. if test ! -f "$as_myself"; then
  97. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  98. exit 1
  99. fi
  100. # Use a proper internal environment variable to ensure we don't fall
  101. # into an infinite loop, continuously re-executing ourselves.
  102. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  103. _as_can_reexec=no; export _as_can_reexec;
  104. # We cannot yet assume a decent shell, so we have to provide a
  105. # neutralization value for shells without unset; and this also
  106. # works around shells that cannot unset nonexistent variables.
  107. # Preserve -v and -x to the replacement shell.
  108. BASH_ENV=/dev/null
  109. ENV=/dev/null
  110. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  111. case $- in # ((((
  112. *v*x* | *x*v* ) as_opts=-vx ;;
  113. *v* ) as_opts=-v ;;
  114. *x* ) as_opts=-x ;;
  115. * ) as_opts= ;;
  116. esac
  117. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  118. # Admittedly, this is quite paranoid, since all the known shells bail
  119. # out after a failed `exec'.
  120. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  121. exit 255
  122. fi
  123. # We don't want this to propagate to other subprocesses.
  124. { _as_can_reexec=; unset _as_can_reexec;}
  125. if test "x$CONFIG_SHELL" = x; then
  126. as_bourne_compatible="as_nop=:
  127. if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  128. then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else \$as_nop
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  155. then :
  156. else \$as_nop
  157. exitcode=1; echo positional parameters were not saved.
  158. fi
  159. test x\$exitcode = x0 || exit 1
  160. blah=\$(echo \$(echo blah))
  161. test x\"\$blah\" = xblah || exit 1
  162. test -x / || exit 1"
  163. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  164. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  165. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  166. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  167. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  168. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  169. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  170. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  171. PATH=/empty FPATH=/empty; export PATH FPATH
  172. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  173. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  174. test \$(( 1 + 1 )) = 2 || exit 1"
  175. if (eval "$as_required") 2>/dev/null
  176. then :
  177. as_have_required=yes
  178. else $as_nop
  179. as_have_required=no
  180. fi
  181. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  182. then :
  183. else $as_nop
  184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  185. as_found=false
  186. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  187. do
  188. IFS=$as_save_IFS
  189. case $as_dir in #(((
  190. '') as_dir=./ ;;
  191. */) ;;
  192. *) as_dir=$as_dir/ ;;
  193. esac
  194. as_found=:
  195. case $as_dir in #(
  196. /*)
  197. for as_base in sh bash ksh sh5; do
  198. # Try only shells that exist, to save several forks.
  199. as_shell=$as_dir$as_base
  200. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  201. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  202. then :
  203. CONFIG_SHELL=$as_shell as_have_required=yes
  204. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  205. then :
  206. break 2
  207. fi
  208. fi
  209. done;;
  210. esac
  211. as_found=false
  212. done
  213. IFS=$as_save_IFS
  214. if $as_found
  215. then :
  216. else $as_nop
  217. if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  218. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  219. then :
  220. CONFIG_SHELL=$SHELL as_have_required=yes
  221. fi
  222. fi
  223. if test "x$CONFIG_SHELL" != x
  224. then :
  225. export CONFIG_SHELL
  226. # We cannot yet assume a decent shell, so we have to provide a
  227. # neutralization value for shells without unset; and this also
  228. # works around shells that cannot unset nonexistent variables.
  229. # Preserve -v and -x to the replacement shell.
  230. BASH_ENV=/dev/null
  231. ENV=/dev/null
  232. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  233. case $- in # ((((
  234. *v*x* | *x*v* ) as_opts=-vx ;;
  235. *v* ) as_opts=-v ;;
  236. *x* ) as_opts=-x ;;
  237. * ) as_opts= ;;
  238. esac
  239. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  240. # Admittedly, this is quite paranoid, since all the known shells bail
  241. # out after a failed `exec'.
  242. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  243. exit 255
  244. fi
  245. if test x$as_have_required = xno
  246. then :
  247. printf "%s\n" "$0: This script requires a shell more modern than all"
  248. printf "%s\n" "$0: the shells that I found on your system."
  249. if test ${ZSH_VERSION+y} ; then
  250. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  251. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  252. else
  253. printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
  254. $0: including any error possibly output before this
  255. $0: message. Then install a modern shell, or manually run
  256. $0: the script under such a shell if you do have one."
  257. fi
  258. exit 1
  259. fi
  260. fi
  261. fi
  262. SHELL=${CONFIG_SHELL-/bin/sh}
  263. export SHELL
  264. # Unset more variables known to interfere with behavior of common tools.
  265. CLICOLOR_FORCE= GREP_OPTIONS=
  266. unset CLICOLOR_FORCE GREP_OPTIONS
  267. ## --------------------- ##
  268. ## M4sh Shell Functions. ##
  269. ## --------------------- ##
  270. # as_fn_unset VAR
  271. # ---------------
  272. # Portably unset VAR.
  273. as_fn_unset ()
  274. {
  275. { eval $1=; unset $1;}
  276. }
  277. as_unset=as_fn_unset
  278. # as_fn_set_status STATUS
  279. # -----------------------
  280. # Set $? to STATUS, without forking.
  281. as_fn_set_status ()
  282. {
  283. return $1
  284. } # as_fn_set_status
  285. # as_fn_exit STATUS
  286. # -----------------
  287. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  288. as_fn_exit ()
  289. {
  290. set +e
  291. as_fn_set_status $1
  292. exit $1
  293. } # as_fn_exit
  294. # as_fn_nop
  295. # ---------
  296. # Do nothing but, unlike ":", preserve the value of $?.
  297. as_fn_nop ()
  298. {
  299. return $?
  300. }
  301. as_nop=as_fn_nop
  302. # as_fn_mkdir_p
  303. # -------------
  304. # Create "$as_dir" as a directory, including parents if necessary.
  305. as_fn_mkdir_p ()
  306. {
  307. case $as_dir in #(
  308. -*) as_dir=./$as_dir;;
  309. esac
  310. test -d "$as_dir" || eval $as_mkdir_p || {
  311. as_dirs=
  312. while :; do
  313. case $as_dir in #(
  314. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  315. *) as_qdir=$as_dir;;
  316. esac
  317. as_dirs="'$as_qdir' $as_dirs"
  318. as_dir=`$as_dirname -- "$as_dir" ||
  319. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  320. X"$as_dir" : 'X\(//\)[^/]' \| \
  321. X"$as_dir" : 'X\(//\)$' \| \
  322. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  323. printf "%s\n" X"$as_dir" |
  324. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  325. s//\1/
  326. q
  327. }
  328. /^X\(\/\/\)[^/].*/{
  329. s//\1/
  330. q
  331. }
  332. /^X\(\/\/\)$/{
  333. s//\1/
  334. q
  335. }
  336. /^X\(\/\).*/{
  337. s//\1/
  338. q
  339. }
  340. s/.*/./; q'`
  341. test -d "$as_dir" && break
  342. done
  343. test -z "$as_dirs" || eval "mkdir $as_dirs"
  344. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  345. } # as_fn_mkdir_p
  346. # as_fn_executable_p FILE
  347. # -----------------------
  348. # Test if FILE is an executable regular file.
  349. as_fn_executable_p ()
  350. {
  351. test -f "$1" && test -x "$1"
  352. } # as_fn_executable_p
  353. # as_fn_append VAR VALUE
  354. # ----------------------
  355. # Append the text in VALUE to the end of the definition contained in VAR. Take
  356. # advantage of any shell optimizations that allow amortized linear growth over
  357. # repeated appends, instead of the typical quadratic growth present in naive
  358. # implementations.
  359. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  360. then :
  361. eval 'as_fn_append ()
  362. {
  363. eval $1+=\$2
  364. }'
  365. else $as_nop
  366. as_fn_append ()
  367. {
  368. eval $1=\$$1\$2
  369. }
  370. fi # as_fn_append
  371. # as_fn_arith ARG...
  372. # ------------------
  373. # Perform arithmetic evaluation on the ARGs, and store the result in the
  374. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  375. # must be portable across $(()) and expr.
  376. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  377. then :
  378. eval 'as_fn_arith ()
  379. {
  380. as_val=$(( $* ))
  381. }'
  382. else $as_nop
  383. as_fn_arith ()
  384. {
  385. as_val=`expr "$@" || test $? -eq 1`
  386. }
  387. fi # as_fn_arith
  388. # as_fn_nop
  389. # ---------
  390. # Do nothing but, unlike ":", preserve the value of $?.
  391. as_fn_nop ()
  392. {
  393. return $?
  394. }
  395. as_nop=as_fn_nop
  396. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  397. # ----------------------------------------
  398. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  399. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  400. # script with STATUS, using 1 if that was 0.
  401. as_fn_error ()
  402. {
  403. as_status=$1; test $as_status -eq 0 && as_status=1
  404. if test "$4"; then
  405. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  406. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  407. fi
  408. printf "%s\n" "$as_me: error: $2" >&2
  409. as_fn_exit $as_status
  410. } # as_fn_error
  411. if expr a : '\(a\)' >/dev/null 2>&1 &&
  412. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  413. as_expr=expr
  414. else
  415. as_expr=false
  416. fi
  417. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  418. as_basename=basename
  419. else
  420. as_basename=false
  421. fi
  422. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  423. as_dirname=dirname
  424. else
  425. as_dirname=false
  426. fi
  427. as_me=`$as_basename -- "$0" ||
  428. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  429. X"$0" : 'X\(//\)$' \| \
  430. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  431. printf "%s\n" X/"$0" |
  432. sed '/^.*\/\([^/][^/]*\)\/*$/{
  433. s//\1/
  434. q
  435. }
  436. /^X\/\(\/\/\)$/{
  437. s//\1/
  438. q
  439. }
  440. /^X\/\(\/\).*/{
  441. s//\1/
  442. q
  443. }
  444. s/.*/./; q'`
  445. # Avoid depending upon Character Ranges.
  446. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  447. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  448. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  449. as_cr_digits='0123456789'
  450. as_cr_alnum=$as_cr_Letters$as_cr_digits
  451. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  452. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  453. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  454. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  455. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  456. sed -n '
  457. p
  458. /[$]LINENO/=
  459. ' <$as_myself |
  460. sed '
  461. s/[$]LINENO.*/&-/
  462. t lineno
  463. b
  464. :lineno
  465. N
  466. :loop
  467. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  468. t loop
  469. s/-\n.*//
  470. ' >$as_me.lineno &&
  471. chmod +x "$as_me.lineno" ||
  472. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  473. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  474. # already done that, so ensure we don't try to do so again and fall
  475. # in an infinite loop. This has already happened in practice.
  476. _as_can_reexec=no; export _as_can_reexec
  477. # Don't try to exec as it changes $[0], causing all sort of problems
  478. # (the dirname of $[0] is not the place where we might find the
  479. # original and so on. Autoconf is especially sensitive to this).
  480. . "./$as_me.lineno"
  481. # Exit status is that of the last command.
  482. exit
  483. }
  484. # Determine whether it's possible to make 'echo' print without a newline.
  485. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  486. # for compatibility with existing Makefiles.
  487. ECHO_C= ECHO_N= ECHO_T=
  488. case `echo -n x` in #(((((
  489. -n*)
  490. case `echo 'xy\c'` in
  491. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  492. xy) ECHO_C='\c';;
  493. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  494. ECHO_T=' ';;
  495. esac;;
  496. *)
  497. ECHO_N='-n';;
  498. esac
  499. # For backward compatibility with old third-party macros, we provide
  500. # the shell variables $as_echo and $as_echo_n. New code should use
  501. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  502. as_echo='printf %s\n'
  503. as_echo_n='printf %s'
  504. rm -f conf$$ conf$$.exe conf$$.file
  505. if test -d conf$$.dir; then
  506. rm -f conf$$.dir/conf$$.file
  507. else
  508. rm -f conf$$.dir
  509. mkdir conf$$.dir 2>/dev/null
  510. fi
  511. if (echo >conf$$.file) 2>/dev/null; then
  512. if ln -s conf$$.file conf$$ 2>/dev/null; then
  513. as_ln_s='ln -s'
  514. # ... but there are two gotchas:
  515. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  516. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  517. # In both cases, we have to default to `cp -pR'.
  518. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  519. as_ln_s='cp -pR'
  520. elif ln conf$$.file conf$$ 2>/dev/null; then
  521. as_ln_s=ln
  522. else
  523. as_ln_s='cp -pR'
  524. fi
  525. else
  526. as_ln_s='cp -pR'
  527. fi
  528. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  529. rmdir conf$$.dir 2>/dev/null
  530. if mkdir -p . 2>/dev/null; then
  531. as_mkdir_p='mkdir -p "$as_dir"'
  532. else
  533. test -d ./-p && rmdir ./-p
  534. as_mkdir_p=false
  535. fi
  536. as_test_x='test -x'
  537. as_executable_p=as_fn_executable_p
  538. # Sed expression to map a string onto a valid CPP name.
  539. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  540. # Sed expression to map a string onto a valid variable name.
  541. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  542. SHELL=${CONFIG_SHELL-/bin/sh}
  543. test -n "$DJDIR" || exec 7<&0 </dev/null
  544. exec 6>&1
  545. # Name of the host.
  546. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  547. # so uname gets run too.
  548. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  549. #
  550. # Initializations.
  551. #
  552. ac_default_prefix=/usr/local
  553. ac_clean_files=
  554. ac_config_libobj_dir=.
  555. LIBOBJS=
  556. cross_compiling=no
  557. subdirs=
  558. MFLAGS=
  559. MAKEFLAGS=
  560. # Identity of this package.
  561. PACKAGE_NAME=''
  562. PACKAGE_TARNAME=''
  563. PACKAGE_VERSION=''
  564. PACKAGE_STRING=''
  565. PACKAGE_BUGREPORT=''
  566. PACKAGE_URL=''
  567. ac_unique_file="src/SDL.c"
  568. # Factoring default headers for most tests.
  569. ac_includes_default="\
  570. #include <stddef.h>
  571. #ifdef HAVE_STDIO_H
  572. # include <stdio.h>
  573. #endif
  574. #ifdef HAVE_STDLIB_H
  575. # include <stdlib.h>
  576. #endif
  577. #ifdef HAVE_STRING_H
  578. # include <string.h>
  579. #endif
  580. #ifdef HAVE_INTTYPES_H
  581. # include <inttypes.h>
  582. #endif
  583. #ifdef HAVE_STDINT_H
  584. # include <stdint.h>
  585. #endif
  586. #ifdef HAVE_STRINGS_H
  587. # include <strings.h>
  588. #endif
  589. #ifdef HAVE_SYS_TYPES_H
  590. # include <sys/types.h>
  591. #endif
  592. #ifdef HAVE_SYS_STAT_H
  593. # include <sys/stat.h>
  594. #endif
  595. #ifdef HAVE_UNISTD_H
  596. # include <unistd.h>
  597. #endif"
  598. ac_header_c_list=
  599. ac_subst_vars='LTLIBOBJS
  600. LIBOBJS
  601. WAYLAND_SCANNER_CODE_MODE
  602. WAYLAND_SCANNER
  603. EXTRA_LDFLAGS
  604. BUILD_LDFLAGS
  605. EXTRA_CFLAGS
  606. BUILD_CFLAGS
  607. SDLTEST_OBJECTS
  608. SDLMAIN_OBJECTS
  609. VERSION_OBJECTS
  610. GEN_OBJECTS
  611. GEN_HEADERS
  612. OBJECTS
  613. INCLUDE
  614. ac_aux_dir
  615. ENABLE_STATIC_FALSE
  616. ENABLE_STATIC_TRUE
  617. ENABLE_SHARED_FALSE
  618. ENABLE_SHARED_TRUE
  619. PKGCONFIG_LIBS_PRIV
  620. SDL_RLD_FLAGS
  621. SDL_STATIC_LIBS
  622. SDL_LIBS
  623. SDL_CFLAGS
  624. bin_prefix_relpath
  625. cmake_prefix_relpath
  626. SDL_VENDOR_INFO
  627. INSTALL_SDL2_CONFIG
  628. LIBUSB_LIBS
  629. LIBUSB_CFLAGS
  630. IBUS_LIBS
  631. IBUS_CFLAGS
  632. DBUS_LIBS
  633. DBUS_CFLAGS
  634. LIBGBM_LIBS
  635. LIBGBM_CFLAGS
  636. LIBDRM_LIBS
  637. LIBDRM_CFLAGS
  638. DIRECTFB_LIBS
  639. DIRECTFB_CFLAGS
  640. X_EXTRA_LIBS
  641. X_LIBS
  642. X_PRE_LIBS
  643. X_CFLAGS
  644. XMKMF
  645. RPI_LIBS
  646. RPI_CFLAGS
  647. DECOR_LIBS
  648. DECOR_CFLAGS
  649. FUSIONSOUND_LIBS
  650. FUSIONSOUND_CFLAGS
  651. SNDIO_LIBS
  652. SNDIO_CFLAGS
  653. ARTSCONFIG
  654. PULSEAUDIO_LIBS
  655. PULSEAUDIO_CFLAGS
  656. PIPEWIRE_LIBS
  657. PIPEWIRE_CFLAGS
  658. ESD_CONFIG
  659. ESD_LIBS
  660. ESD_CFLAGS
  661. JACK_LIBS
  662. JACK_CFLAGS
  663. ALSA_LIBS
  664. ALSA_CFLAGS
  665. ALLOCA
  666. CPP
  667. LIBTOOLLINKERTAG
  668. LINKER
  669. SORT
  670. PKG_CONFIG_LIBDIR
  671. PKG_CONFIG_PATH
  672. PKG_CONFIG
  673. SET_MAKE
  674. INSTALL_DATA
  675. INSTALL_SCRIPT
  676. INSTALL_PROGRAM
  677. CXXCPP
  678. ac_ct_CXX
  679. CXXFLAGS
  680. CXX
  681. LT_AGE
  682. LT_REVISION
  683. LT_CURRENT
  684. LT_RELEASE
  685. RC
  686. LT_SYS_LIBRARY_PATH
  687. OTOOL64
  688. OTOOL
  689. LIPO
  690. NMEDIT
  691. DSYMUTIL
  692. MANIFEST_TOOL
  693. AWK
  694. RANLIB
  695. STRIP
  696. ac_ct_AR
  697. AR
  698. LN_S
  699. NM
  700. ac_ct_DUMPBIN
  701. DUMPBIN
  702. LD
  703. FGREP
  704. EGREP
  705. GREP
  706. SED
  707. OBJEXT
  708. EXEEXT
  709. ac_ct_CC
  710. CPPFLAGS
  711. LDFLAGS
  712. CFLAGS
  713. CC
  714. host_os
  715. host_vendor
  716. host_cpu
  717. host
  718. build_os
  719. build_vendor
  720. build_cpu
  721. build
  722. LIBTOOL
  723. OBJDUMP
  724. DLLTOOL
  725. AS
  726. SDL_VERSION
  727. SDL_BINARY_AGE
  728. SDL_INTERFACE_AGE
  729. SDL_MICRO_VERSION
  730. SDL_MINOR_VERSION
  731. SDL_MAJOR_VERSION
  732. target_alias
  733. host_alias
  734. build_alias
  735. LIBS
  736. ECHO_T
  737. ECHO_N
  738. ECHO_C
  739. DEFS
  740. mandir
  741. localedir
  742. libdir
  743. psdir
  744. pdfdir
  745. dvidir
  746. htmldir
  747. infodir
  748. docdir
  749. oldincludedir
  750. includedir
  751. runstatedir
  752. localstatedir
  753. sharedstatedir
  754. sysconfdir
  755. datadir
  756. datarootdir
  757. libexecdir
  758. sbindir
  759. bindir
  760. program_transform_name
  761. prefix
  762. exec_prefix
  763. PACKAGE_URL
  764. PACKAGE_BUGREPORT
  765. PACKAGE_STRING
  766. PACKAGE_VERSION
  767. PACKAGE_TARNAME
  768. PACKAGE_NAME
  769. PATH_SEPARATOR
  770. SHELL'
  771. ac_subst_files=''
  772. ac_user_opts='
  773. enable_option_checking
  774. enable_shared
  775. enable_static
  776. with_pic
  777. enable_fast_install
  778. with_aix_soname
  779. with_gnu_ld
  780. with_sysroot
  781. enable_libtool_lock
  782. enable_largefile
  783. enable_assertions
  784. enable_dependency_tracking
  785. enable_libc
  786. enable_system_iconv
  787. enable_gcc_atomics
  788. enable_atomic
  789. enable_audio
  790. enable_video
  791. enable_render
  792. enable_events
  793. enable_joystick
  794. enable_haptic
  795. enable_hidapi
  796. enable_sensor
  797. enable_power
  798. enable_filesystem
  799. enable_timers
  800. enable_file
  801. enable_misc
  802. enable_locale
  803. enable_loadso
  804. enable_cpuinfo
  805. enable_assembly
  806. enable_ssemath
  807. enable_mmx
  808. enable_3dnow
  809. enable_sse
  810. enable_sse2
  811. enable_sse3
  812. enable_altivec
  813. enable_lsx
  814. enable_lasx
  815. enable_oss
  816. enable_alsa
  817. with_alsa_prefix
  818. with_alsa_inc_prefix
  819. enable_alsatest
  820. enable_alsa_shared
  821. enable_jack
  822. enable_jack_shared
  823. enable_esd
  824. with_esd_prefix
  825. with_esd_exec_prefix
  826. enable_esdtest
  827. enable_esd_shared
  828. enable_pipewire
  829. enable_pipewire_shared
  830. enable_pulseaudio
  831. enable_pulseaudio_shared
  832. enable_arts
  833. enable_arts_shared
  834. enable_nas
  835. enable_nas_shared
  836. enable_sndio
  837. enable_sndio_shared
  838. enable_fusionsound
  839. enable_fusionsound_shared
  840. enable_diskaudio
  841. enable_dummyaudio
  842. enable_libsamplerate
  843. enable_libsamplerate_shared
  844. enable_arm_simd
  845. enable_arm_neon
  846. enable_werror
  847. enable_video_wayland
  848. enable_video_wayland_qt_touch
  849. enable_wayland_shared
  850. enable_libdecor
  851. enable_libdecor_shared
  852. enable_video_rpi
  853. enable_video_x11
  854. with_x
  855. enable_x11_shared
  856. enable_video_x11_xcursor
  857. enable_video_x11_xdbe
  858. enable_video_x11_xinput
  859. enable_video_x11_xfixes
  860. enable_video_x11_xrandr
  861. enable_video_x11_scrnsaver
  862. enable_video_x11_xshape
  863. enable_video_vivante
  864. enable_video_cocoa
  865. enable_video_metal
  866. enable_render_metal
  867. enable_video_directfb
  868. enable_directfb_shared
  869. enable_video_kmsdrm
  870. enable_kmsdrm_shared
  871. enable_video_dummy
  872. enable_video_offscreen
  873. enable_video_opengl
  874. enable_video_opengles
  875. enable_video_opengles1
  876. enable_video_opengles2
  877. enable_video_vulkan
  878. enable_libudev
  879. enable_dbus
  880. enable_ime
  881. enable_ibus
  882. enable_fcitx
  883. enable_joystick_mfi
  884. enable_pthreads
  885. enable_pthread_sem
  886. enable_directx
  887. enable_xinput
  888. enable_wasapi
  889. enable_hidapi_joystick
  890. enable_hidapi_libusb
  891. enable_clock_gettime
  892. enable_rpath
  893. enable_backgrounding_signal
  894. enable_foregrounding_signal
  895. enable_joystick_virtual
  896. enable_render_d3d
  897. enable_sdl2_config
  898. enable_vendor_info
  899. '
  900. ac_precious_vars='build_alias
  901. host_alias
  902. target_alias
  903. CC
  904. CFLAGS
  905. LDFLAGS
  906. LIBS
  907. CPPFLAGS
  908. LT_SYS_LIBRARY_PATH
  909. CXX
  910. CXXFLAGS
  911. CCC
  912. CXXCPP
  913. PKG_CONFIG
  914. PKG_CONFIG_PATH
  915. PKG_CONFIG_LIBDIR
  916. CPP
  917. JACK_CFLAGS
  918. JACK_LIBS
  919. ESD_CFLAGS
  920. ESD_LIBS
  921. PIPEWIRE_CFLAGS
  922. PIPEWIRE_LIBS
  923. PULSEAUDIO_CFLAGS
  924. PULSEAUDIO_LIBS
  925. SNDIO_CFLAGS
  926. SNDIO_LIBS
  927. FUSIONSOUND_CFLAGS
  928. FUSIONSOUND_LIBS
  929. DECOR_CFLAGS
  930. DECOR_LIBS
  931. RPI_CFLAGS
  932. RPI_LIBS
  933. XMKMF
  934. DIRECTFB_CFLAGS
  935. DIRECTFB_LIBS
  936. LIBDRM_CFLAGS
  937. LIBDRM_LIBS
  938. LIBGBM_CFLAGS
  939. LIBGBM_LIBS
  940. DBUS_CFLAGS
  941. DBUS_LIBS
  942. IBUS_CFLAGS
  943. IBUS_LIBS
  944. LIBUSB_CFLAGS
  945. LIBUSB_LIBS'
  946. # Initialize some variables set by options.
  947. ac_init_help=
  948. ac_init_version=false
  949. ac_unrecognized_opts=
  950. ac_unrecognized_sep=
  951. # The variables have the same names as the options, with
  952. # dashes changed to underlines.
  953. cache_file=/dev/null
  954. exec_prefix=NONE
  955. no_create=
  956. no_recursion=
  957. prefix=NONE
  958. program_prefix=NONE
  959. program_suffix=NONE
  960. program_transform_name=s,x,x,
  961. silent=
  962. site=
  963. srcdir=
  964. verbose=
  965. x_includes=NONE
  966. x_libraries=NONE
  967. # Installation directory options.
  968. # These are left unexpanded so users can "make install exec_prefix=/foo"
  969. # and all the variables that are supposed to be based on exec_prefix
  970. # by default will actually change.
  971. # Use braces instead of parens because sh, perl, etc. also accept them.
  972. # (The list follows the same order as the GNU Coding Standards.)
  973. bindir='${exec_prefix}/bin'
  974. sbindir='${exec_prefix}/sbin'
  975. libexecdir='${exec_prefix}/libexec'
  976. datarootdir='${prefix}/share'
  977. datadir='${datarootdir}'
  978. sysconfdir='${prefix}/etc'
  979. sharedstatedir='${prefix}/com'
  980. localstatedir='${prefix}/var'
  981. runstatedir='${localstatedir}/run'
  982. includedir='${prefix}/include'
  983. oldincludedir='/usr/include'
  984. docdir='${datarootdir}/doc/${PACKAGE}'
  985. infodir='${datarootdir}/info'
  986. htmldir='${docdir}'
  987. dvidir='${docdir}'
  988. pdfdir='${docdir}'
  989. psdir='${docdir}'
  990. libdir='${exec_prefix}/lib'
  991. localedir='${datarootdir}/locale'
  992. mandir='${datarootdir}/man'
  993. ac_prev=
  994. ac_dashdash=
  995. for ac_option
  996. do
  997. # If the previous option needs an argument, assign it.
  998. if test -n "$ac_prev"; then
  999. eval $ac_prev=\$ac_option
  1000. ac_prev=
  1001. continue
  1002. fi
  1003. case $ac_option in
  1004. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1005. *=) ac_optarg= ;;
  1006. *) ac_optarg=yes ;;
  1007. esac
  1008. case $ac_dashdash$ac_option in
  1009. --)
  1010. ac_dashdash=yes ;;
  1011. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1012. ac_prev=bindir ;;
  1013. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1014. bindir=$ac_optarg ;;
  1015. -build | --build | --buil | --bui | --bu)
  1016. ac_prev=build_alias ;;
  1017. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1018. build_alias=$ac_optarg ;;
  1019. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1020. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1021. ac_prev=cache_file ;;
  1022. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1023. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1024. cache_file=$ac_optarg ;;
  1025. --config-cache | -C)
  1026. cache_file=config.cache ;;
  1027. -datadir | --datadir | --datadi | --datad)
  1028. ac_prev=datadir ;;
  1029. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1030. datadir=$ac_optarg ;;
  1031. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1032. | --dataroo | --dataro | --datar)
  1033. ac_prev=datarootdir ;;
  1034. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1035. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1036. datarootdir=$ac_optarg ;;
  1037. -disable-* | --disable-*)
  1038. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1039. # Reject names that are not valid shell variable names.
  1040. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1041. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1042. ac_useropt_orig=$ac_useropt
  1043. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1044. case $ac_user_opts in
  1045. *"
  1046. "enable_$ac_useropt"
  1047. "*) ;;
  1048. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1049. ac_unrecognized_sep=', ';;
  1050. esac
  1051. eval enable_$ac_useropt=no ;;
  1052. -docdir | --docdir | --docdi | --doc | --do)
  1053. ac_prev=docdir ;;
  1054. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1055. docdir=$ac_optarg ;;
  1056. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1057. ac_prev=dvidir ;;
  1058. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1059. dvidir=$ac_optarg ;;
  1060. -enable-* | --enable-*)
  1061. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1062. # Reject names that are not valid shell variable names.
  1063. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1064. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1065. ac_useropt_orig=$ac_useropt
  1066. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1067. case $ac_user_opts in
  1068. *"
  1069. "enable_$ac_useropt"
  1070. "*) ;;
  1071. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1072. ac_unrecognized_sep=', ';;
  1073. esac
  1074. eval enable_$ac_useropt=\$ac_optarg ;;
  1075. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1076. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1077. | --exec | --exe | --ex)
  1078. ac_prev=exec_prefix ;;
  1079. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1080. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1081. | --exec=* | --exe=* | --ex=*)
  1082. exec_prefix=$ac_optarg ;;
  1083. -gas | --gas | --ga | --g)
  1084. # Obsolete; use --with-gas.
  1085. with_gas=yes ;;
  1086. -help | --help | --hel | --he | -h)
  1087. ac_init_help=long ;;
  1088. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1089. ac_init_help=recursive ;;
  1090. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1091. ac_init_help=short ;;
  1092. -host | --host | --hos | --ho)
  1093. ac_prev=host_alias ;;
  1094. -host=* | --host=* | --hos=* | --ho=*)
  1095. host_alias=$ac_optarg ;;
  1096. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1097. ac_prev=htmldir ;;
  1098. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1099. | --ht=*)
  1100. htmldir=$ac_optarg ;;
  1101. -includedir | --includedir | --includedi | --included | --include \
  1102. | --includ | --inclu | --incl | --inc)
  1103. ac_prev=includedir ;;
  1104. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1105. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1106. includedir=$ac_optarg ;;
  1107. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1108. ac_prev=infodir ;;
  1109. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1110. infodir=$ac_optarg ;;
  1111. -libdir | --libdir | --libdi | --libd)
  1112. ac_prev=libdir ;;
  1113. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1114. libdir=$ac_optarg ;;
  1115. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1116. | --libexe | --libex | --libe)
  1117. ac_prev=libexecdir ;;
  1118. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1119. | --libexe=* | --libex=* | --libe=*)
  1120. libexecdir=$ac_optarg ;;
  1121. -localedir | --localedir | --localedi | --localed | --locale)
  1122. ac_prev=localedir ;;
  1123. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1124. localedir=$ac_optarg ;;
  1125. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1126. | --localstate | --localstat | --localsta | --localst | --locals)
  1127. ac_prev=localstatedir ;;
  1128. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1129. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1130. localstatedir=$ac_optarg ;;
  1131. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1132. ac_prev=mandir ;;
  1133. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1134. mandir=$ac_optarg ;;
  1135. -nfp | --nfp | --nf)
  1136. # Obsolete; use --without-fp.
  1137. with_fp=no ;;
  1138. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1139. | --no-cr | --no-c | -n)
  1140. no_create=yes ;;
  1141. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1142. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1143. no_recursion=yes ;;
  1144. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1145. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1146. | --oldin | --oldi | --old | --ol | --o)
  1147. ac_prev=oldincludedir ;;
  1148. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1149. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1150. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1151. oldincludedir=$ac_optarg ;;
  1152. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1153. ac_prev=prefix ;;
  1154. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1155. prefix=$ac_optarg ;;
  1156. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1157. | --program-pre | --program-pr | --program-p)
  1158. ac_prev=program_prefix ;;
  1159. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1160. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1161. program_prefix=$ac_optarg ;;
  1162. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1163. | --program-suf | --program-su | --program-s)
  1164. ac_prev=program_suffix ;;
  1165. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1166. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1167. program_suffix=$ac_optarg ;;
  1168. -program-transform-name | --program-transform-name \
  1169. | --program-transform-nam | --program-transform-na \
  1170. | --program-transform-n | --program-transform- \
  1171. | --program-transform | --program-transfor \
  1172. | --program-transfo | --program-transf \
  1173. | --program-trans | --program-tran \
  1174. | --progr-tra | --program-tr | --program-t)
  1175. ac_prev=program_transform_name ;;
  1176. -program-transform-name=* | --program-transform-name=* \
  1177. | --program-transform-nam=* | --program-transform-na=* \
  1178. | --program-transform-n=* | --program-transform-=* \
  1179. | --program-transform=* | --program-transfor=* \
  1180. | --program-transfo=* | --program-transf=* \
  1181. | --program-trans=* | --program-tran=* \
  1182. | --progr-tra=* | --program-tr=* | --program-t=*)
  1183. program_transform_name=$ac_optarg ;;
  1184. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1185. ac_prev=pdfdir ;;
  1186. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1187. pdfdir=$ac_optarg ;;
  1188. -psdir | --psdir | --psdi | --psd | --ps)
  1189. ac_prev=psdir ;;
  1190. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1191. psdir=$ac_optarg ;;
  1192. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1193. | -silent | --silent | --silen | --sile | --sil)
  1194. silent=yes ;;
  1195. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1196. | --runstate | --runstat | --runsta | --runst | --runs \
  1197. | --run | --ru | --r)
  1198. ac_prev=runstatedir ;;
  1199. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1200. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1201. | --run=* | --ru=* | --r=*)
  1202. runstatedir=$ac_optarg ;;
  1203. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1204. ac_prev=sbindir ;;
  1205. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1206. | --sbi=* | --sb=*)
  1207. sbindir=$ac_optarg ;;
  1208. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1209. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1210. | --sharedst | --shareds | --shared | --share | --shar \
  1211. | --sha | --sh)
  1212. ac_prev=sharedstatedir ;;
  1213. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1214. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1215. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1216. | --sha=* | --sh=*)
  1217. sharedstatedir=$ac_optarg ;;
  1218. -site | --site | --sit)
  1219. ac_prev=site ;;
  1220. -site=* | --site=* | --sit=*)
  1221. site=$ac_optarg ;;
  1222. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1223. ac_prev=srcdir ;;
  1224. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1225. srcdir=$ac_optarg ;;
  1226. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1227. | --syscon | --sysco | --sysc | --sys | --sy)
  1228. ac_prev=sysconfdir ;;
  1229. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1230. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1231. sysconfdir=$ac_optarg ;;
  1232. -target | --target | --targe | --targ | --tar | --ta | --t)
  1233. ac_prev=target_alias ;;
  1234. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1235. target_alias=$ac_optarg ;;
  1236. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1237. verbose=yes ;;
  1238. -version | --version | --versio | --versi | --vers | -V)
  1239. ac_init_version=: ;;
  1240. -with-* | --with-*)
  1241. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1242. # Reject names that are not valid shell variable names.
  1243. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1244. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1245. ac_useropt_orig=$ac_useropt
  1246. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1247. case $ac_user_opts in
  1248. *"
  1249. "with_$ac_useropt"
  1250. "*) ;;
  1251. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1252. ac_unrecognized_sep=', ';;
  1253. esac
  1254. eval with_$ac_useropt=\$ac_optarg ;;
  1255. -without-* | --without-*)
  1256. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1257. # Reject names that are not valid shell variable names.
  1258. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1259. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1260. ac_useropt_orig=$ac_useropt
  1261. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1262. case $ac_user_opts in
  1263. *"
  1264. "with_$ac_useropt"
  1265. "*) ;;
  1266. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1267. ac_unrecognized_sep=', ';;
  1268. esac
  1269. eval with_$ac_useropt=no ;;
  1270. --x)
  1271. # Obsolete; use --with-x.
  1272. with_x=yes ;;
  1273. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1274. | --x-incl | --x-inc | --x-in | --x-i)
  1275. ac_prev=x_includes ;;
  1276. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1277. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1278. x_includes=$ac_optarg ;;
  1279. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1280. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1281. ac_prev=x_libraries ;;
  1282. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1283. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1284. x_libraries=$ac_optarg ;;
  1285. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1286. Try \`$0 --help' for more information"
  1287. ;;
  1288. *=*)
  1289. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1290. # Reject names that are not valid shell variable names.
  1291. case $ac_envvar in #(
  1292. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1293. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1294. esac
  1295. eval $ac_envvar=\$ac_optarg
  1296. export $ac_envvar ;;
  1297. *)
  1298. # FIXME: should be removed in autoconf 3.0.
  1299. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1300. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1301. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1302. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1303. ;;
  1304. esac
  1305. done
  1306. if test -n "$ac_prev"; then
  1307. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1308. as_fn_error $? "missing argument to $ac_option"
  1309. fi
  1310. if test -n "$ac_unrecognized_opts"; then
  1311. case $enable_option_checking in
  1312. no) ;;
  1313. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1314. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1315. esac
  1316. fi
  1317. # Check all directory arguments for consistency.
  1318. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1319. datadir sysconfdir sharedstatedir localstatedir includedir \
  1320. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1321. libdir localedir mandir runstatedir
  1322. do
  1323. eval ac_val=\$$ac_var
  1324. # Remove trailing slashes.
  1325. case $ac_val in
  1326. */ )
  1327. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1328. eval $ac_var=\$ac_val;;
  1329. esac
  1330. # Be sure to have absolute directory names.
  1331. case $ac_val in
  1332. [\\/$]* | ?:[\\/]* ) continue;;
  1333. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1334. esac
  1335. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1336. done
  1337. # There might be people who depend on the old broken behavior: `$host'
  1338. # used to hold the argument of --host etc.
  1339. # FIXME: To remove some day.
  1340. build=$build_alias
  1341. host=$host_alias
  1342. target=$target_alias
  1343. # FIXME: To remove some day.
  1344. if test "x$host_alias" != x; then
  1345. if test "x$build_alias" = x; then
  1346. cross_compiling=maybe
  1347. elif test "x$build_alias" != "x$host_alias"; then
  1348. cross_compiling=yes
  1349. fi
  1350. fi
  1351. ac_tool_prefix=
  1352. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1353. test "$silent" = yes && exec 6>/dev/null
  1354. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1355. ac_ls_di=`ls -di .` &&
  1356. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1357. as_fn_error $? "working directory cannot be determined"
  1358. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1359. as_fn_error $? "pwd does not report name of working directory"
  1360. # Find the source files, if location was not specified.
  1361. if test -z "$srcdir"; then
  1362. ac_srcdir_defaulted=yes
  1363. # Try the directory containing this script, then the parent directory.
  1364. ac_confdir=`$as_dirname -- "$as_myself" ||
  1365. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1366. X"$as_myself" : 'X\(//\)[^/]' \| \
  1367. X"$as_myself" : 'X\(//\)$' \| \
  1368. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1369. printf "%s\n" X"$as_myself" |
  1370. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1371. s//\1/
  1372. q
  1373. }
  1374. /^X\(\/\/\)[^/].*/{
  1375. s//\1/
  1376. q
  1377. }
  1378. /^X\(\/\/\)$/{
  1379. s//\1/
  1380. q
  1381. }
  1382. /^X\(\/\).*/{
  1383. s//\1/
  1384. q
  1385. }
  1386. s/.*/./; q'`
  1387. srcdir=$ac_confdir
  1388. if test ! -r "$srcdir/$ac_unique_file"; then
  1389. srcdir=..
  1390. fi
  1391. else
  1392. ac_srcdir_defaulted=no
  1393. fi
  1394. if test ! -r "$srcdir/$ac_unique_file"; then
  1395. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1396. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1397. fi
  1398. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1399. ac_abs_confdir=`(
  1400. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1401. pwd)`
  1402. # When building in place, set srcdir=.
  1403. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1404. srcdir=.
  1405. fi
  1406. # Remove unnecessary trailing slashes from srcdir.
  1407. # Double slashes in file names in object file debugging info
  1408. # mess up M-x gdb in Emacs.
  1409. case $srcdir in
  1410. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1411. esac
  1412. for ac_var in $ac_precious_vars; do
  1413. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1414. eval ac_env_${ac_var}_value=\$${ac_var}
  1415. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1416. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1417. done
  1418. #
  1419. # Report the --help message.
  1420. #
  1421. if test "$ac_init_help" = "long"; then
  1422. # Omit some internal or obsolete options to make the list less imposing.
  1423. # This message is too long to be a string in the A/UX 3.1 sh.
  1424. cat <<_ACEOF
  1425. \`configure' configures this package to adapt to many kinds of systems.
  1426. Usage: $0 [OPTION]... [VAR=VALUE]...
  1427. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1428. VAR=VALUE. See below for descriptions of some of the useful variables.
  1429. Defaults for the options are specified in brackets.
  1430. Configuration:
  1431. -h, --help display this help and exit
  1432. --help=short display options specific to this package
  1433. --help=recursive display the short help of all the included packages
  1434. -V, --version display version information and exit
  1435. -q, --quiet, --silent do not print \`checking ...' messages
  1436. --cache-file=FILE cache test results in FILE [disabled]
  1437. -C, --config-cache alias for \`--cache-file=config.cache'
  1438. -n, --no-create do not create output files
  1439. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1440. Installation directories:
  1441. --prefix=PREFIX install architecture-independent files in PREFIX
  1442. [$ac_default_prefix]
  1443. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1444. [PREFIX]
  1445. By default, \`make install' will install all the files in
  1446. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1447. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1448. for instance \`--prefix=\$HOME'.
  1449. For better control, use the options below.
  1450. Fine tuning of the installation directories:
  1451. --bindir=DIR user executables [EPREFIX/bin]
  1452. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1453. --libexecdir=DIR program executables [EPREFIX/libexec]
  1454. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1455. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1456. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1457. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1458. --libdir=DIR object code libraries [EPREFIX/lib]
  1459. --includedir=DIR C header files [PREFIX/include]
  1460. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1461. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1462. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1463. --infodir=DIR info documentation [DATAROOTDIR/info]
  1464. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1465. --mandir=DIR man documentation [DATAROOTDIR/man]
  1466. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1467. --htmldir=DIR html documentation [DOCDIR]
  1468. --dvidir=DIR dvi documentation [DOCDIR]
  1469. --pdfdir=DIR pdf documentation [DOCDIR]
  1470. --psdir=DIR ps documentation [DOCDIR]
  1471. _ACEOF
  1472. cat <<\_ACEOF
  1473. X features:
  1474. --x-includes=DIR X include files are in DIR
  1475. --x-libraries=DIR X library files are in DIR
  1476. System types:
  1477. --build=BUILD configure for building on BUILD [guessed]
  1478. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1479. _ACEOF
  1480. fi
  1481. if test -n "$ac_init_help"; then
  1482. cat <<\_ACEOF
  1483. Optional Features:
  1484. --disable-option-checking ignore unrecognized --enable/--with options
  1485. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1486. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1487. --enable-shared[=PKGS] build shared libraries [default=yes]
  1488. --enable-static[=PKGS] build static libraries [default=yes]
  1489. --enable-fast-install[=PKGS]
  1490. optimize for fast installation [default=yes]
  1491. --disable-libtool-lock avoid locking (might break parallel builds)
  1492. --disable-largefile omit support for large files
  1493. --enable-assertions Enable internal sanity checks
  1494. (auto/disabled/release/enabled/paranoid)
  1495. [default=auto]
  1496. --enable-dependency-tracking
  1497. Use gcc -MMD -MT dependency tracking [default=yes]
  1498. --enable-libc Use the system C library [default=yes]
  1499. --enable-system-iconv Use iconv() from system-installed libraries
  1500. [default=yes]
  1501. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1502. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1503. --enable-audio Enable the audio subsystem [default=yes]
  1504. --enable-video Enable the video subsystem [default=yes]
  1505. --enable-render Enable the render subsystem [default=yes]
  1506. --enable-events Enable the events subsystem [default=yes]
  1507. --enable-joystick Enable the joystick subsystem [default=yes]
  1508. --enable-haptic Enable the haptic (force feedback) subsystem
  1509. [default=yes]
  1510. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1511. --enable-sensor Enable the sensor subsystem [default=yes]
  1512. --enable-power Enable the power subsystem [default=yes]
  1513. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1514. --enable-timers Enable the timer subsystem [default=yes]
  1515. --enable-file Enable the file subsystem [default=yes]
  1516. --enable-misc Enable the misc subsystem [default=yes]
  1517. --enable-locale Enable the locale subsystem [default=yes]
  1518. --enable-loadso Enable the shared object loading subsystem
  1519. [default=yes]
  1520. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1521. --enable-assembly Enable assembly routines [default=yes]
  1522. --enable-ssemath Allow GCC to use SSE floating point math
  1523. [default=maybe]
  1524. --enable-mmx use MMX assembly routines [default=yes]
  1525. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1526. --enable-sse use SSE assembly routines [default=yes]
  1527. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1528. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1529. --enable-altivec use Altivec assembly routines [default=yes]
  1530. --enable-lsx use LSX assembly routines [default=yes]
  1531. --enable-lasx use LASX assembly routines [default=yes]
  1532. --enable-oss support the OSS audio API [default=maybe]
  1533. --enable-alsa support the ALSA audio API [default=yes]
  1534. --disable-alsatest Do not try to compile and run a test Alsa program
  1535. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1536. --enable-jack use JACK audio [default=yes]
  1537. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1538. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1539. --disable-esdtest Do not try to compile and run a test ESD program
  1540. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1541. --enable-pipewire use Pipewire audio [default=yes]
  1542. --enable-pipewire-shared
  1543. dynamically load Pipewire support [default=yes]
  1544. --enable-pulseaudio use PulseAudio [default=yes]
  1545. --enable-pulseaudio-shared
  1546. dynamically load PulseAudio support [default=yes]
  1547. --enable-arts support the Analog Real Time Synthesizer
  1548. [default=yes]
  1549. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1550. --enable-nas support the NAS audio API [default=yes]
  1551. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1552. --enable-sndio support the sndio audio API [default=yes]
  1553. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1554. --enable-fusionsound use FusionSound audio driver [default=no]
  1555. --enable-fusionsound-shared
  1556. dynamically load fusionsound audio support
  1557. [default=yes]
  1558. --enable-diskaudio support the disk writer audio driver [default=yes]
  1559. --enable-dummyaudio support the dummy audio driver [default=yes]
  1560. --enable-libsamplerate use libsamplerate for audio rate conversion
  1561. [default=yes]
  1562. --enable-libsamplerate-shared
  1563. dynamically load libsamplerate [default=yes]
  1564. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1565. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1566. --enable-werror treat warnings as errors [default=no]
  1567. --enable-video-wayland use Wayland video driver [default=yes]
  1568. --enable-video-wayland-qt-touch
  1569. QtWayland server support for Wayland video driver
  1570. [default=yes]
  1571. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1572. --enable-libdecor use libdecor for Wayland client-side decorations
  1573. [default=yes]
  1574. --enable-libdecor-shared
  1575. dynamically load libdecor [default=yes]
  1576. --enable-video-rpi use Raspberry Pi 2/3 video driver [default=yes]
  1577. --enable-video-x11 use X11 video driver [default=maybe]
  1578. --enable-x11-shared dynamically load X11 support [default=maybe]
  1579. --enable-video-x11-xcursor
  1580. enable X11 Xcursor support [default=yes]
  1581. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1582. --enable-video-x11-xinput
  1583. enable X11 XInput extension for manymouse, tablets,
  1584. etc [default=yes]
  1585. --enable-video-x11-xfixes
  1586. enable X11 Xfixes support [default=yes]
  1587. --enable-video-x11-xrandr
  1588. enable X11 Xrandr extension for fullscreen
  1589. [default=yes]
  1590. --enable-video-x11-scrnsaver
  1591. enable X11 screensaver extension [default=yes]
  1592. --enable-video-x11-xshape
  1593. enable X11 XShape support [default=yes]
  1594. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1595. --enable-video-cocoa use Cocoa video driver [default=yes]
  1596. --enable-video-metal include Metal support [default=yes]
  1597. --enable-render-metal enable the Metal render driver [default=yes]
  1598. --enable-video-directfb use DirectFB video driver [default=no]
  1599. --enable-directfb-shared
  1600. dynamically load directfb support [default=yes]
  1601. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1602. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1603. --enable-video-dummy use dummy video driver [default=yes]
  1604. --enable-video-offscreen
  1605. use offscreen video driver [default=yes]
  1606. --enable-video-opengl include OpenGL support [default=yes]
  1607. --enable-video-opengles include OpenGL ES support [default=yes]
  1608. --enable-video-opengles1
  1609. include OpenGL ES 1.1 support [default=yes]
  1610. --enable-video-opengles2
  1611. include OpenGL ES 2.0 support [default=yes]
  1612. --enable-video-vulkan include Vulkan support [default=yes]
  1613. --enable-libudev enable libudev support [default=yes]
  1614. --enable-dbus enable D-Bus support [default=yes]
  1615. --enable-ime enable IME support [default=yes]
  1616. --enable-ibus enable IBus support [default=yes]
  1617. --enable-fcitx enable fcitx support [default=yes]
  1618. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1619. --enable-pthreads use POSIX threads for multi-threading
  1620. [default=maybe]
  1621. --enable-pthread-sem use pthread semaphores [default=maybe]
  1622. --enable-directx use DirectX for Windows audio/video [default=yes]
  1623. --enable-xinput use Xinput for Windows [default=yes]
  1624. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1625. --enable-hidapi-joystick
  1626. use HIDAPI for low level joystick drivers
  1627. [default=yes]
  1628. --enable-hidapi-libusb use libusb for low level joystick drivers
  1629. [default=maybe]
  1630. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1631. UNIX [default=yes]
  1632. --enable-rpath use an rpath when linking SDL [default=yes]
  1633. --enable-backgrounding-signal
  1634. number to use for magic backgrounding signal or 'no'
  1635. [default=no]
  1636. --enable-foregrounding-signal
  1637. number to use for magic foregrounding signal or 'no'
  1638. [default=no]
  1639. --enable-joystick-virtual
  1640. enable virtual joystick APIs [default=yes]
  1641. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1642. --enable-sdl2-config Install sdl2-config [default=yes]
  1643. --enable-vendor-info=STRING
  1644. Add vendor info to SDL_REVISION
  1645. Optional Packages:
  1646. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1647. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1648. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1649. both]
  1650. --with-aix-soname=aix|svr4|both
  1651. shared library versioning (aka "SONAME") variant to
  1652. provide on AIX, [default=aix].
  1653. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1654. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1655. compiler's sysroot if not specified).
  1656. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1657. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1658. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1659. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1660. --with-x use the X Window System
  1661. Some influential environment variables:
  1662. CC C compiler command
  1663. CFLAGS C compiler flags
  1664. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1665. nonstandard directory <lib dir>
  1666. LIBS libraries to pass to the linker, e.g. -l<library>
  1667. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1668. you have headers in a nonstandard directory <include dir>
  1669. LT_SYS_LIBRARY_PATH
  1670. User-defined run-time library search path.
  1671. CXX C++ compiler command
  1672. CXXFLAGS C++ compiler flags
  1673. CXXCPP C++ preprocessor
  1674. PKG_CONFIG path to pkg-config utility
  1675. PKG_CONFIG_PATH
  1676. directories to add to pkg-config's search path
  1677. PKG_CONFIG_LIBDIR
  1678. path overriding pkg-config's built-in search path
  1679. CPP C preprocessor
  1680. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1681. JACK_LIBS linker flags for JACK, overriding pkg-config
  1682. ESD_CFLAGS C compiler flags for ESD, overriding pkg-config
  1683. ESD_LIBS linker flags for ESD, overriding pkg-config
  1684. PIPEWIRE_CFLAGS
  1685. C compiler flags for PIPEWIRE, overriding pkg-config
  1686. PIPEWIRE_LIBS
  1687. linker flags for PIPEWIRE, overriding pkg-config
  1688. PULSEAUDIO_CFLAGS
  1689. C compiler flags for PULSEAUDIO, overriding pkg-config
  1690. PULSEAUDIO_LIBS
  1691. linker flags for PULSEAUDIO, overriding pkg-config
  1692. SNDIO_CFLAGS
  1693. C compiler flags for SNDIO, overriding pkg-config
  1694. SNDIO_LIBS linker flags for SNDIO, overriding pkg-config
  1695. FUSIONSOUND_CFLAGS
  1696. C compiler flags for FUSIONSOUND, overriding pkg-config
  1697. FUSIONSOUND_LIBS
  1698. linker flags for FUSIONSOUND, overriding pkg-config
  1699. DECOR_CFLAGS
  1700. C compiler flags for DECOR, overriding pkg-config
  1701. DECOR_LIBS linker flags for DECOR, overriding pkg-config
  1702. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1703. RPI_LIBS linker flags for RPI, overriding pkg-config
  1704. XMKMF Path to xmkmf, Makefile generator for X Window System
  1705. DIRECTFB_CFLAGS
  1706. C compiler flags for DIRECTFB, overriding pkg-config
  1707. DIRECTFB_LIBS
  1708. linker flags for DIRECTFB, overriding pkg-config
  1709. LIBDRM_CFLAGS
  1710. C compiler flags for LIBDRM, overriding pkg-config
  1711. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1712. LIBGBM_CFLAGS
  1713. C compiler flags for LIBGBM, overriding pkg-config
  1714. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1715. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1716. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1717. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1718. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1719. LIBUSB_CFLAGS
  1720. C compiler flags for LIBUSB, overriding pkg-config
  1721. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1722. Use these variables to override the choices made by `configure' or to help
  1723. it to find libraries and programs with nonstandard names/locations.
  1724. Report bugs to the package provider.
  1725. _ACEOF
  1726. ac_status=$?
  1727. fi
  1728. if test "$ac_init_help" = "recursive"; then
  1729. # If there are subdirs, report their specific --help.
  1730. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1731. test -d "$ac_dir" ||
  1732. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1733. continue
  1734. ac_builddir=.
  1735. case "$ac_dir" in
  1736. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1737. *)
  1738. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1739. # A ".." for each directory in $ac_dir_suffix.
  1740. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1741. case $ac_top_builddir_sub in
  1742. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1743. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1744. esac ;;
  1745. esac
  1746. ac_abs_top_builddir=$ac_pwd
  1747. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1748. # for backward compatibility:
  1749. ac_top_builddir=$ac_top_build_prefix
  1750. case $srcdir in
  1751. .) # We are building in place.
  1752. ac_srcdir=.
  1753. ac_top_srcdir=$ac_top_builddir_sub
  1754. ac_abs_top_srcdir=$ac_pwd ;;
  1755. [\\/]* | ?:[\\/]* ) # Absolute name.
  1756. ac_srcdir=$srcdir$ac_dir_suffix;
  1757. ac_top_srcdir=$srcdir
  1758. ac_abs_top_srcdir=$srcdir ;;
  1759. *) # Relative name.
  1760. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1761. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1762. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1763. esac
  1764. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1765. cd "$ac_dir" || { ac_status=$?; continue; }
  1766. # Check for configure.gnu first; this name is used for a wrapper for
  1767. # Metaconfig's "Configure" on case-insensitive file systems.
  1768. if test -f "$ac_srcdir/configure.gnu"; then
  1769. echo &&
  1770. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1771. elif test -f "$ac_srcdir/configure"; then
  1772. echo &&
  1773. $SHELL "$ac_srcdir/configure" --help=recursive
  1774. else
  1775. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1776. fi || ac_status=$?
  1777. cd "$ac_pwd" || { ac_status=$?; break; }
  1778. done
  1779. fi
  1780. test -n "$ac_init_help" && exit $ac_status
  1781. if $ac_init_version; then
  1782. cat <<\_ACEOF
  1783. configure
  1784. generated by GNU Autoconf 2.71
  1785. Copyright (C) 2021 Free Software Foundation, Inc.
  1786. This configure script is free software; the Free Software Foundation
  1787. gives unlimited permission to copy, distribute and modify it.
  1788. _ACEOF
  1789. exit
  1790. fi
  1791. ## ------------------------ ##
  1792. ## Autoconf initialization. ##
  1793. ## ------------------------ ##
  1794. # ac_fn_c_try_compile LINENO
  1795. # --------------------------
  1796. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1797. ac_fn_c_try_compile ()
  1798. {
  1799. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1800. rm -f conftest.$ac_objext conftest.beam
  1801. if { { ac_try="$ac_compile"
  1802. case "(($ac_try" in
  1803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1804. *) ac_try_echo=$ac_try;;
  1805. esac
  1806. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1807. printf "%s\n" "$ac_try_echo"; } >&5
  1808. (eval "$ac_compile") 2>conftest.err
  1809. ac_status=$?
  1810. if test -s conftest.err; then
  1811. grep -v '^ *+' conftest.err >conftest.er1
  1812. cat conftest.er1 >&5
  1813. mv -f conftest.er1 conftest.err
  1814. fi
  1815. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1816. test $ac_status = 0; } && {
  1817. test -z "$ac_c_werror_flag" ||
  1818. test ! -s conftest.err
  1819. } && test -s conftest.$ac_objext
  1820. then :
  1821. ac_retval=0
  1822. else $as_nop
  1823. printf "%s\n" "$as_me: failed program was:" >&5
  1824. sed 's/^/| /' conftest.$ac_ext >&5
  1825. ac_retval=1
  1826. fi
  1827. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1828. as_fn_set_status $ac_retval
  1829. } # ac_fn_c_try_compile
  1830. # ac_fn_c_try_link LINENO
  1831. # -----------------------
  1832. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1833. ac_fn_c_try_link ()
  1834. {
  1835. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1836. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1837. if { { ac_try="$ac_link"
  1838. case "(($ac_try" in
  1839. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1840. *) ac_try_echo=$ac_try;;
  1841. esac
  1842. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1843. printf "%s\n" "$ac_try_echo"; } >&5
  1844. (eval "$ac_link") 2>conftest.err
  1845. ac_status=$?
  1846. if test -s conftest.err; then
  1847. grep -v '^ *+' conftest.err >conftest.er1
  1848. cat conftest.er1 >&5
  1849. mv -f conftest.er1 conftest.err
  1850. fi
  1851. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1852. test $ac_status = 0; } && {
  1853. test -z "$ac_c_werror_flag" ||
  1854. test ! -s conftest.err
  1855. } && test -s conftest$ac_exeext && {
  1856. test "$cross_compiling" = yes ||
  1857. test -x conftest$ac_exeext
  1858. }
  1859. then :
  1860. ac_retval=0
  1861. else $as_nop
  1862. printf "%s\n" "$as_me: failed program was:" >&5
  1863. sed 's/^/| /' conftest.$ac_ext >&5
  1864. ac_retval=1
  1865. fi
  1866. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1867. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1868. # interfere with the next link command; also delete a directory that is
  1869. # left behind by Apple's compiler. We do this before executing the actions.
  1870. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1871. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1872. as_fn_set_status $ac_retval
  1873. } # ac_fn_c_try_link
  1874. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1875. # -------------------------------------------------------
  1876. # Tests whether HEADER exists and can be compiled using the include files in
  1877. # INCLUDES, setting the cache variable VAR accordingly.
  1878. ac_fn_c_check_header_compile ()
  1879. {
  1880. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1882. printf %s "checking for $2... " >&6; }
  1883. if eval test \${$3+y}
  1884. then :
  1885. printf %s "(cached) " >&6
  1886. else $as_nop
  1887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1888. /* end confdefs.h. */
  1889. $4
  1890. #include <$2>
  1891. _ACEOF
  1892. if ac_fn_c_try_compile "$LINENO"
  1893. then :
  1894. eval "$3=yes"
  1895. else $as_nop
  1896. eval "$3=no"
  1897. fi
  1898. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1899. fi
  1900. eval ac_res=\$$3
  1901. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1902. printf "%s\n" "$ac_res" >&6; }
  1903. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1904. } # ac_fn_c_check_header_compile
  1905. # ac_fn_c_check_func LINENO FUNC VAR
  1906. # ----------------------------------
  1907. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1908. ac_fn_c_check_func ()
  1909. {
  1910. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1912. printf %s "checking for $2... " >&6; }
  1913. if eval test \${$3+y}
  1914. then :
  1915. printf %s "(cached) " >&6
  1916. else $as_nop
  1917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1918. /* end confdefs.h. */
  1919. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1920. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1921. #define $2 innocuous_$2
  1922. /* System header to define __stub macros and hopefully few prototypes,
  1923. which can conflict with char $2 (); below. */
  1924. #include <limits.h>
  1925. #undef $2
  1926. /* Override any GCC internal prototype to avoid an error.
  1927. Use char because int might match the return type of a GCC
  1928. builtin and then its argument prototype would still apply. */
  1929. #ifdef __cplusplus
  1930. extern "C"
  1931. #endif
  1932. char $2 ();
  1933. /* The GNU C library defines this for functions which it implements
  1934. to always fail with ENOSYS. Some functions are actually named
  1935. something starting with __ and the normal name is an alias. */
  1936. #if defined __stub_$2 || defined __stub___$2
  1937. choke me
  1938. #endif
  1939. int
  1940. main (void)
  1941. {
  1942. return $2 ();
  1943. ;
  1944. return 0;
  1945. }
  1946. _ACEOF
  1947. if ac_fn_c_try_link "$LINENO"
  1948. then :
  1949. eval "$3=yes"
  1950. else $as_nop
  1951. eval "$3=no"
  1952. fi
  1953. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1954. conftest$ac_exeext conftest.$ac_ext
  1955. fi
  1956. eval ac_res=\$$3
  1957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1958. printf "%s\n" "$ac_res" >&6; }
  1959. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1960. } # ac_fn_c_check_func
  1961. # ac_fn_cxx_try_compile LINENO
  1962. # ----------------------------
  1963. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1964. ac_fn_cxx_try_compile ()
  1965. {
  1966. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1967. rm -f conftest.$ac_objext conftest.beam
  1968. if { { ac_try="$ac_compile"
  1969. case "(($ac_try" in
  1970. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1971. *) ac_try_echo=$ac_try;;
  1972. esac
  1973. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1974. printf "%s\n" "$ac_try_echo"; } >&5
  1975. (eval "$ac_compile") 2>conftest.err
  1976. ac_status=$?
  1977. if test -s conftest.err; then
  1978. grep -v '^ *+' conftest.err >conftest.er1
  1979. cat conftest.er1 >&5
  1980. mv -f conftest.er1 conftest.err
  1981. fi
  1982. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1983. test $ac_status = 0; } && {
  1984. test -z "$ac_cxx_werror_flag" ||
  1985. test ! -s conftest.err
  1986. } && test -s conftest.$ac_objext
  1987. then :
  1988. ac_retval=0
  1989. else $as_nop
  1990. printf "%s\n" "$as_me: failed program was:" >&5
  1991. sed 's/^/| /' conftest.$ac_ext >&5
  1992. ac_retval=1
  1993. fi
  1994. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1995. as_fn_set_status $ac_retval
  1996. } # ac_fn_cxx_try_compile
  1997. # ac_fn_cxx_try_cpp LINENO
  1998. # ------------------------
  1999. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2000. ac_fn_cxx_try_cpp ()
  2001. {
  2002. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2003. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2004. case "(($ac_try" in
  2005. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2006. *) ac_try_echo=$ac_try;;
  2007. esac
  2008. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2009. printf "%s\n" "$ac_try_echo"; } >&5
  2010. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2011. ac_status=$?
  2012. if test -s conftest.err; then
  2013. grep -v '^ *+' conftest.err >conftest.er1
  2014. cat conftest.er1 >&5
  2015. mv -f conftest.er1 conftest.err
  2016. fi
  2017. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2018. test $ac_status = 0; } > conftest.i && {
  2019. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2020. test ! -s conftest.err
  2021. }
  2022. then :
  2023. ac_retval=0
  2024. else $as_nop
  2025. printf "%s\n" "$as_me: failed program was:" >&5
  2026. sed 's/^/| /' conftest.$ac_ext >&5
  2027. ac_retval=1
  2028. fi
  2029. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2030. as_fn_set_status $ac_retval
  2031. } # ac_fn_cxx_try_cpp
  2032. # ac_fn_cxx_try_link LINENO
  2033. # -------------------------
  2034. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2035. ac_fn_cxx_try_link ()
  2036. {
  2037. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2038. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  2039. if { { ac_try="$ac_link"
  2040. case "(($ac_try" in
  2041. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2042. *) ac_try_echo=$ac_try;;
  2043. esac
  2044. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2045. printf "%s\n" "$ac_try_echo"; } >&5
  2046. (eval "$ac_link") 2>conftest.err
  2047. ac_status=$?
  2048. if test -s conftest.err; then
  2049. grep -v '^ *+' conftest.err >conftest.er1
  2050. cat conftest.er1 >&5
  2051. mv -f conftest.er1 conftest.err
  2052. fi
  2053. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2054. test $ac_status = 0; } && {
  2055. test -z "$ac_cxx_werror_flag" ||
  2056. test ! -s conftest.err
  2057. } && test -s conftest$ac_exeext && {
  2058. test "$cross_compiling" = yes ||
  2059. test -x conftest$ac_exeext
  2060. }
  2061. then :
  2062. ac_retval=0
  2063. else $as_nop
  2064. printf "%s\n" "$as_me: failed program was:" >&5
  2065. sed 's/^/| /' conftest.$ac_ext >&5
  2066. ac_retval=1
  2067. fi
  2068. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2069. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2070. # interfere with the next link command; also delete a directory that is
  2071. # left behind by Apple's compiler. We do this before executing the actions.
  2072. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2073. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2074. as_fn_set_status $ac_retval
  2075. } # ac_fn_cxx_try_link
  2076. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2077. # -------------------------------------------
  2078. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2079. # variable VAR accordingly.
  2080. ac_fn_c_check_type ()
  2081. {
  2082. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2083. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2084. printf %s "checking for $2... " >&6; }
  2085. if eval test \${$3+y}
  2086. then :
  2087. printf %s "(cached) " >&6
  2088. else $as_nop
  2089. eval "$3=no"
  2090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2091. /* end confdefs.h. */
  2092. $4
  2093. int
  2094. main (void)
  2095. {
  2096. if (sizeof ($2))
  2097. return 0;
  2098. ;
  2099. return 0;
  2100. }
  2101. _ACEOF
  2102. if ac_fn_c_try_compile "$LINENO"
  2103. then :
  2104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2105. /* end confdefs.h. */
  2106. $4
  2107. int
  2108. main (void)
  2109. {
  2110. if (sizeof (($2)))
  2111. return 0;
  2112. ;
  2113. return 0;
  2114. }
  2115. _ACEOF
  2116. if ac_fn_c_try_compile "$LINENO"
  2117. then :
  2118. else $as_nop
  2119. eval "$3=yes"
  2120. fi
  2121. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2122. fi
  2123. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2124. fi
  2125. eval ac_res=\$$3
  2126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2127. printf "%s\n" "$ac_res" >&6; }
  2128. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2129. } # ac_fn_c_check_type
  2130. # ac_fn_c_try_cpp LINENO
  2131. # ----------------------
  2132. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2133. ac_fn_c_try_cpp ()
  2134. {
  2135. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2136. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2137. case "(($ac_try" in
  2138. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2139. *) ac_try_echo=$ac_try;;
  2140. esac
  2141. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2142. printf "%s\n" "$ac_try_echo"; } >&5
  2143. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2144. ac_status=$?
  2145. if test -s conftest.err; then
  2146. grep -v '^ *+' conftest.err >conftest.er1
  2147. cat conftest.er1 >&5
  2148. mv -f conftest.er1 conftest.err
  2149. fi
  2150. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2151. test $ac_status = 0; } > conftest.i && {
  2152. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2153. test ! -s conftest.err
  2154. }
  2155. then :
  2156. ac_retval=0
  2157. else $as_nop
  2158. printf "%s\n" "$as_me: failed program was:" >&5
  2159. sed 's/^/| /' conftest.$ac_ext >&5
  2160. ac_retval=1
  2161. fi
  2162. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2163. as_fn_set_status $ac_retval
  2164. } # ac_fn_c_try_cpp
  2165. # ac_fn_c_try_run LINENO
  2166. # ----------------------
  2167. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  2168. # executables *can* be run.
  2169. ac_fn_c_try_run ()
  2170. {
  2171. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2172. if { { ac_try="$ac_link"
  2173. case "(($ac_try" in
  2174. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2175. *) ac_try_echo=$ac_try;;
  2176. esac
  2177. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2178. printf "%s\n" "$ac_try_echo"; } >&5
  2179. (eval "$ac_link") 2>&5
  2180. ac_status=$?
  2181. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2182. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2183. { { case "(($ac_try" in
  2184. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2185. *) ac_try_echo=$ac_try;;
  2186. esac
  2187. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2188. printf "%s\n" "$ac_try_echo"; } >&5
  2189. (eval "$ac_try") 2>&5
  2190. ac_status=$?
  2191. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2192. test $ac_status = 0; }; }
  2193. then :
  2194. ac_retval=0
  2195. else $as_nop
  2196. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  2197. printf "%s\n" "$as_me: failed program was:" >&5
  2198. sed 's/^/| /' conftest.$ac_ext >&5
  2199. ac_retval=$ac_status
  2200. fi
  2201. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2202. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2203. as_fn_set_status $ac_retval
  2204. } # ac_fn_c_try_run
  2205. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2206. # ----------------------------------------------------
  2207. # Tries to find if the field MEMBER exists in type AGGR, after including
  2208. # INCLUDES, setting cache variable VAR accordingly.
  2209. ac_fn_c_check_member ()
  2210. {
  2211. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2212. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2213. printf %s "checking for $2.$3... " >&6; }
  2214. if eval test \${$4+y}
  2215. then :
  2216. printf %s "(cached) " >&6
  2217. else $as_nop
  2218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2219. /* end confdefs.h. */
  2220. $5
  2221. int
  2222. main (void)
  2223. {
  2224. static $2 ac_aggr;
  2225. if (ac_aggr.$3)
  2226. return 0;
  2227. ;
  2228. return 0;
  2229. }
  2230. _ACEOF
  2231. if ac_fn_c_try_compile "$LINENO"
  2232. then :
  2233. eval "$4=yes"
  2234. else $as_nop
  2235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2236. /* end confdefs.h. */
  2237. $5
  2238. int
  2239. main (void)
  2240. {
  2241. static $2 ac_aggr;
  2242. if (sizeof ac_aggr.$3)
  2243. return 0;
  2244. ;
  2245. return 0;
  2246. }
  2247. _ACEOF
  2248. if ac_fn_c_try_compile "$LINENO"
  2249. then :
  2250. eval "$4=yes"
  2251. else $as_nop
  2252. eval "$4=no"
  2253. fi
  2254. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2255. fi
  2256. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2257. fi
  2258. eval ac_res=\$$4
  2259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2260. printf "%s\n" "$ac_res" >&6; }
  2261. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2262. } # ac_fn_c_check_member
  2263. ac_configure_args_raw=
  2264. for ac_arg
  2265. do
  2266. case $ac_arg in
  2267. *\'*)
  2268. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2269. esac
  2270. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2271. done
  2272. case $ac_configure_args_raw in
  2273. *$as_nl*)
  2274. ac_safe_unquote= ;;
  2275. *)
  2276. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2277. ac_unsafe_a="$ac_unsafe_z#~"
  2278. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2279. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2280. esac
  2281. cat >config.log <<_ACEOF
  2282. This file contains any messages produced by compilers while
  2283. running configure, to aid debugging if configure makes a mistake.
  2284. It was created by $as_me, which was
  2285. generated by GNU Autoconf 2.71. Invocation command line was
  2286. $ $0$ac_configure_args_raw
  2287. _ACEOF
  2288. exec 5>>config.log
  2289. {
  2290. cat <<_ASUNAME
  2291. ## --------- ##
  2292. ## Platform. ##
  2293. ## --------- ##
  2294. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2295. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2296. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2297. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2298. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2299. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2300. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2301. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2302. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2303. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2304. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2305. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2306. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2307. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2308. _ASUNAME
  2309. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2310. for as_dir in $PATH
  2311. do
  2312. IFS=$as_save_IFS
  2313. case $as_dir in #(((
  2314. '') as_dir=./ ;;
  2315. */) ;;
  2316. *) as_dir=$as_dir/ ;;
  2317. esac
  2318. printf "%s\n" "PATH: $as_dir"
  2319. done
  2320. IFS=$as_save_IFS
  2321. } >&5
  2322. cat >&5 <<_ACEOF
  2323. ## ----------- ##
  2324. ## Core tests. ##
  2325. ## ----------- ##
  2326. _ACEOF
  2327. # Keep a trace of the command line.
  2328. # Strip out --no-create and --no-recursion so they do not pile up.
  2329. # Strip out --silent because we don't want to record it for future runs.
  2330. # Also quote any args containing shell meta-characters.
  2331. # Make two passes to allow for proper duplicate-argument suppression.
  2332. ac_configure_args=
  2333. ac_configure_args0=
  2334. ac_configure_args1=
  2335. ac_must_keep_next=false
  2336. for ac_pass in 1 2
  2337. do
  2338. for ac_arg
  2339. do
  2340. case $ac_arg in
  2341. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2342. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2343. | -silent | --silent | --silen | --sile | --sil)
  2344. continue ;;
  2345. *\'*)
  2346. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2347. esac
  2348. case $ac_pass in
  2349. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2350. 2)
  2351. as_fn_append ac_configure_args1 " '$ac_arg'"
  2352. if test $ac_must_keep_next = true; then
  2353. ac_must_keep_next=false # Got value, back to normal.
  2354. else
  2355. case $ac_arg in
  2356. *=* | --config-cache | -C | -disable-* | --disable-* \
  2357. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2358. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2359. | -with-* | --with-* | -without-* | --without-* | --x)
  2360. case "$ac_configure_args0 " in
  2361. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2362. esac
  2363. ;;
  2364. -* ) ac_must_keep_next=true ;;
  2365. esac
  2366. fi
  2367. as_fn_append ac_configure_args " '$ac_arg'"
  2368. ;;
  2369. esac
  2370. done
  2371. done
  2372. { ac_configure_args0=; unset ac_configure_args0;}
  2373. { ac_configure_args1=; unset ac_configure_args1;}
  2374. # When interrupted or exit'd, cleanup temporary files, and complete
  2375. # config.log. We remove comments because anyway the quotes in there
  2376. # would cause problems or look ugly.
  2377. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2378. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2379. trap 'exit_status=$?
  2380. # Sanitize IFS.
  2381. IFS=" "" $as_nl"
  2382. # Save into config.log some information that might help in debugging.
  2383. {
  2384. echo
  2385. printf "%s\n" "## ---------------- ##
  2386. ## Cache variables. ##
  2387. ## ---------------- ##"
  2388. echo
  2389. # The following way of writing the cache mishandles newlines in values,
  2390. (
  2391. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2392. eval ac_val=\$$ac_var
  2393. case $ac_val in #(
  2394. *${as_nl}*)
  2395. case $ac_var in #(
  2396. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2397. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2398. esac
  2399. case $ac_var in #(
  2400. _ | IFS | as_nl) ;; #(
  2401. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2402. *) { eval $ac_var=; unset $ac_var;} ;;
  2403. esac ;;
  2404. esac
  2405. done
  2406. (set) 2>&1 |
  2407. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2408. *${as_nl}ac_space=\ *)
  2409. sed -n \
  2410. "s/'\''/'\''\\\\'\'''\''/g;
  2411. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2412. ;; #(
  2413. *)
  2414. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2415. ;;
  2416. esac |
  2417. sort
  2418. )
  2419. echo
  2420. printf "%s\n" "## ----------------- ##
  2421. ## Output variables. ##
  2422. ## ----------------- ##"
  2423. echo
  2424. for ac_var in $ac_subst_vars
  2425. do
  2426. eval ac_val=\$$ac_var
  2427. case $ac_val in
  2428. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2429. esac
  2430. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2431. done | sort
  2432. echo
  2433. if test -n "$ac_subst_files"; then
  2434. printf "%s\n" "## ------------------- ##
  2435. ## File substitutions. ##
  2436. ## ------------------- ##"
  2437. echo
  2438. for ac_var in $ac_subst_files
  2439. do
  2440. eval ac_val=\$$ac_var
  2441. case $ac_val in
  2442. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2443. esac
  2444. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2445. done | sort
  2446. echo
  2447. fi
  2448. if test -s confdefs.h; then
  2449. printf "%s\n" "## ----------- ##
  2450. ## confdefs.h. ##
  2451. ## ----------- ##"
  2452. echo
  2453. cat confdefs.h
  2454. echo
  2455. fi
  2456. test "$ac_signal" != 0 &&
  2457. printf "%s\n" "$as_me: caught signal $ac_signal"
  2458. printf "%s\n" "$as_me: exit $exit_status"
  2459. } >&5
  2460. rm -f core *.core core.conftest.* &&
  2461. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2462. exit $exit_status
  2463. ' 0
  2464. for ac_signal in 1 2 13 15; do
  2465. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2466. done
  2467. ac_signal=0
  2468. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2469. rm -f -r conftest* confdefs.h
  2470. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2471. # Predefined preprocessor variables.
  2472. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2473. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2474. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2475. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2476. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2477. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2478. # Let the site file select an alternate cache file if it wants to.
  2479. # Prefer an explicitly selected file to automatically selected ones.
  2480. if test -n "$CONFIG_SITE"; then
  2481. ac_site_files="$CONFIG_SITE"
  2482. elif test "x$prefix" != xNONE; then
  2483. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2484. else
  2485. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2486. fi
  2487. for ac_site_file in $ac_site_files
  2488. do
  2489. case $ac_site_file in #(
  2490. */*) :
  2491. ;; #(
  2492. *) :
  2493. ac_site_file=./$ac_site_file ;;
  2494. esac
  2495. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2497. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2498. sed 's/^/| /' "$ac_site_file" >&5
  2499. . "$ac_site_file" \
  2500. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2501. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2502. as_fn_error $? "failed to load site script $ac_site_file
  2503. See \`config.log' for more details" "$LINENO" 5; }
  2504. fi
  2505. done
  2506. if test -r "$cache_file"; then
  2507. # Some versions of bash will fail to source /dev/null (special files
  2508. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2509. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2511. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2512. case $cache_file in
  2513. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2514. *) . "./$cache_file";;
  2515. esac
  2516. fi
  2517. else
  2518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2519. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2520. >$cache_file
  2521. fi
  2522. # Test code for whether the C compiler supports C89 (global declarations)
  2523. ac_c_conftest_c89_globals='
  2524. /* Does the compiler advertise C89 conformance?
  2525. Do not test the value of __STDC__, because some compilers set it to 0
  2526. while being otherwise adequately conformant. */
  2527. #if !defined __STDC__
  2528. # error "Compiler does not advertise C89 conformance"
  2529. #endif
  2530. #include <stddef.h>
  2531. #include <stdarg.h>
  2532. struct stat;
  2533. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2534. struct buf { int x; };
  2535. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2536. static char *e (p, i)
  2537. char **p;
  2538. int i;
  2539. {
  2540. return p[i];
  2541. }
  2542. static char *f (char * (*g) (char **, int), char **p, ...)
  2543. {
  2544. char *s;
  2545. va_list v;
  2546. va_start (v,p);
  2547. s = g (p, va_arg (v,int));
  2548. va_end (v);
  2549. return s;
  2550. }
  2551. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2552. function prototypes and stuff, but not \xHH hex character constants.
  2553. These do not provoke an error unfortunately, instead are silently treated
  2554. as an "x". The following induces an error, until -std is added to get
  2555. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2556. array size at least. It is necessary to write \x00 == 0 to get something
  2557. that is true only with -std. */
  2558. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2559. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2560. inside strings and character constants. */
  2561. #define FOO(x) '\''x'\''
  2562. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2563. int test (int i, double x);
  2564. struct s1 {int (*f) (int a);};
  2565. struct s2 {int (*f) (double a);};
  2566. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2567. int, int);'
  2568. # Test code for whether the C compiler supports C89 (body of main).
  2569. ac_c_conftest_c89_main='
  2570. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2571. '
  2572. # Test code for whether the C compiler supports C99 (global declarations)
  2573. ac_c_conftest_c99_globals='
  2574. // Does the compiler advertise C99 conformance?
  2575. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2576. # error "Compiler does not advertise C99 conformance"
  2577. #endif
  2578. #include <stdbool.h>
  2579. extern int puts (const char *);
  2580. extern int printf (const char *, ...);
  2581. extern int dprintf (int, const char *, ...);
  2582. extern void *malloc (size_t);
  2583. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2584. // dprintf is used instead of fprintf to avoid needing to declare
  2585. // FILE and stderr.
  2586. #define debug(...) dprintf (2, __VA_ARGS__)
  2587. #define showlist(...) puts (#__VA_ARGS__)
  2588. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2589. static void
  2590. test_varargs_macros (void)
  2591. {
  2592. int x = 1234;
  2593. int y = 5678;
  2594. debug ("Flag");
  2595. debug ("X = %d\n", x);
  2596. showlist (The first, second, and third items.);
  2597. report (x>y, "x is %d but y is %d", x, y);
  2598. }
  2599. // Check long long types.
  2600. #define BIG64 18446744073709551615ull
  2601. #define BIG32 4294967295ul
  2602. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2603. #if !BIG_OK
  2604. #error "your preprocessor is broken"
  2605. #endif
  2606. #if BIG_OK
  2607. #else
  2608. #error "your preprocessor is broken"
  2609. #endif
  2610. static long long int bignum = -9223372036854775807LL;
  2611. static unsigned long long int ubignum = BIG64;
  2612. struct incomplete_array
  2613. {
  2614. int datasize;
  2615. double data[];
  2616. };
  2617. struct named_init {
  2618. int number;
  2619. const wchar_t *name;
  2620. double average;
  2621. };
  2622. typedef const char *ccp;
  2623. static inline int
  2624. test_restrict (ccp restrict text)
  2625. {
  2626. // See if C++-style comments work.
  2627. // Iterate through items via the restricted pointer.
  2628. // Also check for declarations in for loops.
  2629. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2630. continue;
  2631. return 0;
  2632. }
  2633. // Check varargs and va_copy.
  2634. static bool
  2635. test_varargs (const char *format, ...)
  2636. {
  2637. va_list args;
  2638. va_start (args, format);
  2639. va_list args_copy;
  2640. va_copy (args_copy, args);
  2641. const char *str = "";
  2642. int number = 0;
  2643. float fnumber = 0;
  2644. while (*format)
  2645. {
  2646. switch (*format++)
  2647. {
  2648. case '\''s'\'': // string
  2649. str = va_arg (args_copy, const char *);
  2650. break;
  2651. case '\''d'\'': // int
  2652. number = va_arg (args_copy, int);
  2653. break;
  2654. case '\''f'\'': // float
  2655. fnumber = va_arg (args_copy, double);
  2656. break;
  2657. default:
  2658. break;
  2659. }
  2660. }
  2661. va_end (args_copy);
  2662. va_end (args);
  2663. return *str && number && fnumber;
  2664. }
  2665. '
  2666. # Test code for whether the C compiler supports C99 (body of main).
  2667. ac_c_conftest_c99_main='
  2668. // Check bool.
  2669. _Bool success = false;
  2670. success |= (argc != 0);
  2671. // Check restrict.
  2672. if (test_restrict ("String literal") == 0)
  2673. success = true;
  2674. char *restrict newvar = "Another string";
  2675. // Check varargs.
  2676. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2677. test_varargs_macros ();
  2678. // Check flexible array members.
  2679. struct incomplete_array *ia =
  2680. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2681. ia->datasize = 10;
  2682. for (int i = 0; i < ia->datasize; ++i)
  2683. ia->data[i] = i * 1.234;
  2684. // Check named initializers.
  2685. struct named_init ni = {
  2686. .number = 34,
  2687. .name = L"Test wide string",
  2688. .average = 543.34343,
  2689. };
  2690. ni.number = 58;
  2691. int dynamic_array[ni.number];
  2692. dynamic_array[0] = argv[0][0];
  2693. dynamic_array[ni.number - 1] = 543;
  2694. // work around unused variable warnings
  2695. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2696. || dynamic_array[ni.number - 1] != 543);
  2697. '
  2698. # Test code for whether the C compiler supports C11 (global declarations)
  2699. ac_c_conftest_c11_globals='
  2700. // Does the compiler advertise C11 conformance?
  2701. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2702. # error "Compiler does not advertise C11 conformance"
  2703. #endif
  2704. // Check _Alignas.
  2705. char _Alignas (double) aligned_as_double;
  2706. char _Alignas (0) no_special_alignment;
  2707. extern char aligned_as_int;
  2708. char _Alignas (0) _Alignas (int) aligned_as_int;
  2709. // Check _Alignof.
  2710. enum
  2711. {
  2712. int_alignment = _Alignof (int),
  2713. int_array_alignment = _Alignof (int[100]),
  2714. char_alignment = _Alignof (char)
  2715. };
  2716. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2717. // Check _Noreturn.
  2718. int _Noreturn does_not_return (void) { for (;;) continue; }
  2719. // Check _Static_assert.
  2720. struct test_static_assert
  2721. {
  2722. int x;
  2723. _Static_assert (sizeof (int) <= sizeof (long int),
  2724. "_Static_assert does not work in struct");
  2725. long int y;
  2726. };
  2727. // Check UTF-8 literals.
  2728. #define u8 syntax error!
  2729. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2730. // Check duplicate typedefs.
  2731. typedef long *long_ptr;
  2732. typedef long int *long_ptr;
  2733. typedef long_ptr long_ptr;
  2734. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2735. struct anonymous
  2736. {
  2737. union {
  2738. struct { int i; int j; };
  2739. struct { int k; long int l; } w;
  2740. };
  2741. int m;
  2742. } v1;
  2743. '
  2744. # Test code for whether the C compiler supports C11 (body of main).
  2745. ac_c_conftest_c11_main='
  2746. _Static_assert ((offsetof (struct anonymous, i)
  2747. == offsetof (struct anonymous, w.k)),
  2748. "Anonymous union alignment botch");
  2749. v1.i = 2;
  2750. v1.w.k = 5;
  2751. ok |= v1.i != 5;
  2752. '
  2753. # Test code for whether the C compiler supports C11 (complete).
  2754. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2755. ${ac_c_conftest_c99_globals}
  2756. ${ac_c_conftest_c11_globals}
  2757. int
  2758. main (int argc, char **argv)
  2759. {
  2760. int ok = 0;
  2761. ${ac_c_conftest_c89_main}
  2762. ${ac_c_conftest_c99_main}
  2763. ${ac_c_conftest_c11_main}
  2764. return ok;
  2765. }
  2766. "
  2767. # Test code for whether the C compiler supports C99 (complete).
  2768. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2769. ${ac_c_conftest_c99_globals}
  2770. int
  2771. main (int argc, char **argv)
  2772. {
  2773. int ok = 0;
  2774. ${ac_c_conftest_c89_main}
  2775. ${ac_c_conftest_c99_main}
  2776. return ok;
  2777. }
  2778. "
  2779. # Test code for whether the C compiler supports C89 (complete).
  2780. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2781. int
  2782. main (int argc, char **argv)
  2783. {
  2784. int ok = 0;
  2785. ${ac_c_conftest_c89_main}
  2786. return ok;
  2787. }
  2788. "
  2789. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2790. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2791. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2792. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2793. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2794. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2795. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2796. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2797. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2798. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2799. ac_cxx_conftest_cxx98_globals='
  2800. // Does the compiler advertise C++98 conformance?
  2801. #if !defined __cplusplus || __cplusplus < 199711L
  2802. # error "Compiler does not advertise C++98 conformance"
  2803. #endif
  2804. // These inclusions are to reject old compilers that
  2805. // lack the unsuffixed header files.
  2806. #include <cstdlib>
  2807. #include <exception>
  2808. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2809. extern void assert (int);
  2810. namespace std {
  2811. extern int strcmp (const char *, const char *);
  2812. }
  2813. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2814. using std::exception;
  2815. using std::strcmp;
  2816. namespace {
  2817. void test_exception_syntax()
  2818. {
  2819. try {
  2820. throw "test";
  2821. } catch (const char *s) {
  2822. // Extra parentheses suppress a warning when building autoconf itself,
  2823. // due to lint rules shared with more typical C programs.
  2824. assert (!(strcmp) (s, "test"));
  2825. }
  2826. }
  2827. template <typename T> struct test_template
  2828. {
  2829. T const val;
  2830. explicit test_template(T t) : val(t) {}
  2831. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2832. };
  2833. } // anonymous namespace
  2834. '
  2835. # Test code for whether the C++ compiler supports C++98 (body of main)
  2836. ac_cxx_conftest_cxx98_main='
  2837. assert (argc);
  2838. assert (! argv[0]);
  2839. {
  2840. test_exception_syntax ();
  2841. test_template<double> tt (2.0);
  2842. assert (tt.add (4) == 6.0);
  2843. assert (true && !false);
  2844. }
  2845. '
  2846. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2847. ac_cxx_conftest_cxx11_globals='
  2848. // Does the compiler advertise C++ 2011 conformance?
  2849. #if !defined __cplusplus || __cplusplus < 201103L
  2850. # error "Compiler does not advertise C++11 conformance"
  2851. #endif
  2852. namespace cxx11test
  2853. {
  2854. constexpr int get_val() { return 20; }
  2855. struct testinit
  2856. {
  2857. int i;
  2858. double d;
  2859. };
  2860. class delegate
  2861. {
  2862. public:
  2863. delegate(int n) : n(n) {}
  2864. delegate(): delegate(2354) {}
  2865. virtual int getval() { return this->n; };
  2866. protected:
  2867. int n;
  2868. };
  2869. class overridden : public delegate
  2870. {
  2871. public:
  2872. overridden(int n): delegate(n) {}
  2873. virtual int getval() override final { return this->n * 2; }
  2874. };
  2875. class nocopy
  2876. {
  2877. public:
  2878. nocopy(int i): i(i) {}
  2879. nocopy() = default;
  2880. nocopy(const nocopy&) = delete;
  2881. nocopy & operator=(const nocopy&) = delete;
  2882. private:
  2883. int i;
  2884. };
  2885. // for testing lambda expressions
  2886. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2887. {
  2888. return f(v);
  2889. }
  2890. // for testing variadic templates and trailing return types
  2891. template <typename V> auto sum(V first) -> V
  2892. {
  2893. return first;
  2894. }
  2895. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2896. {
  2897. return first + sum(rest...);
  2898. }
  2899. }
  2900. '
  2901. # Test code for whether the C++ compiler supports C++11 (body of main)
  2902. ac_cxx_conftest_cxx11_main='
  2903. {
  2904. // Test auto and decltype
  2905. auto a1 = 6538;
  2906. auto a2 = 48573953.4;
  2907. auto a3 = "String literal";
  2908. int total = 0;
  2909. for (auto i = a3; *i; ++i) { total += *i; }
  2910. decltype(a2) a4 = 34895.034;
  2911. }
  2912. {
  2913. // Test constexpr
  2914. short sa[cxx11test::get_val()] = { 0 };
  2915. }
  2916. {
  2917. // Test initializer lists
  2918. cxx11test::testinit il = { 4323, 435234.23544 };
  2919. }
  2920. {
  2921. // Test range-based for
  2922. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2923. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2924. for (auto &x : array) { x += 23; }
  2925. }
  2926. {
  2927. // Test lambda expressions
  2928. using cxx11test::eval;
  2929. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2930. double d = 2.0;
  2931. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2932. assert (d == 5.0);
  2933. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2934. assert (d == 5.0);
  2935. }
  2936. {
  2937. // Test use of variadic templates
  2938. using cxx11test::sum;
  2939. auto a = sum(1);
  2940. auto b = sum(1, 2);
  2941. auto c = sum(1.0, 2.0, 3.0);
  2942. }
  2943. {
  2944. // Test constructor delegation
  2945. cxx11test::delegate d1;
  2946. cxx11test::delegate d2();
  2947. cxx11test::delegate d3(45);
  2948. }
  2949. {
  2950. // Test override and final
  2951. cxx11test::overridden o1(55464);
  2952. }
  2953. {
  2954. // Test nullptr
  2955. char *c = nullptr;
  2956. }
  2957. {
  2958. // Test template brackets
  2959. test_template<::test_template<int>> v(test_template<int>(12));
  2960. }
  2961. {
  2962. // Unicode literals
  2963. char const *utf8 = u8"UTF-8 string \u2500";
  2964. char16_t const *utf16 = u"UTF-8 string \u2500";
  2965. char32_t const *utf32 = U"UTF-32 string \u2500";
  2966. }
  2967. '
  2968. # Test code for whether the C compiler supports C++11 (complete).
  2969. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  2970. ${ac_cxx_conftest_cxx11_globals}
  2971. int
  2972. main (int argc, char **argv)
  2973. {
  2974. int ok = 0;
  2975. ${ac_cxx_conftest_cxx98_main}
  2976. ${ac_cxx_conftest_cxx11_main}
  2977. return ok;
  2978. }
  2979. "
  2980. # Test code for whether the C compiler supports C++98 (complete).
  2981. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  2982. int
  2983. main (int argc, char **argv)
  2984. {
  2985. int ok = 0;
  2986. ${ac_cxx_conftest_cxx98_main}
  2987. return ok;
  2988. }
  2989. "
  2990. # Auxiliary files required by this configure script.
  2991. ac_aux_files="install-sh config.guess config.sub ltmain.sh"
  2992. # Locations in which to look for auxiliary files.
  2993. ac_aux_dir_candidates="${srcdir}/build-scripts"
  2994. # Search for a directory containing all of the required auxiliary files,
  2995. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2996. # If we don't find one directory that contains all the files we need,
  2997. # we report the set of missing files from the *first* directory in
  2998. # $ac_aux_dir_candidates and give up.
  2999. ac_missing_aux_files=""
  3000. ac_first_candidate=:
  3001. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  3002. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3003. as_found=false
  3004. for as_dir in $ac_aux_dir_candidates
  3005. do
  3006. IFS=$as_save_IFS
  3007. case $as_dir in #(((
  3008. '') as_dir=./ ;;
  3009. */) ;;
  3010. *) as_dir=$as_dir/ ;;
  3011. esac
  3012. as_found=:
  3013. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  3014. ac_aux_dir_found=yes
  3015. ac_install_sh=
  3016. for ac_aux in $ac_aux_files
  3017. do
  3018. # As a special case, if "install-sh" is required, that requirement
  3019. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  3020. # and $ac_install_sh is set appropriately for whichever one is found.
  3021. if test x"$ac_aux" = x"install-sh"
  3022. then
  3023. if test -f "${as_dir}install-sh"; then
  3024. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  3025. ac_install_sh="${as_dir}install-sh -c"
  3026. elif test -f "${as_dir}install.sh"; then
  3027. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  3028. ac_install_sh="${as_dir}install.sh -c"
  3029. elif test -f "${as_dir}shtool"; then
  3030. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  3031. ac_install_sh="${as_dir}shtool install -c"
  3032. else
  3033. ac_aux_dir_found=no
  3034. if $ac_first_candidate; then
  3035. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  3036. else
  3037. break
  3038. fi
  3039. fi
  3040. else
  3041. if test -f "${as_dir}${ac_aux}"; then
  3042. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  3043. else
  3044. ac_aux_dir_found=no
  3045. if $ac_first_candidate; then
  3046. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  3047. else
  3048. break
  3049. fi
  3050. fi
  3051. fi
  3052. done
  3053. if test "$ac_aux_dir_found" = yes; then
  3054. ac_aux_dir="$as_dir"
  3055. break
  3056. fi
  3057. ac_first_candidate=false
  3058. as_found=false
  3059. done
  3060. IFS=$as_save_IFS
  3061. if $as_found
  3062. then :
  3063. else $as_nop
  3064. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  3065. fi
  3066. # These three variables are undocumented and unsupported,
  3067. # and are intended to be withdrawn in a future Autoconf release.
  3068. # They can cause serious problems if a builder's source tree is in a directory
  3069. # whose full name contains unusual characters.
  3070. if test -f "${ac_aux_dir}config.guess"; then
  3071. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  3072. fi
  3073. if test -f "${ac_aux_dir}config.sub"; then
  3074. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  3075. fi
  3076. if test -f "$ac_aux_dir/configure"; then
  3077. ac_configure="$SHELL ${ac_aux_dir}configure"
  3078. fi
  3079. # Check that the precious variables saved in the cache have kept the same
  3080. # value.
  3081. ac_cache_corrupted=false
  3082. for ac_var in $ac_precious_vars; do
  3083. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3084. eval ac_new_set=\$ac_env_${ac_var}_set
  3085. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3086. eval ac_new_val=\$ac_env_${ac_var}_value
  3087. case $ac_old_set,$ac_new_set in
  3088. set,)
  3089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3090. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3091. ac_cache_corrupted=: ;;
  3092. ,set)
  3093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3094. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3095. ac_cache_corrupted=: ;;
  3096. ,);;
  3097. *)
  3098. if test "x$ac_old_val" != "x$ac_new_val"; then
  3099. # differences in whitespace do not lead to failure.
  3100. ac_old_val_w=`echo x $ac_old_val`
  3101. ac_new_val_w=`echo x $ac_new_val`
  3102. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3104. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3105. ac_cache_corrupted=:
  3106. else
  3107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3108. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3109. eval $ac_var=\$ac_old_val
  3110. fi
  3111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3112. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  3113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3114. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  3115. fi;;
  3116. esac
  3117. # Pass precious variables to config.status.
  3118. if test "$ac_new_set" = set; then
  3119. case $ac_new_val in
  3120. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3121. *) ac_arg=$ac_var=$ac_new_val ;;
  3122. esac
  3123. case " $ac_configure_args " in
  3124. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3125. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3126. esac
  3127. fi
  3128. done
  3129. if $ac_cache_corrupted; then
  3130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3131. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3133. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  3134. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  3135. and start over" "$LINENO" 5
  3136. fi
  3137. ## -------------------- ##
  3138. ## Main body of script. ##
  3139. ## -------------------- ##
  3140. ac_ext=c
  3141. ac_cpp='$CPP $CPPFLAGS'
  3142. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3143. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3144. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3145. ac_config_headers="$ac_config_headers include/SDL_config.h"
  3146. orig_CFLAGS="$CFLAGS"
  3147. # See docs/release_checklist.md
  3148. SDL_MAJOR_VERSION=2
  3149. SDL_MINOR_VERSION=26
  3150. SDL_MICRO_VERSION=2
  3151. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  3152. SDL_BINARY_AGE=`expr $SDL_MINOR_VERSION \* 100 + $SDL_MICRO_VERSION`
  3153. case "$SDL_MINOR_VERSION" in #(
  3154. *[02468]) :
  3155. SDL_INTERFACE_AGE="$SDL_MICRO_VERSION" ;; #(
  3156. *) :
  3157. SDL_INTERFACE_AGE=0 ;; #(
  3158. *) :
  3159. ;;
  3160. esac
  3161. # libtool versioning
  3162. case `pwd` in
  3163. *\ * | *\ *)
  3164. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3165. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3166. esac
  3167. macro_version='2.4.6'
  3168. macro_revision='2.4.6'
  3169. ltmain=$ac_aux_dir/ltmain.sh
  3170. # Make sure we can run config.sub.
  3171. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  3172. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  3173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3174. printf %s "checking build system type... " >&6; }
  3175. if test ${ac_cv_build+y}
  3176. then :
  3177. printf %s "(cached) " >&6
  3178. else $as_nop
  3179. ac_build_alias=$build_alias
  3180. test "x$ac_build_alias" = x &&
  3181. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  3182. test "x$ac_build_alias" = x &&
  3183. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3184. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  3185. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  3186. fi
  3187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3188. printf "%s\n" "$ac_cv_build" >&6; }
  3189. case $ac_cv_build in
  3190. *-*-*) ;;
  3191. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3192. esac
  3193. build=$ac_cv_build
  3194. ac_save_IFS=$IFS; IFS='-'
  3195. set x $ac_cv_build
  3196. shift
  3197. build_cpu=$1
  3198. build_vendor=$2
  3199. shift; shift
  3200. # Remember, the first character of IFS is used to create $*,
  3201. # except with old shells:
  3202. build_os=$*
  3203. IFS=$ac_save_IFS
  3204. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3206. printf %s "checking host system type... " >&6; }
  3207. if test ${ac_cv_host+y}
  3208. then :
  3209. printf %s "(cached) " >&6
  3210. else $as_nop
  3211. if test "x$host_alias" = x; then
  3212. ac_cv_host=$ac_cv_build
  3213. else
  3214. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  3215. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  3216. fi
  3217. fi
  3218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3219. printf "%s\n" "$ac_cv_host" >&6; }
  3220. case $ac_cv_host in
  3221. *-*-*) ;;
  3222. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3223. esac
  3224. host=$ac_cv_host
  3225. ac_save_IFS=$IFS; IFS='-'
  3226. set x $ac_cv_host
  3227. shift
  3228. host_cpu=$1
  3229. host_vendor=$2
  3230. shift; shift
  3231. # Remember, the first character of IFS is used to create $*,
  3232. # except with old shells:
  3233. host_os=$*
  3234. IFS=$ac_save_IFS
  3235. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3236. # Backslashify metacharacters that are still active within
  3237. # double-quoted strings.
  3238. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3239. # Same as above, but do not quote variable references.
  3240. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3241. # Sed substitution to delay expansion of an escaped shell variable in a
  3242. # double_quote_subst'ed string.
  3243. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3244. # Sed substitution to delay expansion of an escaped single quote.
  3245. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3246. # Sed substitution to avoid accidental globbing in evaled expressions
  3247. no_glob_subst='s/\*/\\\*/g'
  3248. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3249. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3250. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3251. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3252. printf %s "checking how to print strings... " >&6; }
  3253. # Test print first, because it will be a builtin if present.
  3254. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3255. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3256. ECHO='print -r --'
  3257. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3258. ECHO='printf %s\n'
  3259. else
  3260. # Use this function as a fallback that always works.
  3261. func_fallback_echo ()
  3262. {
  3263. eval 'cat <<_LTECHO_EOF
  3264. $1
  3265. _LTECHO_EOF'
  3266. }
  3267. ECHO='func_fallback_echo'
  3268. fi
  3269. # func_echo_all arg...
  3270. # Invoke $ECHO with all args, space-separated.
  3271. func_echo_all ()
  3272. {
  3273. $ECHO ""
  3274. }
  3275. case $ECHO in
  3276. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3277. printf "%s\n" "printf" >&6; } ;;
  3278. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3279. printf "%s\n" "print -r" >&6; } ;;
  3280. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3281. printf "%s\n" "cat" >&6; } ;;
  3282. esac
  3283. ac_ext=c
  3284. ac_cpp='$CPP $CPPFLAGS'
  3285. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3286. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3287. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3288. if test -n "$ac_tool_prefix"; then
  3289. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3290. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3292. printf %s "checking for $ac_word... " >&6; }
  3293. if test ${ac_cv_prog_CC+y}
  3294. then :
  3295. printf %s "(cached) " >&6
  3296. else $as_nop
  3297. if test -n "$CC"; then
  3298. ac_cv_prog_CC="$CC" # Let the user override the test.
  3299. else
  3300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3301. for as_dir in $PATH
  3302. do
  3303. IFS=$as_save_IFS
  3304. case $as_dir in #(((
  3305. '') as_dir=./ ;;
  3306. */) ;;
  3307. *) as_dir=$as_dir/ ;;
  3308. esac
  3309. for ac_exec_ext in '' $ac_executable_extensions; do
  3310. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3311. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3312. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3313. break 2
  3314. fi
  3315. done
  3316. done
  3317. IFS=$as_save_IFS
  3318. fi
  3319. fi
  3320. CC=$ac_cv_prog_CC
  3321. if test -n "$CC"; then
  3322. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3323. printf "%s\n" "$CC" >&6; }
  3324. else
  3325. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3326. printf "%s\n" "no" >&6; }
  3327. fi
  3328. fi
  3329. if test -z "$ac_cv_prog_CC"; then
  3330. ac_ct_CC=$CC
  3331. # Extract the first word of "gcc", so it can be a program name with args.
  3332. set dummy gcc; ac_word=$2
  3333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3334. printf %s "checking for $ac_word... " >&6; }
  3335. if test ${ac_cv_prog_ac_ct_CC+y}
  3336. then :
  3337. printf %s "(cached) " >&6
  3338. else $as_nop
  3339. if test -n "$ac_ct_CC"; then
  3340. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3341. else
  3342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3343. for as_dir in $PATH
  3344. do
  3345. IFS=$as_save_IFS
  3346. case $as_dir in #(((
  3347. '') as_dir=./ ;;
  3348. */) ;;
  3349. *) as_dir=$as_dir/ ;;
  3350. esac
  3351. for ac_exec_ext in '' $ac_executable_extensions; do
  3352. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3353. ac_cv_prog_ac_ct_CC="gcc"
  3354. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3355. break 2
  3356. fi
  3357. done
  3358. done
  3359. IFS=$as_save_IFS
  3360. fi
  3361. fi
  3362. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3363. if test -n "$ac_ct_CC"; then
  3364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3365. printf "%s\n" "$ac_ct_CC" >&6; }
  3366. else
  3367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3368. printf "%s\n" "no" >&6; }
  3369. fi
  3370. if test "x$ac_ct_CC" = x; then
  3371. CC=""
  3372. else
  3373. case $cross_compiling:$ac_tool_warned in
  3374. yes:)
  3375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3376. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3377. ac_tool_warned=yes ;;
  3378. esac
  3379. CC=$ac_ct_CC
  3380. fi
  3381. else
  3382. CC="$ac_cv_prog_CC"
  3383. fi
  3384. if test -z "$CC"; then
  3385. if test -n "$ac_tool_prefix"; then
  3386. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3387. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3388. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3389. printf %s "checking for $ac_word... " >&6; }
  3390. if test ${ac_cv_prog_CC+y}
  3391. then :
  3392. printf %s "(cached) " >&6
  3393. else $as_nop
  3394. if test -n "$CC"; then
  3395. ac_cv_prog_CC="$CC" # Let the user override the test.
  3396. else
  3397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3398. for as_dir in $PATH
  3399. do
  3400. IFS=$as_save_IFS
  3401. case $as_dir in #(((
  3402. '') as_dir=./ ;;
  3403. */) ;;
  3404. *) as_dir=$as_dir/ ;;
  3405. esac
  3406. for ac_exec_ext in '' $ac_executable_extensions; do
  3407. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3408. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3409. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3410. break 2
  3411. fi
  3412. done
  3413. done
  3414. IFS=$as_save_IFS
  3415. fi
  3416. fi
  3417. CC=$ac_cv_prog_CC
  3418. if test -n "$CC"; then
  3419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3420. printf "%s\n" "$CC" >&6; }
  3421. else
  3422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3423. printf "%s\n" "no" >&6; }
  3424. fi
  3425. fi
  3426. fi
  3427. if test -z "$CC"; then
  3428. # Extract the first word of "cc", so it can be a program name with args.
  3429. set dummy cc; ac_word=$2
  3430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3431. printf %s "checking for $ac_word... " >&6; }
  3432. if test ${ac_cv_prog_CC+y}
  3433. then :
  3434. printf %s "(cached) " >&6
  3435. else $as_nop
  3436. if test -n "$CC"; then
  3437. ac_cv_prog_CC="$CC" # Let the user override the test.
  3438. else
  3439. ac_prog_rejected=no
  3440. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3441. for as_dir in $PATH
  3442. do
  3443. IFS=$as_save_IFS
  3444. case $as_dir in #(((
  3445. '') as_dir=./ ;;
  3446. */) ;;
  3447. *) as_dir=$as_dir/ ;;
  3448. esac
  3449. for ac_exec_ext in '' $ac_executable_extensions; do
  3450. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3451. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3452. ac_prog_rejected=yes
  3453. continue
  3454. fi
  3455. ac_cv_prog_CC="cc"
  3456. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3457. break 2
  3458. fi
  3459. done
  3460. done
  3461. IFS=$as_save_IFS
  3462. if test $ac_prog_rejected = yes; then
  3463. # We found a bogon in the path, so make sure we never use it.
  3464. set dummy $ac_cv_prog_CC
  3465. shift
  3466. if test $# != 0; then
  3467. # We chose a different compiler from the bogus one.
  3468. # However, it has the same basename, so the bogon will be chosen
  3469. # first if we set CC to just the basename; use the full file name.
  3470. shift
  3471. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3472. fi
  3473. fi
  3474. fi
  3475. fi
  3476. CC=$ac_cv_prog_CC
  3477. if test -n "$CC"; then
  3478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3479. printf "%s\n" "$CC" >&6; }
  3480. else
  3481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3482. printf "%s\n" "no" >&6; }
  3483. fi
  3484. fi
  3485. if test -z "$CC"; then
  3486. if test -n "$ac_tool_prefix"; then
  3487. for ac_prog in cl.exe
  3488. do
  3489. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3490. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3491. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3492. printf %s "checking for $ac_word... " >&6; }
  3493. if test ${ac_cv_prog_CC+y}
  3494. then :
  3495. printf %s "(cached) " >&6
  3496. else $as_nop
  3497. if test -n "$CC"; then
  3498. ac_cv_prog_CC="$CC" # Let the user override the test.
  3499. else
  3500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3501. for as_dir in $PATH
  3502. do
  3503. IFS=$as_save_IFS
  3504. case $as_dir in #(((
  3505. '') as_dir=./ ;;
  3506. */) ;;
  3507. *) as_dir=$as_dir/ ;;
  3508. esac
  3509. for ac_exec_ext in '' $ac_executable_extensions; do
  3510. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3511. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3512. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3513. break 2
  3514. fi
  3515. done
  3516. done
  3517. IFS=$as_save_IFS
  3518. fi
  3519. fi
  3520. CC=$ac_cv_prog_CC
  3521. if test -n "$CC"; then
  3522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3523. printf "%s\n" "$CC" >&6; }
  3524. else
  3525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3526. printf "%s\n" "no" >&6; }
  3527. fi
  3528. test -n "$CC" && break
  3529. done
  3530. fi
  3531. if test -z "$CC"; then
  3532. ac_ct_CC=$CC
  3533. for ac_prog in cl.exe
  3534. do
  3535. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3536. set dummy $ac_prog; ac_word=$2
  3537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3538. printf %s "checking for $ac_word... " >&6; }
  3539. if test ${ac_cv_prog_ac_ct_CC+y}
  3540. then :
  3541. printf %s "(cached) " >&6
  3542. else $as_nop
  3543. if test -n "$ac_ct_CC"; then
  3544. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3545. else
  3546. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3547. for as_dir in $PATH
  3548. do
  3549. IFS=$as_save_IFS
  3550. case $as_dir in #(((
  3551. '') as_dir=./ ;;
  3552. */) ;;
  3553. *) as_dir=$as_dir/ ;;
  3554. esac
  3555. for ac_exec_ext in '' $ac_executable_extensions; do
  3556. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3557. ac_cv_prog_ac_ct_CC="$ac_prog"
  3558. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3559. break 2
  3560. fi
  3561. done
  3562. done
  3563. IFS=$as_save_IFS
  3564. fi
  3565. fi
  3566. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3567. if test -n "$ac_ct_CC"; then
  3568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3569. printf "%s\n" "$ac_ct_CC" >&6; }
  3570. else
  3571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3572. printf "%s\n" "no" >&6; }
  3573. fi
  3574. test -n "$ac_ct_CC" && break
  3575. done
  3576. if test "x$ac_ct_CC" = x; then
  3577. CC=""
  3578. else
  3579. case $cross_compiling:$ac_tool_warned in
  3580. yes:)
  3581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3582. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3583. ac_tool_warned=yes ;;
  3584. esac
  3585. CC=$ac_ct_CC
  3586. fi
  3587. fi
  3588. fi
  3589. if test -z "$CC"; then
  3590. if test -n "$ac_tool_prefix"; then
  3591. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3592. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3594. printf %s "checking for $ac_word... " >&6; }
  3595. if test ${ac_cv_prog_CC+y}
  3596. then :
  3597. printf %s "(cached) " >&6
  3598. else $as_nop
  3599. if test -n "$CC"; then
  3600. ac_cv_prog_CC="$CC" # Let the user override the test.
  3601. else
  3602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3603. for as_dir in $PATH
  3604. do
  3605. IFS=$as_save_IFS
  3606. case $as_dir in #(((
  3607. '') as_dir=./ ;;
  3608. */) ;;
  3609. *) as_dir=$as_dir/ ;;
  3610. esac
  3611. for ac_exec_ext in '' $ac_executable_extensions; do
  3612. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3613. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3614. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3615. break 2
  3616. fi
  3617. done
  3618. done
  3619. IFS=$as_save_IFS
  3620. fi
  3621. fi
  3622. CC=$ac_cv_prog_CC
  3623. if test -n "$CC"; then
  3624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3625. printf "%s\n" "$CC" >&6; }
  3626. else
  3627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3628. printf "%s\n" "no" >&6; }
  3629. fi
  3630. fi
  3631. if test -z "$ac_cv_prog_CC"; then
  3632. ac_ct_CC=$CC
  3633. # Extract the first word of "clang", so it can be a program name with args.
  3634. set dummy clang; ac_word=$2
  3635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3636. printf %s "checking for $ac_word... " >&6; }
  3637. if test ${ac_cv_prog_ac_ct_CC+y}
  3638. then :
  3639. printf %s "(cached) " >&6
  3640. else $as_nop
  3641. if test -n "$ac_ct_CC"; then
  3642. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3643. else
  3644. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3645. for as_dir in $PATH
  3646. do
  3647. IFS=$as_save_IFS
  3648. case $as_dir in #(((
  3649. '') as_dir=./ ;;
  3650. */) ;;
  3651. *) as_dir=$as_dir/ ;;
  3652. esac
  3653. for ac_exec_ext in '' $ac_executable_extensions; do
  3654. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3655. ac_cv_prog_ac_ct_CC="clang"
  3656. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3657. break 2
  3658. fi
  3659. done
  3660. done
  3661. IFS=$as_save_IFS
  3662. fi
  3663. fi
  3664. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3665. if test -n "$ac_ct_CC"; then
  3666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3667. printf "%s\n" "$ac_ct_CC" >&6; }
  3668. else
  3669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3670. printf "%s\n" "no" >&6; }
  3671. fi
  3672. if test "x$ac_ct_CC" = x; then
  3673. CC=""
  3674. else
  3675. case $cross_compiling:$ac_tool_warned in
  3676. yes:)
  3677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3678. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3679. ac_tool_warned=yes ;;
  3680. esac
  3681. CC=$ac_ct_CC
  3682. fi
  3683. else
  3684. CC="$ac_cv_prog_CC"
  3685. fi
  3686. fi
  3687. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3688. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3689. as_fn_error $? "no acceptable C compiler found in \$PATH
  3690. See \`config.log' for more details" "$LINENO" 5; }
  3691. # Provide some information about the compiler.
  3692. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3693. set X $ac_compile
  3694. ac_compiler=$2
  3695. for ac_option in --version -v -V -qversion -version; do
  3696. { { ac_try="$ac_compiler $ac_option >&5"
  3697. case "(($ac_try" in
  3698. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3699. *) ac_try_echo=$ac_try;;
  3700. esac
  3701. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3702. printf "%s\n" "$ac_try_echo"; } >&5
  3703. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3704. ac_status=$?
  3705. if test -s conftest.err; then
  3706. sed '10a\
  3707. ... rest of stderr output deleted ...
  3708. 10q' conftest.err >conftest.er1
  3709. cat conftest.er1 >&5
  3710. fi
  3711. rm -f conftest.er1 conftest.err
  3712. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3713. test $ac_status = 0; }
  3714. done
  3715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3716. /* end confdefs.h. */
  3717. int
  3718. main (void)
  3719. {
  3720. ;
  3721. return 0;
  3722. }
  3723. _ACEOF
  3724. ac_clean_files_save=$ac_clean_files
  3725. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3726. # Try to create an executable without -o first, disregard a.out.
  3727. # It will help us diagnose broken compilers, and finding out an intuition
  3728. # of exeext.
  3729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3730. printf %s "checking whether the C compiler works... " >&6; }
  3731. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3732. # The possible output files:
  3733. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3734. ac_rmfiles=
  3735. for ac_file in $ac_files
  3736. do
  3737. case $ac_file in
  3738. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3739. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3740. esac
  3741. done
  3742. rm -f $ac_rmfiles
  3743. if { { ac_try="$ac_link_default"
  3744. case "(($ac_try" in
  3745. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3746. *) ac_try_echo=$ac_try;;
  3747. esac
  3748. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3749. printf "%s\n" "$ac_try_echo"; } >&5
  3750. (eval "$ac_link_default") 2>&5
  3751. ac_status=$?
  3752. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3753. test $ac_status = 0; }
  3754. then :
  3755. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3756. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3757. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3758. # so that the user can short-circuit this test for compilers unknown to
  3759. # Autoconf.
  3760. for ac_file in $ac_files ''
  3761. do
  3762. test -f "$ac_file" || continue
  3763. case $ac_file in
  3764. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3765. ;;
  3766. [ab].out )
  3767. # We found the default executable, but exeext='' is most
  3768. # certainly right.
  3769. break;;
  3770. *.* )
  3771. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3772. then :; else
  3773. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3774. fi
  3775. # We set ac_cv_exeext here because the later test for it is not
  3776. # safe: cross compilers may not add the suffix if given an `-o'
  3777. # argument, so we may need to know it at that point already.
  3778. # Even if this section looks crufty: it has the advantage of
  3779. # actually working.
  3780. break;;
  3781. * )
  3782. break;;
  3783. esac
  3784. done
  3785. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3786. else $as_nop
  3787. ac_file=''
  3788. fi
  3789. if test -z "$ac_file"
  3790. then :
  3791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3792. printf "%s\n" "no" >&6; }
  3793. printf "%s\n" "$as_me: failed program was:" >&5
  3794. sed 's/^/| /' conftest.$ac_ext >&5
  3795. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3796. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3797. as_fn_error 77 "C compiler cannot create executables
  3798. See \`config.log' for more details" "$LINENO" 5; }
  3799. else $as_nop
  3800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3801. printf "%s\n" "yes" >&6; }
  3802. fi
  3803. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3804. printf %s "checking for C compiler default output file name... " >&6; }
  3805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3806. printf "%s\n" "$ac_file" >&6; }
  3807. ac_exeext=$ac_cv_exeext
  3808. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3809. ac_clean_files=$ac_clean_files_save
  3810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3811. printf %s "checking for suffix of executables... " >&6; }
  3812. if { { ac_try="$ac_link"
  3813. case "(($ac_try" in
  3814. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3815. *) ac_try_echo=$ac_try;;
  3816. esac
  3817. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3818. printf "%s\n" "$ac_try_echo"; } >&5
  3819. (eval "$ac_link") 2>&5
  3820. ac_status=$?
  3821. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3822. test $ac_status = 0; }
  3823. then :
  3824. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3825. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3826. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3827. # `rm'.
  3828. for ac_file in conftest.exe conftest conftest.*; do
  3829. test -f "$ac_file" || continue
  3830. case $ac_file in
  3831. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3832. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3833. break;;
  3834. * ) break;;
  3835. esac
  3836. done
  3837. else $as_nop
  3838. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3839. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3840. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3841. See \`config.log' for more details" "$LINENO" 5; }
  3842. fi
  3843. rm -f conftest conftest$ac_cv_exeext
  3844. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3845. printf "%s\n" "$ac_cv_exeext" >&6; }
  3846. rm -f conftest.$ac_ext
  3847. EXEEXT=$ac_cv_exeext
  3848. ac_exeext=$EXEEXT
  3849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3850. /* end confdefs.h. */
  3851. #include <stdio.h>
  3852. int
  3853. main (void)
  3854. {
  3855. FILE *f = fopen ("conftest.out", "w");
  3856. return ferror (f) || fclose (f) != 0;
  3857. ;
  3858. return 0;
  3859. }
  3860. _ACEOF
  3861. ac_clean_files="$ac_clean_files conftest.out"
  3862. # Check that the compiler produces executables we can run. If not, either
  3863. # the compiler is broken, or we cross compile.
  3864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3865. printf %s "checking whether we are cross compiling... " >&6; }
  3866. if test "$cross_compiling" != yes; then
  3867. { { ac_try="$ac_link"
  3868. case "(($ac_try" in
  3869. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3870. *) ac_try_echo=$ac_try;;
  3871. esac
  3872. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3873. printf "%s\n" "$ac_try_echo"; } >&5
  3874. (eval "$ac_link") 2>&5
  3875. ac_status=$?
  3876. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3877. test $ac_status = 0; }
  3878. if { ac_try='./conftest$ac_cv_exeext'
  3879. { { case "(($ac_try" in
  3880. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3881. *) ac_try_echo=$ac_try;;
  3882. esac
  3883. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3884. printf "%s\n" "$ac_try_echo"; } >&5
  3885. (eval "$ac_try") 2>&5
  3886. ac_status=$?
  3887. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3888. test $ac_status = 0; }; }; then
  3889. cross_compiling=no
  3890. else
  3891. if test "$cross_compiling" = maybe; then
  3892. cross_compiling=yes
  3893. else
  3894. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3895. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3896. as_fn_error 77 "cannot run C compiled programs.
  3897. If you meant to cross compile, use \`--host'.
  3898. See \`config.log' for more details" "$LINENO" 5; }
  3899. fi
  3900. fi
  3901. fi
  3902. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3903. printf "%s\n" "$cross_compiling" >&6; }
  3904. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3905. ac_clean_files=$ac_clean_files_save
  3906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3907. printf %s "checking for suffix of object files... " >&6; }
  3908. if test ${ac_cv_objext+y}
  3909. then :
  3910. printf %s "(cached) " >&6
  3911. else $as_nop
  3912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3913. /* end confdefs.h. */
  3914. int
  3915. main (void)
  3916. {
  3917. ;
  3918. return 0;
  3919. }
  3920. _ACEOF
  3921. rm -f conftest.o conftest.obj
  3922. if { { ac_try="$ac_compile"
  3923. case "(($ac_try" in
  3924. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3925. *) ac_try_echo=$ac_try;;
  3926. esac
  3927. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3928. printf "%s\n" "$ac_try_echo"; } >&5
  3929. (eval "$ac_compile") 2>&5
  3930. ac_status=$?
  3931. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3932. test $ac_status = 0; }
  3933. then :
  3934. for ac_file in conftest.o conftest.obj conftest.*; do
  3935. test -f "$ac_file" || continue;
  3936. case $ac_file in
  3937. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3938. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3939. break;;
  3940. esac
  3941. done
  3942. else $as_nop
  3943. printf "%s\n" "$as_me: failed program was:" >&5
  3944. sed 's/^/| /' conftest.$ac_ext >&5
  3945. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3946. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3947. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3948. See \`config.log' for more details" "$LINENO" 5; }
  3949. fi
  3950. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3951. fi
  3952. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3953. printf "%s\n" "$ac_cv_objext" >&6; }
  3954. OBJEXT=$ac_cv_objext
  3955. ac_objext=$OBJEXT
  3956. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  3957. printf %s "checking whether the compiler supports GNU C... " >&6; }
  3958. if test ${ac_cv_c_compiler_gnu+y}
  3959. then :
  3960. printf %s "(cached) " >&6
  3961. else $as_nop
  3962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3963. /* end confdefs.h. */
  3964. int
  3965. main (void)
  3966. {
  3967. #ifndef __GNUC__
  3968. choke me
  3969. #endif
  3970. ;
  3971. return 0;
  3972. }
  3973. _ACEOF
  3974. if ac_fn_c_try_compile "$LINENO"
  3975. then :
  3976. ac_compiler_gnu=yes
  3977. else $as_nop
  3978. ac_compiler_gnu=no
  3979. fi
  3980. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3981. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3982. fi
  3983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3984. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  3985. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3986. if test $ac_compiler_gnu = yes; then
  3987. GCC=yes
  3988. else
  3989. GCC=
  3990. fi
  3991. ac_test_CFLAGS=${CFLAGS+y}
  3992. ac_save_CFLAGS=$CFLAGS
  3993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3994. printf %s "checking whether $CC accepts -g... " >&6; }
  3995. if test ${ac_cv_prog_cc_g+y}
  3996. then :
  3997. printf %s "(cached) " >&6
  3998. else $as_nop
  3999. ac_save_c_werror_flag=$ac_c_werror_flag
  4000. ac_c_werror_flag=yes
  4001. ac_cv_prog_cc_g=no
  4002. CFLAGS="-g"
  4003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4004. /* end confdefs.h. */
  4005. int
  4006. main (void)
  4007. {
  4008. ;
  4009. return 0;
  4010. }
  4011. _ACEOF
  4012. if ac_fn_c_try_compile "$LINENO"
  4013. then :
  4014. ac_cv_prog_cc_g=yes
  4015. else $as_nop
  4016. CFLAGS=""
  4017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4018. /* end confdefs.h. */
  4019. int
  4020. main (void)
  4021. {
  4022. ;
  4023. return 0;
  4024. }
  4025. _ACEOF
  4026. if ac_fn_c_try_compile "$LINENO"
  4027. then :
  4028. else $as_nop
  4029. ac_c_werror_flag=$ac_save_c_werror_flag
  4030. CFLAGS="-g"
  4031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4032. /* end confdefs.h. */
  4033. int
  4034. main (void)
  4035. {
  4036. ;
  4037. return 0;
  4038. }
  4039. _ACEOF
  4040. if ac_fn_c_try_compile "$LINENO"
  4041. then :
  4042. ac_cv_prog_cc_g=yes
  4043. fi
  4044. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4045. fi
  4046. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4047. fi
  4048. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4049. ac_c_werror_flag=$ac_save_c_werror_flag
  4050. fi
  4051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4052. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  4053. if test $ac_test_CFLAGS; then
  4054. CFLAGS=$ac_save_CFLAGS
  4055. elif test $ac_cv_prog_cc_g = yes; then
  4056. if test "$GCC" = yes; then
  4057. CFLAGS="-g -O2"
  4058. else
  4059. CFLAGS="-g"
  4060. fi
  4061. else
  4062. if test "$GCC" = yes; then
  4063. CFLAGS="-O2"
  4064. else
  4065. CFLAGS=
  4066. fi
  4067. fi
  4068. ac_prog_cc_stdc=no
  4069. if test x$ac_prog_cc_stdc = xno
  4070. then :
  4071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4072. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4073. if test ${ac_cv_prog_cc_c11+y}
  4074. then :
  4075. printf %s "(cached) " >&6
  4076. else $as_nop
  4077. ac_cv_prog_cc_c11=no
  4078. ac_save_CC=$CC
  4079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4080. /* end confdefs.h. */
  4081. $ac_c_conftest_c11_program
  4082. _ACEOF
  4083. for ac_arg in '' -std=gnu11
  4084. do
  4085. CC="$ac_save_CC $ac_arg"
  4086. if ac_fn_c_try_compile "$LINENO"
  4087. then :
  4088. ac_cv_prog_cc_c11=$ac_arg
  4089. fi
  4090. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4091. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4092. done
  4093. rm -f conftest.$ac_ext
  4094. CC=$ac_save_CC
  4095. fi
  4096. if test "x$ac_cv_prog_cc_c11" = xno
  4097. then :
  4098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4099. printf "%s\n" "unsupported" >&6; }
  4100. else $as_nop
  4101. if test "x$ac_cv_prog_cc_c11" = x
  4102. then :
  4103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4104. printf "%s\n" "none needed" >&6; }
  4105. else $as_nop
  4106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4107. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4108. CC="$CC $ac_cv_prog_cc_c11"
  4109. fi
  4110. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4111. ac_prog_cc_stdc=c11
  4112. fi
  4113. fi
  4114. if test x$ac_prog_cc_stdc = xno
  4115. then :
  4116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4117. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4118. if test ${ac_cv_prog_cc_c99+y}
  4119. then :
  4120. printf %s "(cached) " >&6
  4121. else $as_nop
  4122. ac_cv_prog_cc_c99=no
  4123. ac_save_CC=$CC
  4124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4125. /* end confdefs.h. */
  4126. $ac_c_conftest_c99_program
  4127. _ACEOF
  4128. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4129. do
  4130. CC="$ac_save_CC $ac_arg"
  4131. if ac_fn_c_try_compile "$LINENO"
  4132. then :
  4133. ac_cv_prog_cc_c99=$ac_arg
  4134. fi
  4135. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4136. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4137. done
  4138. rm -f conftest.$ac_ext
  4139. CC=$ac_save_CC
  4140. fi
  4141. if test "x$ac_cv_prog_cc_c99" = xno
  4142. then :
  4143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4144. printf "%s\n" "unsupported" >&6; }
  4145. else $as_nop
  4146. if test "x$ac_cv_prog_cc_c99" = x
  4147. then :
  4148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4149. printf "%s\n" "none needed" >&6; }
  4150. else $as_nop
  4151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4152. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4153. CC="$CC $ac_cv_prog_cc_c99"
  4154. fi
  4155. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4156. ac_prog_cc_stdc=c99
  4157. fi
  4158. fi
  4159. if test x$ac_prog_cc_stdc = xno
  4160. then :
  4161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4162. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4163. if test ${ac_cv_prog_cc_c89+y}
  4164. then :
  4165. printf %s "(cached) " >&6
  4166. else $as_nop
  4167. ac_cv_prog_cc_c89=no
  4168. ac_save_CC=$CC
  4169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4170. /* end confdefs.h. */
  4171. $ac_c_conftest_c89_program
  4172. _ACEOF
  4173. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4174. do
  4175. CC="$ac_save_CC $ac_arg"
  4176. if ac_fn_c_try_compile "$LINENO"
  4177. then :
  4178. ac_cv_prog_cc_c89=$ac_arg
  4179. fi
  4180. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4181. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4182. done
  4183. rm -f conftest.$ac_ext
  4184. CC=$ac_save_CC
  4185. fi
  4186. if test "x$ac_cv_prog_cc_c89" = xno
  4187. then :
  4188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4189. printf "%s\n" "unsupported" >&6; }
  4190. else $as_nop
  4191. if test "x$ac_cv_prog_cc_c89" = x
  4192. then :
  4193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4194. printf "%s\n" "none needed" >&6; }
  4195. else $as_nop
  4196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4197. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4198. CC="$CC $ac_cv_prog_cc_c89"
  4199. fi
  4200. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4201. ac_prog_cc_stdc=c89
  4202. fi
  4203. fi
  4204. ac_ext=c
  4205. ac_cpp='$CPP $CPPFLAGS'
  4206. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4207. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4208. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4210. printf %s "checking for a sed that does not truncate output... " >&6; }
  4211. if test ${ac_cv_path_SED+y}
  4212. then :
  4213. printf %s "(cached) " >&6
  4214. else $as_nop
  4215. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4216. for ac_i in 1 2 3 4 5 6 7; do
  4217. ac_script="$ac_script$as_nl$ac_script"
  4218. done
  4219. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4220. { ac_script=; unset ac_script;}
  4221. if test -z "$SED"; then
  4222. ac_path_SED_found=false
  4223. # Loop through the user's path and test for each of PROGNAME-LIST
  4224. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4225. for as_dir in $PATH
  4226. do
  4227. IFS=$as_save_IFS
  4228. case $as_dir in #(((
  4229. '') as_dir=./ ;;
  4230. */) ;;
  4231. *) as_dir=$as_dir/ ;;
  4232. esac
  4233. for ac_prog in sed gsed
  4234. do
  4235. for ac_exec_ext in '' $ac_executable_extensions; do
  4236. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  4237. as_fn_executable_p "$ac_path_SED" || continue
  4238. # Check for GNU ac_path_SED and select it if it is found.
  4239. # Check for GNU $ac_path_SED
  4240. case `"$ac_path_SED" --version 2>&1` in
  4241. *GNU*)
  4242. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4243. *)
  4244. ac_count=0
  4245. printf %s 0123456789 >"conftest.in"
  4246. while :
  4247. do
  4248. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4249. mv "conftest.tmp" "conftest.in"
  4250. cp "conftest.in" "conftest.nl"
  4251. printf "%s\n" '' >> "conftest.nl"
  4252. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4253. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4254. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4255. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4256. # Best one so far, save it but keep looking for a better one
  4257. ac_cv_path_SED="$ac_path_SED"
  4258. ac_path_SED_max=$ac_count
  4259. fi
  4260. # 10*(2^10) chars as input seems more than enough
  4261. test $ac_count -gt 10 && break
  4262. done
  4263. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4264. esac
  4265. $ac_path_SED_found && break 3
  4266. done
  4267. done
  4268. done
  4269. IFS=$as_save_IFS
  4270. if test -z "$ac_cv_path_SED"; then
  4271. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4272. fi
  4273. else
  4274. ac_cv_path_SED=$SED
  4275. fi
  4276. fi
  4277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4278. printf "%s\n" "$ac_cv_path_SED" >&6; }
  4279. SED="$ac_cv_path_SED"
  4280. rm -f conftest.sed
  4281. test -z "$SED" && SED=sed
  4282. Xsed="$SED -e 1s/^X//"
  4283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4284. printf %s "checking for grep that handles long lines and -e... " >&6; }
  4285. if test ${ac_cv_path_GREP+y}
  4286. then :
  4287. printf %s "(cached) " >&6
  4288. else $as_nop
  4289. if test -z "$GREP"; then
  4290. ac_path_GREP_found=false
  4291. # Loop through the user's path and test for each of PROGNAME-LIST
  4292. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4293. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4294. do
  4295. IFS=$as_save_IFS
  4296. case $as_dir in #(((
  4297. '') as_dir=./ ;;
  4298. */) ;;
  4299. *) as_dir=$as_dir/ ;;
  4300. esac
  4301. for ac_prog in grep ggrep
  4302. do
  4303. for ac_exec_ext in '' $ac_executable_extensions; do
  4304. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  4305. as_fn_executable_p "$ac_path_GREP" || continue
  4306. # Check for GNU ac_path_GREP and select it if it is found.
  4307. # Check for GNU $ac_path_GREP
  4308. case `"$ac_path_GREP" --version 2>&1` in
  4309. *GNU*)
  4310. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4311. *)
  4312. ac_count=0
  4313. printf %s 0123456789 >"conftest.in"
  4314. while :
  4315. do
  4316. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4317. mv "conftest.tmp" "conftest.in"
  4318. cp "conftest.in" "conftest.nl"
  4319. printf "%s\n" 'GREP' >> "conftest.nl"
  4320. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4321. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4322. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4323. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4324. # Best one so far, save it but keep looking for a better one
  4325. ac_cv_path_GREP="$ac_path_GREP"
  4326. ac_path_GREP_max=$ac_count
  4327. fi
  4328. # 10*(2^10) chars as input seems more than enough
  4329. test $ac_count -gt 10 && break
  4330. done
  4331. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4332. esac
  4333. $ac_path_GREP_found && break 3
  4334. done
  4335. done
  4336. done
  4337. IFS=$as_save_IFS
  4338. if test -z "$ac_cv_path_GREP"; then
  4339. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4340. fi
  4341. else
  4342. ac_cv_path_GREP=$GREP
  4343. fi
  4344. fi
  4345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4346. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  4347. GREP="$ac_cv_path_GREP"
  4348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4349. printf %s "checking for egrep... " >&6; }
  4350. if test ${ac_cv_path_EGREP+y}
  4351. then :
  4352. printf %s "(cached) " >&6
  4353. else $as_nop
  4354. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4355. then ac_cv_path_EGREP="$GREP -E"
  4356. else
  4357. if test -z "$EGREP"; then
  4358. ac_path_EGREP_found=false
  4359. # Loop through the user's path and test for each of PROGNAME-LIST
  4360. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4361. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4362. do
  4363. IFS=$as_save_IFS
  4364. case $as_dir in #(((
  4365. '') as_dir=./ ;;
  4366. */) ;;
  4367. *) as_dir=$as_dir/ ;;
  4368. esac
  4369. for ac_prog in egrep
  4370. do
  4371. for ac_exec_ext in '' $ac_executable_extensions; do
  4372. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  4373. as_fn_executable_p "$ac_path_EGREP" || continue
  4374. # Check for GNU ac_path_EGREP and select it if it is found.
  4375. # Check for GNU $ac_path_EGREP
  4376. case `"$ac_path_EGREP" --version 2>&1` in
  4377. *GNU*)
  4378. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4379. *)
  4380. ac_count=0
  4381. printf %s 0123456789 >"conftest.in"
  4382. while :
  4383. do
  4384. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4385. mv "conftest.tmp" "conftest.in"
  4386. cp "conftest.in" "conftest.nl"
  4387. printf "%s\n" 'EGREP' >> "conftest.nl"
  4388. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4389. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4390. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4391. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4392. # Best one so far, save it but keep looking for a better one
  4393. ac_cv_path_EGREP="$ac_path_EGREP"
  4394. ac_path_EGREP_max=$ac_count
  4395. fi
  4396. # 10*(2^10) chars as input seems more than enough
  4397. test $ac_count -gt 10 && break
  4398. done
  4399. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4400. esac
  4401. $ac_path_EGREP_found && break 3
  4402. done
  4403. done
  4404. done
  4405. IFS=$as_save_IFS
  4406. if test -z "$ac_cv_path_EGREP"; then
  4407. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4408. fi
  4409. else
  4410. ac_cv_path_EGREP=$EGREP
  4411. fi
  4412. fi
  4413. fi
  4414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4415. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  4416. EGREP="$ac_cv_path_EGREP"
  4417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4418. printf %s "checking for fgrep... " >&6; }
  4419. if test ${ac_cv_path_FGREP+y}
  4420. then :
  4421. printf %s "(cached) " >&6
  4422. else $as_nop
  4423. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4424. then ac_cv_path_FGREP="$GREP -F"
  4425. else
  4426. if test -z "$FGREP"; then
  4427. ac_path_FGREP_found=false
  4428. # Loop through the user's path and test for each of PROGNAME-LIST
  4429. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4430. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4431. do
  4432. IFS=$as_save_IFS
  4433. case $as_dir in #(((
  4434. '') as_dir=./ ;;
  4435. */) ;;
  4436. *) as_dir=$as_dir/ ;;
  4437. esac
  4438. for ac_prog in fgrep
  4439. do
  4440. for ac_exec_ext in '' $ac_executable_extensions; do
  4441. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  4442. as_fn_executable_p "$ac_path_FGREP" || continue
  4443. # Check for GNU ac_path_FGREP and select it if it is found.
  4444. # Check for GNU $ac_path_FGREP
  4445. case `"$ac_path_FGREP" --version 2>&1` in
  4446. *GNU*)
  4447. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4448. *)
  4449. ac_count=0
  4450. printf %s 0123456789 >"conftest.in"
  4451. while :
  4452. do
  4453. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4454. mv "conftest.tmp" "conftest.in"
  4455. cp "conftest.in" "conftest.nl"
  4456. printf "%s\n" 'FGREP' >> "conftest.nl"
  4457. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4458. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4459. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4460. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4461. # Best one so far, save it but keep looking for a better one
  4462. ac_cv_path_FGREP="$ac_path_FGREP"
  4463. ac_path_FGREP_max=$ac_count
  4464. fi
  4465. # 10*(2^10) chars as input seems more than enough
  4466. test $ac_count -gt 10 && break
  4467. done
  4468. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4469. esac
  4470. $ac_path_FGREP_found && break 3
  4471. done
  4472. done
  4473. done
  4474. IFS=$as_save_IFS
  4475. if test -z "$ac_cv_path_FGREP"; then
  4476. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4477. fi
  4478. else
  4479. ac_cv_path_FGREP=$FGREP
  4480. fi
  4481. fi
  4482. fi
  4483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4484. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  4485. FGREP="$ac_cv_path_FGREP"
  4486. test -z "$GREP" && GREP=grep
  4487. # Check whether --with-gnu-ld was given.
  4488. if test ${with_gnu_ld+y}
  4489. then :
  4490. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4491. else $as_nop
  4492. with_gnu_ld=no
  4493. fi
  4494. ac_prog=ld
  4495. if test yes = "$GCC"; then
  4496. # Check if gcc -print-prog-name=ld gives a path.
  4497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4498. printf %s "checking for ld used by $CC... " >&6; }
  4499. case $host in
  4500. *-*-mingw*)
  4501. # gcc leaves a trailing carriage return, which upsets mingw
  4502. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4503. *)
  4504. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4505. esac
  4506. case $ac_prog in
  4507. # Accept absolute paths.
  4508. [\\/]* | ?:[\\/]*)
  4509. re_direlt='/[^/][^/]*/\.\./'
  4510. # Canonicalize the pathname of ld
  4511. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4512. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4513. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4514. done
  4515. test -z "$LD" && LD=$ac_prog
  4516. ;;
  4517. "")
  4518. # If it fails, then pretend we aren't using GCC.
  4519. ac_prog=ld
  4520. ;;
  4521. *)
  4522. # If it is relative, then search for the first ld in PATH.
  4523. with_gnu_ld=unknown
  4524. ;;
  4525. esac
  4526. elif test yes = "$with_gnu_ld"; then
  4527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4528. printf %s "checking for GNU ld... " >&6; }
  4529. else
  4530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4531. printf %s "checking for non-GNU ld... " >&6; }
  4532. fi
  4533. if test ${lt_cv_path_LD+y}
  4534. then :
  4535. printf %s "(cached) " >&6
  4536. else $as_nop
  4537. if test -z "$LD"; then
  4538. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4539. for ac_dir in $PATH; do
  4540. IFS=$lt_save_ifs
  4541. test -z "$ac_dir" && ac_dir=.
  4542. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4543. lt_cv_path_LD=$ac_dir/$ac_prog
  4544. # Check to see if the program is GNU ld. I'd rather use --version,
  4545. # but apparently some variants of GNU ld only accept -v.
  4546. # Break only if it was the GNU/non-GNU ld that we prefer.
  4547. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4548. *GNU* | *'with BFD'*)
  4549. test no != "$with_gnu_ld" && break
  4550. ;;
  4551. *)
  4552. test yes != "$with_gnu_ld" && break
  4553. ;;
  4554. esac
  4555. fi
  4556. done
  4557. IFS=$lt_save_ifs
  4558. else
  4559. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4560. fi
  4561. fi
  4562. LD=$lt_cv_path_LD
  4563. if test -n "$LD"; then
  4564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4565. printf "%s\n" "$LD" >&6; }
  4566. else
  4567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4568. printf "%s\n" "no" >&6; }
  4569. fi
  4570. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4572. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  4573. if test ${lt_cv_prog_gnu_ld+y}
  4574. then :
  4575. printf %s "(cached) " >&6
  4576. else $as_nop
  4577. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4578. case `$LD -v 2>&1 </dev/null` in
  4579. *GNU* | *'with BFD'*)
  4580. lt_cv_prog_gnu_ld=yes
  4581. ;;
  4582. *)
  4583. lt_cv_prog_gnu_ld=no
  4584. ;;
  4585. esac
  4586. fi
  4587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4588. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  4589. with_gnu_ld=$lt_cv_prog_gnu_ld
  4590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4591. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4592. if test ${lt_cv_path_NM+y}
  4593. then :
  4594. printf %s "(cached) " >&6
  4595. else $as_nop
  4596. if test -n "$NM"; then
  4597. # Let the user override the test.
  4598. lt_cv_path_NM=$NM
  4599. else
  4600. lt_nm_to_check=${ac_tool_prefix}nm
  4601. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4602. lt_nm_to_check="$lt_nm_to_check nm"
  4603. fi
  4604. for lt_tmp_nm in $lt_nm_to_check; do
  4605. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4606. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4607. IFS=$lt_save_ifs
  4608. test -z "$ac_dir" && ac_dir=.
  4609. tmp_nm=$ac_dir/$lt_tmp_nm
  4610. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4611. # Check to see if the nm accepts a BSD-compat flag.
  4612. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4613. # nm: unknown option "B" ignored
  4614. # Tru64's nm complains that /dev/null is an invalid object file
  4615. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4616. case $build_os in
  4617. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4618. *) lt_bad_file=/dev/null ;;
  4619. esac
  4620. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4621. *$lt_bad_file* | *'Invalid file or object type'*)
  4622. lt_cv_path_NM="$tmp_nm -B"
  4623. break 2
  4624. ;;
  4625. *)
  4626. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4627. */dev/null*)
  4628. lt_cv_path_NM="$tmp_nm -p"
  4629. break 2
  4630. ;;
  4631. *)
  4632. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4633. continue # so that we can try to find one that supports BSD flags
  4634. ;;
  4635. esac
  4636. ;;
  4637. esac
  4638. fi
  4639. done
  4640. IFS=$lt_save_ifs
  4641. done
  4642. : ${lt_cv_path_NM=no}
  4643. fi
  4644. fi
  4645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4646. printf "%s\n" "$lt_cv_path_NM" >&6; }
  4647. if test no != "$lt_cv_path_NM"; then
  4648. NM=$lt_cv_path_NM
  4649. else
  4650. # Didn't find any BSD compatible name lister, look for dumpbin.
  4651. if test -n "$DUMPBIN"; then :
  4652. # Let the user override the test.
  4653. else
  4654. if test -n "$ac_tool_prefix"; then
  4655. for ac_prog in dumpbin "link -dump"
  4656. do
  4657. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4658. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4660. printf %s "checking for $ac_word... " >&6; }
  4661. if test ${ac_cv_prog_DUMPBIN+y}
  4662. then :
  4663. printf %s "(cached) " >&6
  4664. else $as_nop
  4665. if test -n "$DUMPBIN"; then
  4666. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4667. else
  4668. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4669. for as_dir in $PATH
  4670. do
  4671. IFS=$as_save_IFS
  4672. case $as_dir in #(((
  4673. '') as_dir=./ ;;
  4674. */) ;;
  4675. *) as_dir=$as_dir/ ;;
  4676. esac
  4677. for ac_exec_ext in '' $ac_executable_extensions; do
  4678. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4679. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4680. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4681. break 2
  4682. fi
  4683. done
  4684. done
  4685. IFS=$as_save_IFS
  4686. fi
  4687. fi
  4688. DUMPBIN=$ac_cv_prog_DUMPBIN
  4689. if test -n "$DUMPBIN"; then
  4690. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4691. printf "%s\n" "$DUMPBIN" >&6; }
  4692. else
  4693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4694. printf "%s\n" "no" >&6; }
  4695. fi
  4696. test -n "$DUMPBIN" && break
  4697. done
  4698. fi
  4699. if test -z "$DUMPBIN"; then
  4700. ac_ct_DUMPBIN=$DUMPBIN
  4701. for ac_prog in dumpbin "link -dump"
  4702. do
  4703. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4704. set dummy $ac_prog; ac_word=$2
  4705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4706. printf %s "checking for $ac_word... " >&6; }
  4707. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  4708. then :
  4709. printf %s "(cached) " >&6
  4710. else $as_nop
  4711. if test -n "$ac_ct_DUMPBIN"; then
  4712. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4713. else
  4714. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4715. for as_dir in $PATH
  4716. do
  4717. IFS=$as_save_IFS
  4718. case $as_dir in #(((
  4719. '') as_dir=./ ;;
  4720. */) ;;
  4721. *) as_dir=$as_dir/ ;;
  4722. esac
  4723. for ac_exec_ext in '' $ac_executable_extensions; do
  4724. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4725. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4726. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4727. break 2
  4728. fi
  4729. done
  4730. done
  4731. IFS=$as_save_IFS
  4732. fi
  4733. fi
  4734. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4735. if test -n "$ac_ct_DUMPBIN"; then
  4736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4737. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  4738. else
  4739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4740. printf "%s\n" "no" >&6; }
  4741. fi
  4742. test -n "$ac_ct_DUMPBIN" && break
  4743. done
  4744. if test "x$ac_ct_DUMPBIN" = x; then
  4745. DUMPBIN=":"
  4746. else
  4747. case $cross_compiling:$ac_tool_warned in
  4748. yes:)
  4749. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4750. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4751. ac_tool_warned=yes ;;
  4752. esac
  4753. DUMPBIN=$ac_ct_DUMPBIN
  4754. fi
  4755. fi
  4756. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4757. *COFF*)
  4758. DUMPBIN="$DUMPBIN -symbols -headers"
  4759. ;;
  4760. *)
  4761. DUMPBIN=:
  4762. ;;
  4763. esac
  4764. fi
  4765. if test : != "$DUMPBIN"; then
  4766. NM=$DUMPBIN
  4767. fi
  4768. fi
  4769. test -z "$NM" && NM=nm
  4770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4771. printf %s "checking the name lister ($NM) interface... " >&6; }
  4772. if test ${lt_cv_nm_interface+y}
  4773. then :
  4774. printf %s "(cached) " >&6
  4775. else $as_nop
  4776. lt_cv_nm_interface="BSD nm"
  4777. echo "int some_variable = 0;" > conftest.$ac_ext
  4778. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4779. (eval "$ac_compile" 2>conftest.err)
  4780. cat conftest.err >&5
  4781. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4782. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4783. cat conftest.err >&5
  4784. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4785. cat conftest.out >&5
  4786. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4787. lt_cv_nm_interface="MS dumpbin"
  4788. fi
  4789. rm -f conftest*
  4790. fi
  4791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4792. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  4793. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4794. printf %s "checking whether ln -s works... " >&6; }
  4795. LN_S=$as_ln_s
  4796. if test "$LN_S" = "ln -s"; then
  4797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4798. printf "%s\n" "yes" >&6; }
  4799. else
  4800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4801. printf "%s\n" "no, using $LN_S" >&6; }
  4802. fi
  4803. # find the maximum length of command line arguments
  4804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4805. printf %s "checking the maximum length of command line arguments... " >&6; }
  4806. if test ${lt_cv_sys_max_cmd_len+y}
  4807. then :
  4808. printf %s "(cached) " >&6
  4809. else $as_nop
  4810. i=0
  4811. teststring=ABCD
  4812. case $build_os in
  4813. msdosdjgpp*)
  4814. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4815. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4816. # during glob expansion). Even if it were fixed, the result of this
  4817. # check would be larger than it should be.
  4818. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4819. ;;
  4820. gnu*)
  4821. # Under GNU Hurd, this test is not required because there is
  4822. # no limit to the length of command line arguments.
  4823. # Libtool will interpret -1 as no limit whatsoever
  4824. lt_cv_sys_max_cmd_len=-1;
  4825. ;;
  4826. cygwin* | mingw* | cegcc*)
  4827. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4828. # about 5 minutes as the teststring grows exponentially.
  4829. # Worse, since 9x/ME are not pre-emptively multitasking,
  4830. # you end up with a "frozen" computer, even though with patience
  4831. # the test eventually succeeds (with a max line length of 256k).
  4832. # Instead, let's just punt: use the minimum linelength reported by
  4833. # all of the supported platforms: 8192 (on NT/2K/XP).
  4834. lt_cv_sys_max_cmd_len=8192;
  4835. ;;
  4836. mint*)
  4837. # On MiNT this can take a long time and run out of memory.
  4838. lt_cv_sys_max_cmd_len=8192;
  4839. ;;
  4840. amigaos*)
  4841. # On AmigaOS with pdksh, this test takes hours, literally.
  4842. # So we just punt and use a minimum line length of 8192.
  4843. lt_cv_sys_max_cmd_len=8192;
  4844. ;;
  4845. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4846. # This has been around since 386BSD, at least. Likely further.
  4847. if test -x /sbin/sysctl; then
  4848. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4849. elif test -x /usr/sbin/sysctl; then
  4850. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4851. else
  4852. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4853. fi
  4854. # And add a safety zone
  4855. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4856. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4857. ;;
  4858. interix*)
  4859. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4860. lt_cv_sys_max_cmd_len=196608
  4861. ;;
  4862. os2*)
  4863. # The test takes a long time on OS/2.
  4864. lt_cv_sys_max_cmd_len=8192
  4865. ;;
  4866. osf*)
  4867. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4868. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4869. # nice to cause kernel panics so lets avoid the loop below.
  4870. # First set a reasonable default.
  4871. lt_cv_sys_max_cmd_len=16384
  4872. #
  4873. if test -x /sbin/sysconfig; then
  4874. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4875. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4876. esac
  4877. fi
  4878. ;;
  4879. sco3.2v5*)
  4880. lt_cv_sys_max_cmd_len=102400
  4881. ;;
  4882. sysv5* | sco5v6* | sysv4.2uw2*)
  4883. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4884. if test -n "$kargmax"; then
  4885. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4886. else
  4887. lt_cv_sys_max_cmd_len=32768
  4888. fi
  4889. ;;
  4890. *)
  4891. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4892. if test -n "$lt_cv_sys_max_cmd_len" && \
  4893. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4894. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4895. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4896. else
  4897. # Make teststring a little bigger before we do anything with it.
  4898. # a 1K string should be a reasonable start.
  4899. for i in 1 2 3 4 5 6 7 8; do
  4900. teststring=$teststring$teststring
  4901. done
  4902. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4903. # If test is not a shell built-in, we'll probably end up computing a
  4904. # maximum length that is only half of the actual maximum length, but
  4905. # we can't tell.
  4906. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4907. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4908. test 17 != "$i" # 1/2 MB should be enough
  4909. do
  4910. i=`expr $i + 1`
  4911. teststring=$teststring$teststring
  4912. done
  4913. # Only check the string length outside the loop.
  4914. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4915. teststring=
  4916. # Add a significant safety factor because C++ compilers can tack on
  4917. # massive amounts of additional arguments before passing them to the
  4918. # linker. It appears as though 1/2 is a usable value.
  4919. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4920. fi
  4921. ;;
  4922. esac
  4923. fi
  4924. if test -n "$lt_cv_sys_max_cmd_len"; then
  4925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4926. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  4927. else
  4928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4929. printf "%s\n" "none" >&6; }
  4930. fi
  4931. max_cmd_len=$lt_cv_sys_max_cmd_len
  4932. : ${CP="cp -f"}
  4933. : ${MV="mv -f"}
  4934. : ${RM="rm -f"}
  4935. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4936. lt_unset=unset
  4937. else
  4938. lt_unset=false
  4939. fi
  4940. # test EBCDIC or ASCII
  4941. case `echo X|tr X '\101'` in
  4942. A) # ASCII based system
  4943. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4944. lt_SP2NL='tr \040 \012'
  4945. lt_NL2SP='tr \015\012 \040\040'
  4946. ;;
  4947. *) # EBCDIC based system
  4948. lt_SP2NL='tr \100 \n'
  4949. lt_NL2SP='tr \r\n \100\100'
  4950. ;;
  4951. esac
  4952. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4953. printf %s "checking how to convert $build file names to $host format... " >&6; }
  4954. if test ${lt_cv_to_host_file_cmd+y}
  4955. then :
  4956. printf %s "(cached) " >&6
  4957. else $as_nop
  4958. case $host in
  4959. *-*-mingw* )
  4960. case $build in
  4961. *-*-mingw* ) # actually msys
  4962. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4963. ;;
  4964. *-*-cygwin* )
  4965. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4966. ;;
  4967. * ) # otherwise, assume *nix
  4968. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4969. ;;
  4970. esac
  4971. ;;
  4972. *-*-cygwin* )
  4973. case $build in
  4974. *-*-mingw* ) # actually msys
  4975. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4976. ;;
  4977. *-*-cygwin* )
  4978. lt_cv_to_host_file_cmd=func_convert_file_noop
  4979. ;;
  4980. * ) # otherwise, assume *nix
  4981. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4982. ;;
  4983. esac
  4984. ;;
  4985. * ) # unhandled hosts (and "normal" native builds)
  4986. lt_cv_to_host_file_cmd=func_convert_file_noop
  4987. ;;
  4988. esac
  4989. fi
  4990. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4992. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  4993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4994. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  4995. if test ${lt_cv_to_tool_file_cmd+y}
  4996. then :
  4997. printf %s "(cached) " >&6
  4998. else $as_nop
  4999. #assume ordinary cross tools, or native build.
  5000. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5001. case $host in
  5002. *-*-mingw* )
  5003. case $build in
  5004. *-*-mingw* ) # actually msys
  5005. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5006. ;;
  5007. esac
  5008. ;;
  5009. esac
  5010. fi
  5011. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5012. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5013. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  5014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5015. printf %s "checking for $LD option to reload object files... " >&6; }
  5016. if test ${lt_cv_ld_reload_flag+y}
  5017. then :
  5018. printf %s "(cached) " >&6
  5019. else $as_nop
  5020. lt_cv_ld_reload_flag='-r'
  5021. fi
  5022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5023. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  5024. reload_flag=$lt_cv_ld_reload_flag
  5025. case $reload_flag in
  5026. "" | " "*) ;;
  5027. *) reload_flag=" $reload_flag" ;;
  5028. esac
  5029. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5030. case $host_os in
  5031. cygwin* | mingw* | pw32* | cegcc*)
  5032. if test yes != "$GCC"; then
  5033. reload_cmds=false
  5034. fi
  5035. ;;
  5036. darwin*)
  5037. if test yes = "$GCC"; then
  5038. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5039. else
  5040. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5041. fi
  5042. ;;
  5043. esac
  5044. if test -n "$ac_tool_prefix"; then
  5045. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5046. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5047. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5048. printf %s "checking for $ac_word... " >&6; }
  5049. if test ${ac_cv_prog_OBJDUMP+y}
  5050. then :
  5051. printf %s "(cached) " >&6
  5052. else $as_nop
  5053. if test -n "$OBJDUMP"; then
  5054. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5055. else
  5056. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5057. for as_dir in $PATH
  5058. do
  5059. IFS=$as_save_IFS
  5060. case $as_dir in #(((
  5061. '') as_dir=./ ;;
  5062. */) ;;
  5063. *) as_dir=$as_dir/ ;;
  5064. esac
  5065. for ac_exec_ext in '' $ac_executable_extensions; do
  5066. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5067. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5068. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5069. break 2
  5070. fi
  5071. done
  5072. done
  5073. IFS=$as_save_IFS
  5074. fi
  5075. fi
  5076. OBJDUMP=$ac_cv_prog_OBJDUMP
  5077. if test -n "$OBJDUMP"; then
  5078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5079. printf "%s\n" "$OBJDUMP" >&6; }
  5080. else
  5081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5082. printf "%s\n" "no" >&6; }
  5083. fi
  5084. fi
  5085. if test -z "$ac_cv_prog_OBJDUMP"; then
  5086. ac_ct_OBJDUMP=$OBJDUMP
  5087. # Extract the first word of "objdump", so it can be a program name with args.
  5088. set dummy objdump; ac_word=$2
  5089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5090. printf %s "checking for $ac_word... " >&6; }
  5091. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  5092. then :
  5093. printf %s "(cached) " >&6
  5094. else $as_nop
  5095. if test -n "$ac_ct_OBJDUMP"; then
  5096. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5097. else
  5098. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5099. for as_dir in $PATH
  5100. do
  5101. IFS=$as_save_IFS
  5102. case $as_dir in #(((
  5103. '') as_dir=./ ;;
  5104. */) ;;
  5105. *) as_dir=$as_dir/ ;;
  5106. esac
  5107. for ac_exec_ext in '' $ac_executable_extensions; do
  5108. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5109. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5110. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5111. break 2
  5112. fi
  5113. done
  5114. done
  5115. IFS=$as_save_IFS
  5116. fi
  5117. fi
  5118. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5119. if test -n "$ac_ct_OBJDUMP"; then
  5120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5121. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  5122. else
  5123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5124. printf "%s\n" "no" >&6; }
  5125. fi
  5126. if test "x$ac_ct_OBJDUMP" = x; then
  5127. OBJDUMP="false"
  5128. else
  5129. case $cross_compiling:$ac_tool_warned in
  5130. yes:)
  5131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5132. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5133. ac_tool_warned=yes ;;
  5134. esac
  5135. OBJDUMP=$ac_ct_OBJDUMP
  5136. fi
  5137. else
  5138. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5139. fi
  5140. test -z "$OBJDUMP" && OBJDUMP=objdump
  5141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5142. printf %s "checking how to recognize dependent libraries... " >&6; }
  5143. if test ${lt_cv_deplibs_check_method+y}
  5144. then :
  5145. printf %s "(cached) " >&6
  5146. else $as_nop
  5147. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5148. lt_cv_file_magic_test_file=
  5149. lt_cv_deplibs_check_method='unknown'
  5150. # Need to set the preceding variable on all platforms that support
  5151. # interlibrary dependencies.
  5152. # 'none' -- dependencies not supported.
  5153. # 'unknown' -- same as none, but documents that we really don't know.
  5154. # 'pass_all' -- all dependencies passed with no checks.
  5155. # 'test_compile' -- check by making test program.
  5156. # 'file_magic [[regex]]' -- check by looking for files in library path
  5157. # that responds to the $file_magic_cmd with a given extended regex.
  5158. # If you have 'file' or equivalent on your system and you're not sure
  5159. # whether 'pass_all' will *always* work, you probably want this one.
  5160. case $host_os in
  5161. aix[4-9]*)
  5162. lt_cv_deplibs_check_method=pass_all
  5163. ;;
  5164. beos*)
  5165. lt_cv_deplibs_check_method=pass_all
  5166. ;;
  5167. bsdi[45]*)
  5168. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5169. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5170. lt_cv_file_magic_test_file=/shlib/libc.so
  5171. ;;
  5172. cygwin*)
  5173. # func_win32_libid is a shell function defined in ltmain.sh
  5174. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5175. lt_cv_file_magic_cmd='func_win32_libid'
  5176. lt_cv_deplibs_check_method=pass_all # SDL customization
  5177. ;;
  5178. mingw* | pw32*)
  5179. # Base MSYS/MinGW do not provide the 'file' command needed by
  5180. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5181. # unless we find 'file', for example because we are cross-compiling.
  5182. if ( file / ) >/dev/null 2>&1; then
  5183. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5184. lt_cv_file_magic_cmd='func_win32_libid'
  5185. else
  5186. # Keep this pattern in sync with the one in func_win32_libid.
  5187. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5188. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5189. fi
  5190. lt_cv_deplibs_check_method=pass_all # SDL customization
  5191. ;;
  5192. cegcc*)
  5193. # use the weaker test based on 'objdump'. See mingw*.
  5194. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5195. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5196. ;;
  5197. darwin* | rhapsody*)
  5198. lt_cv_deplibs_check_method=pass_all
  5199. ;;
  5200. freebsd* | dragonfly* | midnightbsd*)
  5201. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5202. case $host_cpu in
  5203. i*86 )
  5204. # Not sure whether the presence of OpenBSD here was a mistake.
  5205. # Let's accept both of them until this is cleared up.
  5206. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5207. lt_cv_file_magic_cmd=/usr/bin/file
  5208. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5209. ;;
  5210. esac
  5211. else
  5212. lt_cv_deplibs_check_method=pass_all
  5213. fi
  5214. ;;
  5215. haiku*)
  5216. lt_cv_deplibs_check_method=pass_all
  5217. ;;
  5218. hpux10.20* | hpux11*)
  5219. lt_cv_file_magic_cmd=/usr/bin/file
  5220. case $host_cpu in
  5221. ia64*)
  5222. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5223. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5224. ;;
  5225. hppa*64*)
  5226. 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]'
  5227. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5228. ;;
  5229. *)
  5230. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5231. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5232. ;;
  5233. esac
  5234. ;;
  5235. interix[3-9]*)
  5236. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5237. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5238. ;;
  5239. irix5* | irix6* | nonstopux*)
  5240. case $LD in
  5241. *-32|*"-32 ") libmagic=32-bit;;
  5242. *-n32|*"-n32 ") libmagic=N32;;
  5243. *-64|*"-64 ") libmagic=64-bit;;
  5244. *) libmagic=never-match;;
  5245. esac
  5246. lt_cv_deplibs_check_method=pass_all
  5247. ;;
  5248. # This must be glibc/ELF.
  5249. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5250. lt_cv_deplibs_check_method=pass_all
  5251. ;;
  5252. netbsd*)
  5253. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5254. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5255. else
  5256. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5257. fi
  5258. ;;
  5259. newos6*)
  5260. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5261. lt_cv_file_magic_cmd=/usr/bin/file
  5262. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5263. ;;
  5264. *nto* | *qnx*)
  5265. lt_cv_deplibs_check_method=pass_all
  5266. ;;
  5267. openbsd* | bitrig*)
  5268. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5269. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5270. else
  5271. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5272. fi
  5273. ;;
  5274. osf3* | osf4* | osf5*)
  5275. lt_cv_deplibs_check_method=pass_all
  5276. ;;
  5277. rdos*)
  5278. lt_cv_deplibs_check_method=pass_all
  5279. ;;
  5280. solaris*)
  5281. lt_cv_deplibs_check_method=pass_all
  5282. ;;
  5283. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5284. lt_cv_deplibs_check_method=pass_all
  5285. ;;
  5286. sysv4 | sysv4.3*)
  5287. case $host_vendor in
  5288. motorola)
  5289. 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]'
  5290. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5291. ;;
  5292. ncr)
  5293. lt_cv_deplibs_check_method=pass_all
  5294. ;;
  5295. sequent)
  5296. lt_cv_file_magic_cmd='/bin/file'
  5297. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5298. ;;
  5299. sni)
  5300. lt_cv_file_magic_cmd='/bin/file'
  5301. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5302. lt_cv_file_magic_test_file=/lib/libc.so
  5303. ;;
  5304. siemens)
  5305. lt_cv_deplibs_check_method=pass_all
  5306. ;;
  5307. pc)
  5308. lt_cv_deplibs_check_method=pass_all
  5309. ;;
  5310. esac
  5311. ;;
  5312. tpf*)
  5313. lt_cv_deplibs_check_method=pass_all
  5314. ;;
  5315. os2*)
  5316. lt_cv_deplibs_check_method=pass_all
  5317. ;;
  5318. esac
  5319. fi
  5320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5321. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  5322. file_magic_glob=
  5323. want_nocaseglob=no
  5324. if test "$build" = "$host"; then
  5325. case $host_os in
  5326. mingw* | pw32*)
  5327. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5328. want_nocaseglob=yes
  5329. else
  5330. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5331. fi
  5332. ;;
  5333. esac
  5334. fi
  5335. file_magic_cmd=$lt_cv_file_magic_cmd
  5336. deplibs_check_method=$lt_cv_deplibs_check_method
  5337. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5338. if test -n "$ac_tool_prefix"; then
  5339. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5340. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5342. printf %s "checking for $ac_word... " >&6; }
  5343. if test ${ac_cv_prog_DLLTOOL+y}
  5344. then :
  5345. printf %s "(cached) " >&6
  5346. else $as_nop
  5347. if test -n "$DLLTOOL"; then
  5348. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5349. else
  5350. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5351. for as_dir in $PATH
  5352. do
  5353. IFS=$as_save_IFS
  5354. case $as_dir in #(((
  5355. '') as_dir=./ ;;
  5356. */) ;;
  5357. *) as_dir=$as_dir/ ;;
  5358. esac
  5359. for ac_exec_ext in '' $ac_executable_extensions; do
  5360. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5361. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5362. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5363. break 2
  5364. fi
  5365. done
  5366. done
  5367. IFS=$as_save_IFS
  5368. fi
  5369. fi
  5370. DLLTOOL=$ac_cv_prog_DLLTOOL
  5371. if test -n "$DLLTOOL"; then
  5372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5373. printf "%s\n" "$DLLTOOL" >&6; }
  5374. else
  5375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5376. printf "%s\n" "no" >&6; }
  5377. fi
  5378. fi
  5379. if test -z "$ac_cv_prog_DLLTOOL"; then
  5380. ac_ct_DLLTOOL=$DLLTOOL
  5381. # Extract the first word of "dlltool", so it can be a program name with args.
  5382. set dummy dlltool; ac_word=$2
  5383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5384. printf %s "checking for $ac_word... " >&6; }
  5385. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  5386. then :
  5387. printf %s "(cached) " >&6
  5388. else $as_nop
  5389. if test -n "$ac_ct_DLLTOOL"; then
  5390. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5391. else
  5392. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5393. for as_dir in $PATH
  5394. do
  5395. IFS=$as_save_IFS
  5396. case $as_dir in #(((
  5397. '') as_dir=./ ;;
  5398. */) ;;
  5399. *) as_dir=$as_dir/ ;;
  5400. esac
  5401. for ac_exec_ext in '' $ac_executable_extensions; do
  5402. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5403. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5404. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5405. break 2
  5406. fi
  5407. done
  5408. done
  5409. IFS=$as_save_IFS
  5410. fi
  5411. fi
  5412. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5413. if test -n "$ac_ct_DLLTOOL"; then
  5414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5415. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  5416. else
  5417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5418. printf "%s\n" "no" >&6; }
  5419. fi
  5420. if test "x$ac_ct_DLLTOOL" = x; then
  5421. DLLTOOL="false"
  5422. else
  5423. case $cross_compiling:$ac_tool_warned in
  5424. yes:)
  5425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5426. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5427. ac_tool_warned=yes ;;
  5428. esac
  5429. DLLTOOL=$ac_ct_DLLTOOL
  5430. fi
  5431. else
  5432. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5433. fi
  5434. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5436. printf %s "checking how to associate runtime and link libraries... " >&6; }
  5437. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  5438. then :
  5439. printf %s "(cached) " >&6
  5440. else $as_nop
  5441. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5442. case $host_os in
  5443. cygwin* | mingw* | pw32* | cegcc*)
  5444. # two different shell functions defined in ltmain.sh;
  5445. # decide which one to use based on capabilities of $DLLTOOL
  5446. case `$DLLTOOL --help 2>&1` in
  5447. *--identify-strict*)
  5448. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5449. ;;
  5450. *)
  5451. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5452. ;;
  5453. esac
  5454. ;;
  5455. *)
  5456. # fallback: assume linklib IS sharedlib
  5457. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5458. ;;
  5459. esac
  5460. fi
  5461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5462. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5463. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5464. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5465. if test -n "$ac_tool_prefix"; then
  5466. for ac_prog in ar
  5467. do
  5468. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5469. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5471. printf %s "checking for $ac_word... " >&6; }
  5472. if test ${ac_cv_prog_AR+y}
  5473. then :
  5474. printf %s "(cached) " >&6
  5475. else $as_nop
  5476. if test -n "$AR"; then
  5477. ac_cv_prog_AR="$AR" # Let the user override the test.
  5478. else
  5479. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5480. for as_dir in $PATH
  5481. do
  5482. IFS=$as_save_IFS
  5483. case $as_dir in #(((
  5484. '') as_dir=./ ;;
  5485. */) ;;
  5486. *) as_dir=$as_dir/ ;;
  5487. esac
  5488. for ac_exec_ext in '' $ac_executable_extensions; do
  5489. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5490. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5491. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5492. break 2
  5493. fi
  5494. done
  5495. done
  5496. IFS=$as_save_IFS
  5497. fi
  5498. fi
  5499. AR=$ac_cv_prog_AR
  5500. if test -n "$AR"; then
  5501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5502. printf "%s\n" "$AR" >&6; }
  5503. else
  5504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5505. printf "%s\n" "no" >&6; }
  5506. fi
  5507. test -n "$AR" && break
  5508. done
  5509. fi
  5510. if test -z "$AR"; then
  5511. ac_ct_AR=$AR
  5512. for ac_prog in ar
  5513. do
  5514. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5515. set dummy $ac_prog; ac_word=$2
  5516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5517. printf %s "checking for $ac_word... " >&6; }
  5518. if test ${ac_cv_prog_ac_ct_AR+y}
  5519. then :
  5520. printf %s "(cached) " >&6
  5521. else $as_nop
  5522. if test -n "$ac_ct_AR"; then
  5523. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5524. else
  5525. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5526. for as_dir in $PATH
  5527. do
  5528. IFS=$as_save_IFS
  5529. case $as_dir in #(((
  5530. '') as_dir=./ ;;
  5531. */) ;;
  5532. *) as_dir=$as_dir/ ;;
  5533. esac
  5534. for ac_exec_ext in '' $ac_executable_extensions; do
  5535. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5536. ac_cv_prog_ac_ct_AR="$ac_prog"
  5537. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5538. break 2
  5539. fi
  5540. done
  5541. done
  5542. IFS=$as_save_IFS
  5543. fi
  5544. fi
  5545. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5546. if test -n "$ac_ct_AR"; then
  5547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5548. printf "%s\n" "$ac_ct_AR" >&6; }
  5549. else
  5550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5551. printf "%s\n" "no" >&6; }
  5552. fi
  5553. test -n "$ac_ct_AR" && break
  5554. done
  5555. if test "x$ac_ct_AR" = x; then
  5556. AR="false"
  5557. else
  5558. case $cross_compiling:$ac_tool_warned in
  5559. yes:)
  5560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5561. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5562. ac_tool_warned=yes ;;
  5563. esac
  5564. AR=$ac_ct_AR
  5565. fi
  5566. fi
  5567. : ${AR=ar}
  5568. : ${AR_FLAGS=cru}
  5569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5570. printf %s "checking for archiver @FILE support... " >&6; }
  5571. if test ${lt_cv_ar_at_file+y}
  5572. then :
  5573. printf %s "(cached) " >&6
  5574. else $as_nop
  5575. lt_cv_ar_at_file=no
  5576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5577. /* end confdefs.h. */
  5578. int
  5579. main (void)
  5580. {
  5581. ;
  5582. return 0;
  5583. }
  5584. _ACEOF
  5585. if ac_fn_c_try_compile "$LINENO"
  5586. then :
  5587. echo conftest.$ac_objext > conftest.lst
  5588. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5589. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5590. (eval $lt_ar_try) 2>&5
  5591. ac_status=$?
  5592. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5593. test $ac_status = 0; }
  5594. if test 0 -eq "$ac_status"; then
  5595. # Ensure the archiver fails upon bogus file names.
  5596. rm -f conftest.$ac_objext libconftest.a
  5597. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5598. (eval $lt_ar_try) 2>&5
  5599. ac_status=$?
  5600. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5601. test $ac_status = 0; }
  5602. if test 0 -ne "$ac_status"; then
  5603. lt_cv_ar_at_file=@
  5604. fi
  5605. fi
  5606. rm -f conftest.* libconftest.a
  5607. fi
  5608. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5609. fi
  5610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5611. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  5612. if test no = "$lt_cv_ar_at_file"; then
  5613. archiver_list_spec=
  5614. else
  5615. archiver_list_spec=$lt_cv_ar_at_file
  5616. fi
  5617. if test -n "$ac_tool_prefix"; then
  5618. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5619. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5621. printf %s "checking for $ac_word... " >&6; }
  5622. if test ${ac_cv_prog_STRIP+y}
  5623. then :
  5624. printf %s "(cached) " >&6
  5625. else $as_nop
  5626. if test -n "$STRIP"; then
  5627. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5628. else
  5629. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5630. for as_dir in $PATH
  5631. do
  5632. IFS=$as_save_IFS
  5633. case $as_dir in #(((
  5634. '') as_dir=./ ;;
  5635. */) ;;
  5636. *) as_dir=$as_dir/ ;;
  5637. esac
  5638. for ac_exec_ext in '' $ac_executable_extensions; do
  5639. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5640. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5641. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5642. break 2
  5643. fi
  5644. done
  5645. done
  5646. IFS=$as_save_IFS
  5647. fi
  5648. fi
  5649. STRIP=$ac_cv_prog_STRIP
  5650. if test -n "$STRIP"; then
  5651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5652. printf "%s\n" "$STRIP" >&6; }
  5653. else
  5654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5655. printf "%s\n" "no" >&6; }
  5656. fi
  5657. fi
  5658. if test -z "$ac_cv_prog_STRIP"; then
  5659. ac_ct_STRIP=$STRIP
  5660. # Extract the first word of "strip", so it can be a program name with args.
  5661. set dummy strip; ac_word=$2
  5662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5663. printf %s "checking for $ac_word... " >&6; }
  5664. if test ${ac_cv_prog_ac_ct_STRIP+y}
  5665. then :
  5666. printf %s "(cached) " >&6
  5667. else $as_nop
  5668. if test -n "$ac_ct_STRIP"; then
  5669. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5670. else
  5671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5672. for as_dir in $PATH
  5673. do
  5674. IFS=$as_save_IFS
  5675. case $as_dir in #(((
  5676. '') as_dir=./ ;;
  5677. */) ;;
  5678. *) as_dir=$as_dir/ ;;
  5679. esac
  5680. for ac_exec_ext in '' $ac_executable_extensions; do
  5681. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5682. ac_cv_prog_ac_ct_STRIP="strip"
  5683. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5684. break 2
  5685. fi
  5686. done
  5687. done
  5688. IFS=$as_save_IFS
  5689. fi
  5690. fi
  5691. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5692. if test -n "$ac_ct_STRIP"; then
  5693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5694. printf "%s\n" "$ac_ct_STRIP" >&6; }
  5695. else
  5696. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5697. printf "%s\n" "no" >&6; }
  5698. fi
  5699. if test "x$ac_ct_STRIP" = x; then
  5700. STRIP=":"
  5701. else
  5702. case $cross_compiling:$ac_tool_warned in
  5703. yes:)
  5704. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5705. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5706. ac_tool_warned=yes ;;
  5707. esac
  5708. STRIP=$ac_ct_STRIP
  5709. fi
  5710. else
  5711. STRIP="$ac_cv_prog_STRIP"
  5712. fi
  5713. test -z "$STRIP" && STRIP=:
  5714. if test -n "$ac_tool_prefix"; then
  5715. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5716. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5717. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5718. printf %s "checking for $ac_word... " >&6; }
  5719. if test ${ac_cv_prog_RANLIB+y}
  5720. then :
  5721. printf %s "(cached) " >&6
  5722. else $as_nop
  5723. if test -n "$RANLIB"; then
  5724. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5725. else
  5726. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5727. for as_dir in $PATH
  5728. do
  5729. IFS=$as_save_IFS
  5730. case $as_dir in #(((
  5731. '') as_dir=./ ;;
  5732. */) ;;
  5733. *) as_dir=$as_dir/ ;;
  5734. esac
  5735. for ac_exec_ext in '' $ac_executable_extensions; do
  5736. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5737. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5738. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5739. break 2
  5740. fi
  5741. done
  5742. done
  5743. IFS=$as_save_IFS
  5744. fi
  5745. fi
  5746. RANLIB=$ac_cv_prog_RANLIB
  5747. if test -n "$RANLIB"; then
  5748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5749. printf "%s\n" "$RANLIB" >&6; }
  5750. else
  5751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5752. printf "%s\n" "no" >&6; }
  5753. fi
  5754. fi
  5755. if test -z "$ac_cv_prog_RANLIB"; then
  5756. ac_ct_RANLIB=$RANLIB
  5757. # Extract the first word of "ranlib", so it can be a program name with args.
  5758. set dummy ranlib; ac_word=$2
  5759. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5760. printf %s "checking for $ac_word... " >&6; }
  5761. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  5762. then :
  5763. printf %s "(cached) " >&6
  5764. else $as_nop
  5765. if test -n "$ac_ct_RANLIB"; then
  5766. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5767. else
  5768. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5769. for as_dir in $PATH
  5770. do
  5771. IFS=$as_save_IFS
  5772. case $as_dir in #(((
  5773. '') as_dir=./ ;;
  5774. */) ;;
  5775. *) as_dir=$as_dir/ ;;
  5776. esac
  5777. for ac_exec_ext in '' $ac_executable_extensions; do
  5778. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5779. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5780. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5781. break 2
  5782. fi
  5783. done
  5784. done
  5785. IFS=$as_save_IFS
  5786. fi
  5787. fi
  5788. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5789. if test -n "$ac_ct_RANLIB"; then
  5790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5791. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  5792. else
  5793. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5794. printf "%s\n" "no" >&6; }
  5795. fi
  5796. if test "x$ac_ct_RANLIB" = x; then
  5797. RANLIB=":"
  5798. else
  5799. case $cross_compiling:$ac_tool_warned in
  5800. yes:)
  5801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5802. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5803. ac_tool_warned=yes ;;
  5804. esac
  5805. RANLIB=$ac_ct_RANLIB
  5806. fi
  5807. else
  5808. RANLIB="$ac_cv_prog_RANLIB"
  5809. fi
  5810. test -z "$RANLIB" && RANLIB=:
  5811. # Determine commands to create old-style static archives.
  5812. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5813. old_postinstall_cmds='chmod 644 $oldlib'
  5814. old_postuninstall_cmds=
  5815. if test -n "$RANLIB"; then
  5816. case $host_os in
  5817. bitrig* | openbsd*)
  5818. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5819. ;;
  5820. *)
  5821. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5822. ;;
  5823. esac
  5824. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5825. fi
  5826. case $host_os in
  5827. darwin*)
  5828. lock_old_archive_extraction=yes ;;
  5829. *)
  5830. lock_old_archive_extraction=no ;;
  5831. esac
  5832. for ac_prog in gawk mawk nawk awk
  5833. do
  5834. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5835. set dummy $ac_prog; ac_word=$2
  5836. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5837. printf %s "checking for $ac_word... " >&6; }
  5838. if test ${ac_cv_prog_AWK+y}
  5839. then :
  5840. printf %s "(cached) " >&6
  5841. else $as_nop
  5842. if test -n "$AWK"; then
  5843. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5844. else
  5845. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5846. for as_dir in $PATH
  5847. do
  5848. IFS=$as_save_IFS
  5849. case $as_dir in #(((
  5850. '') as_dir=./ ;;
  5851. */) ;;
  5852. *) as_dir=$as_dir/ ;;
  5853. esac
  5854. for ac_exec_ext in '' $ac_executable_extensions; do
  5855. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5856. ac_cv_prog_AWK="$ac_prog"
  5857. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5858. break 2
  5859. fi
  5860. done
  5861. done
  5862. IFS=$as_save_IFS
  5863. fi
  5864. fi
  5865. AWK=$ac_cv_prog_AWK
  5866. if test -n "$AWK"; then
  5867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5868. printf "%s\n" "$AWK" >&6; }
  5869. else
  5870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5871. printf "%s\n" "no" >&6; }
  5872. fi
  5873. test -n "$AWK" && break
  5874. done
  5875. # If no C compiler was specified, use CC.
  5876. LTCC=${LTCC-"$CC"}
  5877. # If no C compiler flags were specified, use CFLAGS.
  5878. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5879. # Allow CC to be a program name with arguments.
  5880. compiler=$CC
  5881. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5883. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  5884. if test ${lt_cv_sys_global_symbol_pipe+y}
  5885. then :
  5886. printf %s "(cached) " >&6
  5887. else $as_nop
  5888. # These are sane defaults that work on at least a few old systems.
  5889. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5890. # Character class describing NM global symbol codes.
  5891. symcode='[BCDEGRST]'
  5892. # Regexp to match symbols that can be accessed directly from C.
  5893. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5894. # Define system-specific variables.
  5895. case $host_os in
  5896. aix*)
  5897. symcode='[BCDT]'
  5898. ;;
  5899. cygwin* | mingw* | pw32* | cegcc*)
  5900. symcode='[ABCDGISTW]'
  5901. ;;
  5902. hpux*)
  5903. if test ia64 = "$host_cpu"; then
  5904. symcode='[ABCDEGRST]'
  5905. fi
  5906. ;;
  5907. irix* | nonstopux*)
  5908. symcode='[BCDEGRST]'
  5909. ;;
  5910. osf*)
  5911. symcode='[BCDEGQRST]'
  5912. ;;
  5913. solaris*)
  5914. symcode='[BCDRT]'
  5915. ;;
  5916. sco3.2v5*)
  5917. symcode='[DT]'
  5918. ;;
  5919. sysv4.2uw2*)
  5920. symcode='[DT]'
  5921. ;;
  5922. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5923. symcode='[ABDT]'
  5924. ;;
  5925. sysv4)
  5926. symcode='[DFNSTU]'
  5927. ;;
  5928. esac
  5929. # If we're using GNU nm, then use its standard symbol codes.
  5930. case `$NM -V 2>&1` in
  5931. *GNU* | *'with BFD'*)
  5932. symcode='[ABCDGIRSTW]' ;;
  5933. esac
  5934. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5935. # Gets list of data symbols to import.
  5936. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5937. # Adjust the below global symbol transforms to fixup imported variables.
  5938. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5939. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5940. lt_c_name_lib_hook="\
  5941. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5942. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5943. else
  5944. # Disable hooks by default.
  5945. lt_cv_sys_global_symbol_to_import=
  5946. lt_cdecl_hook=
  5947. lt_c_name_hook=
  5948. lt_c_name_lib_hook=
  5949. fi
  5950. # Transform an extracted symbol line into a proper C declaration.
  5951. # Some systems (esp. on ia64) link data and code symbols differently,
  5952. # so use this general approach.
  5953. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5954. $lt_cdecl_hook\
  5955. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5956. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5957. # Transform an extracted symbol line into symbol name and symbol address
  5958. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5959. $lt_c_name_hook\
  5960. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5961. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5962. # Transform an extracted symbol line into symbol name with lib prefix and
  5963. # symbol address.
  5964. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5965. $lt_c_name_lib_hook\
  5966. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5967. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5968. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5969. # Handle CRLF in mingw tool chain
  5970. opt_cr=
  5971. case $build_os in
  5972. mingw*)
  5973. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5974. ;;
  5975. esac
  5976. # Try without a prefix underscore, then with it.
  5977. for ac_symprfx in "" "_"; do
  5978. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5979. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5980. # Write the raw and C identifiers.
  5981. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5982. # Fake it for dumpbin and say T for any non-static function,
  5983. # D for any global variable and I for any imported variable.
  5984. # Also find C++ and __fastcall symbols from MSVC++,
  5985. # which start with @ or ?.
  5986. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5987. " {last_section=section; section=\$ 3};"\
  5988. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5989. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5990. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5991. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5992. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5993. " \$ 0!~/External *\|/{next};"\
  5994. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5995. " {if(hide[section]) next};"\
  5996. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5997. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5998. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5999. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6000. " ' prfx=^$ac_symprfx"
  6001. else
  6002. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6003. fi
  6004. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6005. # Check to see that the pipe works correctly.
  6006. pipe_works=no
  6007. rm -f conftest*
  6008. cat > conftest.$ac_ext <<_LT_EOF
  6009. #ifdef __cplusplus
  6010. extern "C" {
  6011. #endif
  6012. char nm_test_var;
  6013. void nm_test_func(void);
  6014. void nm_test_func(void){}
  6015. #ifdef __cplusplus
  6016. }
  6017. #endif
  6018. int main(){nm_test_var='a';nm_test_func();return(0);}
  6019. _LT_EOF
  6020. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6021. (eval $ac_compile) 2>&5
  6022. ac_status=$?
  6023. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6024. test $ac_status = 0; }; then
  6025. # Now try to grab the symbols.
  6026. nlist=conftest.nm
  6027. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6028. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6029. ac_status=$?
  6030. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6031. test $ac_status = 0; } && test -s "$nlist"; then
  6032. # Try sorting and uniquifying the output.
  6033. if sort "$nlist" | uniq > "$nlist"T; then
  6034. mv -f "$nlist"T "$nlist"
  6035. else
  6036. rm -f "$nlist"T
  6037. fi
  6038. # Make sure that we snagged all the symbols we need.
  6039. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6040. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6041. cat <<_LT_EOF > conftest.$ac_ext
  6042. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6043. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6044. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6045. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6046. # define LT_DLSYM_CONST
  6047. #elif defined __osf__
  6048. /* This system does not cope well with relocations in const data. */
  6049. # define LT_DLSYM_CONST
  6050. #else
  6051. # define LT_DLSYM_CONST const
  6052. #endif
  6053. #ifdef __cplusplus
  6054. extern "C" {
  6055. #endif
  6056. _LT_EOF
  6057. # Now generate the symbol file.
  6058. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6059. cat <<_LT_EOF >> conftest.$ac_ext
  6060. /* The mapping between symbol names and symbols. */
  6061. LT_DLSYM_CONST struct {
  6062. const char *name;
  6063. void *address;
  6064. }
  6065. lt__PROGRAM__LTX_preloaded_symbols[] =
  6066. {
  6067. { "@PROGRAM@", (void *) 0 },
  6068. _LT_EOF
  6069. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6070. cat <<\_LT_EOF >> conftest.$ac_ext
  6071. {0, (void *) 0}
  6072. };
  6073. /* This works around a problem in FreeBSD linker */
  6074. #ifdef FREEBSD_WORKAROUND
  6075. static const void *lt_preloaded_setup() {
  6076. return lt__PROGRAM__LTX_preloaded_symbols;
  6077. }
  6078. #endif
  6079. #ifdef __cplusplus
  6080. }
  6081. #endif
  6082. _LT_EOF
  6083. # Now try linking the two files.
  6084. mv conftest.$ac_objext conftstm.$ac_objext
  6085. lt_globsym_save_LIBS=$LIBS
  6086. lt_globsym_save_CFLAGS=$CFLAGS
  6087. LIBS=conftstm.$ac_objext
  6088. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6089. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6090. (eval $ac_link) 2>&5
  6091. ac_status=$?
  6092. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6093. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6094. pipe_works=yes
  6095. fi
  6096. LIBS=$lt_globsym_save_LIBS
  6097. CFLAGS=$lt_globsym_save_CFLAGS
  6098. else
  6099. echo "cannot find nm_test_func in $nlist" >&5
  6100. fi
  6101. else
  6102. echo "cannot find nm_test_var in $nlist" >&5
  6103. fi
  6104. else
  6105. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6106. fi
  6107. else
  6108. echo "$progname: failed program was:" >&5
  6109. cat conftest.$ac_ext >&5
  6110. fi
  6111. rm -rf conftest* conftst*
  6112. # Do not use the global_symbol_pipe unless it works.
  6113. if test yes = "$pipe_works"; then
  6114. break
  6115. else
  6116. lt_cv_sys_global_symbol_pipe=
  6117. fi
  6118. done
  6119. fi
  6120. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6121. lt_cv_sys_global_symbol_to_cdecl=
  6122. fi
  6123. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6124. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6125. printf "%s\n" "failed" >&6; }
  6126. else
  6127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6128. printf "%s\n" "ok" >&6; }
  6129. fi
  6130. # Response file support.
  6131. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6132. nm_file_list_spec='@'
  6133. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6134. nm_file_list_spec='@'
  6135. fi
  6136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6137. printf %s "checking for sysroot... " >&6; }
  6138. # Check whether --with-sysroot was given.
  6139. if test ${with_sysroot+y}
  6140. then :
  6141. withval=$with_sysroot;
  6142. else $as_nop
  6143. with_sysroot=no
  6144. fi
  6145. lt_sysroot=
  6146. case $with_sysroot in #(
  6147. yes)
  6148. if test yes = "$GCC"; then
  6149. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6150. fi
  6151. ;; #(
  6152. /*)
  6153. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6154. ;; #(
  6155. no|'')
  6156. ;; #(
  6157. *)
  6158. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6159. printf "%s\n" "$with_sysroot" >&6; }
  6160. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6161. ;;
  6162. esac
  6163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6164. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  6165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6166. printf %s "checking for a working dd... " >&6; }
  6167. if test ${ac_cv_path_lt_DD+y}
  6168. then :
  6169. printf %s "(cached) " >&6
  6170. else $as_nop
  6171. printf 0123456789abcdef0123456789abcdef >conftest.i
  6172. cat conftest.i conftest.i >conftest2.i
  6173. : ${lt_DD:=$DD}
  6174. if test -z "$lt_DD"; then
  6175. ac_path_lt_DD_found=false
  6176. # Loop through the user's path and test for each of PROGNAME-LIST
  6177. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6178. for as_dir in $PATH
  6179. do
  6180. IFS=$as_save_IFS
  6181. case $as_dir in #(((
  6182. '') as_dir=./ ;;
  6183. */) ;;
  6184. *) as_dir=$as_dir/ ;;
  6185. esac
  6186. for ac_prog in dd
  6187. do
  6188. for ac_exec_ext in '' $ac_executable_extensions; do
  6189. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  6190. as_fn_executable_p "$ac_path_lt_DD" || continue
  6191. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6192. cmp -s conftest.i conftest.out \
  6193. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6194. fi
  6195. $ac_path_lt_DD_found && break 3
  6196. done
  6197. done
  6198. done
  6199. IFS=$as_save_IFS
  6200. if test -z "$ac_cv_path_lt_DD"; then
  6201. :
  6202. fi
  6203. else
  6204. ac_cv_path_lt_DD=$lt_DD
  6205. fi
  6206. rm -f conftest.i conftest2.i conftest.out
  6207. fi
  6208. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6209. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  6210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6211. printf %s "checking how to truncate binary pipes... " >&6; }
  6212. if test ${lt_cv_truncate_bin+y}
  6213. then :
  6214. printf %s "(cached) " >&6
  6215. else $as_nop
  6216. printf 0123456789abcdef0123456789abcdef >conftest.i
  6217. cat conftest.i conftest.i >conftest2.i
  6218. lt_cv_truncate_bin=
  6219. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6220. cmp -s conftest.i conftest.out \
  6221. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6222. fi
  6223. rm -f conftest.i conftest2.i conftest.out
  6224. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6225. fi
  6226. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6227. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  6228. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6229. func_cc_basename ()
  6230. {
  6231. for cc_temp in $*""; do
  6232. case $cc_temp in
  6233. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6234. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6235. \-*) ;;
  6236. *) break;;
  6237. esac
  6238. done
  6239. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6240. }
  6241. # Check whether --enable-libtool-lock was given.
  6242. if test ${enable_libtool_lock+y}
  6243. then :
  6244. enableval=$enable_libtool_lock;
  6245. fi
  6246. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6247. # Some flags need to be propagated to the compiler or linker for good
  6248. # libtool support.
  6249. case $host in
  6250. ia64-*-hpux*)
  6251. # Find out what ABI is being produced by ac_compile, and set mode
  6252. # options accordingly.
  6253. echo 'int i;' > conftest.$ac_ext
  6254. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6255. (eval $ac_compile) 2>&5
  6256. ac_status=$?
  6257. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6258. test $ac_status = 0; }; then
  6259. case `/usr/bin/file conftest.$ac_objext` in
  6260. *ELF-32*)
  6261. HPUX_IA64_MODE=32
  6262. ;;
  6263. *ELF-64*)
  6264. HPUX_IA64_MODE=64
  6265. ;;
  6266. esac
  6267. fi
  6268. rm -rf conftest*
  6269. ;;
  6270. *-*-irix6*)
  6271. # Find out what ABI is being produced by ac_compile, and set linker
  6272. # options accordingly.
  6273. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6274. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6275. (eval $ac_compile) 2>&5
  6276. ac_status=$?
  6277. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6278. test $ac_status = 0; }; then
  6279. if test yes = "$lt_cv_prog_gnu_ld"; then
  6280. case `/usr/bin/file conftest.$ac_objext` in
  6281. *32-bit*)
  6282. LD="${LD-ld} -melf32bsmip"
  6283. ;;
  6284. *N32*)
  6285. LD="${LD-ld} -melf32bmipn32"
  6286. ;;
  6287. *64-bit*)
  6288. LD="${LD-ld} -melf64bmip"
  6289. ;;
  6290. esac
  6291. else
  6292. case `/usr/bin/file conftest.$ac_objext` in
  6293. *32-bit*)
  6294. LD="${LD-ld} -32"
  6295. ;;
  6296. *N32*)
  6297. LD="${LD-ld} -n32"
  6298. ;;
  6299. *64-bit*)
  6300. LD="${LD-ld} -64"
  6301. ;;
  6302. esac
  6303. fi
  6304. fi
  6305. rm -rf conftest*
  6306. ;;
  6307. mips64*-*linux*)
  6308. # Find out what ABI is being produced by ac_compile, and set linker
  6309. # options accordingly.
  6310. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6311. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6312. (eval $ac_compile) 2>&5
  6313. ac_status=$?
  6314. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6315. test $ac_status = 0; }; then
  6316. emul=elf
  6317. case `/usr/bin/file conftest.$ac_objext` in
  6318. *32-bit*)
  6319. emul="${emul}32"
  6320. ;;
  6321. *64-bit*)
  6322. emul="${emul}64"
  6323. ;;
  6324. esac
  6325. case `/usr/bin/file conftest.$ac_objext` in
  6326. *MSB*)
  6327. emul="${emul}btsmip"
  6328. ;;
  6329. *LSB*)
  6330. emul="${emul}ltsmip"
  6331. ;;
  6332. esac
  6333. case `/usr/bin/file conftest.$ac_objext` in
  6334. *N32*)
  6335. emul="${emul}n32"
  6336. ;;
  6337. esac
  6338. LD="${LD-ld} -m $emul"
  6339. fi
  6340. rm -rf conftest*
  6341. ;;
  6342. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6343. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6344. # Find out what ABI is being produced by ac_compile, and set linker
  6345. # options accordingly. Note that the listed cases only cover the
  6346. # situations where additional linker options are needed (such as when
  6347. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6348. # vice versa); the common cases where no linker options are needed do
  6349. # not appear in the list.
  6350. echo 'int i;' > conftest.$ac_ext
  6351. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6352. (eval $ac_compile) 2>&5
  6353. ac_status=$?
  6354. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6355. test $ac_status = 0; }; then
  6356. case `/usr/bin/file conftest.o` in
  6357. *32-bit*)
  6358. case $host in
  6359. x86_64-*kfreebsd*-gnu)
  6360. LD="${LD-ld} -m elf_i386_fbsd"
  6361. ;;
  6362. x86_64-*linux*)
  6363. case `/usr/bin/file conftest.o` in
  6364. *x86-64*)
  6365. LD="${LD-ld} -m elf32_x86_64"
  6366. ;;
  6367. *)
  6368. LD="${LD-ld} -m elf_i386"
  6369. ;;
  6370. esac
  6371. ;;
  6372. powerpc64le-*linux*)
  6373. LD="${LD-ld} -m elf32lppclinux"
  6374. ;;
  6375. powerpc64-*linux*)
  6376. LD="${LD-ld} -m elf32ppclinux"
  6377. ;;
  6378. s390x-*linux*)
  6379. LD="${LD-ld} -m elf_s390"
  6380. ;;
  6381. sparc64-*linux*)
  6382. LD="${LD-ld} -m elf32_sparc"
  6383. ;;
  6384. esac
  6385. ;;
  6386. *64-bit*)
  6387. case $host in
  6388. x86_64-*kfreebsd*-gnu)
  6389. LD="${LD-ld} -m elf_x86_64_fbsd"
  6390. ;;
  6391. x86_64-*linux*)
  6392. LD="${LD-ld} -m elf_x86_64"
  6393. ;;
  6394. powerpcle-*linux*|powerpc64le-*linux*)
  6395. LD="${LD-ld} -m elf64lppc"
  6396. ;;
  6397. powerpc-*linux*|powerpc64-*linux*)
  6398. LD="${LD-ld} -m elf64ppc"
  6399. ;;
  6400. s390*-*linux*|s390*-*tpf*)
  6401. LD="${LD-ld} -m elf64_s390"
  6402. ;;
  6403. sparc*-*linux*)
  6404. LD="${LD-ld} -m elf64_sparc"
  6405. ;;
  6406. esac
  6407. ;;
  6408. esac
  6409. fi
  6410. rm -rf conftest*
  6411. ;;
  6412. *-*-sco3.2v5*)
  6413. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6414. SAVE_CFLAGS=$CFLAGS
  6415. CFLAGS="$CFLAGS -belf"
  6416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6417. printf %s "checking whether the C compiler needs -belf... " >&6; }
  6418. if test ${lt_cv_cc_needs_belf+y}
  6419. then :
  6420. printf %s "(cached) " >&6
  6421. else $as_nop
  6422. ac_ext=c
  6423. ac_cpp='$CPP $CPPFLAGS'
  6424. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6425. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6426. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6428. /* end confdefs.h. */
  6429. int
  6430. main (void)
  6431. {
  6432. ;
  6433. return 0;
  6434. }
  6435. _ACEOF
  6436. if ac_fn_c_try_link "$LINENO"
  6437. then :
  6438. lt_cv_cc_needs_belf=yes
  6439. else $as_nop
  6440. lt_cv_cc_needs_belf=no
  6441. fi
  6442. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6443. conftest$ac_exeext conftest.$ac_ext
  6444. ac_ext=c
  6445. ac_cpp='$CPP $CPPFLAGS'
  6446. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6447. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6448. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6449. fi
  6450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6451. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  6452. if test yes != "$lt_cv_cc_needs_belf"; then
  6453. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6454. CFLAGS=$SAVE_CFLAGS
  6455. fi
  6456. ;;
  6457. *-*solaris*)
  6458. # Find out what ABI is being produced by ac_compile, and set linker
  6459. # options accordingly.
  6460. echo 'int i;' > conftest.$ac_ext
  6461. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6462. (eval $ac_compile) 2>&5
  6463. ac_status=$?
  6464. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6465. test $ac_status = 0; }; then
  6466. case `/usr/bin/file conftest.o` in
  6467. *64-bit*)
  6468. case $lt_cv_prog_gnu_ld in
  6469. yes*)
  6470. case $host in
  6471. i?86-*-solaris*|x86_64-*-solaris*)
  6472. LD="${LD-ld} -m elf_x86_64"
  6473. ;;
  6474. sparc*-*-solaris*)
  6475. LD="${LD-ld} -m elf64_sparc"
  6476. ;;
  6477. esac
  6478. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6479. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6480. LD=${LD-ld}_sol2
  6481. fi
  6482. ;;
  6483. *)
  6484. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6485. LD="${LD-ld} -64"
  6486. fi
  6487. ;;
  6488. esac
  6489. ;;
  6490. esac
  6491. fi
  6492. rm -rf conftest*
  6493. ;;
  6494. esac
  6495. need_locks=$enable_libtool_lock
  6496. if test -n "$ac_tool_prefix"; then
  6497. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6498. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6500. printf %s "checking for $ac_word... " >&6; }
  6501. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  6502. then :
  6503. printf %s "(cached) " >&6
  6504. else $as_nop
  6505. if test -n "$MANIFEST_TOOL"; then
  6506. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6507. else
  6508. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6509. for as_dir in $PATH
  6510. do
  6511. IFS=$as_save_IFS
  6512. case $as_dir in #(((
  6513. '') as_dir=./ ;;
  6514. */) ;;
  6515. *) as_dir=$as_dir/ ;;
  6516. esac
  6517. for ac_exec_ext in '' $ac_executable_extensions; do
  6518. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6519. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6520. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6521. break 2
  6522. fi
  6523. done
  6524. done
  6525. IFS=$as_save_IFS
  6526. fi
  6527. fi
  6528. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6529. if test -n "$MANIFEST_TOOL"; then
  6530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6531. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  6532. else
  6533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6534. printf "%s\n" "no" >&6; }
  6535. fi
  6536. fi
  6537. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6538. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6539. # Extract the first word of "mt", so it can be a program name with args.
  6540. set dummy mt; ac_word=$2
  6541. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6542. printf %s "checking for $ac_word... " >&6; }
  6543. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  6544. then :
  6545. printf %s "(cached) " >&6
  6546. else $as_nop
  6547. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6548. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6549. else
  6550. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6551. for as_dir in $PATH
  6552. do
  6553. IFS=$as_save_IFS
  6554. case $as_dir in #(((
  6555. '') as_dir=./ ;;
  6556. */) ;;
  6557. *) as_dir=$as_dir/ ;;
  6558. esac
  6559. for ac_exec_ext in '' $ac_executable_extensions; do
  6560. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6561. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6562. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6563. break 2
  6564. fi
  6565. done
  6566. done
  6567. IFS=$as_save_IFS
  6568. fi
  6569. fi
  6570. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6571. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6573. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  6574. else
  6575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6576. printf "%s\n" "no" >&6; }
  6577. fi
  6578. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6579. MANIFEST_TOOL=":"
  6580. else
  6581. case $cross_compiling:$ac_tool_warned in
  6582. yes:)
  6583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6584. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6585. ac_tool_warned=yes ;;
  6586. esac
  6587. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6588. fi
  6589. else
  6590. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6591. fi
  6592. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6594. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6595. if test ${lt_cv_path_mainfest_tool+y}
  6596. then :
  6597. printf %s "(cached) " >&6
  6598. else $as_nop
  6599. lt_cv_path_mainfest_tool=no
  6600. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6601. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6602. cat conftest.err >&5
  6603. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6604. lt_cv_path_mainfest_tool=yes
  6605. fi
  6606. rm -f conftest*
  6607. fi
  6608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6609. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  6610. if test yes != "$lt_cv_path_mainfest_tool"; then
  6611. MANIFEST_TOOL=:
  6612. fi
  6613. case $host_os in
  6614. rhapsody* | darwin*)
  6615. if test -n "$ac_tool_prefix"; then
  6616. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6617. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6619. printf %s "checking for $ac_word... " >&6; }
  6620. if test ${ac_cv_prog_DSYMUTIL+y}
  6621. then :
  6622. printf %s "(cached) " >&6
  6623. else $as_nop
  6624. if test -n "$DSYMUTIL"; then
  6625. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6626. else
  6627. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6628. for as_dir in $PATH
  6629. do
  6630. IFS=$as_save_IFS
  6631. case $as_dir in #(((
  6632. '') as_dir=./ ;;
  6633. */) ;;
  6634. *) as_dir=$as_dir/ ;;
  6635. esac
  6636. for ac_exec_ext in '' $ac_executable_extensions; do
  6637. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6638. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6639. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6640. break 2
  6641. fi
  6642. done
  6643. done
  6644. IFS=$as_save_IFS
  6645. fi
  6646. fi
  6647. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6648. if test -n "$DSYMUTIL"; then
  6649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6650. printf "%s\n" "$DSYMUTIL" >&6; }
  6651. else
  6652. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6653. printf "%s\n" "no" >&6; }
  6654. fi
  6655. fi
  6656. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6657. ac_ct_DSYMUTIL=$DSYMUTIL
  6658. # Extract the first word of "dsymutil", so it can be a program name with args.
  6659. set dummy dsymutil; ac_word=$2
  6660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6661. printf %s "checking for $ac_word... " >&6; }
  6662. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  6663. then :
  6664. printf %s "(cached) " >&6
  6665. else $as_nop
  6666. if test -n "$ac_ct_DSYMUTIL"; then
  6667. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6668. else
  6669. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6670. for as_dir in $PATH
  6671. do
  6672. IFS=$as_save_IFS
  6673. case $as_dir in #(((
  6674. '') as_dir=./ ;;
  6675. */) ;;
  6676. *) as_dir=$as_dir/ ;;
  6677. esac
  6678. for ac_exec_ext in '' $ac_executable_extensions; do
  6679. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6680. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6681. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6682. break 2
  6683. fi
  6684. done
  6685. done
  6686. IFS=$as_save_IFS
  6687. fi
  6688. fi
  6689. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6690. if test -n "$ac_ct_DSYMUTIL"; then
  6691. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6692. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  6693. else
  6694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6695. printf "%s\n" "no" >&6; }
  6696. fi
  6697. if test "x$ac_ct_DSYMUTIL" = x; then
  6698. DSYMUTIL=":"
  6699. else
  6700. case $cross_compiling:$ac_tool_warned in
  6701. yes:)
  6702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6703. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6704. ac_tool_warned=yes ;;
  6705. esac
  6706. DSYMUTIL=$ac_ct_DSYMUTIL
  6707. fi
  6708. else
  6709. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6710. fi
  6711. if test -n "$ac_tool_prefix"; then
  6712. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6713. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6714. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6715. printf %s "checking for $ac_word... " >&6; }
  6716. if test ${ac_cv_prog_NMEDIT+y}
  6717. then :
  6718. printf %s "(cached) " >&6
  6719. else $as_nop
  6720. if test -n "$NMEDIT"; then
  6721. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6722. else
  6723. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6724. for as_dir in $PATH
  6725. do
  6726. IFS=$as_save_IFS
  6727. case $as_dir in #(((
  6728. '') as_dir=./ ;;
  6729. */) ;;
  6730. *) as_dir=$as_dir/ ;;
  6731. esac
  6732. for ac_exec_ext in '' $ac_executable_extensions; do
  6733. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6734. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6735. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6736. break 2
  6737. fi
  6738. done
  6739. done
  6740. IFS=$as_save_IFS
  6741. fi
  6742. fi
  6743. NMEDIT=$ac_cv_prog_NMEDIT
  6744. if test -n "$NMEDIT"; then
  6745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6746. printf "%s\n" "$NMEDIT" >&6; }
  6747. else
  6748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6749. printf "%s\n" "no" >&6; }
  6750. fi
  6751. fi
  6752. if test -z "$ac_cv_prog_NMEDIT"; then
  6753. ac_ct_NMEDIT=$NMEDIT
  6754. # Extract the first word of "nmedit", so it can be a program name with args.
  6755. set dummy nmedit; ac_word=$2
  6756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6757. printf %s "checking for $ac_word... " >&6; }
  6758. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  6759. then :
  6760. printf %s "(cached) " >&6
  6761. else $as_nop
  6762. if test -n "$ac_ct_NMEDIT"; then
  6763. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6764. else
  6765. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6766. for as_dir in $PATH
  6767. do
  6768. IFS=$as_save_IFS
  6769. case $as_dir in #(((
  6770. '') as_dir=./ ;;
  6771. */) ;;
  6772. *) as_dir=$as_dir/ ;;
  6773. esac
  6774. for ac_exec_ext in '' $ac_executable_extensions; do
  6775. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6776. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6777. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6778. break 2
  6779. fi
  6780. done
  6781. done
  6782. IFS=$as_save_IFS
  6783. fi
  6784. fi
  6785. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6786. if test -n "$ac_ct_NMEDIT"; then
  6787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6788. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  6789. else
  6790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6791. printf "%s\n" "no" >&6; }
  6792. fi
  6793. if test "x$ac_ct_NMEDIT" = x; then
  6794. NMEDIT=":"
  6795. else
  6796. case $cross_compiling:$ac_tool_warned in
  6797. yes:)
  6798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6799. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6800. ac_tool_warned=yes ;;
  6801. esac
  6802. NMEDIT=$ac_ct_NMEDIT
  6803. fi
  6804. else
  6805. NMEDIT="$ac_cv_prog_NMEDIT"
  6806. fi
  6807. if test -n "$ac_tool_prefix"; then
  6808. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6809. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6811. printf %s "checking for $ac_word... " >&6; }
  6812. if test ${ac_cv_prog_LIPO+y}
  6813. then :
  6814. printf %s "(cached) " >&6
  6815. else $as_nop
  6816. if test -n "$LIPO"; then
  6817. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6818. else
  6819. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6820. for as_dir in $PATH
  6821. do
  6822. IFS=$as_save_IFS
  6823. case $as_dir in #(((
  6824. '') as_dir=./ ;;
  6825. */) ;;
  6826. *) as_dir=$as_dir/ ;;
  6827. esac
  6828. for ac_exec_ext in '' $ac_executable_extensions; do
  6829. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6830. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6831. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6832. break 2
  6833. fi
  6834. done
  6835. done
  6836. IFS=$as_save_IFS
  6837. fi
  6838. fi
  6839. LIPO=$ac_cv_prog_LIPO
  6840. if test -n "$LIPO"; then
  6841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6842. printf "%s\n" "$LIPO" >&6; }
  6843. else
  6844. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6845. printf "%s\n" "no" >&6; }
  6846. fi
  6847. fi
  6848. if test -z "$ac_cv_prog_LIPO"; then
  6849. ac_ct_LIPO=$LIPO
  6850. # Extract the first word of "lipo", so it can be a program name with args.
  6851. set dummy lipo; ac_word=$2
  6852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6853. printf %s "checking for $ac_word... " >&6; }
  6854. if test ${ac_cv_prog_ac_ct_LIPO+y}
  6855. then :
  6856. printf %s "(cached) " >&6
  6857. else $as_nop
  6858. if test -n "$ac_ct_LIPO"; then
  6859. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6860. else
  6861. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6862. for as_dir in $PATH
  6863. do
  6864. IFS=$as_save_IFS
  6865. case $as_dir in #(((
  6866. '') as_dir=./ ;;
  6867. */) ;;
  6868. *) as_dir=$as_dir/ ;;
  6869. esac
  6870. for ac_exec_ext in '' $ac_executable_extensions; do
  6871. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6872. ac_cv_prog_ac_ct_LIPO="lipo"
  6873. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6874. break 2
  6875. fi
  6876. done
  6877. done
  6878. IFS=$as_save_IFS
  6879. fi
  6880. fi
  6881. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6882. if test -n "$ac_ct_LIPO"; then
  6883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6884. printf "%s\n" "$ac_ct_LIPO" >&6; }
  6885. else
  6886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6887. printf "%s\n" "no" >&6; }
  6888. fi
  6889. if test "x$ac_ct_LIPO" = x; then
  6890. LIPO=":"
  6891. else
  6892. case $cross_compiling:$ac_tool_warned in
  6893. yes:)
  6894. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6895. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6896. ac_tool_warned=yes ;;
  6897. esac
  6898. LIPO=$ac_ct_LIPO
  6899. fi
  6900. else
  6901. LIPO="$ac_cv_prog_LIPO"
  6902. fi
  6903. if test -n "$ac_tool_prefix"; then
  6904. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6905. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6907. printf %s "checking for $ac_word... " >&6; }
  6908. if test ${ac_cv_prog_OTOOL+y}
  6909. then :
  6910. printf %s "(cached) " >&6
  6911. else $as_nop
  6912. if test -n "$OTOOL"; then
  6913. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6914. else
  6915. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6916. for as_dir in $PATH
  6917. do
  6918. IFS=$as_save_IFS
  6919. case $as_dir in #(((
  6920. '') as_dir=./ ;;
  6921. */) ;;
  6922. *) as_dir=$as_dir/ ;;
  6923. esac
  6924. for ac_exec_ext in '' $ac_executable_extensions; do
  6925. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6926. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6927. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6928. break 2
  6929. fi
  6930. done
  6931. done
  6932. IFS=$as_save_IFS
  6933. fi
  6934. fi
  6935. OTOOL=$ac_cv_prog_OTOOL
  6936. if test -n "$OTOOL"; then
  6937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6938. printf "%s\n" "$OTOOL" >&6; }
  6939. else
  6940. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6941. printf "%s\n" "no" >&6; }
  6942. fi
  6943. fi
  6944. if test -z "$ac_cv_prog_OTOOL"; then
  6945. ac_ct_OTOOL=$OTOOL
  6946. # Extract the first word of "otool", so it can be a program name with args.
  6947. set dummy otool; ac_word=$2
  6948. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6949. printf %s "checking for $ac_word... " >&6; }
  6950. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  6951. then :
  6952. printf %s "(cached) " >&6
  6953. else $as_nop
  6954. if test -n "$ac_ct_OTOOL"; then
  6955. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6956. else
  6957. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6958. for as_dir in $PATH
  6959. do
  6960. IFS=$as_save_IFS
  6961. case $as_dir in #(((
  6962. '') as_dir=./ ;;
  6963. */) ;;
  6964. *) as_dir=$as_dir/ ;;
  6965. esac
  6966. for ac_exec_ext in '' $ac_executable_extensions; do
  6967. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6968. ac_cv_prog_ac_ct_OTOOL="otool"
  6969. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6970. break 2
  6971. fi
  6972. done
  6973. done
  6974. IFS=$as_save_IFS
  6975. fi
  6976. fi
  6977. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6978. if test -n "$ac_ct_OTOOL"; then
  6979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6980. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  6981. else
  6982. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6983. printf "%s\n" "no" >&6; }
  6984. fi
  6985. if test "x$ac_ct_OTOOL" = x; then
  6986. OTOOL=":"
  6987. else
  6988. case $cross_compiling:$ac_tool_warned in
  6989. yes:)
  6990. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6991. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6992. ac_tool_warned=yes ;;
  6993. esac
  6994. OTOOL=$ac_ct_OTOOL
  6995. fi
  6996. else
  6997. OTOOL="$ac_cv_prog_OTOOL"
  6998. fi
  6999. if test -n "$ac_tool_prefix"; then
  7000. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7001. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7002. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7003. printf %s "checking for $ac_word... " >&6; }
  7004. if test ${ac_cv_prog_OTOOL64+y}
  7005. then :
  7006. printf %s "(cached) " >&6
  7007. else $as_nop
  7008. if test -n "$OTOOL64"; then
  7009. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7010. else
  7011. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7012. for as_dir in $PATH
  7013. do
  7014. IFS=$as_save_IFS
  7015. case $as_dir in #(((
  7016. '') as_dir=./ ;;
  7017. */) ;;
  7018. *) as_dir=$as_dir/ ;;
  7019. esac
  7020. for ac_exec_ext in '' $ac_executable_extensions; do
  7021. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7022. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7023. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7024. break 2
  7025. fi
  7026. done
  7027. done
  7028. IFS=$as_save_IFS
  7029. fi
  7030. fi
  7031. OTOOL64=$ac_cv_prog_OTOOL64
  7032. if test -n "$OTOOL64"; then
  7033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7034. printf "%s\n" "$OTOOL64" >&6; }
  7035. else
  7036. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7037. printf "%s\n" "no" >&6; }
  7038. fi
  7039. fi
  7040. if test -z "$ac_cv_prog_OTOOL64"; then
  7041. ac_ct_OTOOL64=$OTOOL64
  7042. # Extract the first word of "otool64", so it can be a program name with args.
  7043. set dummy otool64; ac_word=$2
  7044. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7045. printf %s "checking for $ac_word... " >&6; }
  7046. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  7047. then :
  7048. printf %s "(cached) " >&6
  7049. else $as_nop
  7050. if test -n "$ac_ct_OTOOL64"; then
  7051. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7052. else
  7053. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7054. for as_dir in $PATH
  7055. do
  7056. IFS=$as_save_IFS
  7057. case $as_dir in #(((
  7058. '') as_dir=./ ;;
  7059. */) ;;
  7060. *) as_dir=$as_dir/ ;;
  7061. esac
  7062. for ac_exec_ext in '' $ac_executable_extensions; do
  7063. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7064. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7065. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7066. break 2
  7067. fi
  7068. done
  7069. done
  7070. IFS=$as_save_IFS
  7071. fi
  7072. fi
  7073. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7074. if test -n "$ac_ct_OTOOL64"; then
  7075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7076. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  7077. else
  7078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7079. printf "%s\n" "no" >&6; }
  7080. fi
  7081. if test "x$ac_ct_OTOOL64" = x; then
  7082. OTOOL64=":"
  7083. else
  7084. case $cross_compiling:$ac_tool_warned in
  7085. yes:)
  7086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7087. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7088. ac_tool_warned=yes ;;
  7089. esac
  7090. OTOOL64=$ac_ct_OTOOL64
  7091. fi
  7092. else
  7093. OTOOL64="$ac_cv_prog_OTOOL64"
  7094. fi
  7095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7096. printf %s "checking for -single_module linker flag... " >&6; }
  7097. if test ${lt_cv_apple_cc_single_mod+y}
  7098. then :
  7099. printf %s "(cached) " >&6
  7100. else $as_nop
  7101. lt_cv_apple_cc_single_mod=no
  7102. if test -z "$LT_MULTI_MODULE"; then
  7103. # By default we will add the -single_module flag. You can override
  7104. # by either setting the environment variable LT_MULTI_MODULE
  7105. # non-empty at configure time, or by adding -multi_module to the
  7106. # link flags.
  7107. rm -rf libconftest.dylib*
  7108. echo "int foo(void){return 1;}" > conftest.c
  7109. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7110. -dynamiclib -Wl,-single_module conftest.c" >&5
  7111. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7112. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7113. _lt_result=$?
  7114. # If there is a non-empty error log, and "single_module"
  7115. # appears in it, assume the flag caused a linker warning
  7116. if test -s conftest.err && $GREP single_module conftest.err; then
  7117. cat conftest.err >&5
  7118. # Otherwise, if the output was created with a 0 exit code from
  7119. # the compiler, it worked.
  7120. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7121. lt_cv_apple_cc_single_mod=yes
  7122. else
  7123. cat conftest.err >&5
  7124. fi
  7125. rm -rf libconftest.dylib*
  7126. rm -f conftest.*
  7127. fi
  7128. fi
  7129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7130. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  7131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7132. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  7133. if test ${lt_cv_ld_exported_symbols_list+y}
  7134. then :
  7135. printf %s "(cached) " >&6
  7136. else $as_nop
  7137. lt_cv_ld_exported_symbols_list=no
  7138. save_LDFLAGS=$LDFLAGS
  7139. echo "_main" > conftest.sym
  7140. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7142. /* end confdefs.h. */
  7143. int
  7144. main (void)
  7145. {
  7146. ;
  7147. return 0;
  7148. }
  7149. _ACEOF
  7150. if ac_fn_c_try_link "$LINENO"
  7151. then :
  7152. lt_cv_ld_exported_symbols_list=yes
  7153. else $as_nop
  7154. lt_cv_ld_exported_symbols_list=no
  7155. fi
  7156. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7157. conftest$ac_exeext conftest.$ac_ext
  7158. LDFLAGS=$save_LDFLAGS
  7159. fi
  7160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7161. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  7162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7163. printf %s "checking for -force_load linker flag... " >&6; }
  7164. if test ${lt_cv_ld_force_load+y}
  7165. then :
  7166. printf %s "(cached) " >&6
  7167. else $as_nop
  7168. lt_cv_ld_force_load=no
  7169. cat > conftest.c << _LT_EOF
  7170. int forced_loaded() { return 2;}
  7171. _LT_EOF
  7172. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7173. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7174. echo "$AR cru libconftest.a conftest.o" >&5
  7175. $AR cru libconftest.a conftest.o 2>&5
  7176. echo "$RANLIB libconftest.a" >&5
  7177. $RANLIB libconftest.a 2>&5
  7178. cat > conftest.c << _LT_EOF
  7179. int main() { return 0;}
  7180. _LT_EOF
  7181. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7182. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7183. _lt_result=$?
  7184. if test -s conftest.err && $GREP force_load conftest.err; then
  7185. cat conftest.err >&5
  7186. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7187. lt_cv_ld_force_load=yes
  7188. else
  7189. cat conftest.err >&5
  7190. fi
  7191. rm -f conftest.err libconftest.a conftest conftest.c
  7192. rm -rf conftest.dSYM
  7193. fi
  7194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7195. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  7196. case $host_os in
  7197. rhapsody* | darwin1.[012])
  7198. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7199. darwin1.*)
  7200. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7201. darwin*)
  7202. case $MACOSX_DEPLOYMENT_TARGET,$host in
  7203. 10.[012],*|,*powerpc*-darwin[5-8]*)
  7204. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7205. *)
  7206. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7207. esac
  7208. ;;
  7209. esac
  7210. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7211. _lt_dar_single_mod='$single_module'
  7212. fi
  7213. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7214. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7215. else
  7216. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7217. fi
  7218. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7219. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7220. else
  7221. _lt_dsymutil=
  7222. fi
  7223. ;;
  7224. esac
  7225. # func_munge_path_list VARIABLE PATH
  7226. # -----------------------------------
  7227. # VARIABLE is name of variable containing _space_ separated list of
  7228. # directories to be munged by the contents of PATH, which is string
  7229. # having a format:
  7230. # "DIR[:DIR]:"
  7231. # string "DIR[ DIR]" will be prepended to VARIABLE
  7232. # ":DIR[:DIR]"
  7233. # string "DIR[ DIR]" will be appended to VARIABLE
  7234. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7235. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7236. # "DIRA[ DIRA]" will be appended to VARIABLE
  7237. # "DIR[:DIR]"
  7238. # VARIABLE will be replaced by "DIR[ DIR]"
  7239. func_munge_path_list ()
  7240. {
  7241. case x$2 in
  7242. x)
  7243. ;;
  7244. *:)
  7245. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7246. ;;
  7247. x:*)
  7248. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7249. ;;
  7250. *::*)
  7251. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7252. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7253. ;;
  7254. *)
  7255. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7256. ;;
  7257. esac
  7258. }
  7259. ac_header= ac_cache=
  7260. for ac_item in $ac_header_c_list
  7261. do
  7262. if test $ac_cache; then
  7263. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  7264. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  7265. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  7266. fi
  7267. ac_header= ac_cache=
  7268. elif test $ac_header; then
  7269. ac_cache=$ac_item
  7270. else
  7271. ac_header=$ac_item
  7272. fi
  7273. done
  7274. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  7275. then :
  7276. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  7277. fi
  7278. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7279. "
  7280. if test "x$ac_cv_header_dlfcn_h" = xyes
  7281. then :
  7282. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  7283. fi
  7284. # Set options
  7285. enable_win32_dll=yes
  7286. case $host in
  7287. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7288. if test -n "$ac_tool_prefix"; then
  7289. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7290. set dummy ${ac_tool_prefix}as; ac_word=$2
  7291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7292. printf %s "checking for $ac_word... " >&6; }
  7293. if test ${ac_cv_prog_AS+y}
  7294. then :
  7295. printf %s "(cached) " >&6
  7296. else $as_nop
  7297. if test -n "$AS"; then
  7298. ac_cv_prog_AS="$AS" # Let the user override the test.
  7299. else
  7300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7301. for as_dir in $PATH
  7302. do
  7303. IFS=$as_save_IFS
  7304. case $as_dir in #(((
  7305. '') as_dir=./ ;;
  7306. */) ;;
  7307. *) as_dir=$as_dir/ ;;
  7308. esac
  7309. for ac_exec_ext in '' $ac_executable_extensions; do
  7310. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7311. ac_cv_prog_AS="${ac_tool_prefix}as"
  7312. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7313. break 2
  7314. fi
  7315. done
  7316. done
  7317. IFS=$as_save_IFS
  7318. fi
  7319. fi
  7320. AS=$ac_cv_prog_AS
  7321. if test -n "$AS"; then
  7322. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7323. printf "%s\n" "$AS" >&6; }
  7324. else
  7325. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7326. printf "%s\n" "no" >&6; }
  7327. fi
  7328. fi
  7329. if test -z "$ac_cv_prog_AS"; then
  7330. ac_ct_AS=$AS
  7331. # Extract the first word of "as", so it can be a program name with args.
  7332. set dummy as; ac_word=$2
  7333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7334. printf %s "checking for $ac_word... " >&6; }
  7335. if test ${ac_cv_prog_ac_ct_AS+y}
  7336. then :
  7337. printf %s "(cached) " >&6
  7338. else $as_nop
  7339. if test -n "$ac_ct_AS"; then
  7340. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7341. else
  7342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7343. for as_dir in $PATH
  7344. do
  7345. IFS=$as_save_IFS
  7346. case $as_dir in #(((
  7347. '') as_dir=./ ;;
  7348. */) ;;
  7349. *) as_dir=$as_dir/ ;;
  7350. esac
  7351. for ac_exec_ext in '' $ac_executable_extensions; do
  7352. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7353. ac_cv_prog_ac_ct_AS="as"
  7354. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7355. break 2
  7356. fi
  7357. done
  7358. done
  7359. IFS=$as_save_IFS
  7360. fi
  7361. fi
  7362. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7363. if test -n "$ac_ct_AS"; then
  7364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  7365. printf "%s\n" "$ac_ct_AS" >&6; }
  7366. else
  7367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7368. printf "%s\n" "no" >&6; }
  7369. fi
  7370. if test "x$ac_ct_AS" = x; then
  7371. AS="false"
  7372. else
  7373. case $cross_compiling:$ac_tool_warned in
  7374. yes:)
  7375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7376. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7377. ac_tool_warned=yes ;;
  7378. esac
  7379. AS=$ac_ct_AS
  7380. fi
  7381. else
  7382. AS="$ac_cv_prog_AS"
  7383. fi
  7384. if test -n "$ac_tool_prefix"; then
  7385. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7386. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7387. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7388. printf %s "checking for $ac_word... " >&6; }
  7389. if test ${ac_cv_prog_DLLTOOL+y}
  7390. then :
  7391. printf %s "(cached) " >&6
  7392. else $as_nop
  7393. if test -n "$DLLTOOL"; then
  7394. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7395. else
  7396. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7397. for as_dir in $PATH
  7398. do
  7399. IFS=$as_save_IFS
  7400. case $as_dir in #(((
  7401. '') as_dir=./ ;;
  7402. */) ;;
  7403. *) as_dir=$as_dir/ ;;
  7404. esac
  7405. for ac_exec_ext in '' $ac_executable_extensions; do
  7406. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7407. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7408. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7409. break 2
  7410. fi
  7411. done
  7412. done
  7413. IFS=$as_save_IFS
  7414. fi
  7415. fi
  7416. DLLTOOL=$ac_cv_prog_DLLTOOL
  7417. if test -n "$DLLTOOL"; then
  7418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7419. printf "%s\n" "$DLLTOOL" >&6; }
  7420. else
  7421. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7422. printf "%s\n" "no" >&6; }
  7423. fi
  7424. fi
  7425. if test -z "$ac_cv_prog_DLLTOOL"; then
  7426. ac_ct_DLLTOOL=$DLLTOOL
  7427. # Extract the first word of "dlltool", so it can be a program name with args.
  7428. set dummy dlltool; ac_word=$2
  7429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7430. printf %s "checking for $ac_word... " >&6; }
  7431. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  7432. then :
  7433. printf %s "(cached) " >&6
  7434. else $as_nop
  7435. if test -n "$ac_ct_DLLTOOL"; then
  7436. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7437. else
  7438. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7439. for as_dir in $PATH
  7440. do
  7441. IFS=$as_save_IFS
  7442. case $as_dir in #(((
  7443. '') as_dir=./ ;;
  7444. */) ;;
  7445. *) as_dir=$as_dir/ ;;
  7446. esac
  7447. for ac_exec_ext in '' $ac_executable_extensions; do
  7448. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7449. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7450. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7451. break 2
  7452. fi
  7453. done
  7454. done
  7455. IFS=$as_save_IFS
  7456. fi
  7457. fi
  7458. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7459. if test -n "$ac_ct_DLLTOOL"; then
  7460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7461. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  7462. else
  7463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7464. printf "%s\n" "no" >&6; }
  7465. fi
  7466. if test "x$ac_ct_DLLTOOL" = x; then
  7467. DLLTOOL="false"
  7468. else
  7469. case $cross_compiling:$ac_tool_warned in
  7470. yes:)
  7471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7472. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7473. ac_tool_warned=yes ;;
  7474. esac
  7475. DLLTOOL=$ac_ct_DLLTOOL
  7476. fi
  7477. else
  7478. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7479. fi
  7480. if test -n "$ac_tool_prefix"; then
  7481. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7482. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7484. printf %s "checking for $ac_word... " >&6; }
  7485. if test ${ac_cv_prog_OBJDUMP+y}
  7486. then :
  7487. printf %s "(cached) " >&6
  7488. else $as_nop
  7489. if test -n "$OBJDUMP"; then
  7490. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7491. else
  7492. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7493. for as_dir in $PATH
  7494. do
  7495. IFS=$as_save_IFS
  7496. case $as_dir in #(((
  7497. '') as_dir=./ ;;
  7498. */) ;;
  7499. *) as_dir=$as_dir/ ;;
  7500. esac
  7501. for ac_exec_ext in '' $ac_executable_extensions; do
  7502. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7503. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7504. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7505. break 2
  7506. fi
  7507. done
  7508. done
  7509. IFS=$as_save_IFS
  7510. fi
  7511. fi
  7512. OBJDUMP=$ac_cv_prog_OBJDUMP
  7513. if test -n "$OBJDUMP"; then
  7514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7515. printf "%s\n" "$OBJDUMP" >&6; }
  7516. else
  7517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7518. printf "%s\n" "no" >&6; }
  7519. fi
  7520. fi
  7521. if test -z "$ac_cv_prog_OBJDUMP"; then
  7522. ac_ct_OBJDUMP=$OBJDUMP
  7523. # Extract the first word of "objdump", so it can be a program name with args.
  7524. set dummy objdump; ac_word=$2
  7525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7526. printf %s "checking for $ac_word... " >&6; }
  7527. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  7528. then :
  7529. printf %s "(cached) " >&6
  7530. else $as_nop
  7531. if test -n "$ac_ct_OBJDUMP"; then
  7532. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7533. else
  7534. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7535. for as_dir in $PATH
  7536. do
  7537. IFS=$as_save_IFS
  7538. case $as_dir in #(((
  7539. '') as_dir=./ ;;
  7540. */) ;;
  7541. *) as_dir=$as_dir/ ;;
  7542. esac
  7543. for ac_exec_ext in '' $ac_executable_extensions; do
  7544. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7545. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7546. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7547. break 2
  7548. fi
  7549. done
  7550. done
  7551. IFS=$as_save_IFS
  7552. fi
  7553. fi
  7554. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7555. if test -n "$ac_ct_OBJDUMP"; then
  7556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7557. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  7558. else
  7559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7560. printf "%s\n" "no" >&6; }
  7561. fi
  7562. if test "x$ac_ct_OBJDUMP" = x; then
  7563. OBJDUMP="false"
  7564. else
  7565. case $cross_compiling:$ac_tool_warned in
  7566. yes:)
  7567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7568. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7569. ac_tool_warned=yes ;;
  7570. esac
  7571. OBJDUMP=$ac_ct_OBJDUMP
  7572. fi
  7573. else
  7574. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7575. fi
  7576. ;;
  7577. esac
  7578. test -z "$AS" && AS=as
  7579. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7580. test -z "$OBJDUMP" && OBJDUMP=objdump
  7581. enable_dlopen=no
  7582. # Check whether --enable-shared was given.
  7583. if test ${enable_shared+y}
  7584. then :
  7585. enableval=$enable_shared; p=${PACKAGE-default}
  7586. case $enableval in
  7587. yes) enable_shared=yes ;;
  7588. no) enable_shared=no ;;
  7589. *)
  7590. enable_shared=no
  7591. # Look at the argument we got. We use all the common list separators.
  7592. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7593. for pkg in $enableval; do
  7594. IFS=$lt_save_ifs
  7595. if test "X$pkg" = "X$p"; then
  7596. enable_shared=yes
  7597. fi
  7598. done
  7599. IFS=$lt_save_ifs
  7600. ;;
  7601. esac
  7602. else $as_nop
  7603. enable_shared=yes
  7604. fi
  7605. # Check whether --enable-static was given.
  7606. if test ${enable_static+y}
  7607. then :
  7608. enableval=$enable_static; p=${PACKAGE-default}
  7609. case $enableval in
  7610. yes) enable_static=yes ;;
  7611. no) enable_static=no ;;
  7612. *)
  7613. enable_static=no
  7614. # Look at the argument we got. We use all the common list separators.
  7615. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7616. for pkg in $enableval; do
  7617. IFS=$lt_save_ifs
  7618. if test "X$pkg" = "X$p"; then
  7619. enable_static=yes
  7620. fi
  7621. done
  7622. IFS=$lt_save_ifs
  7623. ;;
  7624. esac
  7625. else $as_nop
  7626. enable_static=yes
  7627. fi
  7628. # Check whether --with-pic was given.
  7629. if test ${with_pic+y}
  7630. then :
  7631. withval=$with_pic; lt_p=${PACKAGE-default}
  7632. case $withval in
  7633. yes|no) pic_mode=$withval ;;
  7634. *)
  7635. pic_mode=default
  7636. # Look at the argument we got. We use all the common list separators.
  7637. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7638. for lt_pkg in $withval; do
  7639. IFS=$lt_save_ifs
  7640. if test "X$lt_pkg" = "X$lt_p"; then
  7641. pic_mode=yes
  7642. fi
  7643. done
  7644. IFS=$lt_save_ifs
  7645. ;;
  7646. esac
  7647. else $as_nop
  7648. pic_mode=default
  7649. fi
  7650. # Check whether --enable-fast-install was given.
  7651. if test ${enable_fast_install+y}
  7652. then :
  7653. enableval=$enable_fast_install; p=${PACKAGE-default}
  7654. case $enableval in
  7655. yes) enable_fast_install=yes ;;
  7656. no) enable_fast_install=no ;;
  7657. *)
  7658. enable_fast_install=no
  7659. # Look at the argument we got. We use all the common list separators.
  7660. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7661. for pkg in $enableval; do
  7662. IFS=$lt_save_ifs
  7663. if test "X$pkg" = "X$p"; then
  7664. enable_fast_install=yes
  7665. fi
  7666. done
  7667. IFS=$lt_save_ifs
  7668. ;;
  7669. esac
  7670. else $as_nop
  7671. enable_fast_install=yes
  7672. fi
  7673. shared_archive_member_spec=
  7674. case $host,$enable_shared in
  7675. power*-*-aix[5-9]*,yes)
  7676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7677. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  7678. # Check whether --with-aix-soname was given.
  7679. if test ${with_aix_soname+y}
  7680. then :
  7681. withval=$with_aix_soname; case $withval in
  7682. aix|svr4|both)
  7683. ;;
  7684. *)
  7685. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7686. ;;
  7687. esac
  7688. lt_cv_with_aix_soname=$with_aix_soname
  7689. else $as_nop
  7690. if test ${lt_cv_with_aix_soname+y}
  7691. then :
  7692. printf %s "(cached) " >&6
  7693. else $as_nop
  7694. lt_cv_with_aix_soname=aix
  7695. fi
  7696. with_aix_soname=$lt_cv_with_aix_soname
  7697. fi
  7698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7699. printf "%s\n" "$with_aix_soname" >&6; }
  7700. if test aix != "$with_aix_soname"; then
  7701. # For the AIX way of multilib, we name the shared archive member
  7702. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7703. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7704. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7705. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7706. if test 64 = "${OBJECT_MODE-32}"; then
  7707. shared_archive_member_spec=shr_64
  7708. else
  7709. shared_archive_member_spec=shr
  7710. fi
  7711. fi
  7712. ;;
  7713. *)
  7714. with_aix_soname=aix
  7715. ;;
  7716. esac
  7717. # This can be used to rebuild libtool when needed
  7718. LIBTOOL_DEPS=$ltmain
  7719. # Always use our own libtool.
  7720. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7721. test -z "$LN_S" && LN_S="ln -s"
  7722. if test -n "${ZSH_VERSION+set}"; then
  7723. setopt NO_GLOB_SUBST
  7724. fi
  7725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7726. printf %s "checking for objdir... " >&6; }
  7727. if test ${lt_cv_objdir+y}
  7728. then :
  7729. printf %s "(cached) " >&6
  7730. else $as_nop
  7731. rm -f .libs 2>/dev/null
  7732. mkdir .libs 2>/dev/null
  7733. if test -d .libs; then
  7734. lt_cv_objdir=.libs
  7735. else
  7736. # MS-DOS does not allow filenames that begin with a dot.
  7737. lt_cv_objdir=_libs
  7738. fi
  7739. rmdir .libs 2>/dev/null
  7740. fi
  7741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7742. printf "%s\n" "$lt_cv_objdir" >&6; }
  7743. objdir=$lt_cv_objdir
  7744. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  7745. case $host_os in
  7746. aix3*)
  7747. # AIX sometimes has problems with the GCC collect2 program. For some
  7748. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7749. # vanish in a puff of smoke.
  7750. if test set != "${COLLECT_NAMES+set}"; then
  7751. COLLECT_NAMES=
  7752. export COLLECT_NAMES
  7753. fi
  7754. ;;
  7755. esac
  7756. # Global variables:
  7757. ofile=libtool
  7758. can_build_shared=yes
  7759. # All known linkers require a '.a' archive for static linking (except MSVC,
  7760. # which needs '.lib').
  7761. libext=a
  7762. with_gnu_ld=$lt_cv_prog_gnu_ld
  7763. old_CC=$CC
  7764. old_CFLAGS=$CFLAGS
  7765. # Set sane defaults for various variables
  7766. test -z "$CC" && CC=cc
  7767. test -z "$LTCC" && LTCC=$CC
  7768. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7769. test -z "$LD" && LD=ld
  7770. test -z "$ac_objext" && ac_objext=o
  7771. func_cc_basename $compiler
  7772. cc_basename=$func_cc_basename_result
  7773. # Only perform the check for file, if the check method requires it
  7774. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7775. case $deplibs_check_method in
  7776. file_magic*)
  7777. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7779. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  7780. if test ${lt_cv_path_MAGIC_CMD+y}
  7781. then :
  7782. printf %s "(cached) " >&6
  7783. else $as_nop
  7784. case $MAGIC_CMD in
  7785. [\\/*] | ?:[\\/]*)
  7786. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7787. ;;
  7788. *)
  7789. lt_save_MAGIC_CMD=$MAGIC_CMD
  7790. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7791. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7792. for ac_dir in $ac_dummy; do
  7793. IFS=$lt_save_ifs
  7794. test -z "$ac_dir" && ac_dir=.
  7795. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7796. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7797. if test -n "$file_magic_test_file"; then
  7798. case $deplibs_check_method in
  7799. "file_magic "*)
  7800. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7801. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7802. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7803. $EGREP "$file_magic_regex" > /dev/null; then
  7804. :
  7805. else
  7806. cat <<_LT_EOF 1>&2
  7807. *** Warning: the command libtool uses to detect shared libraries,
  7808. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7809. *** The result is that libtool may fail to recognize shared libraries
  7810. *** as such. This will affect the creation of libtool libraries that
  7811. *** depend on shared libraries, but programs linked with such libtool
  7812. *** libraries will work regardless of this problem. Nevertheless, you
  7813. *** may want to report the problem to your system manager and/or to
  7814. *** bug-libtool@gnu.org
  7815. _LT_EOF
  7816. fi ;;
  7817. esac
  7818. fi
  7819. break
  7820. fi
  7821. done
  7822. IFS=$lt_save_ifs
  7823. MAGIC_CMD=$lt_save_MAGIC_CMD
  7824. ;;
  7825. esac
  7826. fi
  7827. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7828. if test -n "$MAGIC_CMD"; then
  7829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7830. printf "%s\n" "$MAGIC_CMD" >&6; }
  7831. else
  7832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7833. printf "%s\n" "no" >&6; }
  7834. fi
  7835. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7836. if test -n "$ac_tool_prefix"; then
  7837. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7838. printf %s "checking for file... " >&6; }
  7839. if test ${lt_cv_path_MAGIC_CMD+y}
  7840. then :
  7841. printf %s "(cached) " >&6
  7842. else $as_nop
  7843. case $MAGIC_CMD in
  7844. [\\/*] | ?:[\\/]*)
  7845. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7846. ;;
  7847. *)
  7848. lt_save_MAGIC_CMD=$MAGIC_CMD
  7849. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7850. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7851. for ac_dir in $ac_dummy; do
  7852. IFS=$lt_save_ifs
  7853. test -z "$ac_dir" && ac_dir=.
  7854. if test -f "$ac_dir/file"; then
  7855. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7856. if test -n "$file_magic_test_file"; then
  7857. case $deplibs_check_method in
  7858. "file_magic "*)
  7859. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7860. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7861. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7862. $EGREP "$file_magic_regex" > /dev/null; then
  7863. :
  7864. else
  7865. cat <<_LT_EOF 1>&2
  7866. *** Warning: the command libtool uses to detect shared libraries,
  7867. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7868. *** The result is that libtool may fail to recognize shared libraries
  7869. *** as such. This will affect the creation of libtool libraries that
  7870. *** depend on shared libraries, but programs linked with such libtool
  7871. *** libraries will work regardless of this problem. Nevertheless, you
  7872. *** may want to report the problem to your system manager and/or to
  7873. *** bug-libtool@gnu.org
  7874. _LT_EOF
  7875. fi ;;
  7876. esac
  7877. fi
  7878. break
  7879. fi
  7880. done
  7881. IFS=$lt_save_ifs
  7882. MAGIC_CMD=$lt_save_MAGIC_CMD
  7883. ;;
  7884. esac
  7885. fi
  7886. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7887. if test -n "$MAGIC_CMD"; then
  7888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7889. printf "%s\n" "$MAGIC_CMD" >&6; }
  7890. else
  7891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7892. printf "%s\n" "no" >&6; }
  7893. fi
  7894. else
  7895. MAGIC_CMD=:
  7896. fi
  7897. fi
  7898. fi
  7899. ;;
  7900. esac
  7901. # Use C for the default configuration in the libtool script
  7902. lt_save_CC=$CC
  7903. ac_ext=c
  7904. ac_cpp='$CPP $CPPFLAGS'
  7905. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7906. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7907. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7908. # Source file extension for C test sources.
  7909. ac_ext=c
  7910. # Object file extension for compiled C test sources.
  7911. objext=o
  7912. objext=$objext
  7913. # Code to be used in simple compile tests
  7914. lt_simple_compile_test_code="int some_variable = 0;"
  7915. # Code to be used in simple link tests
  7916. lt_simple_link_test_code='int main(){return(0);}'
  7917. # If no C compiler was specified, use CC.
  7918. LTCC=${LTCC-"$CC"}
  7919. # If no C compiler flags were specified, use CFLAGS.
  7920. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7921. # Allow CC to be a program name with arguments.
  7922. compiler=$CC
  7923. # Save the default compiler, since it gets overwritten when the other
  7924. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7925. compiler_DEFAULT=$CC
  7926. # save warnings/boilerplate of simple test code
  7927. ac_outfile=conftest.$ac_objext
  7928. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7929. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7930. _lt_compiler_boilerplate=`cat conftest.err`
  7931. $RM conftest*
  7932. ac_outfile=conftest.$ac_objext
  7933. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7934. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7935. _lt_linker_boilerplate=`cat conftest.err`
  7936. $RM -r conftest*
  7937. ## CAVEAT EMPTOR:
  7938. ## There is no encapsulation within the following macros, do not change
  7939. ## the running order or otherwise move them around unless you know exactly
  7940. ## what you are doing...
  7941. if test -n "$compiler"; then
  7942. lt_prog_compiler_no_builtin_flag=
  7943. if test yes = "$GCC"; then
  7944. case $cc_basename in
  7945. nvcc*)
  7946. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7947. *)
  7948. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7949. esac
  7950. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7951. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7952. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  7953. then :
  7954. printf %s "(cached) " >&6
  7955. else $as_nop
  7956. lt_cv_prog_compiler_rtti_exceptions=no
  7957. ac_outfile=conftest.$ac_objext
  7958. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7959. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7960. # Insert the option either (1) after the last *FLAGS variable, or
  7961. # (2) before a word containing "conftest.", or (3) at the end.
  7962. # Note that $ac_compile itself does not contain backslashes and begins
  7963. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7964. # The option is referenced via a variable to avoid confusing sed.
  7965. lt_compile=`echo "$ac_compile" | $SED \
  7966. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7967. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7968. -e 's:$: $lt_compiler_flag:'`
  7969. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7970. (eval "$lt_compile" 2>conftest.err)
  7971. ac_status=$?
  7972. cat conftest.err >&5
  7973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7974. if (exit $ac_status) && test -s "$ac_outfile"; then
  7975. # The compiler can only warn and ignore the option if not recognized
  7976. # So say no if there are warnings other than the usual output.
  7977. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7978. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7979. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7980. lt_cv_prog_compiler_rtti_exceptions=yes
  7981. fi
  7982. fi
  7983. $RM conftest*
  7984. fi
  7985. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7986. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7987. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7988. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7989. else
  7990. :
  7991. fi
  7992. fi
  7993. lt_prog_compiler_wl=
  7994. lt_prog_compiler_pic=
  7995. lt_prog_compiler_static=
  7996. if test yes = "$GCC"; then
  7997. lt_prog_compiler_wl='-Wl,'
  7998. lt_prog_compiler_static='-static'
  7999. case $host_os in
  8000. aix*)
  8001. # All AIX code is PIC.
  8002. if test ia64 = "$host_cpu"; then
  8003. # AIX 5 now supports IA64 processor
  8004. lt_prog_compiler_static='-Bstatic'
  8005. fi
  8006. lt_prog_compiler_pic='-fPIC'
  8007. ;;
  8008. amigaos*)
  8009. case $host_cpu in
  8010. powerpc)
  8011. # see comment about AmigaOS4 .so support
  8012. lt_prog_compiler_pic='-fPIC'
  8013. ;;
  8014. m68k)
  8015. # FIXME: we need at least 68020 code to build shared libraries, but
  8016. # adding the '-m68020' flag to GCC prevents building anything better,
  8017. # like '-m68040'.
  8018. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8019. ;;
  8020. esac
  8021. ;;
  8022. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8023. # PIC is the default for these OSes.
  8024. ;;
  8025. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8026. # This hack is so that the source file can tell whether it is being
  8027. # built for inclusion in a dll (and should export symbols for example).
  8028. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8029. # (--disable-auto-import) libraries
  8030. lt_prog_compiler_pic='-DDLL_EXPORT'
  8031. case $host_os in
  8032. os2*)
  8033. lt_prog_compiler_static='$wl-static'
  8034. ;;
  8035. esac
  8036. ;;
  8037. darwin* | rhapsody*)
  8038. # PIC is the default on this platform
  8039. # Common symbols not allowed in MH_DYLIB files
  8040. lt_prog_compiler_pic='-fno-common'
  8041. ;;
  8042. haiku*)
  8043. # PIC is the default for Haiku.
  8044. # The "-static" flag exists, but is broken.
  8045. lt_prog_compiler_static=
  8046. ;;
  8047. hpux*)
  8048. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8049. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8050. # sets the default TLS model and affects inlining.
  8051. case $host_cpu in
  8052. hppa*64*)
  8053. # +Z the default
  8054. ;;
  8055. *)
  8056. lt_prog_compiler_pic='-fPIC'
  8057. ;;
  8058. esac
  8059. ;;
  8060. interix[3-9]*)
  8061. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8062. # Instead, we relocate shared libraries at runtime.
  8063. ;;
  8064. msdosdjgpp*)
  8065. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8066. # on systems that don't support them.
  8067. lt_prog_compiler_can_build_shared=no
  8068. enable_shared=no
  8069. ;;
  8070. *nto* | *qnx*)
  8071. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8072. # it will coredump.
  8073. lt_prog_compiler_pic='-fPIC -shared'
  8074. ;;
  8075. sysv4*MP*)
  8076. if test -d /usr/nec; then
  8077. lt_prog_compiler_pic=-Kconform_pic
  8078. fi
  8079. ;;
  8080. *)
  8081. lt_prog_compiler_pic='-fPIC'
  8082. ;;
  8083. esac
  8084. case $cc_basename in
  8085. nvcc*) # Cuda Compiler Driver 2.2
  8086. lt_prog_compiler_wl='-Xlinker '
  8087. if test -n "$lt_prog_compiler_pic"; then
  8088. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8089. fi
  8090. ;;
  8091. esac
  8092. else
  8093. # PORTME Check for flag to pass linker flags through the system compiler.
  8094. case $host_os in
  8095. aix*)
  8096. lt_prog_compiler_wl='-Wl,'
  8097. if test ia64 = "$host_cpu"; then
  8098. # AIX 5 now supports IA64 processor
  8099. lt_prog_compiler_static='-Bstatic'
  8100. else
  8101. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8102. fi
  8103. ;;
  8104. darwin* | rhapsody*)
  8105. # PIC is the default on this platform
  8106. # Common symbols not allowed in MH_DYLIB files
  8107. lt_prog_compiler_pic='-fno-common'
  8108. case $cc_basename in
  8109. nagfor*)
  8110. # NAG Fortran compiler
  8111. lt_prog_compiler_wl='-Wl,-Wl,,'
  8112. lt_prog_compiler_pic='-PIC'
  8113. lt_prog_compiler_static='-Bstatic'
  8114. ;;
  8115. esac
  8116. ;;
  8117. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8118. # This hack is so that the source file can tell whether it is being
  8119. # built for inclusion in a dll (and should export symbols for example).
  8120. lt_prog_compiler_pic='-DDLL_EXPORT'
  8121. case $host_os in
  8122. os2*)
  8123. lt_prog_compiler_static='$wl-static'
  8124. ;;
  8125. esac
  8126. ;;
  8127. hpux9* | hpux10* | hpux11*)
  8128. lt_prog_compiler_wl='-Wl,'
  8129. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8130. # not for PA HP-UX.
  8131. case $host_cpu in
  8132. hppa*64*|ia64*)
  8133. # +Z the default
  8134. ;;
  8135. *)
  8136. lt_prog_compiler_pic='+Z'
  8137. ;;
  8138. esac
  8139. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8140. lt_prog_compiler_static='$wl-a ${wl}archive'
  8141. ;;
  8142. irix5* | irix6* | nonstopux*)
  8143. lt_prog_compiler_wl='-Wl,'
  8144. # PIC (with -KPIC) is the default.
  8145. lt_prog_compiler_static='-non_shared'
  8146. ;;
  8147. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8148. case $cc_basename in
  8149. # old Intel for x86_64, which still supported -KPIC.
  8150. ecc*)
  8151. lt_prog_compiler_wl='-Wl,'
  8152. lt_prog_compiler_pic='-KPIC'
  8153. lt_prog_compiler_static='-static'
  8154. ;;
  8155. # icc used to be incompatible with GCC.
  8156. # ICC 10 doesn't accept -KPIC any more.
  8157. icc* | ifort*)
  8158. lt_prog_compiler_wl='-Wl,'
  8159. lt_prog_compiler_pic='-fPIC'
  8160. lt_prog_compiler_static='-static'
  8161. ;;
  8162. # Lahey Fortran 8.1.
  8163. lf95*)
  8164. lt_prog_compiler_wl='-Wl,'
  8165. lt_prog_compiler_pic='--shared'
  8166. lt_prog_compiler_static='--static'
  8167. ;;
  8168. nagfor*)
  8169. # NAG Fortran compiler
  8170. lt_prog_compiler_wl='-Wl,-Wl,,'
  8171. lt_prog_compiler_pic='-PIC'
  8172. lt_prog_compiler_static='-Bstatic'
  8173. ;;
  8174. tcc*)
  8175. # Fabrice Bellard et al's Tiny C Compiler
  8176. lt_prog_compiler_wl='-Wl,'
  8177. lt_prog_compiler_pic='-fPIC'
  8178. lt_prog_compiler_static='-static'
  8179. ;;
  8180. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8181. # Portland Group compilers (*not* the Pentium gcc compiler,
  8182. # which looks to be a dead project)
  8183. lt_prog_compiler_wl='-Wl,'
  8184. lt_prog_compiler_pic='-fpic'
  8185. lt_prog_compiler_static='-Bstatic'
  8186. ;;
  8187. ccc*)
  8188. lt_prog_compiler_wl='-Wl,'
  8189. # All Alpha code is PIC.
  8190. lt_prog_compiler_static='-non_shared'
  8191. ;;
  8192. xl* | bgxl* | bgf* | mpixl*)
  8193. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8194. lt_prog_compiler_wl='-Wl,'
  8195. lt_prog_compiler_pic='-qpic'
  8196. lt_prog_compiler_static='-qstaticlink'
  8197. ;;
  8198. *)
  8199. case `$CC -V 2>&1 | sed 5q` in
  8200. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8201. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8202. lt_prog_compiler_pic='-KPIC'
  8203. lt_prog_compiler_static='-Bstatic'
  8204. lt_prog_compiler_wl=''
  8205. ;;
  8206. *Sun\ F* | *Sun*Fortran*)
  8207. lt_prog_compiler_pic='-KPIC'
  8208. lt_prog_compiler_static='-Bstatic'
  8209. lt_prog_compiler_wl='-Qoption ld '
  8210. ;;
  8211. *Sun\ C*)
  8212. # Sun C 5.9
  8213. lt_prog_compiler_pic='-KPIC'
  8214. lt_prog_compiler_static='-Bstatic'
  8215. lt_prog_compiler_wl='-Wl,'
  8216. ;;
  8217. *Intel*\ [CF]*Compiler*)
  8218. lt_prog_compiler_wl='-Wl,'
  8219. lt_prog_compiler_pic='-fPIC'
  8220. lt_prog_compiler_static='-static'
  8221. ;;
  8222. *Portland\ Group*)
  8223. lt_prog_compiler_wl='-Wl,'
  8224. lt_prog_compiler_pic='-fpic'
  8225. lt_prog_compiler_static='-Bstatic'
  8226. ;;
  8227. esac
  8228. ;;
  8229. esac
  8230. ;;
  8231. newsos6)
  8232. lt_prog_compiler_pic='-KPIC'
  8233. lt_prog_compiler_static='-Bstatic'
  8234. ;;
  8235. *nto* | *qnx*)
  8236. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8237. # it will coredump.
  8238. lt_prog_compiler_pic='-fPIC -shared'
  8239. ;;
  8240. osf3* | osf4* | osf5*)
  8241. lt_prog_compiler_wl='-Wl,'
  8242. # All OSF/1 code is PIC.
  8243. lt_prog_compiler_static='-non_shared'
  8244. ;;
  8245. rdos*)
  8246. lt_prog_compiler_static='-non_shared'
  8247. ;;
  8248. solaris*)
  8249. lt_prog_compiler_pic='-KPIC'
  8250. lt_prog_compiler_static='-Bstatic'
  8251. case $cc_basename in
  8252. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8253. lt_prog_compiler_wl='-Qoption ld ';;
  8254. *)
  8255. lt_prog_compiler_wl='-Wl,';;
  8256. esac
  8257. ;;
  8258. sunos4*)
  8259. lt_prog_compiler_wl='-Qoption ld '
  8260. lt_prog_compiler_pic='-PIC'
  8261. lt_prog_compiler_static='-Bstatic'
  8262. ;;
  8263. sysv4 | sysv4.2uw2* | sysv4.3*)
  8264. lt_prog_compiler_wl='-Wl,'
  8265. lt_prog_compiler_pic='-KPIC'
  8266. lt_prog_compiler_static='-Bstatic'
  8267. ;;
  8268. sysv4*MP*)
  8269. if test -d /usr/nec; then
  8270. lt_prog_compiler_pic='-Kconform_pic'
  8271. lt_prog_compiler_static='-Bstatic'
  8272. fi
  8273. ;;
  8274. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8275. lt_prog_compiler_wl='-Wl,'
  8276. lt_prog_compiler_pic='-KPIC'
  8277. lt_prog_compiler_static='-Bstatic'
  8278. ;;
  8279. unicos*)
  8280. lt_prog_compiler_wl='-Wl,'
  8281. lt_prog_compiler_can_build_shared=no
  8282. ;;
  8283. uts4*)
  8284. lt_prog_compiler_pic='-pic'
  8285. lt_prog_compiler_static='-Bstatic'
  8286. ;;
  8287. *)
  8288. lt_prog_compiler_can_build_shared=no
  8289. ;;
  8290. esac
  8291. fi
  8292. case $host_os in
  8293. # For platforms that do not support PIC, -DPIC is meaningless:
  8294. *djgpp*)
  8295. lt_prog_compiler_pic=
  8296. ;;
  8297. *)
  8298. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8299. ;;
  8300. esac
  8301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8302. printf %s "checking for $compiler option to produce PIC... " >&6; }
  8303. if test ${lt_cv_prog_compiler_pic+y}
  8304. then :
  8305. printf %s "(cached) " >&6
  8306. else $as_nop
  8307. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8308. fi
  8309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8310. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  8311. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8312. #
  8313. # Check to make sure the PIC flag actually works.
  8314. #
  8315. if test -n "$lt_prog_compiler_pic"; then
  8316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8317. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8318. if test ${lt_cv_prog_compiler_pic_works+y}
  8319. then :
  8320. printf %s "(cached) " >&6
  8321. else $as_nop
  8322. lt_cv_prog_compiler_pic_works=no
  8323. ac_outfile=conftest.$ac_objext
  8324. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8325. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8326. # Insert the option either (1) after the last *FLAGS variable, or
  8327. # (2) before a word containing "conftest.", or (3) at the end.
  8328. # Note that $ac_compile itself does not contain backslashes and begins
  8329. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8330. # The option is referenced via a variable to avoid confusing sed.
  8331. lt_compile=`echo "$ac_compile" | $SED \
  8332. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8333. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8334. -e 's:$: $lt_compiler_flag:'`
  8335. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8336. (eval "$lt_compile" 2>conftest.err)
  8337. ac_status=$?
  8338. cat conftest.err >&5
  8339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8340. if (exit $ac_status) && test -s "$ac_outfile"; then
  8341. # The compiler can only warn and ignore the option if not recognized
  8342. # So say no if there are warnings other than the usual output.
  8343. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8344. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8345. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8346. lt_cv_prog_compiler_pic_works=yes
  8347. fi
  8348. fi
  8349. $RM conftest*
  8350. fi
  8351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8352. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  8353. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8354. case $lt_prog_compiler_pic in
  8355. "" | " "*) ;;
  8356. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8357. esac
  8358. else
  8359. lt_prog_compiler_pic=
  8360. lt_prog_compiler_can_build_shared=no
  8361. fi
  8362. fi
  8363. #
  8364. # Check to make sure the static flag actually works.
  8365. #
  8366. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8368. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8369. if test ${lt_cv_prog_compiler_static_works+y}
  8370. then :
  8371. printf %s "(cached) " >&6
  8372. else $as_nop
  8373. lt_cv_prog_compiler_static_works=no
  8374. save_LDFLAGS=$LDFLAGS
  8375. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8376. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8377. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8378. # The linker can only warn and ignore the option if not recognized
  8379. # So say no if there are warnings
  8380. if test -s conftest.err; then
  8381. # Append any errors to the config.log.
  8382. cat conftest.err 1>&5
  8383. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8384. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8385. if diff conftest.exp conftest.er2 >/dev/null; then
  8386. lt_cv_prog_compiler_static_works=yes
  8387. fi
  8388. else
  8389. lt_cv_prog_compiler_static_works=yes
  8390. fi
  8391. fi
  8392. $RM -r conftest*
  8393. LDFLAGS=$save_LDFLAGS
  8394. fi
  8395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8396. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  8397. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8398. :
  8399. else
  8400. lt_prog_compiler_static=
  8401. fi
  8402. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8403. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8404. if test ${lt_cv_prog_compiler_c_o+y}
  8405. then :
  8406. printf %s "(cached) " >&6
  8407. else $as_nop
  8408. lt_cv_prog_compiler_c_o=no
  8409. $RM -r conftest 2>/dev/null
  8410. mkdir conftest
  8411. cd conftest
  8412. mkdir out
  8413. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  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. fi
  8448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8449. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8451. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8452. if test ${lt_cv_prog_compiler_c_o+y}
  8453. then :
  8454. printf %s "(cached) " >&6
  8455. else $as_nop
  8456. lt_cv_prog_compiler_c_o=no
  8457. $RM -r conftest 2>/dev/null
  8458. mkdir conftest
  8459. cd conftest
  8460. mkdir out
  8461. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8462. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8463. # Insert the option either (1) after the last *FLAGS variable, or
  8464. # (2) before a word containing "conftest.", or (3) at the end.
  8465. # Note that $ac_compile itself does not contain backslashes and begins
  8466. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8467. lt_compile=`echo "$ac_compile" | $SED \
  8468. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8469. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8470. -e 's:$: $lt_compiler_flag:'`
  8471. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8472. (eval "$lt_compile" 2>out/conftest.err)
  8473. ac_status=$?
  8474. cat out/conftest.err >&5
  8475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8476. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8477. then
  8478. # The compiler can only warn and ignore the option if not recognized
  8479. # So say no if there are warnings
  8480. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8481. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8482. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8483. lt_cv_prog_compiler_c_o=yes
  8484. fi
  8485. fi
  8486. chmod u+w . 2>&5
  8487. $RM conftest*
  8488. # SGI C++ compiler will create directory out/ii_files/ for
  8489. # template instantiation
  8490. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8491. $RM out/* && rmdir out
  8492. cd ..
  8493. $RM -r conftest
  8494. $RM conftest*
  8495. fi
  8496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8497. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8498. hard_links=nottested
  8499. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8500. # do not overwrite the value of need_locks provided by the user
  8501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8502. printf %s "checking if we can lock with hard links... " >&6; }
  8503. hard_links=yes
  8504. $RM conftest*
  8505. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8506. touch conftest.a
  8507. ln conftest.a conftest.b 2>&5 || hard_links=no
  8508. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8510. printf "%s\n" "$hard_links" >&6; }
  8511. if test no = "$hard_links"; then
  8512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8513. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8514. need_locks=warn
  8515. fi
  8516. else
  8517. need_locks=no
  8518. fi
  8519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8520. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8521. runpath_var=
  8522. allow_undefined_flag=
  8523. always_export_symbols=no
  8524. archive_cmds=
  8525. archive_expsym_cmds=
  8526. compiler_needs_object=no
  8527. enable_shared_with_static_runtimes=no
  8528. export_dynamic_flag_spec=
  8529. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8530. hardcode_automatic=no
  8531. hardcode_direct=no
  8532. hardcode_direct_absolute=no
  8533. hardcode_libdir_flag_spec=
  8534. hardcode_libdir_separator=
  8535. hardcode_minus_L=no
  8536. hardcode_shlibpath_var=unsupported
  8537. inherit_rpath=no
  8538. link_all_deplibs=unknown
  8539. module_cmds=
  8540. module_expsym_cmds=
  8541. old_archive_from_new_cmds=
  8542. old_archive_from_expsyms_cmds=
  8543. thread_safe_flag_spec=
  8544. whole_archive_flag_spec=
  8545. # include_expsyms should be a list of space-separated symbols to be *always*
  8546. # included in the symbol list
  8547. include_expsyms=
  8548. # exclude_expsyms can be an extended regexp of symbols to exclude
  8549. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8550. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8551. # as well as any symbol that contains 'd'.
  8552. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8553. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8554. # platforms (ab)use it in PIC code, but their linkers get confused if
  8555. # the symbol is explicitly referenced. Since portable code cannot
  8556. # rely on this symbol name, it's probably fine to never include it in
  8557. # preloaded symbol tables.
  8558. # Exclude shared library initialization/finalization symbols.
  8559. extract_expsyms_cmds=
  8560. case $host_os in
  8561. cygwin* | mingw* | pw32* | cegcc*)
  8562. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8563. # When not using gcc, we currently assume that we are using
  8564. # Microsoft Visual C++.
  8565. if test yes != "$GCC"; then
  8566. with_gnu_ld=no
  8567. fi
  8568. ;;
  8569. interix*)
  8570. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8571. with_gnu_ld=yes
  8572. ;;
  8573. openbsd* | bitrig*)
  8574. with_gnu_ld=no
  8575. ;;
  8576. esac
  8577. ld_shlibs=yes
  8578. # On some targets, GNU ld is compatible enough with the native linker
  8579. # that we're better off using the native interface for both.
  8580. lt_use_gnu_ld_interface=no
  8581. if test yes = "$with_gnu_ld"; then
  8582. case $host_os in
  8583. aix*)
  8584. # The AIX port of GNU ld has always aspired to compatibility
  8585. # with the native linker. However, as the warning in the GNU ld
  8586. # block says, versions before 2.19.5* couldn't really create working
  8587. # shared libraries, regardless of the interface used.
  8588. case `$LD -v 2>&1` in
  8589. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8590. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8591. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8592. *)
  8593. lt_use_gnu_ld_interface=yes
  8594. ;;
  8595. esac
  8596. ;;
  8597. *)
  8598. lt_use_gnu_ld_interface=yes
  8599. ;;
  8600. esac
  8601. fi
  8602. if test yes = "$lt_use_gnu_ld_interface"; then
  8603. # If archive_cmds runs LD, not CC, wlarc should be empty
  8604. wlarc='$wl'
  8605. # Set some defaults for GNU ld with shared library support. These
  8606. # are reset later if shared libraries are not supported. Putting them
  8607. # here allows them to be overridden if necessary.
  8608. runpath_var=LD_RUN_PATH
  8609. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8610. export_dynamic_flag_spec='$wl--export-dynamic'
  8611. # ancient GNU ld didn't support --whole-archive et. al.
  8612. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8613. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8614. else
  8615. whole_archive_flag_spec=
  8616. fi
  8617. supports_anon_versioning=no
  8618. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  8619. *GNU\ gold*) supports_anon_versioning=yes ;;
  8620. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8621. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8622. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8623. *\ 2.11.*) ;; # other 2.11 versions
  8624. *) supports_anon_versioning=yes ;;
  8625. esac
  8626. # See if GNU ld supports shared libraries.
  8627. case $host_os in
  8628. aix[3-9]*)
  8629. # On AIX/PPC, the GNU linker is very broken
  8630. if test ia64 != "$host_cpu"; then
  8631. ld_shlibs=no
  8632. cat <<_LT_EOF 1>&2
  8633. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8634. *** to be unable to reliably create shared libraries on AIX.
  8635. *** Therefore, libtool is disabling shared libraries support. If you
  8636. *** really care for shared libraries, you may want to install binutils
  8637. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8638. *** You will then need to restart the configuration process.
  8639. _LT_EOF
  8640. fi
  8641. ;;
  8642. amigaos*)
  8643. case $host_cpu in
  8644. powerpc)
  8645. # see comment about AmigaOS4 .so support
  8646. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8647. archive_expsym_cmds=''
  8648. ;;
  8649. m68k)
  8650. 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)'
  8651. hardcode_libdir_flag_spec='-L$libdir'
  8652. hardcode_minus_L=yes
  8653. ;;
  8654. esac
  8655. ;;
  8656. beos*)
  8657. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8658. allow_undefined_flag=unsupported
  8659. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8660. # support --undefined. This deserves some investigation. FIXME
  8661. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8662. else
  8663. ld_shlibs=no
  8664. fi
  8665. ;;
  8666. cygwin* | mingw* | pw32* | cegcc*)
  8667. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8668. # as there is no search path for DLLs.
  8669. hardcode_libdir_flag_spec='-L$libdir'
  8670. export_dynamic_flag_spec='$wl--export-all-symbols'
  8671. allow_undefined_flag=unsupported
  8672. always_export_symbols=no
  8673. enable_shared_with_static_runtimes=yes
  8674. 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'
  8675. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8676. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8677. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8678. # If the export-symbols file already is a .def file, use it as
  8679. # is; otherwise, prepend EXPORTS...
  8680. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8681. cp $export_symbols $output_objdir/$soname.def;
  8682. else
  8683. echo EXPORTS > $output_objdir/$soname.def;
  8684. cat $export_symbols >> $output_objdir/$soname.def;
  8685. fi~
  8686. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8687. else
  8688. ld_shlibs=no
  8689. fi
  8690. ;;
  8691. haiku*)
  8692. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8693. link_all_deplibs=yes
  8694. ;;
  8695. os2*)
  8696. hardcode_libdir_flag_spec='-L$libdir'
  8697. hardcode_minus_L=yes
  8698. allow_undefined_flag=unsupported
  8699. shrext_cmds=.dll
  8700. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8701. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8702. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8703. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8704. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8705. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8706. emximp -o $lib $output_objdir/$libname.def'
  8707. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8708. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8709. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8710. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8711. prefix_cmds="$SED"~
  8712. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8713. prefix_cmds="$prefix_cmds -e 1d";
  8714. fi~
  8715. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8716. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8717. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8718. emximp -o $lib $output_objdir/$libname.def'
  8719. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8720. enable_shared_with_static_runtimes=yes
  8721. file_list_spec='@'
  8722. ;;
  8723. interix[3-9]*)
  8724. hardcode_direct=no
  8725. hardcode_shlibpath_var=no
  8726. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8727. export_dynamic_flag_spec='$wl-E'
  8728. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8729. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8730. # default) and relocated if they conflict, which is a slow very memory
  8731. # consuming and fragmenting process. To avoid this, we pick a random,
  8732. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8733. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8734. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8735. 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'
  8736. ;;
  8737. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8738. tmp_diet=no
  8739. if test linux-dietlibc = "$host_os"; then
  8740. case $cc_basename in
  8741. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8742. esac
  8743. fi
  8744. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8745. && test no = "$tmp_diet"
  8746. then
  8747. tmp_addflag=' $pic_flag'
  8748. tmp_sharedflag='-shared'
  8749. case $cc_basename,$host_cpu in
  8750. pgcc*) # Portland Group C compiler
  8751. 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'
  8752. tmp_addflag=' $pic_flag'
  8753. ;;
  8754. pgf77* | pgf90* | pgf95* | pgfortran*)
  8755. # Portland Group f77 and f90 compilers
  8756. 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'
  8757. tmp_addflag=' $pic_flag -Mnomain' ;;
  8758. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8759. tmp_addflag=' -i_dynamic' ;;
  8760. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8761. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8762. ifc* | ifort*) # Intel Fortran compiler
  8763. tmp_addflag=' -nofor_main' ;;
  8764. lf95*) # Lahey Fortran 8.1
  8765. whole_archive_flag_spec=
  8766. tmp_sharedflag='--shared' ;;
  8767. nagfor*) # NAGFOR 5.3
  8768. tmp_sharedflag='-Wl,-shared' ;;
  8769. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8770. tmp_sharedflag='-qmkshrobj'
  8771. tmp_addflag= ;;
  8772. nvcc*) # Cuda Compiler Driver 2.2
  8773. 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'
  8774. compiler_needs_object=yes
  8775. ;;
  8776. esac
  8777. case `$CC -V 2>&1 | sed 5q` in
  8778. *Sun\ C*) # Sun C 5.9
  8779. 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'
  8780. compiler_needs_object=yes
  8781. tmp_sharedflag='-G' ;;
  8782. *Sun\ F*) # Sun Fortran 8.3
  8783. tmp_sharedflag='-G' ;;
  8784. esac
  8785. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8786. if test yes = "$supports_anon_versioning"; then
  8787. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8788. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8789. echo "local: *; };" >> $output_objdir/$libname.ver~
  8790. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8791. fi
  8792. case $cc_basename in
  8793. tcc*)
  8794. export_dynamic_flag_spec='-rdynamic'
  8795. ;;
  8796. xlf* | bgf* | bgxlf* | mpixlf*)
  8797. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8798. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8799. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8800. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8801. if test yes = "$supports_anon_versioning"; then
  8802. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8803. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8804. echo "local: *; };" >> $output_objdir/$libname.ver~
  8805. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8806. fi
  8807. ;;
  8808. esac
  8809. else
  8810. ld_shlibs=no
  8811. fi
  8812. ;;
  8813. netbsd*)
  8814. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8815. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8816. wlarc=
  8817. else
  8818. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8819. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8820. fi
  8821. ;;
  8822. solaris*)
  8823. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8824. ld_shlibs=no
  8825. cat <<_LT_EOF 1>&2
  8826. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8827. *** create shared libraries on Solaris systems. Therefore, libtool
  8828. *** is disabling shared libraries support. We urge you to upgrade GNU
  8829. *** binutils to release 2.9.1 or newer. Another option is to modify
  8830. *** your PATH or compiler configuration so that the native linker is
  8831. *** used, and then restart.
  8832. _LT_EOF
  8833. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8834. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8835. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8836. else
  8837. ld_shlibs=no
  8838. fi
  8839. ;;
  8840. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8841. case `$LD -v 2>&1` in
  8842. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8843. ld_shlibs=no
  8844. cat <<_LT_EOF 1>&2
  8845. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8846. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8847. *** is disabling shared libraries support. We urge you to upgrade GNU
  8848. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8849. *** your PATH or compiler configuration so that the native linker is
  8850. *** used, and then restart.
  8851. _LT_EOF
  8852. ;;
  8853. *)
  8854. # For security reasons, it is highly recommended that you always
  8855. # use absolute paths for naming shared libraries, and exclude the
  8856. # DT_RUNPATH tag from executables and libraries. But doing so
  8857. # requires that you compile everything twice, which is a pain.
  8858. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8859. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8860. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8861. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8862. else
  8863. ld_shlibs=no
  8864. fi
  8865. ;;
  8866. esac
  8867. ;;
  8868. sunos4*)
  8869. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8870. wlarc=
  8871. hardcode_direct=yes
  8872. hardcode_shlibpath_var=no
  8873. ;;
  8874. *)
  8875. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8876. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8877. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8878. else
  8879. ld_shlibs=no
  8880. fi
  8881. ;;
  8882. esac
  8883. if test no = "$ld_shlibs"; then
  8884. runpath_var=
  8885. hardcode_libdir_flag_spec=
  8886. export_dynamic_flag_spec=
  8887. whole_archive_flag_spec=
  8888. fi
  8889. else
  8890. # PORTME fill in a description of your system's linker (not GNU ld)
  8891. case $host_os in
  8892. aix3*)
  8893. allow_undefined_flag=unsupported
  8894. always_export_symbols=yes
  8895. 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'
  8896. # Note: this linker hardcodes the directories in LIBPATH if there
  8897. # are no directories specified by -L.
  8898. hardcode_minus_L=yes
  8899. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8900. # Neither direct hardcoding nor static linking is supported with a
  8901. # broken collect2.
  8902. hardcode_direct=unsupported
  8903. fi
  8904. ;;
  8905. aix[4-9]*)
  8906. if test ia64 = "$host_cpu"; then
  8907. # On IA64, the linker does run time linking by default, so we don't
  8908. # have to do anything special.
  8909. aix_use_runtimelinking=no
  8910. exp_sym_flag='-Bexport'
  8911. no_entry_flag=
  8912. else
  8913. # If we're using GNU nm, then we don't want the "-C" option.
  8914. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8915. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8916. # weak defined symbols like other global defined symbols, whereas
  8917. # GNU nm marks them as "W".
  8918. # While the 'weak' keyword is ignored in the Export File, we need
  8919. # it in the Import File for the 'aix-soname' feature, so we have
  8920. # to replace the "-B" option with "-P" for AIX nm.
  8921. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8922. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  8923. else
  8924. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  8925. fi
  8926. aix_use_runtimelinking=no
  8927. # Test if we are trying to use run time linking or normal
  8928. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8929. # have runtime linking enabled, and use it for executables.
  8930. # For shared libraries, we enable/disable runtime linking
  8931. # depending on the kind of the shared library created -
  8932. # when "with_aix_soname,aix_use_runtimelinking" is:
  8933. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8934. # "aix,yes" lib.so shared, rtl:yes, for executables
  8935. # lib.a static archive
  8936. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8937. # lib.a(lib.so.V) shared, rtl:no, for executables
  8938. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8939. # lib.a(lib.so.V) shared, rtl:no
  8940. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8941. # lib.a static archive
  8942. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8943. for ld_flag in $LDFLAGS; do
  8944. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8945. aix_use_runtimelinking=yes
  8946. break
  8947. fi
  8948. done
  8949. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8950. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8951. # so we don't have lib.a shared libs to link our executables.
  8952. # We have to force runtime linking in this case.
  8953. aix_use_runtimelinking=yes
  8954. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8955. fi
  8956. ;;
  8957. esac
  8958. exp_sym_flag='-bexport'
  8959. no_entry_flag='-bnoentry'
  8960. fi
  8961. # When large executables or shared objects are built, AIX ld can
  8962. # have problems creating the table of contents. If linking a library
  8963. # or program results in "error TOC overflow" add -mminimal-toc to
  8964. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8965. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8966. archive_cmds=''
  8967. hardcode_direct=yes
  8968. hardcode_direct_absolute=yes
  8969. hardcode_libdir_separator=':'
  8970. link_all_deplibs=yes
  8971. file_list_spec='$wl-f,'
  8972. case $with_aix_soname,$aix_use_runtimelinking in
  8973. aix,*) ;; # traditional, no import file
  8974. svr4,* | *,yes) # use import file
  8975. # The Import File defines what to hardcode.
  8976. hardcode_direct=no
  8977. hardcode_direct_absolute=no
  8978. ;;
  8979. esac
  8980. if test yes = "$GCC"; then
  8981. case $host_os in aix4.[012]|aix4.[012].*)
  8982. # We only want to do this on AIX 4.2 and lower, the check
  8983. # below for broken collect2 doesn't work under 4.3+
  8984. collect2name=`$CC -print-prog-name=collect2`
  8985. if test -f "$collect2name" &&
  8986. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8987. then
  8988. # We have reworked collect2
  8989. :
  8990. else
  8991. # We have old collect2
  8992. hardcode_direct=unsupported
  8993. # It fails to find uninstalled libraries when the uninstalled
  8994. # path is not listed in the libpath. Setting hardcode_minus_L
  8995. # to unsupported forces relinking
  8996. hardcode_minus_L=yes
  8997. hardcode_libdir_flag_spec='-L$libdir'
  8998. hardcode_libdir_separator=
  8999. fi
  9000. ;;
  9001. esac
  9002. shared_flag='-shared'
  9003. if test yes = "$aix_use_runtimelinking"; then
  9004. shared_flag="$shared_flag "'$wl-G'
  9005. fi
  9006. # Need to ensure runtime linking is disabled for the traditional
  9007. # shared library, or the linker may eventually find shared libraries
  9008. # /with/ Import File - we do not want to mix them.
  9009. shared_flag_aix='-shared'
  9010. shared_flag_svr4='-shared $wl-G'
  9011. else
  9012. # not using gcc
  9013. if test ia64 = "$host_cpu"; then
  9014. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9015. # chokes on -Wl,-G. The following line is correct:
  9016. shared_flag='-G'
  9017. else
  9018. if test yes = "$aix_use_runtimelinking"; then
  9019. shared_flag='$wl-G'
  9020. else
  9021. shared_flag='$wl-bM:SRE'
  9022. fi
  9023. shared_flag_aix='$wl-bM:SRE'
  9024. shared_flag_svr4='$wl-G'
  9025. fi
  9026. fi
  9027. export_dynamic_flag_spec='$wl-bexpall'
  9028. # It seems that -bexpall does not export symbols beginning with
  9029. # underscore (_), so it is better to generate a list of symbols to export.
  9030. always_export_symbols=yes
  9031. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9032. # Warning - without using the other runtime loading flags (-brtl),
  9033. # -berok will link without error, but may produce a broken library.
  9034. allow_undefined_flag='-berok'
  9035. # Determine the default libpath from the value encoded in an
  9036. # empty executable.
  9037. if test set = "${lt_cv_aix_libpath+set}"; then
  9038. aix_libpath=$lt_cv_aix_libpath
  9039. else
  9040. if test ${lt_cv_aix_libpath_+y}
  9041. then :
  9042. printf %s "(cached) " >&6
  9043. else $as_nop
  9044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9045. /* end confdefs.h. */
  9046. int
  9047. main (void)
  9048. {
  9049. ;
  9050. return 0;
  9051. }
  9052. _ACEOF
  9053. if ac_fn_c_try_link "$LINENO"
  9054. then :
  9055. lt_aix_libpath_sed='
  9056. /Import File Strings/,/^$/ {
  9057. /^0/ {
  9058. s/^0 *\([^ ]*\) *$/\1/
  9059. p
  9060. }
  9061. }'
  9062. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9063. # Check for a 64-bit object if we didn't find anything.
  9064. if test -z "$lt_cv_aix_libpath_"; then
  9065. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9066. fi
  9067. fi
  9068. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9069. conftest$ac_exeext conftest.$ac_ext
  9070. if test -z "$lt_cv_aix_libpath_"; then
  9071. lt_cv_aix_libpath_=/usr/lib:/lib
  9072. fi
  9073. fi
  9074. aix_libpath=$lt_cv_aix_libpath_
  9075. fi
  9076. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9077. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  9078. else
  9079. if test ia64 = "$host_cpu"; then
  9080. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9081. allow_undefined_flag="-z nodefs"
  9082. 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"
  9083. else
  9084. # Determine the default libpath from the value encoded in an
  9085. # empty executable.
  9086. if test set = "${lt_cv_aix_libpath+set}"; then
  9087. aix_libpath=$lt_cv_aix_libpath
  9088. else
  9089. if test ${lt_cv_aix_libpath_+y}
  9090. then :
  9091. printf %s "(cached) " >&6
  9092. else $as_nop
  9093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9094. /* end confdefs.h. */
  9095. int
  9096. main (void)
  9097. {
  9098. ;
  9099. return 0;
  9100. }
  9101. _ACEOF
  9102. if ac_fn_c_try_link "$LINENO"
  9103. then :
  9104. lt_aix_libpath_sed='
  9105. /Import File Strings/,/^$/ {
  9106. /^0/ {
  9107. s/^0 *\([^ ]*\) *$/\1/
  9108. p
  9109. }
  9110. }'
  9111. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9112. # Check for a 64-bit object if we didn't find anything.
  9113. if test -z "$lt_cv_aix_libpath_"; then
  9114. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9115. fi
  9116. fi
  9117. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9118. conftest$ac_exeext conftest.$ac_ext
  9119. if test -z "$lt_cv_aix_libpath_"; then
  9120. lt_cv_aix_libpath_=/usr/lib:/lib
  9121. fi
  9122. fi
  9123. aix_libpath=$lt_cv_aix_libpath_
  9124. fi
  9125. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9126. # Warning - without using the other run time loading flags,
  9127. # -berok will link without error, but may produce a broken library.
  9128. no_undefined_flag=' $wl-bernotok'
  9129. allow_undefined_flag=' $wl-berok'
  9130. if test yes = "$with_gnu_ld"; then
  9131. # We only use this code for GNU lds that support --whole-archive.
  9132. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9133. else
  9134. # Exported symbols can be pulled into shared objects from archives
  9135. whole_archive_flag_spec='$convenience'
  9136. fi
  9137. archive_cmds_need_lc=yes
  9138. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9139. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9140. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9141. if test svr4 != "$with_aix_soname"; then
  9142. # This is similar to how AIX traditionally builds its shared libraries.
  9143. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  9144. fi
  9145. if test aix != "$with_aix_soname"; then
  9146. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  9147. else
  9148. # used by -dlpreopen to get the symbols
  9149. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9150. fi
  9151. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9152. fi
  9153. fi
  9154. ;;
  9155. amigaos*)
  9156. case $host_cpu in
  9157. powerpc)
  9158. # see comment about AmigaOS4 .so support
  9159. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9160. archive_expsym_cmds=''
  9161. ;;
  9162. m68k)
  9163. 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)'
  9164. hardcode_libdir_flag_spec='-L$libdir'
  9165. hardcode_minus_L=yes
  9166. ;;
  9167. esac
  9168. ;;
  9169. bsdi[45]*)
  9170. export_dynamic_flag_spec=-rdynamic
  9171. ;;
  9172. cygwin* | mingw* | pw32* | cegcc*)
  9173. # When not using gcc, we currently assume that we are using
  9174. # Microsoft Visual C++.
  9175. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9176. # no search path for DLLs.
  9177. case $cc_basename in
  9178. cl*)
  9179. # Native MSVC
  9180. hardcode_libdir_flag_spec=' '
  9181. allow_undefined_flag=unsupported
  9182. always_export_symbols=yes
  9183. file_list_spec='@'
  9184. # Tell ltmain to make .lib files, not .a files.
  9185. libext=lib
  9186. # Tell ltmain to make .dll files, not .so files.
  9187. shrext_cmds=.dll
  9188. # FIXME: Setting linknames here is a bad hack.
  9189. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9190. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9191. cp "$export_symbols" "$output_objdir/$soname.def";
  9192. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9193. else
  9194. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9195. fi~
  9196. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9197. linknames='
  9198. # The linker will not automatically build a static lib if we build a DLL.
  9199. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9200. enable_shared_with_static_runtimes=yes
  9201. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9202. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9203. # Don't use ranlib
  9204. old_postinstall_cmds='chmod 644 $oldlib'
  9205. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9206. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9207. case $lt_outputfile in
  9208. *.exe|*.EXE) ;;
  9209. *)
  9210. lt_outputfile=$lt_outputfile.exe
  9211. lt_tool_outputfile=$lt_tool_outputfile.exe
  9212. ;;
  9213. esac~
  9214. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9215. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9216. $RM "$lt_outputfile.manifest";
  9217. fi'
  9218. ;;
  9219. *)
  9220. # Assume MSVC wrapper
  9221. hardcode_libdir_flag_spec=' '
  9222. allow_undefined_flag=unsupported
  9223. # Tell ltmain to make .lib files, not .a files.
  9224. libext=lib
  9225. # Tell ltmain to make .dll files, not .so files.
  9226. shrext_cmds=.dll
  9227. # FIXME: Setting linknames here is a bad hack.
  9228. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9229. # The linker will automatically build a .lib file if we build a DLL.
  9230. old_archive_from_new_cmds='true'
  9231. # FIXME: Should let the user specify the lib program.
  9232. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9233. enable_shared_with_static_runtimes=yes
  9234. ;;
  9235. esac
  9236. ;;
  9237. darwin* | rhapsody*)
  9238. archive_cmds_need_lc=no
  9239. hardcode_direct=no
  9240. hardcode_automatic=yes
  9241. hardcode_shlibpath_var=unsupported
  9242. if test yes = "$lt_cv_ld_force_load"; then
  9243. 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\"`'
  9244. else
  9245. whole_archive_flag_spec=''
  9246. fi
  9247. link_all_deplibs=yes
  9248. allow_undefined_flag=$_lt_dar_allow_undefined
  9249. case $cc_basename in
  9250. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9251. *) _lt_dar_can_shared=$GCC ;;
  9252. esac
  9253. if test yes = "$_lt_dar_can_shared"; then
  9254. output_verbose_link_cmd=func_echo_all
  9255. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9256. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9257. 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"
  9258. 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"
  9259. else
  9260. ld_shlibs=no
  9261. fi
  9262. ;;
  9263. dgux*)
  9264. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9265. hardcode_libdir_flag_spec='-L$libdir'
  9266. hardcode_shlibpath_var=no
  9267. ;;
  9268. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9269. # support. Future versions do this automatically, but an explicit c++rt0.o
  9270. # does not break anything, and helps significantly (at the cost of a little
  9271. # extra space).
  9272. freebsd2.2*)
  9273. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9274. hardcode_libdir_flag_spec='-R$libdir'
  9275. hardcode_direct=yes
  9276. hardcode_shlibpath_var=no
  9277. ;;
  9278. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9279. freebsd2.*)
  9280. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9281. hardcode_direct=yes
  9282. hardcode_minus_L=yes
  9283. hardcode_shlibpath_var=no
  9284. ;;
  9285. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9286. freebsd* | dragonfly* | midnightbsd*)
  9287. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9288. hardcode_libdir_flag_spec='-R$libdir'
  9289. hardcode_direct=yes
  9290. hardcode_shlibpath_var=no
  9291. ;;
  9292. hpux9*)
  9293. if test yes = "$GCC"; then
  9294. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  9295. else
  9296. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  9297. fi
  9298. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9299. hardcode_libdir_separator=:
  9300. hardcode_direct=yes
  9301. # hardcode_minus_L: Not really in the search PATH,
  9302. # but as the default location of the library.
  9303. hardcode_minus_L=yes
  9304. export_dynamic_flag_spec='$wl-E'
  9305. ;;
  9306. hpux10*)
  9307. if test yes,no = "$GCC,$with_gnu_ld"; then
  9308. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9309. else
  9310. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9311. fi
  9312. if test no = "$with_gnu_ld"; then
  9313. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9314. hardcode_libdir_separator=:
  9315. hardcode_direct=yes
  9316. hardcode_direct_absolute=yes
  9317. export_dynamic_flag_spec='$wl-E'
  9318. # hardcode_minus_L: Not really in the search PATH,
  9319. # but as the default location of the library.
  9320. hardcode_minus_L=yes
  9321. fi
  9322. ;;
  9323. hpux11*)
  9324. if test yes,no = "$GCC,$with_gnu_ld"; then
  9325. case $host_cpu in
  9326. hppa*64*)
  9327. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9328. ;;
  9329. ia64*)
  9330. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9331. ;;
  9332. *)
  9333. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9334. ;;
  9335. esac
  9336. else
  9337. case $host_cpu in
  9338. hppa*64*)
  9339. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9340. ;;
  9341. ia64*)
  9342. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9343. ;;
  9344. *)
  9345. # Older versions of the 11.00 compiler do not understand -b yet
  9346. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9348. printf %s "checking if $CC understands -b... " >&6; }
  9349. if test ${lt_cv_prog_compiler__b+y}
  9350. then :
  9351. printf %s "(cached) " >&6
  9352. else $as_nop
  9353. lt_cv_prog_compiler__b=no
  9354. save_LDFLAGS=$LDFLAGS
  9355. LDFLAGS="$LDFLAGS -b"
  9356. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9357. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9358. # The linker can only warn and ignore the option if not recognized
  9359. # So say no if there are warnings
  9360. if test -s conftest.err; then
  9361. # Append any errors to the config.log.
  9362. cat conftest.err 1>&5
  9363. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9364. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9365. if diff conftest.exp conftest.er2 >/dev/null; then
  9366. lt_cv_prog_compiler__b=yes
  9367. fi
  9368. else
  9369. lt_cv_prog_compiler__b=yes
  9370. fi
  9371. fi
  9372. $RM -r conftest*
  9373. LDFLAGS=$save_LDFLAGS
  9374. fi
  9375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9376. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  9377. if test yes = "$lt_cv_prog_compiler__b"; then
  9378. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9379. else
  9380. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9381. fi
  9382. ;;
  9383. esac
  9384. fi
  9385. if test no = "$with_gnu_ld"; then
  9386. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9387. hardcode_libdir_separator=:
  9388. case $host_cpu in
  9389. hppa*64*|ia64*)
  9390. hardcode_direct=no
  9391. hardcode_shlibpath_var=no
  9392. ;;
  9393. *)
  9394. hardcode_direct=yes
  9395. hardcode_direct_absolute=yes
  9396. export_dynamic_flag_spec='$wl-E'
  9397. # hardcode_minus_L: Not really in the search PATH,
  9398. # but as the default location of the library.
  9399. hardcode_minus_L=yes
  9400. ;;
  9401. esac
  9402. fi
  9403. ;;
  9404. irix5* | irix6* | nonstopux*)
  9405. if test yes = "$GCC"; 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. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9412. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9413. if test ${lt_cv_irix_exported_symbol+y}
  9414. then :
  9415. printf %s "(cached) " >&6
  9416. else $as_nop
  9417. save_LDFLAGS=$LDFLAGS
  9418. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9420. /* end confdefs.h. */
  9421. int foo (void) { return 0; }
  9422. _ACEOF
  9423. if ac_fn_c_try_link "$LINENO"
  9424. then :
  9425. lt_cv_irix_exported_symbol=yes
  9426. else $as_nop
  9427. lt_cv_irix_exported_symbol=no
  9428. fi
  9429. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9430. conftest$ac_exeext conftest.$ac_ext
  9431. LDFLAGS=$save_LDFLAGS
  9432. fi
  9433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9434. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  9435. if test yes = "$lt_cv_irix_exported_symbol"; then
  9436. 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'
  9437. fi
  9438. else
  9439. 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'
  9440. 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'
  9441. fi
  9442. archive_cmds_need_lc='no'
  9443. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9444. hardcode_libdir_separator=:
  9445. inherit_rpath=yes
  9446. link_all_deplibs=yes
  9447. ;;
  9448. linux*)
  9449. case $cc_basename in
  9450. tcc*)
  9451. # Fabrice Bellard et al's Tiny C Compiler
  9452. ld_shlibs=yes
  9453. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9454. ;;
  9455. esac
  9456. ;;
  9457. netbsd*)
  9458. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9459. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9460. else
  9461. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9462. fi
  9463. hardcode_libdir_flag_spec='-R$libdir'
  9464. hardcode_direct=yes
  9465. hardcode_shlibpath_var=no
  9466. ;;
  9467. newsos6)
  9468. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9469. hardcode_direct=yes
  9470. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9471. hardcode_libdir_separator=:
  9472. hardcode_shlibpath_var=no
  9473. ;;
  9474. *nto* | *qnx*)
  9475. ;;
  9476. openbsd* | bitrig*)
  9477. if test -f /usr/libexec/ld.so; then
  9478. hardcode_direct=yes
  9479. hardcode_shlibpath_var=no
  9480. hardcode_direct_absolute=yes
  9481. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9482. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9483. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9484. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9485. export_dynamic_flag_spec='$wl-E'
  9486. else
  9487. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9488. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9489. fi
  9490. else
  9491. ld_shlibs=no
  9492. fi
  9493. ;;
  9494. os2*)
  9495. hardcode_libdir_flag_spec='-L$libdir'
  9496. hardcode_minus_L=yes
  9497. allow_undefined_flag=unsupported
  9498. shrext_cmds=.dll
  9499. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9500. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9501. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9502. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9503. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9504. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9505. emximp -o $lib $output_objdir/$libname.def'
  9506. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9507. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9508. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9509. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9510. prefix_cmds="$SED"~
  9511. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9512. prefix_cmds="$prefix_cmds -e 1d";
  9513. fi~
  9514. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9515. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9516. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9517. emximp -o $lib $output_objdir/$libname.def'
  9518. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9519. enable_shared_with_static_runtimes=yes
  9520. file_list_spec='@'
  9521. ;;
  9522. osf3*)
  9523. if test yes = "$GCC"; then
  9524. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9525. 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'
  9526. else
  9527. allow_undefined_flag=' -expect_unresolved \*'
  9528. 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'
  9529. fi
  9530. archive_cmds_need_lc='no'
  9531. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9532. hardcode_libdir_separator=:
  9533. ;;
  9534. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9535. if test yes = "$GCC"; then
  9536. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9537. 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'
  9538. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9539. else
  9540. allow_undefined_flag=' -expect_unresolved \*'
  9541. 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'
  9542. 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~
  9543. $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'
  9544. # Both c and cxx compiler support -rpath directly
  9545. hardcode_libdir_flag_spec='-rpath $libdir'
  9546. fi
  9547. archive_cmds_need_lc='no'
  9548. hardcode_libdir_separator=:
  9549. ;;
  9550. solaris*)
  9551. no_undefined_flag=' -z defs'
  9552. if test yes = "$GCC"; then
  9553. wlarc='$wl'
  9554. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9555. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9556. $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'
  9557. else
  9558. case `$CC -V 2>&1` in
  9559. *"Compilers 5.0"*)
  9560. wlarc=''
  9561. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9562. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9563. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9564. ;;
  9565. *)
  9566. wlarc='$wl'
  9567. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9568. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9569. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9570. ;;
  9571. esac
  9572. fi
  9573. hardcode_libdir_flag_spec='-R$libdir'
  9574. hardcode_shlibpath_var=no
  9575. case $host_os in
  9576. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9577. *)
  9578. # The compiler driver will combine and reorder linker options,
  9579. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9580. # but is careful enough not to reorder.
  9581. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9582. if test yes = "$GCC"; then
  9583. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9584. else
  9585. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9586. fi
  9587. ;;
  9588. esac
  9589. link_all_deplibs=yes
  9590. ;;
  9591. sunos4*)
  9592. if test sequent = "$host_vendor"; then
  9593. # Use $CC to link under sequent, because it throws in some extra .o
  9594. # files that make .init and .fini sections work.
  9595. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9596. else
  9597. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9598. fi
  9599. hardcode_libdir_flag_spec='-L$libdir'
  9600. hardcode_direct=yes
  9601. hardcode_minus_L=yes
  9602. hardcode_shlibpath_var=no
  9603. ;;
  9604. sysv4)
  9605. case $host_vendor in
  9606. sni)
  9607. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9608. hardcode_direct=yes # is this really true???
  9609. ;;
  9610. siemens)
  9611. ## LD is ld it makes a PLAMLIB
  9612. ## CC just makes a GrossModule.
  9613. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9614. reload_cmds='$CC -r -o $output$reload_objs'
  9615. hardcode_direct=no
  9616. ;;
  9617. motorola)
  9618. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9619. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9620. ;;
  9621. esac
  9622. runpath_var='LD_RUN_PATH'
  9623. hardcode_shlibpath_var=no
  9624. ;;
  9625. sysv4.3*)
  9626. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9627. hardcode_shlibpath_var=no
  9628. export_dynamic_flag_spec='-Bexport'
  9629. ;;
  9630. sysv4*MP*)
  9631. if test -d /usr/nec; then
  9632. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9633. hardcode_shlibpath_var=no
  9634. runpath_var=LD_RUN_PATH
  9635. hardcode_runpath_var=yes
  9636. ld_shlibs=yes
  9637. fi
  9638. ;;
  9639. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9640. no_undefined_flag='$wl-z,text'
  9641. archive_cmds_need_lc=no
  9642. hardcode_shlibpath_var=no
  9643. runpath_var='LD_RUN_PATH'
  9644. if test yes = "$GCC"; then
  9645. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9646. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9647. else
  9648. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9649. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9650. fi
  9651. ;;
  9652. sysv5* | sco3.2v5* | sco5v6*)
  9653. # Note: We CANNOT use -z defs as we might desire, because we do not
  9654. # link with -lc, and that would cause any symbols used from libc to
  9655. # always be unresolved, which means just about no library would
  9656. # ever link correctly. If we're not using GNU ld we use -z text
  9657. # though, which does catch some bad symbols but isn't as heavy-handed
  9658. # as -z defs.
  9659. no_undefined_flag='$wl-z,text'
  9660. allow_undefined_flag='$wl-z,nodefs'
  9661. archive_cmds_need_lc=no
  9662. hardcode_shlibpath_var=no
  9663. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9664. hardcode_libdir_separator=':'
  9665. link_all_deplibs=yes
  9666. export_dynamic_flag_spec='$wl-Bexport'
  9667. runpath_var='LD_RUN_PATH'
  9668. if test yes = "$GCC"; then
  9669. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9670. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9671. else
  9672. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9673. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9674. fi
  9675. ;;
  9676. uts4*)
  9677. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9678. hardcode_libdir_flag_spec='-L$libdir'
  9679. hardcode_shlibpath_var=no
  9680. ;;
  9681. *)
  9682. ld_shlibs=no
  9683. ;;
  9684. esac
  9685. if test sni = "$host_vendor"; then
  9686. case $host in
  9687. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9688. export_dynamic_flag_spec='$wl-Blargedynsym'
  9689. ;;
  9690. esac
  9691. fi
  9692. fi
  9693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9694. printf "%s\n" "$ld_shlibs" >&6; }
  9695. test no = "$ld_shlibs" && can_build_shared=no
  9696. with_gnu_ld=$with_gnu_ld
  9697. #
  9698. # Do we need to explicitly link libc?
  9699. #
  9700. case "x$archive_cmds_need_lc" in
  9701. x|xyes)
  9702. # Assume -lc should be added
  9703. archive_cmds_need_lc=yes
  9704. if test yes,yes = "$GCC,$enable_shared"; then
  9705. case $archive_cmds in
  9706. *'~'*)
  9707. # FIXME: we may have to deal with multi-command sequences.
  9708. ;;
  9709. '$CC '*)
  9710. # Test whether the compiler implicitly links with -lc since on some
  9711. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9712. # to ld, don't add -lc before -lgcc.
  9713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9714. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  9715. if test ${lt_cv_archive_cmds_need_lc+y}
  9716. then :
  9717. printf %s "(cached) " >&6
  9718. else $as_nop
  9719. $RM conftest*
  9720. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9721. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9722. (eval $ac_compile) 2>&5
  9723. ac_status=$?
  9724. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9725. test $ac_status = 0; } 2>conftest.err; then
  9726. soname=conftest
  9727. lib=conftest
  9728. libobjs=conftest.$ac_objext
  9729. deplibs=
  9730. wl=$lt_prog_compiler_wl
  9731. pic_flag=$lt_prog_compiler_pic
  9732. compiler_flags=-v
  9733. linker_flags=-v
  9734. verstring=
  9735. output_objdir=.
  9736. libname=conftest
  9737. lt_save_allow_undefined_flag=$allow_undefined_flag
  9738. allow_undefined_flag=
  9739. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9740. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9741. ac_status=$?
  9742. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9743. test $ac_status = 0; }
  9744. then
  9745. lt_cv_archive_cmds_need_lc=no
  9746. else
  9747. lt_cv_archive_cmds_need_lc=yes
  9748. fi
  9749. allow_undefined_flag=$lt_save_allow_undefined_flag
  9750. else
  9751. cat conftest.err 1>&5
  9752. fi
  9753. $RM conftest*
  9754. fi
  9755. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9756. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  9757. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9758. ;;
  9759. esac
  9760. fi
  9761. ;;
  9762. esac
  9763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9764. printf %s "checking dynamic linker characteristics... " >&6; }
  9765. if test yes = "$GCC"; then
  9766. case $host_os in
  9767. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9768. *) lt_awk_arg='/^libraries:/' ;;
  9769. esac
  9770. case $host_os in
  9771. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9772. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9773. esac
  9774. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9775. case $lt_search_path_spec in
  9776. *\;*)
  9777. # if the path contains ";" then we assume it to be the separator
  9778. # otherwise default to the standard path separator (i.e. ":") - it is
  9779. # assumed that no part of a normal pathname contains ";" but that should
  9780. # okay in the real world where ";" in dirpaths is itself problematic.
  9781. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9782. ;;
  9783. *)
  9784. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9785. ;;
  9786. esac
  9787. # Ok, now we have the path, separated by spaces, we can step through it
  9788. # and add multilib dir if necessary...
  9789. lt_tmp_lt_search_path_spec=
  9790. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9791. # ...but if some path component already ends with the multilib dir we assume
  9792. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9793. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9794. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9795. lt_multi_os_dir=
  9796. ;;
  9797. esac
  9798. for lt_sys_path in $lt_search_path_spec; do
  9799. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9800. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9801. elif test -n "$lt_multi_os_dir"; then
  9802. test -d "$lt_sys_path" && \
  9803. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9804. fi
  9805. done
  9806. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9807. BEGIN {RS = " "; FS = "/|\n";} {
  9808. lt_foo = "";
  9809. lt_count = 0;
  9810. for (lt_i = NF; lt_i > 0; lt_i--) {
  9811. if ($lt_i != "" && $lt_i != ".") {
  9812. if ($lt_i == "..") {
  9813. lt_count++;
  9814. } else {
  9815. if (lt_count == 0) {
  9816. lt_foo = "/" $lt_i lt_foo;
  9817. } else {
  9818. lt_count--;
  9819. }
  9820. }
  9821. }
  9822. }
  9823. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9824. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9825. }'`
  9826. # AWK program above erroneously prepends '/' to C:/dos/paths
  9827. # for these hosts.
  9828. case $host_os in
  9829. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9830. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9831. esac
  9832. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9833. else
  9834. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9835. fi
  9836. library_names_spec=
  9837. libname_spec='lib$name'
  9838. soname_spec=
  9839. shrext_cmds=.so
  9840. postinstall_cmds=
  9841. postuninstall_cmds=
  9842. finish_cmds=
  9843. finish_eval=
  9844. shlibpath_var=
  9845. shlibpath_overrides_runpath=unknown
  9846. version_type=none
  9847. dynamic_linker="$host_os ld.so"
  9848. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9849. need_lib_prefix=unknown
  9850. hardcode_into_libs=no
  9851. # when you set need_version to no, make sure it does not cause -set_version
  9852. # flags to be left without arguments
  9853. need_version=unknown
  9854. case $host_os in
  9855. aix3*)
  9856. version_type=linux # correct to gnu/linux during the next big refactor
  9857. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9858. shlibpath_var=LIBPATH
  9859. # AIX 3 has no versioning support, so we append a major version to the name.
  9860. soname_spec='$libname$release$shared_ext$major'
  9861. ;;
  9862. aix[4-9]*)
  9863. version_type=linux # correct to gnu/linux during the next big refactor
  9864. need_lib_prefix=no
  9865. need_version=no
  9866. hardcode_into_libs=yes
  9867. if test ia64 = "$host_cpu"; then
  9868. # AIX 5 supports IA64
  9869. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9870. shlibpath_var=LD_LIBRARY_PATH
  9871. else
  9872. # With GCC up to 2.95.x, collect2 would create an import file
  9873. # for dependence libraries. The import file would start with
  9874. # the line '#! .'. This would cause the generated library to
  9875. # depend on '.', always an invalid library. This was fixed in
  9876. # development snapshots of GCC prior to 3.0.
  9877. case $host_os in
  9878. aix4 | aix4.[01] | aix4.[01].*)
  9879. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9880. echo ' yes '
  9881. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9882. :
  9883. else
  9884. can_build_shared=no
  9885. fi
  9886. ;;
  9887. esac
  9888. # Using Import Files as archive members, it is possible to support
  9889. # filename-based versioning of shared library archives on AIX. While
  9890. # this would work for both with and without runtime linking, it will
  9891. # prevent static linking of such archives. So we do filename-based
  9892. # shared library versioning with .so extension only, which is used
  9893. # when both runtime linking and shared linking is enabled.
  9894. # Unfortunately, runtime linking may impact performance, so we do
  9895. # not want this to be the default eventually. Also, we use the
  9896. # versioned .so libs for executables only if there is the -brtl
  9897. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9898. # To allow for filename-based versioning support, we need to create
  9899. # libNAME.so.V as an archive file, containing:
  9900. # *) an Import File, referring to the versioned filename of the
  9901. # archive as well as the shared archive member, telling the
  9902. # bitwidth (32 or 64) of that shared object, and providing the
  9903. # list of exported symbols of that shared object, eventually
  9904. # decorated with the 'weak' keyword
  9905. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9906. # it being seen by the linker.
  9907. # At run time we better use the real file rather than another symlink,
  9908. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9909. case $with_aix_soname,$aix_use_runtimelinking in
  9910. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9911. # soname into executable. Probably we can add versioning support to
  9912. # collect2, so additional links can be useful in future.
  9913. aix,yes) # traditional libtool
  9914. dynamic_linker='AIX unversionable lib.so'
  9915. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9916. # instead of lib<name>.a to let people know that these are not
  9917. # typical AIX shared libraries.
  9918. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9919. ;;
  9920. aix,no) # traditional AIX only
  9921. dynamic_linker='AIX lib.a(lib.so.V)'
  9922. # We preserve .a as extension for shared libraries through AIX4.2
  9923. # and later when we are not doing run time linking.
  9924. library_names_spec='$libname$release.a $libname.a'
  9925. soname_spec='$libname$release$shared_ext$major'
  9926. ;;
  9927. svr4,*) # full svr4 only
  9928. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9929. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9930. # We do not specify a path in Import Files, so LIBPATH fires.
  9931. shlibpath_overrides_runpath=yes
  9932. ;;
  9933. *,yes) # both, prefer svr4
  9934. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9935. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9936. # unpreferred sharedlib libNAME.a needs extra handling
  9937. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  9938. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  9939. # We do not specify a path in Import Files, so LIBPATH fires.
  9940. shlibpath_overrides_runpath=yes
  9941. ;;
  9942. *,no) # both, prefer aix
  9943. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9944. library_names_spec='$libname$release.a $libname.a'
  9945. soname_spec='$libname$release$shared_ext$major'
  9946. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9947. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  9948. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  9949. ;;
  9950. esac
  9951. shlibpath_var=LIBPATH
  9952. fi
  9953. ;;
  9954. amigaos*)
  9955. case $host_cpu in
  9956. powerpc)
  9957. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9958. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9959. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9960. ;;
  9961. m68k)
  9962. library_names_spec='$libname.ixlibrary $libname.a'
  9963. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9964. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9965. ;;
  9966. esac
  9967. ;;
  9968. beos*)
  9969. library_names_spec='$libname$shared_ext'
  9970. dynamic_linker="$host_os ld.so"
  9971. shlibpath_var=LIBRARY_PATH
  9972. ;;
  9973. bsdi[45]*)
  9974. version_type=linux # correct to gnu/linux during the next big refactor
  9975. need_version=no
  9976. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9977. soname_spec='$libname$release$shared_ext$major'
  9978. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9979. shlibpath_var=LD_LIBRARY_PATH
  9980. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9981. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9982. # the default ld.so.conf also contains /usr/contrib/lib and
  9983. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9984. # libtool to hard-code these into programs
  9985. ;;
  9986. cygwin* | mingw* | pw32* | cegcc*)
  9987. version_type=windows
  9988. shrext_cmds=.dll
  9989. need_version=no
  9990. need_lib_prefix=no
  9991. case $GCC,$cc_basename in
  9992. yes,*)
  9993. # gcc
  9994. library_names_spec='$libname.dll.a'
  9995. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9996. postinstall_cmds='base_file=`basename \$file`~
  9997. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9998. dldir=$destdir/`dirname \$dlpath`~
  9999. test -d \$dldir || mkdir -p \$dldir~
  10000. $install_prog $dir/$dlname \$dldir/$dlname~
  10001. chmod a+x \$dldir/$dlname~
  10002. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10003. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10004. fi'
  10005. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10006. dlpath=$dir/\$dldll~
  10007. $RM \$dlpath'
  10008. shlibpath_overrides_runpath=yes
  10009. case $host_os in
  10010. cygwin*)
  10011. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10012. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  10013. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  10014. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10015. ;;
  10016. mingw* | cegcc*)
  10017. # MinGW DLLs use traditional 'lib' prefix
  10018. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  10019. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  10020. ;;
  10021. pw32*)
  10022. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10023. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10024. ;;
  10025. esac
  10026. dynamic_linker='Win32 ld.exe'
  10027. ;;
  10028. *,cl*)
  10029. # Native MSVC
  10030. libname_spec='$name'
  10031. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10032. library_names_spec='$libname.dll.lib'
  10033. case $build_os in
  10034. mingw*)
  10035. sys_lib_search_path_spec=
  10036. lt_save_ifs=$IFS
  10037. IFS=';'
  10038. for lt_path in $LIB
  10039. do
  10040. IFS=$lt_save_ifs
  10041. # Let DOS variable expansion print the short 8.3 style file name.
  10042. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10043. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10044. done
  10045. IFS=$lt_save_ifs
  10046. # Convert to MSYS style.
  10047. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10048. ;;
  10049. cygwin*)
  10050. # Convert to unix form, then to dos form, then back to unix form
  10051. # but this time dos style (no spaces!) so that the unix form looks
  10052. # like /cygdrive/c/PROGRA~1:/cygdr...
  10053. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10054. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10055. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10056. ;;
  10057. *)
  10058. sys_lib_search_path_spec=$LIB
  10059. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10060. # It is most probably a Windows format PATH.
  10061. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10062. else
  10063. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10064. fi
  10065. # FIXME: find the short name or the path components, as spaces are
  10066. # common. (e.g. "Program Files" -> "PROGRA~1")
  10067. ;;
  10068. esac
  10069. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10070. postinstall_cmds='base_file=`basename \$file`~
  10071. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10072. dldir=$destdir/`dirname \$dlpath`~
  10073. test -d \$dldir || mkdir -p \$dldir~
  10074. $install_prog $dir/$dlname \$dldir/$dlname'
  10075. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10076. dlpath=$dir/\$dldll~
  10077. $RM \$dlpath'
  10078. shlibpath_overrides_runpath=yes
  10079. dynamic_linker='Win32 link.exe'
  10080. ;;
  10081. *)
  10082. # Assume MSVC wrapper
  10083. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10084. dynamic_linker='Win32 ld.exe'
  10085. ;;
  10086. esac
  10087. # FIXME: first we should search . and the directory the executable is in
  10088. shlibpath_var=PATH
  10089. ;;
  10090. darwin* | rhapsody*)
  10091. dynamic_linker="$host_os dyld"
  10092. version_type=darwin
  10093. need_lib_prefix=no
  10094. need_version=no
  10095. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10096. soname_spec='$libname$release$major$shared_ext'
  10097. shlibpath_overrides_runpath=yes
  10098. shlibpath_var=DYLD_LIBRARY_PATH
  10099. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10100. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10101. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10102. ;;
  10103. dgux*)
  10104. version_type=linux # correct to gnu/linux during the next big refactor
  10105. need_lib_prefix=no
  10106. need_version=no
  10107. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10108. soname_spec='$libname$release$shared_ext$major'
  10109. shlibpath_var=LD_LIBRARY_PATH
  10110. ;;
  10111. freebsd* | dragonfly* | midnightbsd*)
  10112. # DragonFly does not have aout. When/if they implement a new
  10113. # versioning mechanism, adjust this.
  10114. if test -x /usr/bin/objformat; then
  10115. objformat=`/usr/bin/objformat`
  10116. else
  10117. case $host_os in
  10118. freebsd[23].*) objformat=aout ;;
  10119. *) objformat=elf ;;
  10120. esac
  10121. fi
  10122. version_type=freebsd-$objformat
  10123. case $version_type in
  10124. freebsd-elf*)
  10125. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10126. soname_spec='$libname$release$shared_ext$major'
  10127. need_version=no
  10128. need_lib_prefix=no
  10129. ;;
  10130. freebsd-*)
  10131. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10132. need_version=yes
  10133. ;;
  10134. esac
  10135. shlibpath_var=LD_LIBRARY_PATH
  10136. case $host_os in
  10137. freebsd2.*)
  10138. shlibpath_overrides_runpath=yes
  10139. ;;
  10140. freebsd3.[01]* | freebsdelf3.[01]*)
  10141. shlibpath_overrides_runpath=yes
  10142. hardcode_into_libs=yes
  10143. ;;
  10144. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10145. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10146. shlibpath_overrides_runpath=no
  10147. hardcode_into_libs=yes
  10148. ;;
  10149. *) # from 4.6 on, and DragonFly
  10150. shlibpath_overrides_runpath=yes
  10151. hardcode_into_libs=yes
  10152. ;;
  10153. esac
  10154. ;;
  10155. haiku*)
  10156. version_type=linux # correct to gnu/linux during the next big refactor
  10157. need_lib_prefix=no
  10158. need_version=no
  10159. dynamic_linker="$host_os runtime_loader"
  10160. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10161. soname_spec='$libname$release$shared_ext$major'
  10162. shlibpath_var=LIBRARY_PATH
  10163. shlibpath_overrides_runpath=no
  10164. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10165. hardcode_into_libs=yes
  10166. ;;
  10167. hpux9* | hpux10* | hpux11*)
  10168. # Give a soname corresponding to the major version so that dld.sl refuses to
  10169. # link against other versions.
  10170. version_type=sunos
  10171. need_lib_prefix=no
  10172. need_version=no
  10173. case $host_cpu in
  10174. ia64*)
  10175. shrext_cmds='.so'
  10176. hardcode_into_libs=yes
  10177. dynamic_linker="$host_os dld.so"
  10178. shlibpath_var=LD_LIBRARY_PATH
  10179. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10180. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10181. soname_spec='$libname$release$shared_ext$major'
  10182. if test 32 = "$HPUX_IA64_MODE"; then
  10183. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10184. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10185. else
  10186. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10187. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10188. fi
  10189. ;;
  10190. hppa*64*)
  10191. shrext_cmds='.sl'
  10192. hardcode_into_libs=yes
  10193. dynamic_linker="$host_os dld.sl"
  10194. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10195. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10196. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10197. soname_spec='$libname$release$shared_ext$major'
  10198. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10199. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10200. ;;
  10201. *)
  10202. shrext_cmds='.sl'
  10203. dynamic_linker="$host_os dld.sl"
  10204. shlibpath_var=SHLIB_PATH
  10205. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10206. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10207. soname_spec='$libname$release$shared_ext$major'
  10208. ;;
  10209. esac
  10210. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10211. postinstall_cmds='chmod 555 $lib'
  10212. # or fails outright, so override atomically:
  10213. install_override_mode=555
  10214. ;;
  10215. interix[3-9]*)
  10216. version_type=linux # correct to gnu/linux during the next big refactor
  10217. need_lib_prefix=no
  10218. need_version=no
  10219. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10220. soname_spec='$libname$release$shared_ext$major'
  10221. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10222. shlibpath_var=LD_LIBRARY_PATH
  10223. shlibpath_overrides_runpath=no
  10224. hardcode_into_libs=yes
  10225. ;;
  10226. irix5* | irix6* | nonstopux*)
  10227. case $host_os in
  10228. nonstopux*) version_type=nonstopux ;;
  10229. *)
  10230. if test yes = "$lt_cv_prog_gnu_ld"; then
  10231. version_type=linux # correct to gnu/linux during the next big refactor
  10232. else
  10233. version_type=irix
  10234. fi ;;
  10235. esac
  10236. need_lib_prefix=no
  10237. need_version=no
  10238. soname_spec='$libname$release$shared_ext$major'
  10239. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10240. case $host_os in
  10241. irix5* | nonstopux*)
  10242. libsuff= shlibsuff=
  10243. ;;
  10244. *)
  10245. case $LD in # libtool.m4 will add one of these switches to LD
  10246. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10247. libsuff= shlibsuff= libmagic=32-bit;;
  10248. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10249. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10250. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10251. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10252. *) libsuff= shlibsuff= libmagic=never-match;;
  10253. esac
  10254. ;;
  10255. esac
  10256. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10257. shlibpath_overrides_runpath=no
  10258. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10259. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10260. hardcode_into_libs=yes
  10261. ;;
  10262. # No shared lib support for Linux oldld, aout, or coff.
  10263. linux*oldld* | linux*aout* | linux*coff*)
  10264. dynamic_linker=no
  10265. ;;
  10266. linux*android*)
  10267. version_type=none # Android doesn't support versioned libraries.
  10268. need_lib_prefix=no
  10269. need_version=no
  10270. library_names_spec='$libname$release$shared_ext'
  10271. soname_spec='$libname$release$shared_ext'
  10272. finish_cmds=
  10273. shlibpath_var=LD_LIBRARY_PATH
  10274. shlibpath_overrides_runpath=yes
  10275. # This implies no fast_install, which is unacceptable.
  10276. # Some rework will be needed to allow for fast_install
  10277. # before this can be enabled.
  10278. hardcode_into_libs=yes
  10279. dynamic_linker='Android linker'
  10280. # Don't embed -rpath directories since the linker doesn't support them.
  10281. hardcode_libdir_flag_spec='-L$libdir'
  10282. ;;
  10283. # This must be glibc/ELF.
  10284. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10285. version_type=linux # correct to gnu/linux during the next big refactor
  10286. need_lib_prefix=no
  10287. need_version=no
  10288. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10289. soname_spec='$libname$release$shared_ext$major'
  10290. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10291. shlibpath_var=LD_LIBRARY_PATH
  10292. shlibpath_overrides_runpath=no
  10293. # Some binutils ld are patched to set DT_RUNPATH
  10294. if test ${lt_cv_shlibpath_overrides_runpath+y}
  10295. then :
  10296. printf %s "(cached) " >&6
  10297. else $as_nop
  10298. lt_cv_shlibpath_overrides_runpath=no
  10299. save_LDFLAGS=$LDFLAGS
  10300. save_libdir=$libdir
  10301. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10302. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10304. /* end confdefs.h. */
  10305. int
  10306. main (void)
  10307. {
  10308. ;
  10309. return 0;
  10310. }
  10311. _ACEOF
  10312. if ac_fn_c_try_link "$LINENO"
  10313. then :
  10314. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  10315. then :
  10316. lt_cv_shlibpath_overrides_runpath=yes
  10317. fi
  10318. fi
  10319. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10320. conftest$ac_exeext conftest.$ac_ext
  10321. LDFLAGS=$save_LDFLAGS
  10322. libdir=$save_libdir
  10323. fi
  10324. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10325. # This implies no fast_install, which is unacceptable.
  10326. # Some rework will be needed to allow for fast_install
  10327. # before this can be enabled.
  10328. hardcode_into_libs=yes
  10329. # Add ABI-specific directories to the system library path.
  10330. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10331. # Ideally, we could use ldconfig to report *all* directores which are
  10332. # searched for libraries, however this is still not possible. Aside from not
  10333. # being certain /sbin/ldconfig is available, command
  10334. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10335. # even though it is searched at run-time. Try to do the best guess by
  10336. # appending ld.so.conf contents (and includes) to the search path.
  10337. if test -f /etc/ld.so.conf; then
  10338. 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' ' '`
  10339. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10340. fi
  10341. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10342. # powerpc, because MkLinux only supported shared libraries with the
  10343. # GNU dynamic linker. Since this was broken with cross compilers,
  10344. # most powerpc-linux boxes support dynamic linking these days and
  10345. # people can always --disable-shared, the test was removed, and we
  10346. # assume the GNU/Linux dynamic linker is in use.
  10347. dynamic_linker='GNU/Linux ld.so'
  10348. ;;
  10349. netbsd*)
  10350. version_type=sunos
  10351. need_lib_prefix=no
  10352. need_version=no
  10353. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10354. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10355. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10356. dynamic_linker='NetBSD (a.out) ld.so'
  10357. else
  10358. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10359. soname_spec='$libname$release$shared_ext$major'
  10360. dynamic_linker='NetBSD ld.elf_so'
  10361. fi
  10362. shlibpath_var=LD_LIBRARY_PATH
  10363. shlibpath_overrides_runpath=yes
  10364. hardcode_into_libs=yes
  10365. ;;
  10366. newsos6)
  10367. version_type=linux # correct to gnu/linux during the next big refactor
  10368. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10369. shlibpath_var=LD_LIBRARY_PATH
  10370. shlibpath_overrides_runpath=yes
  10371. ;;
  10372. *nto* | *qnx*)
  10373. version_type=qnx
  10374. need_lib_prefix=no
  10375. need_version=no
  10376. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10377. soname_spec='$libname$release$shared_ext$major'
  10378. shlibpath_var=LD_LIBRARY_PATH
  10379. shlibpath_overrides_runpath=no
  10380. hardcode_into_libs=yes
  10381. dynamic_linker='ldqnx.so'
  10382. ;;
  10383. openbsd* | bitrig*)
  10384. version_type=sunos
  10385. sys_lib_dlsearch_path_spec=/usr/lib
  10386. need_lib_prefix=no
  10387. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10388. need_version=no
  10389. else
  10390. need_version=yes
  10391. fi
  10392. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10393. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10394. shlibpath_var=LD_LIBRARY_PATH
  10395. shlibpath_overrides_runpath=yes
  10396. ;;
  10397. os2*)
  10398. libname_spec='$name'
  10399. shrext_cmds=.dll
  10400. need_lib_prefix=no
  10401. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10402. # SDL customization: removed versioning support.
  10403. # version_type=windows
  10404. # need_version=no
  10405. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10406. # v=$($ECHO $release$versuffix | tr -d .-);
  10407. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10408. # $ECHO $n$v`$shared_ext'
  10409. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  10410. library_names_spec='${libname}_dll.$libext'
  10411. dynamic_linker='OS/2 ld.exe'
  10412. shlibpath_var=BEGINLIBPATH
  10413. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10414. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10415. postinstall_cmds='base_file=`basename \$file`~
  10416. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10417. dldir=$destdir/`dirname \$dlpath`~
  10418. test -d \$dldir || mkdir -p \$dldir~
  10419. $install_prog $dir/$dlname \$dldir/$dlname~
  10420. chmod a+x \$dldir/$dlname~
  10421. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10422. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10423. fi'
  10424. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10425. dlpath=$dir/\$dldll~
  10426. $RM \$dlpath'
  10427. ;;
  10428. osf3* | osf4* | osf5*)
  10429. version_type=osf
  10430. need_lib_prefix=no
  10431. need_version=no
  10432. soname_spec='$libname$release$shared_ext$major'
  10433. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10434. shlibpath_var=LD_LIBRARY_PATH
  10435. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10436. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10437. ;;
  10438. rdos*)
  10439. dynamic_linker=no
  10440. ;;
  10441. solaris*)
  10442. version_type=linux # correct to gnu/linux during the next big refactor
  10443. need_lib_prefix=no
  10444. need_version=no
  10445. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10446. soname_spec='$libname$release$shared_ext$major'
  10447. shlibpath_var=LD_LIBRARY_PATH
  10448. shlibpath_overrides_runpath=yes
  10449. hardcode_into_libs=yes
  10450. # ldd complains unless libraries are executable
  10451. postinstall_cmds='chmod +x $lib'
  10452. ;;
  10453. sunos4*)
  10454. version_type=sunos
  10455. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10456. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10457. shlibpath_var=LD_LIBRARY_PATH
  10458. shlibpath_overrides_runpath=yes
  10459. if test yes = "$with_gnu_ld"; then
  10460. need_lib_prefix=no
  10461. fi
  10462. need_version=yes
  10463. ;;
  10464. sysv4 | sysv4.3*)
  10465. version_type=linux # correct to gnu/linux during the next big refactor
  10466. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10467. soname_spec='$libname$release$shared_ext$major'
  10468. shlibpath_var=LD_LIBRARY_PATH
  10469. case $host_vendor in
  10470. sni)
  10471. shlibpath_overrides_runpath=no
  10472. need_lib_prefix=no
  10473. runpath_var=LD_RUN_PATH
  10474. ;;
  10475. siemens)
  10476. need_lib_prefix=no
  10477. ;;
  10478. motorola)
  10479. need_lib_prefix=no
  10480. need_version=no
  10481. shlibpath_overrides_runpath=no
  10482. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10483. ;;
  10484. esac
  10485. ;;
  10486. sysv4*MP*)
  10487. if test -d /usr/nec; then
  10488. version_type=linux # correct to gnu/linux during the next big refactor
  10489. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10490. soname_spec='$libname$shared_ext.$major'
  10491. shlibpath_var=LD_LIBRARY_PATH
  10492. fi
  10493. ;;
  10494. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10495. version_type=sco
  10496. need_lib_prefix=no
  10497. need_version=no
  10498. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10499. soname_spec='$libname$release$shared_ext$major'
  10500. shlibpath_var=LD_LIBRARY_PATH
  10501. shlibpath_overrides_runpath=yes
  10502. hardcode_into_libs=yes
  10503. if test yes = "$with_gnu_ld"; then
  10504. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10505. else
  10506. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10507. case $host_os in
  10508. sco3.2v5*)
  10509. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10510. ;;
  10511. esac
  10512. fi
  10513. sys_lib_dlsearch_path_spec='/usr/lib'
  10514. ;;
  10515. tpf*)
  10516. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10517. version_type=linux # correct to gnu/linux during the next big refactor
  10518. need_lib_prefix=no
  10519. need_version=no
  10520. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10521. shlibpath_var=LD_LIBRARY_PATH
  10522. shlibpath_overrides_runpath=no
  10523. hardcode_into_libs=yes
  10524. ;;
  10525. uts4*)
  10526. version_type=linux # correct to gnu/linux during the next big refactor
  10527. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10528. soname_spec='$libname$release$shared_ext$major'
  10529. shlibpath_var=LD_LIBRARY_PATH
  10530. ;;
  10531. *)
  10532. dynamic_linker=no
  10533. ;;
  10534. esac
  10535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10536. printf "%s\n" "$dynamic_linker" >&6; }
  10537. test no = "$dynamic_linker" && can_build_shared=no
  10538. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10539. if test yes = "$GCC"; then
  10540. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10541. fi
  10542. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10543. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10544. fi
  10545. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10546. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10547. fi
  10548. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10549. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10550. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10551. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10552. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10553. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10555. printf %s "checking how to hardcode library paths into programs... " >&6; }
  10556. hardcode_action=
  10557. if test -n "$hardcode_libdir_flag_spec" ||
  10558. test -n "$runpath_var" ||
  10559. test yes = "$hardcode_automatic"; then
  10560. # We can hardcode non-existent directories.
  10561. if test no != "$hardcode_direct" &&
  10562. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10563. # have to relink, otherwise we might link with an installed library
  10564. # when we should be linking with a yet-to-be-installed one
  10565. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10566. test no != "$hardcode_minus_L"; then
  10567. # Linking always hardcodes the temporary library directory.
  10568. hardcode_action=relink
  10569. else
  10570. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10571. hardcode_action=immediate
  10572. fi
  10573. else
  10574. # We cannot hardcode anything, or else we can only hardcode existing
  10575. # directories.
  10576. hardcode_action=unsupported
  10577. fi
  10578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10579. printf "%s\n" "$hardcode_action" >&6; }
  10580. if test relink = "$hardcode_action" ||
  10581. test yes = "$inherit_rpath"; then
  10582. # Fast installation is not supported
  10583. enable_fast_install=no
  10584. elif test yes = "$shlibpath_overrides_runpath" ||
  10585. test no = "$enable_shared"; then
  10586. # Fast installation is not necessary
  10587. enable_fast_install=needless
  10588. fi
  10589. if test yes != "$enable_dlopen"; then
  10590. enable_dlopen=unknown
  10591. enable_dlopen_self=unknown
  10592. enable_dlopen_self_static=unknown
  10593. else
  10594. lt_cv_dlopen=no
  10595. lt_cv_dlopen_libs=
  10596. case $host_os in
  10597. beos*)
  10598. lt_cv_dlopen=load_add_on
  10599. lt_cv_dlopen_libs=
  10600. lt_cv_dlopen_self=yes
  10601. ;;
  10602. mingw* | pw32* | cegcc*)
  10603. lt_cv_dlopen=LoadLibrary
  10604. lt_cv_dlopen_libs=
  10605. ;;
  10606. cygwin*)
  10607. lt_cv_dlopen=dlopen
  10608. lt_cv_dlopen_libs=
  10609. ;;
  10610. darwin*)
  10611. # if libdl is installed we need to link against it
  10612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10613. printf %s "checking for dlopen in -ldl... " >&6; }
  10614. if test ${ac_cv_lib_dl_dlopen+y}
  10615. then :
  10616. printf %s "(cached) " >&6
  10617. else $as_nop
  10618. ac_check_lib_save_LIBS=$LIBS
  10619. LIBS="-ldl $LIBS"
  10620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10621. /* end confdefs.h. */
  10622. /* Override any GCC internal prototype to avoid an error.
  10623. Use char because int might match the return type of a GCC
  10624. builtin and then its argument prototype would still apply. */
  10625. char dlopen ();
  10626. int
  10627. main (void)
  10628. {
  10629. return dlopen ();
  10630. ;
  10631. return 0;
  10632. }
  10633. _ACEOF
  10634. if ac_fn_c_try_link "$LINENO"
  10635. then :
  10636. ac_cv_lib_dl_dlopen=yes
  10637. else $as_nop
  10638. ac_cv_lib_dl_dlopen=no
  10639. fi
  10640. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10641. conftest$ac_exeext conftest.$ac_ext
  10642. LIBS=$ac_check_lib_save_LIBS
  10643. fi
  10644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10645. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10646. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10647. then :
  10648. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10649. else $as_nop
  10650. lt_cv_dlopen=dyld
  10651. lt_cv_dlopen_libs=
  10652. lt_cv_dlopen_self=yes
  10653. fi
  10654. ;;
  10655. tpf*)
  10656. # Don't try to run any link tests for TPF. We know it's impossible
  10657. # because TPF is a cross-compiler, and we know how we open DSOs.
  10658. lt_cv_dlopen=dlopen
  10659. lt_cv_dlopen_libs=
  10660. lt_cv_dlopen_self=no
  10661. ;;
  10662. *)
  10663. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10664. if test "x$ac_cv_func_shl_load" = xyes
  10665. then :
  10666. lt_cv_dlopen=shl_load
  10667. else $as_nop
  10668. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10669. printf %s "checking for shl_load in -ldld... " >&6; }
  10670. if test ${ac_cv_lib_dld_shl_load+y}
  10671. then :
  10672. printf %s "(cached) " >&6
  10673. else $as_nop
  10674. ac_check_lib_save_LIBS=$LIBS
  10675. LIBS="-ldld $LIBS"
  10676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10677. /* end confdefs.h. */
  10678. /* Override any GCC internal prototype to avoid an error.
  10679. Use char because int might match the return type of a GCC
  10680. builtin and then its argument prototype would still apply. */
  10681. char shl_load ();
  10682. int
  10683. main (void)
  10684. {
  10685. return shl_load ();
  10686. ;
  10687. return 0;
  10688. }
  10689. _ACEOF
  10690. if ac_fn_c_try_link "$LINENO"
  10691. then :
  10692. ac_cv_lib_dld_shl_load=yes
  10693. else $as_nop
  10694. ac_cv_lib_dld_shl_load=no
  10695. fi
  10696. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10697. conftest$ac_exeext conftest.$ac_ext
  10698. LIBS=$ac_check_lib_save_LIBS
  10699. fi
  10700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10701. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  10702. if test "x$ac_cv_lib_dld_shl_load" = xyes
  10703. then :
  10704. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10705. else $as_nop
  10706. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10707. if test "x$ac_cv_func_dlopen" = xyes
  10708. then :
  10709. lt_cv_dlopen=dlopen
  10710. else $as_nop
  10711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10712. printf %s "checking for dlopen in -ldl... " >&6; }
  10713. if test ${ac_cv_lib_dl_dlopen+y}
  10714. then :
  10715. printf %s "(cached) " >&6
  10716. else $as_nop
  10717. ac_check_lib_save_LIBS=$LIBS
  10718. LIBS="-ldl $LIBS"
  10719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10720. /* end confdefs.h. */
  10721. /* Override any GCC internal prototype to avoid an error.
  10722. Use char because int might match the return type of a GCC
  10723. builtin and then its argument prototype would still apply. */
  10724. char dlopen ();
  10725. int
  10726. main (void)
  10727. {
  10728. return dlopen ();
  10729. ;
  10730. return 0;
  10731. }
  10732. _ACEOF
  10733. if ac_fn_c_try_link "$LINENO"
  10734. then :
  10735. ac_cv_lib_dl_dlopen=yes
  10736. else $as_nop
  10737. ac_cv_lib_dl_dlopen=no
  10738. fi
  10739. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10740. conftest$ac_exeext conftest.$ac_ext
  10741. LIBS=$ac_check_lib_save_LIBS
  10742. fi
  10743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10744. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10745. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10746. then :
  10747. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10748. else $as_nop
  10749. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10750. printf %s "checking for dlopen in -lsvld... " >&6; }
  10751. if test ${ac_cv_lib_svld_dlopen+y}
  10752. then :
  10753. printf %s "(cached) " >&6
  10754. else $as_nop
  10755. ac_check_lib_save_LIBS=$LIBS
  10756. LIBS="-lsvld $LIBS"
  10757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10758. /* end confdefs.h. */
  10759. /* Override any GCC internal prototype to avoid an error.
  10760. Use char because int might match the return type of a GCC
  10761. builtin and then its argument prototype would still apply. */
  10762. char dlopen ();
  10763. int
  10764. main (void)
  10765. {
  10766. return dlopen ();
  10767. ;
  10768. return 0;
  10769. }
  10770. _ACEOF
  10771. if ac_fn_c_try_link "$LINENO"
  10772. then :
  10773. ac_cv_lib_svld_dlopen=yes
  10774. else $as_nop
  10775. ac_cv_lib_svld_dlopen=no
  10776. fi
  10777. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10778. conftest$ac_exeext conftest.$ac_ext
  10779. LIBS=$ac_check_lib_save_LIBS
  10780. fi
  10781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10782. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  10783. if test "x$ac_cv_lib_svld_dlopen" = xyes
  10784. then :
  10785. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10786. else $as_nop
  10787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10788. printf %s "checking for dld_link in -ldld... " >&6; }
  10789. if test ${ac_cv_lib_dld_dld_link+y}
  10790. then :
  10791. printf %s "(cached) " >&6
  10792. else $as_nop
  10793. ac_check_lib_save_LIBS=$LIBS
  10794. LIBS="-ldld $LIBS"
  10795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10796. /* end confdefs.h. */
  10797. /* Override any GCC internal prototype to avoid an error.
  10798. Use char because int might match the return type of a GCC
  10799. builtin and then its argument prototype would still apply. */
  10800. char dld_link ();
  10801. int
  10802. main (void)
  10803. {
  10804. return dld_link ();
  10805. ;
  10806. return 0;
  10807. }
  10808. _ACEOF
  10809. if ac_fn_c_try_link "$LINENO"
  10810. then :
  10811. ac_cv_lib_dld_dld_link=yes
  10812. else $as_nop
  10813. ac_cv_lib_dld_dld_link=no
  10814. fi
  10815. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10816. conftest$ac_exeext conftest.$ac_ext
  10817. LIBS=$ac_check_lib_save_LIBS
  10818. fi
  10819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10820. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  10821. if test "x$ac_cv_lib_dld_dld_link" = xyes
  10822. then :
  10823. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10824. fi
  10825. fi
  10826. fi
  10827. fi
  10828. fi
  10829. fi
  10830. ;;
  10831. esac
  10832. if test no = "$lt_cv_dlopen"; then
  10833. enable_dlopen=no
  10834. else
  10835. enable_dlopen=yes
  10836. fi
  10837. case $lt_cv_dlopen in
  10838. dlopen)
  10839. save_CPPFLAGS=$CPPFLAGS
  10840. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10841. save_LDFLAGS=$LDFLAGS
  10842. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10843. save_LIBS=$LIBS
  10844. LIBS="$lt_cv_dlopen_libs $LIBS"
  10845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10846. printf %s "checking whether a program can dlopen itself... " >&6; }
  10847. if test ${lt_cv_dlopen_self+y}
  10848. then :
  10849. printf %s "(cached) " >&6
  10850. else $as_nop
  10851. if test yes = "$cross_compiling"; then :
  10852. lt_cv_dlopen_self=cross
  10853. else
  10854. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10855. lt_status=$lt_dlunknown
  10856. cat > conftest.$ac_ext <<_LT_EOF
  10857. #line $LINENO "configure"
  10858. #include "confdefs.h"
  10859. #if HAVE_DLFCN_H
  10860. #include <dlfcn.h>
  10861. #endif
  10862. #include <stdio.h>
  10863. #ifdef RTLD_GLOBAL
  10864. # define LT_DLGLOBAL RTLD_GLOBAL
  10865. #else
  10866. # ifdef DL_GLOBAL
  10867. # define LT_DLGLOBAL DL_GLOBAL
  10868. # else
  10869. # define LT_DLGLOBAL 0
  10870. # endif
  10871. #endif
  10872. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10873. find out it does not work in some platform. */
  10874. #ifndef LT_DLLAZY_OR_NOW
  10875. # ifdef RTLD_LAZY
  10876. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10877. # else
  10878. # ifdef DL_LAZY
  10879. # define LT_DLLAZY_OR_NOW DL_LAZY
  10880. # else
  10881. # ifdef RTLD_NOW
  10882. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10883. # else
  10884. # ifdef DL_NOW
  10885. # define LT_DLLAZY_OR_NOW DL_NOW
  10886. # else
  10887. # define LT_DLLAZY_OR_NOW 0
  10888. # endif
  10889. # endif
  10890. # endif
  10891. # endif
  10892. #endif
  10893. /* When -fvisibility=hidden is used, assume the code has been annotated
  10894. correspondingly for the symbols needed. */
  10895. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10896. int fnord () __attribute__((visibility("default")));
  10897. #endif
  10898. int fnord () { return 42; }
  10899. int main ()
  10900. {
  10901. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10902. int status = $lt_dlunknown;
  10903. if (self)
  10904. {
  10905. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10906. else
  10907. {
  10908. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10909. else puts (dlerror ());
  10910. }
  10911. /* dlclose (self); */
  10912. }
  10913. else
  10914. puts (dlerror ());
  10915. return status;
  10916. }
  10917. _LT_EOF
  10918. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10919. (eval $ac_link) 2>&5
  10920. ac_status=$?
  10921. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10922. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10923. (./conftest; exit; ) >&5 2>/dev/null
  10924. lt_status=$?
  10925. case x$lt_status in
  10926. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10927. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10928. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10929. esac
  10930. else :
  10931. # compilation failed
  10932. lt_cv_dlopen_self=no
  10933. fi
  10934. fi
  10935. rm -fr conftest*
  10936. fi
  10937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10938. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  10939. if test yes = "$lt_cv_dlopen_self"; then
  10940. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10941. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10942. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  10943. if test ${lt_cv_dlopen_self_static+y}
  10944. then :
  10945. printf %s "(cached) " >&6
  10946. else $as_nop
  10947. if test yes = "$cross_compiling"; then :
  10948. lt_cv_dlopen_self_static=cross
  10949. else
  10950. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10951. lt_status=$lt_dlunknown
  10952. cat > conftest.$ac_ext <<_LT_EOF
  10953. #line $LINENO "configure"
  10954. #include "confdefs.h"
  10955. #if HAVE_DLFCN_H
  10956. #include <dlfcn.h>
  10957. #endif
  10958. #include <stdio.h>
  10959. #ifdef RTLD_GLOBAL
  10960. # define LT_DLGLOBAL RTLD_GLOBAL
  10961. #else
  10962. # ifdef DL_GLOBAL
  10963. # define LT_DLGLOBAL DL_GLOBAL
  10964. # else
  10965. # define LT_DLGLOBAL 0
  10966. # endif
  10967. #endif
  10968. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10969. find out it does not work in some platform. */
  10970. #ifndef LT_DLLAZY_OR_NOW
  10971. # ifdef RTLD_LAZY
  10972. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10973. # else
  10974. # ifdef DL_LAZY
  10975. # define LT_DLLAZY_OR_NOW DL_LAZY
  10976. # else
  10977. # ifdef RTLD_NOW
  10978. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10979. # else
  10980. # ifdef DL_NOW
  10981. # define LT_DLLAZY_OR_NOW DL_NOW
  10982. # else
  10983. # define LT_DLLAZY_OR_NOW 0
  10984. # endif
  10985. # endif
  10986. # endif
  10987. # endif
  10988. #endif
  10989. /* When -fvisibility=hidden is used, assume the code has been annotated
  10990. correspondingly for the symbols needed. */
  10991. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10992. int fnord () __attribute__((visibility("default")));
  10993. #endif
  10994. int fnord () { return 42; }
  10995. int main ()
  10996. {
  10997. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10998. int status = $lt_dlunknown;
  10999. if (self)
  11000. {
  11001. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11002. else
  11003. {
  11004. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11005. else puts (dlerror ());
  11006. }
  11007. /* dlclose (self); */
  11008. }
  11009. else
  11010. puts (dlerror ());
  11011. return status;
  11012. }
  11013. _LT_EOF
  11014. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11015. (eval $ac_link) 2>&5
  11016. ac_status=$?
  11017. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11018. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11019. (./conftest; exit; ) >&5 2>/dev/null
  11020. lt_status=$?
  11021. case x$lt_status in
  11022. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11023. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11024. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11025. esac
  11026. else :
  11027. # compilation failed
  11028. lt_cv_dlopen_self_static=no
  11029. fi
  11030. fi
  11031. rm -fr conftest*
  11032. fi
  11033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11034. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  11035. fi
  11036. CPPFLAGS=$save_CPPFLAGS
  11037. LDFLAGS=$save_LDFLAGS
  11038. LIBS=$save_LIBS
  11039. ;;
  11040. esac
  11041. case $lt_cv_dlopen_self in
  11042. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11043. *) enable_dlopen_self=unknown ;;
  11044. esac
  11045. case $lt_cv_dlopen_self_static in
  11046. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11047. *) enable_dlopen_self_static=unknown ;;
  11048. esac
  11049. fi
  11050. striplib=
  11051. old_striplib=
  11052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11053. printf %s "checking whether stripping libraries is possible... " >&6; }
  11054. if test -z "$STRIP"; then
  11055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11056. printf "%s\n" "no" >&6; }
  11057. else
  11058. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11059. old_striplib="$STRIP --strip-debug"
  11060. striplib="$STRIP --strip-unneeded"
  11061. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11062. printf "%s\n" "yes" >&6; }
  11063. else
  11064. case $host_os in
  11065. darwin*)
  11066. # FIXME - insert some real tests, host_os isn't really good enough
  11067. striplib="$STRIP -x"
  11068. old_striplib="$STRIP -S"
  11069. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11070. printf "%s\n" "yes" >&6; }
  11071. ;;
  11072. freebsd*)
  11073. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  11074. old_striplib="$STRIP --strip-debug"
  11075. striplib="$STRIP --strip-unneeded"
  11076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11077. printf "%s\n" "yes" >&6; }
  11078. else
  11079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11080. printf "%s\n" "no" >&6; }
  11081. fi
  11082. ;;
  11083. *)
  11084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11085. printf "%s\n" "no" >&6; }
  11086. ;;
  11087. esac
  11088. fi
  11089. fi
  11090. # Report what library types will actually be built
  11091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11092. printf %s "checking if libtool supports shared libraries... " >&6; }
  11093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11094. printf "%s\n" "$can_build_shared" >&6; }
  11095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11096. printf %s "checking whether to build shared libraries... " >&6; }
  11097. test no = "$can_build_shared" && enable_shared=no
  11098. # On AIX, shared libraries and static libraries use the same namespace, and
  11099. # are all built from PIC.
  11100. case $host_os in
  11101. aix3*)
  11102. test yes = "$enable_shared" && enable_static=no
  11103. if test -n "$RANLIB"; then
  11104. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11105. postinstall_cmds='$RANLIB $lib'
  11106. fi
  11107. ;;
  11108. aix[4-9]*)
  11109. if test ia64 != "$host_cpu"; then
  11110. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11111. yes,aix,yes) ;; # shared object as lib.so file only
  11112. yes,svr4,*) ;; # shared object as lib.so archive member only
  11113. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11114. esac
  11115. fi
  11116. ;;
  11117. esac
  11118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11119. printf "%s\n" "$enable_shared" >&6; }
  11120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11121. printf %s "checking whether to build static libraries... " >&6; }
  11122. # Make sure either enable_shared or enable_static is yes.
  11123. test yes = "$enable_shared" || enable_static=yes
  11124. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11125. printf "%s\n" "$enable_static" >&6; }
  11126. fi
  11127. ac_ext=c
  11128. ac_cpp='$CPP $CPPFLAGS'
  11129. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11130. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11131. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11132. CC=$lt_save_CC
  11133. ac_config_commands="$ac_config_commands libtool"
  11134. # Only expand once:
  11135. if test -n "$ac_tool_prefix"; then
  11136. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11137. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11139. printf %s "checking for $ac_word... " >&6; }
  11140. if test ${ac_cv_prog_RC+y}
  11141. then :
  11142. printf %s "(cached) " >&6
  11143. else $as_nop
  11144. if test -n "$RC"; then
  11145. ac_cv_prog_RC="$RC" # Let the user override the test.
  11146. else
  11147. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11148. for as_dir in $PATH
  11149. do
  11150. IFS=$as_save_IFS
  11151. case $as_dir in #(((
  11152. '') as_dir=./ ;;
  11153. */) ;;
  11154. *) as_dir=$as_dir/ ;;
  11155. esac
  11156. for ac_exec_ext in '' $ac_executable_extensions; do
  11157. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11158. ac_cv_prog_RC="${ac_tool_prefix}windres"
  11159. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11160. break 2
  11161. fi
  11162. done
  11163. done
  11164. IFS=$as_save_IFS
  11165. fi
  11166. fi
  11167. RC=$ac_cv_prog_RC
  11168. if test -n "$RC"; then
  11169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  11170. printf "%s\n" "$RC" >&6; }
  11171. else
  11172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11173. printf "%s\n" "no" >&6; }
  11174. fi
  11175. fi
  11176. if test -z "$ac_cv_prog_RC"; then
  11177. ac_ct_RC=$RC
  11178. # Extract the first word of "windres", so it can be a program name with args.
  11179. set dummy windres; ac_word=$2
  11180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11181. printf %s "checking for $ac_word... " >&6; }
  11182. if test ${ac_cv_prog_ac_ct_RC+y}
  11183. then :
  11184. printf %s "(cached) " >&6
  11185. else $as_nop
  11186. if test -n "$ac_ct_RC"; then
  11187. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  11188. else
  11189. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11190. for as_dir in $PATH
  11191. do
  11192. IFS=$as_save_IFS
  11193. case $as_dir in #(((
  11194. '') as_dir=./ ;;
  11195. */) ;;
  11196. *) as_dir=$as_dir/ ;;
  11197. esac
  11198. for ac_exec_ext in '' $ac_executable_extensions; do
  11199. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11200. ac_cv_prog_ac_ct_RC="windres"
  11201. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11202. break 2
  11203. fi
  11204. done
  11205. done
  11206. IFS=$as_save_IFS
  11207. fi
  11208. fi
  11209. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  11210. if test -n "$ac_ct_RC"; then
  11211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  11212. printf "%s\n" "$ac_ct_RC" >&6; }
  11213. else
  11214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11215. printf "%s\n" "no" >&6; }
  11216. fi
  11217. if test "x$ac_ct_RC" = x; then
  11218. RC=""
  11219. else
  11220. case $cross_compiling:$ac_tool_warned in
  11221. yes:)
  11222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11223. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11224. ac_tool_warned=yes ;;
  11225. esac
  11226. RC=$ac_ct_RC
  11227. fi
  11228. else
  11229. RC="$ac_cv_prog_RC"
  11230. fi
  11231. # Source file extension for RC test sources.
  11232. ac_ext=rc
  11233. # Object file extension for compiled RC test sources.
  11234. objext=o
  11235. objext_RC=$objext
  11236. # Code to be used in simple compile tests
  11237. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  11238. # Code to be used in simple link tests
  11239. lt_simple_link_test_code=$lt_simple_compile_test_code
  11240. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11241. # If no C compiler was specified, use CC.
  11242. LTCC=${LTCC-"$CC"}
  11243. # If no C compiler flags were specified, use CFLAGS.
  11244. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11245. # Allow CC to be a program name with arguments.
  11246. compiler=$CC
  11247. # save warnings/boilerplate of simple test code
  11248. ac_outfile=conftest.$ac_objext
  11249. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11250. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11251. _lt_compiler_boilerplate=`cat conftest.err`
  11252. $RM conftest*
  11253. ac_outfile=conftest.$ac_objext
  11254. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11255. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11256. _lt_linker_boilerplate=`cat conftest.err`
  11257. $RM -r conftest*
  11258. # Allow CC to be a program name with arguments.
  11259. lt_save_CC=$CC
  11260. lt_save_CFLAGS=$CFLAGS
  11261. lt_save_GCC=$GCC
  11262. GCC=
  11263. CC=${RC-"windres"}
  11264. CFLAGS=
  11265. compiler=$CC
  11266. compiler_RC=$CC
  11267. func_cc_basename $compiler
  11268. cc_basename=$func_cc_basename_result
  11269. lt_cv_prog_compiler_c_o_RC=yes
  11270. if test -n "$compiler"; then
  11271. :
  11272. fi
  11273. GCC=$lt_save_GCC
  11274. ac_ext=c
  11275. ac_cpp='$CPP $CPPFLAGS'
  11276. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11277. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11278. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11279. CC=$lt_save_CC
  11280. CFLAGS=$lt_save_CFLAGS
  11281. # For historical reasons, the library name redundantly includes the major
  11282. # version twice: libSDL2-2.0.so.0.
  11283. # TODO: in SDL 3, stop using -release, which will simplify it to libSDL3.so.0
  11284. LT_RELEASE=2.0
  11285. # Increment this if there is an incompatible change - but if that happens,
  11286. # we should rename the library from SDL2 to SDL3, at which point this would
  11287. # reset to 0 anyway.
  11288. LT_MAJOR=0
  11289. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  11290. LT_CURRENT=`expr $LT_MAJOR + $LT_AGE`
  11291. LT_REVISION=$SDL_INTERFACE_AGE
  11292. for ac_prog in gawk mawk nawk awk
  11293. do
  11294. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11295. set dummy $ac_prog; ac_word=$2
  11296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11297. printf %s "checking for $ac_word... " >&6; }
  11298. if test ${ac_cv_prog_AWK+y}
  11299. then :
  11300. printf %s "(cached) " >&6
  11301. else $as_nop
  11302. if test -n "$AWK"; then
  11303. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  11304. else
  11305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11306. for as_dir in $PATH
  11307. do
  11308. IFS=$as_save_IFS
  11309. case $as_dir in #(((
  11310. '') as_dir=./ ;;
  11311. */) ;;
  11312. *) as_dir=$as_dir/ ;;
  11313. esac
  11314. for ac_exec_ext in '' $ac_executable_extensions; do
  11315. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11316. ac_cv_prog_AWK="$ac_prog"
  11317. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11318. break 2
  11319. fi
  11320. done
  11321. done
  11322. IFS=$as_save_IFS
  11323. fi
  11324. fi
  11325. AWK=$ac_cv_prog_AWK
  11326. if test -n "$AWK"; then
  11327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  11328. printf "%s\n" "$AWK" >&6; }
  11329. else
  11330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11331. printf "%s\n" "no" >&6; }
  11332. fi
  11333. test -n "$AWK" && break
  11334. done
  11335. ac_ext=c
  11336. ac_cpp='$CPP $CPPFLAGS'
  11337. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11338. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11339. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11340. if test -n "$ac_tool_prefix"; then
  11341. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11342. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11344. printf %s "checking for $ac_word... " >&6; }
  11345. if test ${ac_cv_prog_CC+y}
  11346. then :
  11347. printf %s "(cached) " >&6
  11348. else $as_nop
  11349. if test -n "$CC"; then
  11350. ac_cv_prog_CC="$CC" # Let the user override the test.
  11351. else
  11352. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11353. for as_dir in $PATH
  11354. do
  11355. IFS=$as_save_IFS
  11356. case $as_dir in #(((
  11357. '') as_dir=./ ;;
  11358. */) ;;
  11359. *) as_dir=$as_dir/ ;;
  11360. esac
  11361. for ac_exec_ext in '' $ac_executable_extensions; do
  11362. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11363. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11364. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11365. break 2
  11366. fi
  11367. done
  11368. done
  11369. IFS=$as_save_IFS
  11370. fi
  11371. fi
  11372. CC=$ac_cv_prog_CC
  11373. if test -n "$CC"; then
  11374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11375. printf "%s\n" "$CC" >&6; }
  11376. else
  11377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11378. printf "%s\n" "no" >&6; }
  11379. fi
  11380. fi
  11381. if test -z "$ac_cv_prog_CC"; then
  11382. ac_ct_CC=$CC
  11383. # Extract the first word of "gcc", so it can be a program name with args.
  11384. set dummy gcc; ac_word=$2
  11385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11386. printf %s "checking for $ac_word... " >&6; }
  11387. if test ${ac_cv_prog_ac_ct_CC+y}
  11388. then :
  11389. printf %s "(cached) " >&6
  11390. else $as_nop
  11391. if test -n "$ac_ct_CC"; then
  11392. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11393. else
  11394. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11395. for as_dir in $PATH
  11396. do
  11397. IFS=$as_save_IFS
  11398. case $as_dir in #(((
  11399. '') as_dir=./ ;;
  11400. */) ;;
  11401. *) as_dir=$as_dir/ ;;
  11402. esac
  11403. for ac_exec_ext in '' $ac_executable_extensions; do
  11404. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11405. ac_cv_prog_ac_ct_CC="gcc"
  11406. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11407. break 2
  11408. fi
  11409. done
  11410. done
  11411. IFS=$as_save_IFS
  11412. fi
  11413. fi
  11414. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11415. if test -n "$ac_ct_CC"; then
  11416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11417. printf "%s\n" "$ac_ct_CC" >&6; }
  11418. else
  11419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11420. printf "%s\n" "no" >&6; }
  11421. fi
  11422. if test "x$ac_ct_CC" = x; then
  11423. CC=""
  11424. else
  11425. case $cross_compiling:$ac_tool_warned in
  11426. yes:)
  11427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11428. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11429. ac_tool_warned=yes ;;
  11430. esac
  11431. CC=$ac_ct_CC
  11432. fi
  11433. else
  11434. CC="$ac_cv_prog_CC"
  11435. fi
  11436. if test -z "$CC"; then
  11437. if test -n "$ac_tool_prefix"; then
  11438. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11439. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11440. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11441. printf %s "checking for $ac_word... " >&6; }
  11442. if test ${ac_cv_prog_CC+y}
  11443. then :
  11444. printf %s "(cached) " >&6
  11445. else $as_nop
  11446. if test -n "$CC"; then
  11447. ac_cv_prog_CC="$CC" # Let the user override the test.
  11448. else
  11449. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11450. for as_dir in $PATH
  11451. do
  11452. IFS=$as_save_IFS
  11453. case $as_dir in #(((
  11454. '') as_dir=./ ;;
  11455. */) ;;
  11456. *) as_dir=$as_dir/ ;;
  11457. esac
  11458. for ac_exec_ext in '' $ac_executable_extensions; do
  11459. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11460. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11461. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11462. break 2
  11463. fi
  11464. done
  11465. done
  11466. IFS=$as_save_IFS
  11467. fi
  11468. fi
  11469. CC=$ac_cv_prog_CC
  11470. if test -n "$CC"; then
  11471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11472. printf "%s\n" "$CC" >&6; }
  11473. else
  11474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11475. printf "%s\n" "no" >&6; }
  11476. fi
  11477. fi
  11478. fi
  11479. if test -z "$CC"; then
  11480. # Extract the first word of "cc", so it can be a program name with args.
  11481. set dummy cc; ac_word=$2
  11482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11483. printf %s "checking for $ac_word... " >&6; }
  11484. if test ${ac_cv_prog_CC+y}
  11485. then :
  11486. printf %s "(cached) " >&6
  11487. else $as_nop
  11488. if test -n "$CC"; then
  11489. ac_cv_prog_CC="$CC" # Let the user override the test.
  11490. else
  11491. ac_prog_rejected=no
  11492. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11493. for as_dir in $PATH
  11494. do
  11495. IFS=$as_save_IFS
  11496. case $as_dir in #(((
  11497. '') as_dir=./ ;;
  11498. */) ;;
  11499. *) as_dir=$as_dir/ ;;
  11500. esac
  11501. for ac_exec_ext in '' $ac_executable_extensions; do
  11502. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11503. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11504. ac_prog_rejected=yes
  11505. continue
  11506. fi
  11507. ac_cv_prog_CC="cc"
  11508. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11509. break 2
  11510. fi
  11511. done
  11512. done
  11513. IFS=$as_save_IFS
  11514. if test $ac_prog_rejected = yes; then
  11515. # We found a bogon in the path, so make sure we never use it.
  11516. set dummy $ac_cv_prog_CC
  11517. shift
  11518. if test $# != 0; then
  11519. # We chose a different compiler from the bogus one.
  11520. # However, it has the same basename, so the bogon will be chosen
  11521. # first if we set CC to just the basename; use the full file name.
  11522. shift
  11523. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  11524. fi
  11525. fi
  11526. fi
  11527. fi
  11528. CC=$ac_cv_prog_CC
  11529. if test -n "$CC"; then
  11530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11531. printf "%s\n" "$CC" >&6; }
  11532. else
  11533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11534. printf "%s\n" "no" >&6; }
  11535. fi
  11536. fi
  11537. if test -z "$CC"; then
  11538. if test -n "$ac_tool_prefix"; then
  11539. for ac_prog in cl.exe
  11540. do
  11541. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11542. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11544. printf %s "checking for $ac_word... " >&6; }
  11545. if test ${ac_cv_prog_CC+y}
  11546. then :
  11547. printf %s "(cached) " >&6
  11548. else $as_nop
  11549. if test -n "$CC"; then
  11550. ac_cv_prog_CC="$CC" # Let the user override the test.
  11551. else
  11552. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11553. for as_dir in $PATH
  11554. do
  11555. IFS=$as_save_IFS
  11556. case $as_dir in #(((
  11557. '') as_dir=./ ;;
  11558. */) ;;
  11559. *) as_dir=$as_dir/ ;;
  11560. esac
  11561. for ac_exec_ext in '' $ac_executable_extensions; do
  11562. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11563. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11564. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11565. break 2
  11566. fi
  11567. done
  11568. done
  11569. IFS=$as_save_IFS
  11570. fi
  11571. fi
  11572. CC=$ac_cv_prog_CC
  11573. if test -n "$CC"; then
  11574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11575. printf "%s\n" "$CC" >&6; }
  11576. else
  11577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11578. printf "%s\n" "no" >&6; }
  11579. fi
  11580. test -n "$CC" && break
  11581. done
  11582. fi
  11583. if test -z "$CC"; then
  11584. ac_ct_CC=$CC
  11585. for ac_prog in cl.exe
  11586. do
  11587. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11588. set dummy $ac_prog; ac_word=$2
  11589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11590. printf %s "checking for $ac_word... " >&6; }
  11591. if test ${ac_cv_prog_ac_ct_CC+y}
  11592. then :
  11593. printf %s "(cached) " >&6
  11594. else $as_nop
  11595. if test -n "$ac_ct_CC"; then
  11596. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11597. else
  11598. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11599. for as_dir in $PATH
  11600. do
  11601. IFS=$as_save_IFS
  11602. case $as_dir in #(((
  11603. '') as_dir=./ ;;
  11604. */) ;;
  11605. *) as_dir=$as_dir/ ;;
  11606. esac
  11607. for ac_exec_ext in '' $ac_executable_extensions; do
  11608. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11609. ac_cv_prog_ac_ct_CC="$ac_prog"
  11610. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11611. break 2
  11612. fi
  11613. done
  11614. done
  11615. IFS=$as_save_IFS
  11616. fi
  11617. fi
  11618. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11619. if test -n "$ac_ct_CC"; then
  11620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11621. printf "%s\n" "$ac_ct_CC" >&6; }
  11622. else
  11623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11624. printf "%s\n" "no" >&6; }
  11625. fi
  11626. test -n "$ac_ct_CC" && break
  11627. done
  11628. if test "x$ac_ct_CC" = x; then
  11629. CC=""
  11630. else
  11631. case $cross_compiling:$ac_tool_warned in
  11632. yes:)
  11633. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11634. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11635. ac_tool_warned=yes ;;
  11636. esac
  11637. CC=$ac_ct_CC
  11638. fi
  11639. fi
  11640. fi
  11641. if test -z "$CC"; then
  11642. if test -n "$ac_tool_prefix"; then
  11643. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  11644. set dummy ${ac_tool_prefix}clang; ac_word=$2
  11645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11646. printf %s "checking for $ac_word... " >&6; }
  11647. if test ${ac_cv_prog_CC+y}
  11648. then :
  11649. printf %s "(cached) " >&6
  11650. else $as_nop
  11651. if test -n "$CC"; then
  11652. ac_cv_prog_CC="$CC" # Let the user override the test.
  11653. else
  11654. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11655. for as_dir in $PATH
  11656. do
  11657. IFS=$as_save_IFS
  11658. case $as_dir in #(((
  11659. '') as_dir=./ ;;
  11660. */) ;;
  11661. *) as_dir=$as_dir/ ;;
  11662. esac
  11663. for ac_exec_ext in '' $ac_executable_extensions; do
  11664. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11665. ac_cv_prog_CC="${ac_tool_prefix}clang"
  11666. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11667. break 2
  11668. fi
  11669. done
  11670. done
  11671. IFS=$as_save_IFS
  11672. fi
  11673. fi
  11674. CC=$ac_cv_prog_CC
  11675. if test -n "$CC"; then
  11676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11677. printf "%s\n" "$CC" >&6; }
  11678. else
  11679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11680. printf "%s\n" "no" >&6; }
  11681. fi
  11682. fi
  11683. if test -z "$ac_cv_prog_CC"; then
  11684. ac_ct_CC=$CC
  11685. # Extract the first word of "clang", so it can be a program name with args.
  11686. set dummy clang; ac_word=$2
  11687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11688. printf %s "checking for $ac_word... " >&6; }
  11689. if test ${ac_cv_prog_ac_ct_CC+y}
  11690. then :
  11691. printf %s "(cached) " >&6
  11692. else $as_nop
  11693. if test -n "$ac_ct_CC"; then
  11694. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11695. else
  11696. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11697. for as_dir in $PATH
  11698. do
  11699. IFS=$as_save_IFS
  11700. case $as_dir in #(((
  11701. '') as_dir=./ ;;
  11702. */) ;;
  11703. *) as_dir=$as_dir/ ;;
  11704. esac
  11705. for ac_exec_ext in '' $ac_executable_extensions; do
  11706. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11707. ac_cv_prog_ac_ct_CC="clang"
  11708. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11709. break 2
  11710. fi
  11711. done
  11712. done
  11713. IFS=$as_save_IFS
  11714. fi
  11715. fi
  11716. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11717. if test -n "$ac_ct_CC"; then
  11718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11719. printf "%s\n" "$ac_ct_CC" >&6; }
  11720. else
  11721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11722. printf "%s\n" "no" >&6; }
  11723. fi
  11724. if test "x$ac_ct_CC" = x; then
  11725. CC=""
  11726. else
  11727. case $cross_compiling:$ac_tool_warned in
  11728. yes:)
  11729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11730. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11731. ac_tool_warned=yes ;;
  11732. esac
  11733. CC=$ac_ct_CC
  11734. fi
  11735. else
  11736. CC="$ac_cv_prog_CC"
  11737. fi
  11738. fi
  11739. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11740. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  11741. as_fn_error $? "no acceptable C compiler found in \$PATH
  11742. See \`config.log' for more details" "$LINENO" 5; }
  11743. # Provide some information about the compiler.
  11744. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11745. set X $ac_compile
  11746. ac_compiler=$2
  11747. for ac_option in --version -v -V -qversion -version; do
  11748. { { ac_try="$ac_compiler $ac_option >&5"
  11749. case "(($ac_try" in
  11750. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11751. *) ac_try_echo=$ac_try;;
  11752. esac
  11753. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11754. printf "%s\n" "$ac_try_echo"; } >&5
  11755. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11756. ac_status=$?
  11757. if test -s conftest.err; then
  11758. sed '10a\
  11759. ... rest of stderr output deleted ...
  11760. 10q' conftest.err >conftest.er1
  11761. cat conftest.er1 >&5
  11762. fi
  11763. rm -f conftest.er1 conftest.err
  11764. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11765. test $ac_status = 0; }
  11766. done
  11767. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  11768. printf %s "checking whether the compiler supports GNU C... " >&6; }
  11769. if test ${ac_cv_c_compiler_gnu+y}
  11770. then :
  11771. printf %s "(cached) " >&6
  11772. else $as_nop
  11773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11774. /* end confdefs.h. */
  11775. int
  11776. main (void)
  11777. {
  11778. #ifndef __GNUC__
  11779. choke me
  11780. #endif
  11781. ;
  11782. return 0;
  11783. }
  11784. _ACEOF
  11785. if ac_fn_c_try_compile "$LINENO"
  11786. then :
  11787. ac_compiler_gnu=yes
  11788. else $as_nop
  11789. ac_compiler_gnu=no
  11790. fi
  11791. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11792. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11793. fi
  11794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11795. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  11796. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11797. if test $ac_compiler_gnu = yes; then
  11798. GCC=yes
  11799. else
  11800. GCC=
  11801. fi
  11802. ac_test_CFLAGS=${CFLAGS+y}
  11803. ac_save_CFLAGS=$CFLAGS
  11804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11805. printf %s "checking whether $CC accepts -g... " >&6; }
  11806. if test ${ac_cv_prog_cc_g+y}
  11807. then :
  11808. printf %s "(cached) " >&6
  11809. else $as_nop
  11810. ac_save_c_werror_flag=$ac_c_werror_flag
  11811. ac_c_werror_flag=yes
  11812. ac_cv_prog_cc_g=no
  11813. CFLAGS="-g"
  11814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11815. /* end confdefs.h. */
  11816. int
  11817. main (void)
  11818. {
  11819. ;
  11820. return 0;
  11821. }
  11822. _ACEOF
  11823. if ac_fn_c_try_compile "$LINENO"
  11824. then :
  11825. ac_cv_prog_cc_g=yes
  11826. else $as_nop
  11827. CFLAGS=""
  11828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11829. /* end confdefs.h. */
  11830. int
  11831. main (void)
  11832. {
  11833. ;
  11834. return 0;
  11835. }
  11836. _ACEOF
  11837. if ac_fn_c_try_compile "$LINENO"
  11838. then :
  11839. else $as_nop
  11840. ac_c_werror_flag=$ac_save_c_werror_flag
  11841. CFLAGS="-g"
  11842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11843. /* end confdefs.h. */
  11844. int
  11845. main (void)
  11846. {
  11847. ;
  11848. return 0;
  11849. }
  11850. _ACEOF
  11851. if ac_fn_c_try_compile "$LINENO"
  11852. then :
  11853. ac_cv_prog_cc_g=yes
  11854. fi
  11855. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11856. fi
  11857. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11858. fi
  11859. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11860. ac_c_werror_flag=$ac_save_c_werror_flag
  11861. fi
  11862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11863. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  11864. if test $ac_test_CFLAGS; then
  11865. CFLAGS=$ac_save_CFLAGS
  11866. elif test $ac_cv_prog_cc_g = yes; then
  11867. if test "$GCC" = yes; then
  11868. CFLAGS="-g -O2"
  11869. else
  11870. CFLAGS="-g"
  11871. fi
  11872. else
  11873. if test "$GCC" = yes; then
  11874. CFLAGS="-O2"
  11875. else
  11876. CFLAGS=
  11877. fi
  11878. fi
  11879. ac_prog_cc_stdc=no
  11880. if test x$ac_prog_cc_stdc = xno
  11881. then :
  11882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  11883. printf %s "checking for $CC option to enable C11 features... " >&6; }
  11884. if test ${ac_cv_prog_cc_c11+y}
  11885. then :
  11886. printf %s "(cached) " >&6
  11887. else $as_nop
  11888. ac_cv_prog_cc_c11=no
  11889. ac_save_CC=$CC
  11890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11891. /* end confdefs.h. */
  11892. $ac_c_conftest_c11_program
  11893. _ACEOF
  11894. for ac_arg in '' -std=gnu11
  11895. do
  11896. CC="$ac_save_CC $ac_arg"
  11897. if ac_fn_c_try_compile "$LINENO"
  11898. then :
  11899. ac_cv_prog_cc_c11=$ac_arg
  11900. fi
  11901. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11902. test "x$ac_cv_prog_cc_c11" != "xno" && break
  11903. done
  11904. rm -f conftest.$ac_ext
  11905. CC=$ac_save_CC
  11906. fi
  11907. if test "x$ac_cv_prog_cc_c11" = xno
  11908. then :
  11909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11910. printf "%s\n" "unsupported" >&6; }
  11911. else $as_nop
  11912. if test "x$ac_cv_prog_cc_c11" = x
  11913. then :
  11914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11915. printf "%s\n" "none needed" >&6; }
  11916. else $as_nop
  11917. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  11918. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  11919. CC="$CC $ac_cv_prog_cc_c11"
  11920. fi
  11921. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  11922. ac_prog_cc_stdc=c11
  11923. fi
  11924. fi
  11925. if test x$ac_prog_cc_stdc = xno
  11926. then :
  11927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  11928. printf %s "checking for $CC option to enable C99 features... " >&6; }
  11929. if test ${ac_cv_prog_cc_c99+y}
  11930. then :
  11931. printf %s "(cached) " >&6
  11932. else $as_nop
  11933. ac_cv_prog_cc_c99=no
  11934. ac_save_CC=$CC
  11935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11936. /* end confdefs.h. */
  11937. $ac_c_conftest_c99_program
  11938. _ACEOF
  11939. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  11940. do
  11941. CC="$ac_save_CC $ac_arg"
  11942. if ac_fn_c_try_compile "$LINENO"
  11943. then :
  11944. ac_cv_prog_cc_c99=$ac_arg
  11945. fi
  11946. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11947. test "x$ac_cv_prog_cc_c99" != "xno" && break
  11948. done
  11949. rm -f conftest.$ac_ext
  11950. CC=$ac_save_CC
  11951. fi
  11952. if test "x$ac_cv_prog_cc_c99" = xno
  11953. then :
  11954. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11955. printf "%s\n" "unsupported" >&6; }
  11956. else $as_nop
  11957. if test "x$ac_cv_prog_cc_c99" = x
  11958. then :
  11959. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11960. printf "%s\n" "none needed" >&6; }
  11961. else $as_nop
  11962. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  11963. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  11964. CC="$CC $ac_cv_prog_cc_c99"
  11965. fi
  11966. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  11967. ac_prog_cc_stdc=c99
  11968. fi
  11969. fi
  11970. if test x$ac_prog_cc_stdc = xno
  11971. then :
  11972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  11973. printf %s "checking for $CC option to enable C89 features... " >&6; }
  11974. if test ${ac_cv_prog_cc_c89+y}
  11975. then :
  11976. printf %s "(cached) " >&6
  11977. else $as_nop
  11978. ac_cv_prog_cc_c89=no
  11979. ac_save_CC=$CC
  11980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11981. /* end confdefs.h. */
  11982. $ac_c_conftest_c89_program
  11983. _ACEOF
  11984. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11985. do
  11986. CC="$ac_save_CC $ac_arg"
  11987. if ac_fn_c_try_compile "$LINENO"
  11988. then :
  11989. ac_cv_prog_cc_c89=$ac_arg
  11990. fi
  11991. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11992. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11993. done
  11994. rm -f conftest.$ac_ext
  11995. CC=$ac_save_CC
  11996. fi
  11997. if test "x$ac_cv_prog_cc_c89" = xno
  11998. then :
  11999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12000. printf "%s\n" "unsupported" >&6; }
  12001. else $as_nop
  12002. if test "x$ac_cv_prog_cc_c89" = x
  12003. then :
  12004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12005. printf "%s\n" "none needed" >&6; }
  12006. else $as_nop
  12007. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  12008. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  12009. CC="$CC $ac_cv_prog_cc_c89"
  12010. fi
  12011. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  12012. ac_prog_cc_stdc=c89
  12013. fi
  12014. fi
  12015. ac_ext=c
  12016. ac_cpp='$CPP $CPPFLAGS'
  12017. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12018. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12019. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12020. ac_ext=cpp
  12021. ac_cpp='$CXXCPP $CPPFLAGS'
  12022. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12023. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12024. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12025. if test -z "$CXX"; then
  12026. if test -n "$CCC"; then
  12027. CXX=$CCC
  12028. else
  12029. if test -n "$ac_tool_prefix"; then
  12030. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12031. do
  12032. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12033. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12035. printf %s "checking for $ac_word... " >&6; }
  12036. if test ${ac_cv_prog_CXX+y}
  12037. then :
  12038. printf %s "(cached) " >&6
  12039. else $as_nop
  12040. if test -n "$CXX"; then
  12041. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12042. else
  12043. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12044. for as_dir in $PATH
  12045. do
  12046. IFS=$as_save_IFS
  12047. case $as_dir in #(((
  12048. '') as_dir=./ ;;
  12049. */) ;;
  12050. *) as_dir=$as_dir/ ;;
  12051. esac
  12052. for ac_exec_ext in '' $ac_executable_extensions; do
  12053. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12054. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12055. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12056. break 2
  12057. fi
  12058. done
  12059. done
  12060. IFS=$as_save_IFS
  12061. fi
  12062. fi
  12063. CXX=$ac_cv_prog_CXX
  12064. if test -n "$CXX"; then
  12065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12066. printf "%s\n" "$CXX" >&6; }
  12067. else
  12068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12069. printf "%s\n" "no" >&6; }
  12070. fi
  12071. test -n "$CXX" && break
  12072. done
  12073. fi
  12074. if test -z "$CXX"; then
  12075. ac_ct_CXX=$CXX
  12076. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12077. do
  12078. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12079. set dummy $ac_prog; ac_word=$2
  12080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12081. printf %s "checking for $ac_word... " >&6; }
  12082. if test ${ac_cv_prog_ac_ct_CXX+y}
  12083. then :
  12084. printf %s "(cached) " >&6
  12085. else $as_nop
  12086. if test -n "$ac_ct_CXX"; then
  12087. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12088. else
  12089. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12090. for as_dir in $PATH
  12091. do
  12092. IFS=$as_save_IFS
  12093. case $as_dir in #(((
  12094. '') as_dir=./ ;;
  12095. */) ;;
  12096. *) as_dir=$as_dir/ ;;
  12097. esac
  12098. for ac_exec_ext in '' $ac_executable_extensions; do
  12099. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12100. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12101. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12102. break 2
  12103. fi
  12104. done
  12105. done
  12106. IFS=$as_save_IFS
  12107. fi
  12108. fi
  12109. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12110. if test -n "$ac_ct_CXX"; then
  12111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12112. printf "%s\n" "$ac_ct_CXX" >&6; }
  12113. else
  12114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12115. printf "%s\n" "no" >&6; }
  12116. fi
  12117. test -n "$ac_ct_CXX" && break
  12118. done
  12119. if test "x$ac_ct_CXX" = x; then
  12120. CXX="g++"
  12121. else
  12122. case $cross_compiling:$ac_tool_warned in
  12123. yes:)
  12124. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12125. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12126. ac_tool_warned=yes ;;
  12127. esac
  12128. CXX=$ac_ct_CXX
  12129. fi
  12130. fi
  12131. fi
  12132. fi
  12133. # Provide some information about the compiler.
  12134. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12135. set X $ac_compile
  12136. ac_compiler=$2
  12137. for ac_option in --version -v -V -qversion; do
  12138. { { ac_try="$ac_compiler $ac_option >&5"
  12139. case "(($ac_try" in
  12140. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12141. *) ac_try_echo=$ac_try;;
  12142. esac
  12143. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12144. printf "%s\n" "$ac_try_echo"; } >&5
  12145. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12146. ac_status=$?
  12147. if test -s conftest.err; then
  12148. sed '10a\
  12149. ... rest of stderr output deleted ...
  12150. 10q' conftest.err >conftest.er1
  12151. cat conftest.er1 >&5
  12152. fi
  12153. rm -f conftest.er1 conftest.err
  12154. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12155. test $ac_status = 0; }
  12156. done
  12157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  12158. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  12159. if test ${ac_cv_cxx_compiler_gnu+y}
  12160. then :
  12161. printf %s "(cached) " >&6
  12162. else $as_nop
  12163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12164. /* end confdefs.h. */
  12165. int
  12166. main (void)
  12167. {
  12168. #ifndef __GNUC__
  12169. choke me
  12170. #endif
  12171. ;
  12172. return 0;
  12173. }
  12174. _ACEOF
  12175. if ac_fn_cxx_try_compile "$LINENO"
  12176. then :
  12177. ac_compiler_gnu=yes
  12178. else $as_nop
  12179. ac_compiler_gnu=no
  12180. fi
  12181. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12182. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12183. fi
  12184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12185. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  12186. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12187. if test $ac_compiler_gnu = yes; then
  12188. GXX=yes
  12189. else
  12190. GXX=
  12191. fi
  12192. ac_test_CXXFLAGS=${CXXFLAGS+y}
  12193. ac_save_CXXFLAGS=$CXXFLAGS
  12194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12195. printf %s "checking whether $CXX accepts -g... " >&6; }
  12196. if test ${ac_cv_prog_cxx_g+y}
  12197. then :
  12198. printf %s "(cached) " >&6
  12199. else $as_nop
  12200. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12201. ac_cxx_werror_flag=yes
  12202. ac_cv_prog_cxx_g=no
  12203. CXXFLAGS="-g"
  12204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12205. /* end confdefs.h. */
  12206. int
  12207. main (void)
  12208. {
  12209. ;
  12210. return 0;
  12211. }
  12212. _ACEOF
  12213. if ac_fn_cxx_try_compile "$LINENO"
  12214. then :
  12215. ac_cv_prog_cxx_g=yes
  12216. else $as_nop
  12217. CXXFLAGS=""
  12218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12219. /* end confdefs.h. */
  12220. int
  12221. main (void)
  12222. {
  12223. ;
  12224. return 0;
  12225. }
  12226. _ACEOF
  12227. if ac_fn_cxx_try_compile "$LINENO"
  12228. then :
  12229. else $as_nop
  12230. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12231. CXXFLAGS="-g"
  12232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12233. /* end confdefs.h. */
  12234. int
  12235. main (void)
  12236. {
  12237. ;
  12238. return 0;
  12239. }
  12240. _ACEOF
  12241. if ac_fn_cxx_try_compile "$LINENO"
  12242. then :
  12243. ac_cv_prog_cxx_g=yes
  12244. fi
  12245. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12246. fi
  12247. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12248. fi
  12249. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12250. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12251. fi
  12252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12253. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  12254. if test $ac_test_CXXFLAGS; then
  12255. CXXFLAGS=$ac_save_CXXFLAGS
  12256. elif test $ac_cv_prog_cxx_g = yes; then
  12257. if test "$GXX" = yes; then
  12258. CXXFLAGS="-g -O2"
  12259. else
  12260. CXXFLAGS="-g"
  12261. fi
  12262. else
  12263. if test "$GXX" = yes; then
  12264. CXXFLAGS="-O2"
  12265. else
  12266. CXXFLAGS=
  12267. fi
  12268. fi
  12269. ac_prog_cxx_stdcxx=no
  12270. if test x$ac_prog_cxx_stdcxx = xno
  12271. then :
  12272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  12273. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  12274. if test ${ac_cv_prog_cxx_11+y}
  12275. then :
  12276. printf %s "(cached) " >&6
  12277. else $as_nop
  12278. ac_cv_prog_cxx_11=no
  12279. ac_save_CXX=$CXX
  12280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12281. /* end confdefs.h. */
  12282. $ac_cxx_conftest_cxx11_program
  12283. _ACEOF
  12284. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  12285. do
  12286. CXX="$ac_save_CXX $ac_arg"
  12287. if ac_fn_cxx_try_compile "$LINENO"
  12288. then :
  12289. ac_cv_prog_cxx_cxx11=$ac_arg
  12290. fi
  12291. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12292. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  12293. done
  12294. rm -f conftest.$ac_ext
  12295. CXX=$ac_save_CXX
  12296. fi
  12297. if test "x$ac_cv_prog_cxx_cxx11" = xno
  12298. then :
  12299. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12300. printf "%s\n" "unsupported" >&6; }
  12301. else $as_nop
  12302. if test "x$ac_cv_prog_cxx_cxx11" = x
  12303. then :
  12304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12305. printf "%s\n" "none needed" >&6; }
  12306. else $as_nop
  12307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  12308. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  12309. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  12310. fi
  12311. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  12312. ac_prog_cxx_stdcxx=cxx11
  12313. fi
  12314. fi
  12315. if test x$ac_prog_cxx_stdcxx = xno
  12316. then :
  12317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  12318. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  12319. if test ${ac_cv_prog_cxx_98+y}
  12320. then :
  12321. printf %s "(cached) " >&6
  12322. else $as_nop
  12323. ac_cv_prog_cxx_98=no
  12324. ac_save_CXX=$CXX
  12325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12326. /* end confdefs.h. */
  12327. $ac_cxx_conftest_cxx98_program
  12328. _ACEOF
  12329. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  12330. do
  12331. CXX="$ac_save_CXX $ac_arg"
  12332. if ac_fn_cxx_try_compile "$LINENO"
  12333. then :
  12334. ac_cv_prog_cxx_cxx98=$ac_arg
  12335. fi
  12336. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12337. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  12338. done
  12339. rm -f conftest.$ac_ext
  12340. CXX=$ac_save_CXX
  12341. fi
  12342. if test "x$ac_cv_prog_cxx_cxx98" = xno
  12343. then :
  12344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12345. printf "%s\n" "unsupported" >&6; }
  12346. else $as_nop
  12347. if test "x$ac_cv_prog_cxx_cxx98" = x
  12348. then :
  12349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12350. printf "%s\n" "none needed" >&6; }
  12351. else $as_nop
  12352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  12353. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  12354. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  12355. fi
  12356. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  12357. ac_prog_cxx_stdcxx=cxx98
  12358. fi
  12359. fi
  12360. ac_ext=c
  12361. ac_cpp='$CPP $CPPFLAGS'
  12362. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12363. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12364. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12365. func_stripname_cnf ()
  12366. {
  12367. case $2 in
  12368. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12369. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12370. esac
  12371. } # func_stripname_cnf
  12372. if test -n "$CXX" && ( test no != "$CXX" &&
  12373. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12374. (test g++ != "$CXX"))); then
  12375. ac_ext=cpp
  12376. ac_cpp='$CXXCPP $CPPFLAGS'
  12377. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12378. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12379. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12380. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12381. printf %s "checking how to run the C++ preprocessor... " >&6; }
  12382. if test -z "$CXXCPP"; then
  12383. if test ${ac_cv_prog_CXXCPP+y}
  12384. then :
  12385. printf %s "(cached) " >&6
  12386. else $as_nop
  12387. # Double quotes because $CXX needs to be expanded
  12388. for CXXCPP in "$CXX -E" cpp /lib/cpp
  12389. do
  12390. ac_preproc_ok=false
  12391. for ac_cxx_preproc_warn_flag in '' yes
  12392. do
  12393. # Use a header file that comes with gcc, so configuring glibc
  12394. # with a fresh cross-compiler works.
  12395. # On the NeXT, cc -E runs the code through the compiler's parser,
  12396. # not just through cpp. "Syntax error" is here to catch this case.
  12397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12398. /* end confdefs.h. */
  12399. #include <limits.h>
  12400. Syntax error
  12401. _ACEOF
  12402. if ac_fn_cxx_try_cpp "$LINENO"
  12403. then :
  12404. else $as_nop
  12405. # Broken: fails on valid input.
  12406. continue
  12407. fi
  12408. rm -f conftest.err conftest.i conftest.$ac_ext
  12409. # OK, works on sane cases. Now check whether nonexistent headers
  12410. # can be detected and how.
  12411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12412. /* end confdefs.h. */
  12413. #include <ac_nonexistent.h>
  12414. _ACEOF
  12415. if ac_fn_cxx_try_cpp "$LINENO"
  12416. then :
  12417. # Broken: success on invalid input.
  12418. continue
  12419. else $as_nop
  12420. # Passes both tests.
  12421. ac_preproc_ok=:
  12422. break
  12423. fi
  12424. rm -f conftest.err conftest.i conftest.$ac_ext
  12425. done
  12426. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12427. rm -f conftest.i conftest.err conftest.$ac_ext
  12428. if $ac_preproc_ok
  12429. then :
  12430. break
  12431. fi
  12432. done
  12433. ac_cv_prog_CXXCPP=$CXXCPP
  12434. fi
  12435. CXXCPP=$ac_cv_prog_CXXCPP
  12436. else
  12437. ac_cv_prog_CXXCPP=$CXXCPP
  12438. fi
  12439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12440. printf "%s\n" "$CXXCPP" >&6; }
  12441. ac_preproc_ok=false
  12442. for ac_cxx_preproc_warn_flag in '' yes
  12443. do
  12444. # Use a header file that comes with gcc, so configuring glibc
  12445. # with a fresh cross-compiler works.
  12446. # On the NeXT, cc -E runs the code through the compiler's parser,
  12447. # not just through cpp. "Syntax error" is here to catch this case.
  12448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12449. /* end confdefs.h. */
  12450. #include <limits.h>
  12451. Syntax error
  12452. _ACEOF
  12453. if ac_fn_cxx_try_cpp "$LINENO"
  12454. then :
  12455. else $as_nop
  12456. # Broken: fails on valid input.
  12457. continue
  12458. fi
  12459. rm -f conftest.err conftest.i conftest.$ac_ext
  12460. # OK, works on sane cases. Now check whether nonexistent headers
  12461. # can be detected and how.
  12462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12463. /* end confdefs.h. */
  12464. #include <ac_nonexistent.h>
  12465. _ACEOF
  12466. if ac_fn_cxx_try_cpp "$LINENO"
  12467. then :
  12468. # Broken: success on invalid input.
  12469. continue
  12470. else $as_nop
  12471. # Passes both tests.
  12472. ac_preproc_ok=:
  12473. break
  12474. fi
  12475. rm -f conftest.err conftest.i conftest.$ac_ext
  12476. done
  12477. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12478. rm -f conftest.i conftest.err conftest.$ac_ext
  12479. if $ac_preproc_ok
  12480. then :
  12481. else $as_nop
  12482. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12483. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12484. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12485. See \`config.log' for more details" "$LINENO" 5; }
  12486. fi
  12487. ac_ext=c
  12488. ac_cpp='$CPP $CPPFLAGS'
  12489. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12490. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12491. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12492. else
  12493. _lt_caught_CXX_error=yes
  12494. fi
  12495. ac_ext=cpp
  12496. ac_cpp='$CXXCPP $CPPFLAGS'
  12497. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12498. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12499. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12500. archive_cmds_need_lc_CXX=no
  12501. allow_undefined_flag_CXX=
  12502. always_export_symbols_CXX=no
  12503. archive_expsym_cmds_CXX=
  12504. compiler_needs_object_CXX=no
  12505. export_dynamic_flag_spec_CXX=
  12506. hardcode_direct_CXX=no
  12507. hardcode_direct_absolute_CXX=no
  12508. hardcode_libdir_flag_spec_CXX=
  12509. hardcode_libdir_separator_CXX=
  12510. hardcode_minus_L_CXX=no
  12511. hardcode_shlibpath_var_CXX=unsupported
  12512. hardcode_automatic_CXX=no
  12513. inherit_rpath_CXX=no
  12514. module_cmds_CXX=
  12515. module_expsym_cmds_CXX=
  12516. link_all_deplibs_CXX=unknown
  12517. old_archive_cmds_CXX=$old_archive_cmds
  12518. reload_flag_CXX=$reload_flag
  12519. reload_cmds_CXX=$reload_cmds
  12520. no_undefined_flag_CXX=
  12521. whole_archive_flag_spec_CXX=
  12522. enable_shared_with_static_runtimes_CXX=no
  12523. # Source file extension for C++ test sources.
  12524. ac_ext=cpp
  12525. # Object file extension for compiled C++ test sources.
  12526. objext=o
  12527. objext_CXX=$objext
  12528. # No sense in running all these tests if we already determined that
  12529. # the CXX compiler isn't working. Some variables (like enable_shared)
  12530. # are currently assumed to apply to all compilers on this platform,
  12531. # and will be corrupted by setting them based on a non-working compiler.
  12532. if test yes != "$_lt_caught_CXX_error"; then
  12533. # Code to be used in simple compile tests
  12534. lt_simple_compile_test_code="int some_variable = 0;"
  12535. # Code to be used in simple link tests
  12536. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12537. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12538. # If no C compiler was specified, use CC.
  12539. LTCC=${LTCC-"$CC"}
  12540. # If no C compiler flags were specified, use CFLAGS.
  12541. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12542. # Allow CC to be a program name with arguments.
  12543. compiler=$CC
  12544. # save warnings/boilerplate of simple test code
  12545. ac_outfile=conftest.$ac_objext
  12546. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12547. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12548. _lt_compiler_boilerplate=`cat conftest.err`
  12549. $RM conftest*
  12550. ac_outfile=conftest.$ac_objext
  12551. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12552. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12553. _lt_linker_boilerplate=`cat conftest.err`
  12554. $RM -r conftest*
  12555. # Allow CC to be a program name with arguments.
  12556. lt_save_CC=$CC
  12557. lt_save_CFLAGS=$CFLAGS
  12558. lt_save_LD=$LD
  12559. lt_save_GCC=$GCC
  12560. GCC=$GXX
  12561. lt_save_with_gnu_ld=$with_gnu_ld
  12562. lt_save_path_LD=$lt_cv_path_LD
  12563. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12564. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12565. else
  12566. $as_unset lt_cv_prog_gnu_ld
  12567. fi
  12568. if test -n "${lt_cv_path_LDCXX+set}"; then
  12569. lt_cv_path_LD=$lt_cv_path_LDCXX
  12570. else
  12571. $as_unset lt_cv_path_LD
  12572. fi
  12573. test -z "${LDCXX+set}" || LD=$LDCXX
  12574. CC=${CXX-"c++"}
  12575. CFLAGS=$CXXFLAGS
  12576. compiler=$CC
  12577. compiler_CXX=$CC
  12578. func_cc_basename $compiler
  12579. cc_basename=$func_cc_basename_result
  12580. if test -n "$compiler"; then
  12581. # We don't want -fno-exception when compiling C++ code, so set the
  12582. # no_builtin_flag separately
  12583. if test yes = "$GXX"; then
  12584. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12585. else
  12586. lt_prog_compiler_no_builtin_flag_CXX=
  12587. fi
  12588. if test yes = "$GXX"; then
  12589. # Set up default GNU C++ configuration
  12590. # Check whether --with-gnu-ld was given.
  12591. if test ${with_gnu_ld+y}
  12592. then :
  12593. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12594. else $as_nop
  12595. with_gnu_ld=no
  12596. fi
  12597. ac_prog=ld
  12598. if test yes = "$GCC"; then
  12599. # Check if gcc -print-prog-name=ld gives a path.
  12600. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12601. printf %s "checking for ld used by $CC... " >&6; }
  12602. case $host in
  12603. *-*-mingw*)
  12604. # gcc leaves a trailing carriage return, which upsets mingw
  12605. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12606. *)
  12607. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12608. esac
  12609. case $ac_prog in
  12610. # Accept absolute paths.
  12611. [\\/]* | ?:[\\/]*)
  12612. re_direlt='/[^/][^/]*/\.\./'
  12613. # Canonicalize the pathname of ld
  12614. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12615. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12616. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12617. done
  12618. test -z "$LD" && LD=$ac_prog
  12619. ;;
  12620. "")
  12621. # If it fails, then pretend we aren't using GCC.
  12622. ac_prog=ld
  12623. ;;
  12624. *)
  12625. # If it is relative, then search for the first ld in PATH.
  12626. with_gnu_ld=unknown
  12627. ;;
  12628. esac
  12629. elif test yes = "$with_gnu_ld"; then
  12630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12631. printf %s "checking for GNU ld... " >&6; }
  12632. else
  12633. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12634. printf %s "checking for non-GNU ld... " >&6; }
  12635. fi
  12636. if test ${lt_cv_path_LD+y}
  12637. then :
  12638. printf %s "(cached) " >&6
  12639. else $as_nop
  12640. if test -z "$LD"; then
  12641. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12642. for ac_dir in $PATH; do
  12643. IFS=$lt_save_ifs
  12644. test -z "$ac_dir" && ac_dir=.
  12645. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12646. lt_cv_path_LD=$ac_dir/$ac_prog
  12647. # Check to see if the program is GNU ld. I'd rather use --version,
  12648. # but apparently some variants of GNU ld only accept -v.
  12649. # Break only if it was the GNU/non-GNU ld that we prefer.
  12650. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12651. *GNU* | *'with BFD'*)
  12652. test no != "$with_gnu_ld" && break
  12653. ;;
  12654. *)
  12655. test yes != "$with_gnu_ld" && break
  12656. ;;
  12657. esac
  12658. fi
  12659. done
  12660. IFS=$lt_save_ifs
  12661. else
  12662. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12663. fi
  12664. fi
  12665. LD=$lt_cv_path_LD
  12666. if test -n "$LD"; then
  12667. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12668. printf "%s\n" "$LD" >&6; }
  12669. else
  12670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12671. printf "%s\n" "no" >&6; }
  12672. fi
  12673. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12675. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  12676. if test ${lt_cv_prog_gnu_ld+y}
  12677. then :
  12678. printf %s "(cached) " >&6
  12679. else $as_nop
  12680. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12681. case `$LD -v 2>&1 </dev/null` in
  12682. *GNU* | *'with BFD'*)
  12683. lt_cv_prog_gnu_ld=yes
  12684. ;;
  12685. *)
  12686. lt_cv_prog_gnu_ld=no
  12687. ;;
  12688. esac
  12689. fi
  12690. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12691. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  12692. with_gnu_ld=$lt_cv_prog_gnu_ld
  12693. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12694. # archiving commands below assume that GNU ld is being used.
  12695. if test yes = "$with_gnu_ld"; then
  12696. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12697. 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'
  12698. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12699. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12700. # If archive_cmds runs LD, not CC, wlarc should be empty
  12701. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12702. # investigate it a little bit more. (MM)
  12703. wlarc='$wl'
  12704. # ancient GNU ld didn't support --whole-archive et. al.
  12705. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12706. $GREP 'no-whole-archive' > /dev/null; then
  12707. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12708. else
  12709. whole_archive_flag_spec_CXX=
  12710. fi
  12711. else
  12712. with_gnu_ld=no
  12713. wlarc=
  12714. # A generic and very simple default shared library creation
  12715. # command for GNU C++ for the case where it uses the native
  12716. # linker, instead of GNU ld. If possible, this setting should
  12717. # overridden to take advantage of the native linker features on
  12718. # the platform it is being used on.
  12719. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12720. fi
  12721. # Commands to make compiler produce verbose output that lists
  12722. # what "hidden" libraries, object files and flags are used when
  12723. # linking a shared library.
  12724. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12725. else
  12726. GXX=no
  12727. with_gnu_ld=no
  12728. wlarc=
  12729. fi
  12730. # PORTME: fill in a description of your system's C++ link characteristics
  12731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12732. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12733. ld_shlibs_CXX=yes
  12734. case $host_os in
  12735. aix3*)
  12736. # FIXME: insert proper C++ library support
  12737. ld_shlibs_CXX=no
  12738. ;;
  12739. aix[4-9]*)
  12740. if test ia64 = "$host_cpu"; then
  12741. # On IA64, the linker does run time linking by default, so we don't
  12742. # have to do anything special.
  12743. aix_use_runtimelinking=no
  12744. exp_sym_flag='-Bexport'
  12745. no_entry_flag=
  12746. else
  12747. aix_use_runtimelinking=no
  12748. # Test if we are trying to use run time linking or normal
  12749. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12750. # have runtime linking enabled, and use it for executables.
  12751. # For shared libraries, we enable/disable runtime linking
  12752. # depending on the kind of the shared library created -
  12753. # when "with_aix_soname,aix_use_runtimelinking" is:
  12754. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12755. # "aix,yes" lib.so shared, rtl:yes, for executables
  12756. # lib.a static archive
  12757. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12758. # lib.a(lib.so.V) shared, rtl:no, for executables
  12759. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12760. # lib.a(lib.so.V) shared, rtl:no
  12761. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12762. # lib.a static archive
  12763. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12764. for ld_flag in $LDFLAGS; do
  12765. case $ld_flag in
  12766. *-brtl*)
  12767. aix_use_runtimelinking=yes
  12768. break
  12769. ;;
  12770. esac
  12771. done
  12772. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12773. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12774. # so we don't have lib.a shared libs to link our executables.
  12775. # We have to force runtime linking in this case.
  12776. aix_use_runtimelinking=yes
  12777. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12778. fi
  12779. ;;
  12780. esac
  12781. exp_sym_flag='-bexport'
  12782. no_entry_flag='-bnoentry'
  12783. fi
  12784. # When large executables or shared objects are built, AIX ld can
  12785. # have problems creating the table of contents. If linking a library
  12786. # or program results in "error TOC overflow" add -mminimal-toc to
  12787. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12788. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12789. archive_cmds_CXX=''
  12790. hardcode_direct_CXX=yes
  12791. hardcode_direct_absolute_CXX=yes
  12792. hardcode_libdir_separator_CXX=':'
  12793. link_all_deplibs_CXX=yes
  12794. file_list_spec_CXX='$wl-f,'
  12795. case $with_aix_soname,$aix_use_runtimelinking in
  12796. aix,*) ;; # no import file
  12797. svr4,* | *,yes) # use import file
  12798. # The Import File defines what to hardcode.
  12799. hardcode_direct_CXX=no
  12800. hardcode_direct_absolute_CXX=no
  12801. ;;
  12802. esac
  12803. if test yes = "$GXX"; then
  12804. case $host_os in aix4.[012]|aix4.[012].*)
  12805. # We only want to do this on AIX 4.2 and lower, the check
  12806. # below for broken collect2 doesn't work under 4.3+
  12807. collect2name=`$CC -print-prog-name=collect2`
  12808. if test -f "$collect2name" &&
  12809. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12810. then
  12811. # We have reworked collect2
  12812. :
  12813. else
  12814. # We have old collect2
  12815. hardcode_direct_CXX=unsupported
  12816. # It fails to find uninstalled libraries when the uninstalled
  12817. # path is not listed in the libpath. Setting hardcode_minus_L
  12818. # to unsupported forces relinking
  12819. hardcode_minus_L_CXX=yes
  12820. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12821. hardcode_libdir_separator_CXX=
  12822. fi
  12823. esac
  12824. shared_flag='-shared'
  12825. if test yes = "$aix_use_runtimelinking"; then
  12826. shared_flag=$shared_flag' $wl-G'
  12827. fi
  12828. # Need to ensure runtime linking is disabled for the traditional
  12829. # shared library, or the linker may eventually find shared libraries
  12830. # /with/ Import File - we do not want to mix them.
  12831. shared_flag_aix='-shared'
  12832. shared_flag_svr4='-shared $wl-G'
  12833. else
  12834. # not using gcc
  12835. if test ia64 = "$host_cpu"; then
  12836. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12837. # chokes on -Wl,-G. The following line is correct:
  12838. shared_flag='-G'
  12839. else
  12840. if test yes = "$aix_use_runtimelinking"; then
  12841. shared_flag='$wl-G'
  12842. else
  12843. shared_flag='$wl-bM:SRE'
  12844. fi
  12845. shared_flag_aix='$wl-bM:SRE'
  12846. shared_flag_svr4='$wl-G'
  12847. fi
  12848. fi
  12849. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12850. # It seems that -bexpall does not export symbols beginning with
  12851. # underscore (_), so it is better to generate a list of symbols to
  12852. # export.
  12853. always_export_symbols_CXX=yes
  12854. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12855. # Warning - without using the other runtime loading flags (-brtl),
  12856. # -berok will link without error, but may produce a broken library.
  12857. # The "-G" linker flag allows undefined symbols.
  12858. no_undefined_flag_CXX='-bernotok'
  12859. # Determine the default libpath from the value encoded in an empty
  12860. # executable.
  12861. if test set = "${lt_cv_aix_libpath+set}"; then
  12862. aix_libpath=$lt_cv_aix_libpath
  12863. else
  12864. if test ${lt_cv_aix_libpath__CXX+y}
  12865. then :
  12866. printf %s "(cached) " >&6
  12867. else $as_nop
  12868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12869. /* end confdefs.h. */
  12870. int
  12871. main (void)
  12872. {
  12873. ;
  12874. return 0;
  12875. }
  12876. _ACEOF
  12877. if ac_fn_cxx_try_link "$LINENO"
  12878. then :
  12879. lt_aix_libpath_sed='
  12880. /Import File Strings/,/^$/ {
  12881. /^0/ {
  12882. s/^0 *\([^ ]*\) *$/\1/
  12883. p
  12884. }
  12885. }'
  12886. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12887. # Check for a 64-bit object if we didn't find anything.
  12888. if test -z "$lt_cv_aix_libpath__CXX"; then
  12889. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12890. fi
  12891. fi
  12892. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12893. conftest$ac_exeext conftest.$ac_ext
  12894. if test -z "$lt_cv_aix_libpath__CXX"; then
  12895. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12896. fi
  12897. fi
  12898. aix_libpath=$lt_cv_aix_libpath__CXX
  12899. fi
  12900. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12901. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  12902. else
  12903. if test ia64 = "$host_cpu"; then
  12904. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12905. allow_undefined_flag_CXX="-z nodefs"
  12906. 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"
  12907. else
  12908. # Determine the default libpath from the value encoded in an
  12909. # empty executable.
  12910. if test set = "${lt_cv_aix_libpath+set}"; then
  12911. aix_libpath=$lt_cv_aix_libpath
  12912. else
  12913. if test ${lt_cv_aix_libpath__CXX+y}
  12914. then :
  12915. printf %s "(cached) " >&6
  12916. else $as_nop
  12917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12918. /* end confdefs.h. */
  12919. int
  12920. main (void)
  12921. {
  12922. ;
  12923. return 0;
  12924. }
  12925. _ACEOF
  12926. if ac_fn_cxx_try_link "$LINENO"
  12927. then :
  12928. lt_aix_libpath_sed='
  12929. /Import File Strings/,/^$/ {
  12930. /^0/ {
  12931. s/^0 *\([^ ]*\) *$/\1/
  12932. p
  12933. }
  12934. }'
  12935. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12936. # Check for a 64-bit object if we didn't find anything.
  12937. if test -z "$lt_cv_aix_libpath__CXX"; then
  12938. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12939. fi
  12940. fi
  12941. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12942. conftest$ac_exeext conftest.$ac_ext
  12943. if test -z "$lt_cv_aix_libpath__CXX"; then
  12944. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12945. fi
  12946. fi
  12947. aix_libpath=$lt_cv_aix_libpath__CXX
  12948. fi
  12949. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12950. # Warning - without using the other run time loading flags,
  12951. # -berok will link without error, but may produce a broken library.
  12952. no_undefined_flag_CXX=' $wl-bernotok'
  12953. allow_undefined_flag_CXX=' $wl-berok'
  12954. if test yes = "$with_gnu_ld"; then
  12955. # We only use this code for GNU lds that support --whole-archive.
  12956. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12957. else
  12958. # Exported symbols can be pulled into shared objects from archives
  12959. whole_archive_flag_spec_CXX='$convenience'
  12960. fi
  12961. archive_cmds_need_lc_CXX=yes
  12962. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12963. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12964. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12965. if test svr4 != "$with_aix_soname"; then
  12966. # This is similar to how AIX traditionally builds its shared
  12967. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  12968. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  12969. fi
  12970. if test aix != "$with_aix_soname"; then
  12971. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  12972. else
  12973. # used by -dlpreopen to get the symbols
  12974. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12975. fi
  12976. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  12977. fi
  12978. fi
  12979. ;;
  12980. beos*)
  12981. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12982. allow_undefined_flag_CXX=unsupported
  12983. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12984. # support --undefined. This deserves some investigation. FIXME
  12985. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12986. else
  12987. ld_shlibs_CXX=no
  12988. fi
  12989. ;;
  12990. chorus*)
  12991. case $cc_basename in
  12992. *)
  12993. # FIXME: insert proper C++ library support
  12994. ld_shlibs_CXX=no
  12995. ;;
  12996. esac
  12997. ;;
  12998. cygwin* | mingw* | pw32* | cegcc*)
  12999. case $GXX,$cc_basename in
  13000. ,cl* | no,cl*)
  13001. # Native MSVC
  13002. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13003. # no search path for DLLs.
  13004. hardcode_libdir_flag_spec_CXX=' '
  13005. allow_undefined_flag_CXX=unsupported
  13006. always_export_symbols_CXX=yes
  13007. file_list_spec_CXX='@'
  13008. # Tell ltmain to make .lib files, not .a files.
  13009. libext=lib
  13010. # Tell ltmain to make .dll files, not .so files.
  13011. shrext_cmds=.dll
  13012. # FIXME: Setting linknames here is a bad hack.
  13013. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  13014. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13015. cp "$export_symbols" "$output_objdir/$soname.def";
  13016. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  13017. else
  13018. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  13019. fi~
  13020. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13021. linknames='
  13022. # The linker will not automatically build a static lib if we build a DLL.
  13023. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13024. enable_shared_with_static_runtimes_CXX=yes
  13025. # Don't use ranlib
  13026. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13027. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13028. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13029. case $lt_outputfile in
  13030. *.exe|*.EXE) ;;
  13031. *)
  13032. lt_outputfile=$lt_outputfile.exe
  13033. lt_tool_outputfile=$lt_tool_outputfile.exe
  13034. ;;
  13035. esac~
  13036. func_to_tool_file "$lt_outputfile"~
  13037. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  13038. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13039. $RM "$lt_outputfile.manifest";
  13040. fi'
  13041. ;;
  13042. *)
  13043. # g++
  13044. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13045. # as there is no search path for DLLs.
  13046. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13047. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  13048. allow_undefined_flag_CXX=unsupported
  13049. always_export_symbols_CXX=no
  13050. enable_shared_with_static_runtimes_CXX=yes
  13051. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13052. 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'
  13053. # If the export-symbols file already is a .def file, use it as
  13054. # is; otherwise, prepend EXPORTS...
  13055. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13056. cp $export_symbols $output_objdir/$soname.def;
  13057. else
  13058. echo EXPORTS > $output_objdir/$soname.def;
  13059. cat $export_symbols >> $output_objdir/$soname.def;
  13060. fi~
  13061. $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'
  13062. else
  13063. ld_shlibs_CXX=no
  13064. fi
  13065. ;;
  13066. esac
  13067. ;;
  13068. darwin* | rhapsody*)
  13069. archive_cmds_need_lc_CXX=no
  13070. hardcode_direct_CXX=no
  13071. hardcode_automatic_CXX=yes
  13072. hardcode_shlibpath_var_CXX=unsupported
  13073. if test yes = "$lt_cv_ld_force_load"; then
  13074. 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\"`'
  13075. else
  13076. whole_archive_flag_spec_CXX=''
  13077. fi
  13078. link_all_deplibs_CXX=yes
  13079. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13080. case $cc_basename in
  13081. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13082. *) _lt_dar_can_shared=$GCC ;;
  13083. esac
  13084. if test yes = "$_lt_dar_can_shared"; then
  13085. output_verbose_link_cmd=func_echo_all
  13086. 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"
  13087. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13088. 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"
  13089. 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"
  13090. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13091. 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"
  13092. 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"
  13093. fi
  13094. else
  13095. ld_shlibs_CXX=no
  13096. fi
  13097. ;;
  13098. os2*)
  13099. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13100. hardcode_minus_L_CXX=yes
  13101. allow_undefined_flag_CXX=unsupported
  13102. shrext_cmds=.dll
  13103. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13104. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13105. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13106. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13107. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13108. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13109. emximp -o $lib $output_objdir/$libname.def'
  13110. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13111. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13112. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13113. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13114. prefix_cmds="$SED"~
  13115. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13116. prefix_cmds="$prefix_cmds -e 1d";
  13117. fi~
  13118. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13119. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13120. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13121. emximp -o $lib $output_objdir/$libname.def'
  13122. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13123. enable_shared_with_static_runtimes_CXX=yes
  13124. file_list_spec_CXX='@'
  13125. ;;
  13126. dgux*)
  13127. case $cc_basename in
  13128. ec++*)
  13129. # FIXME: insert proper C++ library support
  13130. ld_shlibs_CXX=no
  13131. ;;
  13132. ghcx*)
  13133. # Green Hills C++ Compiler
  13134. # FIXME: insert proper C++ library support
  13135. ld_shlibs_CXX=no
  13136. ;;
  13137. *)
  13138. # FIXME: insert proper C++ library support
  13139. ld_shlibs_CXX=no
  13140. ;;
  13141. esac
  13142. ;;
  13143. freebsd2.*)
  13144. # C++ shared libraries reported to be fairly broken before
  13145. # switch to ELF
  13146. ld_shlibs_CXX=no
  13147. ;;
  13148. freebsd-elf*)
  13149. archive_cmds_need_lc_CXX=no
  13150. ;;
  13151. freebsd* | dragonfly* | midnightbsd*)
  13152. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13153. # conventions
  13154. ld_shlibs_CXX=yes
  13155. ;;
  13156. haiku*)
  13157. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13158. link_all_deplibs_CXX=yes
  13159. ;;
  13160. hpux9*)
  13161. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13162. hardcode_libdir_separator_CXX=:
  13163. export_dynamic_flag_spec_CXX='$wl-E'
  13164. hardcode_direct_CXX=yes
  13165. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13166. # but as the default
  13167. # location of the library.
  13168. case $cc_basename in
  13169. CC*)
  13170. # FIXME: insert proper C++ library support
  13171. ld_shlibs_CXX=no
  13172. ;;
  13173. aCC*)
  13174. 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  13175. # Commands to make compiler produce verbose output that lists
  13176. # what "hidden" libraries, object files and flags are used when
  13177. # linking a shared library.
  13178. #
  13179. # There doesn't appear to be a way to prevent this compiler from
  13180. # explicitly linking system object files so we need to strip them
  13181. # from the output so that they don't get included in the library
  13182. # dependencies.
  13183. 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"'
  13184. ;;
  13185. *)
  13186. if test yes = "$GXX"; then
  13187. 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  13188. else
  13189. # FIXME: insert proper C++ library support
  13190. ld_shlibs_CXX=no
  13191. fi
  13192. ;;
  13193. esac
  13194. ;;
  13195. hpux10*|hpux11*)
  13196. if test no = "$with_gnu_ld"; then
  13197. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13198. hardcode_libdir_separator_CXX=:
  13199. case $host_cpu in
  13200. hppa*64*|ia64*)
  13201. ;;
  13202. *)
  13203. export_dynamic_flag_spec_CXX='$wl-E'
  13204. ;;
  13205. esac
  13206. fi
  13207. case $host_cpu in
  13208. hppa*64*|ia64*)
  13209. hardcode_direct_CXX=no
  13210. hardcode_shlibpath_var_CXX=no
  13211. ;;
  13212. *)
  13213. hardcode_direct_CXX=yes
  13214. hardcode_direct_absolute_CXX=yes
  13215. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13216. # but as the default
  13217. # location of the library.
  13218. ;;
  13219. esac
  13220. case $cc_basename in
  13221. CC*)
  13222. # FIXME: insert proper C++ library support
  13223. ld_shlibs_CXX=no
  13224. ;;
  13225. aCC*)
  13226. case $host_cpu in
  13227. hppa*64*)
  13228. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13229. ;;
  13230. ia64*)
  13231. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13232. ;;
  13233. *)
  13234. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13235. ;;
  13236. esac
  13237. # Commands to make compiler produce verbose output that lists
  13238. # what "hidden" libraries, object files and flags are used when
  13239. # linking a shared library.
  13240. #
  13241. # There doesn't appear to be a way to prevent this compiler from
  13242. # explicitly linking system object files so we need to strip them
  13243. # from the output so that they don't get included in the library
  13244. # dependencies.
  13245. 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"'
  13246. ;;
  13247. *)
  13248. if test yes = "$GXX"; then
  13249. if test no = "$with_gnu_ld"; then
  13250. case $host_cpu in
  13251. hppa*64*)
  13252. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13253. ;;
  13254. ia64*)
  13255. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13256. ;;
  13257. *)
  13258. 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'
  13259. ;;
  13260. esac
  13261. fi
  13262. else
  13263. # FIXME: insert proper C++ library support
  13264. ld_shlibs_CXX=no
  13265. fi
  13266. ;;
  13267. esac
  13268. ;;
  13269. interix[3-9]*)
  13270. hardcode_direct_CXX=no
  13271. hardcode_shlibpath_var_CXX=no
  13272. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13273. export_dynamic_flag_spec_CXX='$wl-E'
  13274. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13275. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13276. # default) and relocated if they conflict, which is a slow very memory
  13277. # consuming and fragmenting process. To avoid this, we pick a random,
  13278. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13279. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13280. 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'
  13281. 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'
  13282. ;;
  13283. irix5* | irix6*)
  13284. case $cc_basename in
  13285. CC*)
  13286. # SGI C++
  13287. 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'
  13288. # Archives containing C++ object files must be created using
  13289. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13290. # necessary to make sure instantiated templates are included
  13291. # in the archive.
  13292. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13293. ;;
  13294. *)
  13295. if test yes = "$GXX"; then
  13296. if test no = "$with_gnu_ld"; then
  13297. 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'
  13298. else
  13299. 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'
  13300. fi
  13301. fi
  13302. link_all_deplibs_CXX=yes
  13303. ;;
  13304. esac
  13305. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13306. hardcode_libdir_separator_CXX=:
  13307. inherit_rpath_CXX=yes
  13308. ;;
  13309. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13310. case $cc_basename in
  13311. KCC*)
  13312. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13313. # KCC will only create a shared library if the output file
  13314. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13315. # to its proper name (with version) after linking.
  13316. 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'
  13317. 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'
  13318. # Commands to make compiler produce verbose output that lists
  13319. # what "hidden" libraries, object files and flags are used when
  13320. # linking a shared library.
  13321. #
  13322. # There doesn't appear to be a way to prevent this compiler from
  13323. # explicitly linking system object files so we need to strip them
  13324. # from the output so that they don't get included in the library
  13325. # dependencies.
  13326. 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"'
  13327. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13328. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13329. # Archives containing C++ object files must be created using
  13330. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13331. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13332. ;;
  13333. icpc* | ecpc* )
  13334. # Intel C++
  13335. with_gnu_ld=yes
  13336. # version 8.0 and above of icpc choke on multiply defined symbols
  13337. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13338. # earlier do not add the objects themselves.
  13339. case `$CC -V 2>&1` in
  13340. *"Version 7."*)
  13341. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13342. 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'
  13343. ;;
  13344. *) # Version 8.0 or newer
  13345. tmp_idyn=
  13346. case $host_cpu in
  13347. ia64*) tmp_idyn=' -i_dynamic';;
  13348. esac
  13349. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13350. 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'
  13351. ;;
  13352. esac
  13353. archive_cmds_need_lc_CXX=no
  13354. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13355. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13356. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13357. ;;
  13358. pgCC* | pgcpp*)
  13359. # Portland Group C++ compiler
  13360. case `$CC -V` in
  13361. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13362. prelink_cmds_CXX='tpldir=Template.dir~
  13363. rm -rf $tpldir~
  13364. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13365. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13366. old_archive_cmds_CXX='tpldir=Template.dir~
  13367. rm -rf $tpldir~
  13368. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13369. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13370. $RANLIB $oldlib'
  13371. archive_cmds_CXX='tpldir=Template.dir~
  13372. rm -rf $tpldir~
  13373. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13374. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13375. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13376. rm -rf $tpldir~
  13377. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13378. $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'
  13379. ;;
  13380. *) # Version 6 and above use weak symbols
  13381. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13382. 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'
  13383. ;;
  13384. esac
  13385. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13386. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13387. 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'
  13388. ;;
  13389. cxx*)
  13390. # Compaq C++
  13391. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13392. 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'
  13393. runpath_var=LD_RUN_PATH
  13394. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13395. hardcode_libdir_separator_CXX=:
  13396. # Commands to make compiler produce verbose output that lists
  13397. # what "hidden" libraries, object files and flags are used when
  13398. # linking a shared library.
  13399. #
  13400. # There doesn't appear to be a way to prevent this compiler from
  13401. # explicitly linking system object files so we need to strip them
  13402. # from the output so that they don't get included in the library
  13403. # dependencies.
  13404. 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'
  13405. ;;
  13406. xl* | mpixl* | bgxl*)
  13407. # IBM XL 8.0 on PPC, with GNU ld
  13408. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13409. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13410. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13411. if test yes = "$supports_anon_versioning"; then
  13412. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13413. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13414. echo "local: *; };" >> $output_objdir/$libname.ver~
  13415. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13416. fi
  13417. ;;
  13418. *)
  13419. case `$CC -V 2>&1 | sed 5q` in
  13420. *Sun\ C*)
  13421. # Sun C++ 5.9
  13422. no_undefined_flag_CXX=' -zdefs'
  13423. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13424. 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'
  13425. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13426. 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'
  13427. compiler_needs_object_CXX=yes
  13428. # Not sure whether something based on
  13429. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13430. # would be better.
  13431. output_verbose_link_cmd='func_echo_all'
  13432. # Archives containing C++ object files must be created using
  13433. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13434. # necessary to make sure instantiated templates are included
  13435. # in the archive.
  13436. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13437. ;;
  13438. esac
  13439. ;;
  13440. esac
  13441. ;;
  13442. lynxos*)
  13443. # FIXME: insert proper C++ library support
  13444. ld_shlibs_CXX=no
  13445. ;;
  13446. m88k*)
  13447. # FIXME: insert proper C++ library support
  13448. ld_shlibs_CXX=no
  13449. ;;
  13450. mvs*)
  13451. case $cc_basename in
  13452. cxx*)
  13453. # FIXME: insert proper C++ library support
  13454. ld_shlibs_CXX=no
  13455. ;;
  13456. *)
  13457. # FIXME: insert proper C++ library support
  13458. ld_shlibs_CXX=no
  13459. ;;
  13460. esac
  13461. ;;
  13462. netbsd*)
  13463. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13464. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13465. wlarc=
  13466. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13467. hardcode_direct_CXX=yes
  13468. hardcode_shlibpath_var_CXX=no
  13469. fi
  13470. # Workaround some broken pre-1.5 toolchains
  13471. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13472. ;;
  13473. *nto* | *qnx*)
  13474. ld_shlibs_CXX=yes
  13475. ;;
  13476. openbsd* | bitrig*)
  13477. if test -f /usr/libexec/ld.so; then
  13478. hardcode_direct_CXX=yes
  13479. hardcode_shlibpath_var_CXX=no
  13480. hardcode_direct_absolute_CXX=yes
  13481. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13482. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13483. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13484. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13485. export_dynamic_flag_spec_CXX='$wl-E'
  13486. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13487. fi
  13488. output_verbose_link_cmd=func_echo_all
  13489. else
  13490. ld_shlibs_CXX=no
  13491. fi
  13492. ;;
  13493. osf3* | osf4* | osf5*)
  13494. case $cc_basename in
  13495. KCC*)
  13496. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13497. # KCC will only create a shared library if the output file
  13498. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13499. # to its proper name (with version) after linking.
  13500. 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'
  13501. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13502. hardcode_libdir_separator_CXX=:
  13503. # Archives containing C++ object files must be created using
  13504. # the KAI C++ compiler.
  13505. case $host in
  13506. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13507. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13508. esac
  13509. ;;
  13510. RCC*)
  13511. # Rational C++ 2.4.1
  13512. # FIXME: insert proper C++ library support
  13513. ld_shlibs_CXX=no
  13514. ;;
  13515. cxx*)
  13516. case $host in
  13517. osf3*)
  13518. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13519. 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'
  13520. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13521. ;;
  13522. *)
  13523. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13524. 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'
  13525. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13526. echo "-hidden">> $lib.exp~
  13527. $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~
  13528. $RM $lib.exp'
  13529. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13530. ;;
  13531. esac
  13532. hardcode_libdir_separator_CXX=:
  13533. # Commands to make compiler produce verbose output that lists
  13534. # what "hidden" libraries, object files and flags are used when
  13535. # linking a shared library.
  13536. #
  13537. # There doesn't appear to be a way to prevent this compiler from
  13538. # explicitly linking system object files so we need to strip them
  13539. # from the output so that they don't get included in the library
  13540. # dependencies.
  13541. 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"'
  13542. ;;
  13543. *)
  13544. if test yes,no = "$GXX,$with_gnu_ld"; then
  13545. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13546. case $host in
  13547. osf3*)
  13548. 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'
  13549. ;;
  13550. *)
  13551. 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'
  13552. ;;
  13553. esac
  13554. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13555. hardcode_libdir_separator_CXX=:
  13556. # Commands to make compiler produce verbose output that lists
  13557. # what "hidden" libraries, object files and flags are used when
  13558. # linking a shared library.
  13559. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13560. else
  13561. # FIXME: insert proper C++ library support
  13562. ld_shlibs_CXX=no
  13563. fi
  13564. ;;
  13565. esac
  13566. ;;
  13567. psos*)
  13568. # FIXME: insert proper C++ library support
  13569. ld_shlibs_CXX=no
  13570. ;;
  13571. sunos4*)
  13572. case $cc_basename in
  13573. CC*)
  13574. # Sun C++ 4.x
  13575. # FIXME: insert proper C++ library support
  13576. ld_shlibs_CXX=no
  13577. ;;
  13578. lcc*)
  13579. # Lucid
  13580. # FIXME: insert proper C++ library support
  13581. ld_shlibs_CXX=no
  13582. ;;
  13583. *)
  13584. # FIXME: insert proper C++ library support
  13585. ld_shlibs_CXX=no
  13586. ;;
  13587. esac
  13588. ;;
  13589. solaris*)
  13590. case $cc_basename in
  13591. CC* | sunCC*)
  13592. # Sun C++ 4.2, 5.x and Centerline C++
  13593. archive_cmds_need_lc_CXX=yes
  13594. no_undefined_flag_CXX=' -zdefs'
  13595. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13596. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13597. $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'
  13598. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13599. hardcode_shlibpath_var_CXX=no
  13600. case $host_os in
  13601. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13602. *)
  13603. # The compiler driver will combine and reorder linker options,
  13604. # but understands '-z linker_flag'.
  13605. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13606. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13607. ;;
  13608. esac
  13609. link_all_deplibs_CXX=yes
  13610. output_verbose_link_cmd='func_echo_all'
  13611. # Archives containing C++ object files must be created using
  13612. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13613. # necessary to make sure instantiated templates are included
  13614. # in the archive.
  13615. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13616. ;;
  13617. gcx*)
  13618. # Green Hills C++ Compiler
  13619. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13620. # The C++ compiler must be used to create the archive.
  13621. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13622. ;;
  13623. *)
  13624. # GNU C++ compiler with Solaris linker
  13625. if test yes,no = "$GXX,$with_gnu_ld"; then
  13626. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13627. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13628. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13629. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13630. $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13631. # Commands to make compiler produce verbose output that lists
  13632. # what "hidden" libraries, object files and flags are used when
  13633. # linking a shared library.
  13634. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13635. else
  13636. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13637. # platform.
  13638. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13639. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13640. $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13641. # Commands to make compiler produce verbose output that lists
  13642. # what "hidden" libraries, object files and flags are used when
  13643. # linking a shared library.
  13644. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13645. fi
  13646. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13647. case $host_os in
  13648. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13649. *)
  13650. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13651. ;;
  13652. esac
  13653. fi
  13654. ;;
  13655. esac
  13656. ;;
  13657. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13658. no_undefined_flag_CXX='$wl-z,text'
  13659. archive_cmds_need_lc_CXX=no
  13660. hardcode_shlibpath_var_CXX=no
  13661. runpath_var='LD_RUN_PATH'
  13662. case $cc_basename in
  13663. CC*)
  13664. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13665. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13666. ;;
  13667. *)
  13668. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13669. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13670. ;;
  13671. esac
  13672. ;;
  13673. sysv5* | sco3.2v5* | sco5v6*)
  13674. # Note: We CANNOT use -z defs as we might desire, because we do not
  13675. # link with -lc, and that would cause any symbols used from libc to
  13676. # always be unresolved, which means just about no library would
  13677. # ever link correctly. If we're not using GNU ld we use -z text
  13678. # though, which does catch some bad symbols but isn't as heavy-handed
  13679. # as -z defs.
  13680. no_undefined_flag_CXX='$wl-z,text'
  13681. allow_undefined_flag_CXX='$wl-z,nodefs'
  13682. archive_cmds_need_lc_CXX=no
  13683. hardcode_shlibpath_var_CXX=no
  13684. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13685. hardcode_libdir_separator_CXX=':'
  13686. link_all_deplibs_CXX=yes
  13687. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13688. runpath_var='LD_RUN_PATH'
  13689. case $cc_basename in
  13690. CC*)
  13691. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13692. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13693. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13694. '"$old_archive_cmds_CXX"
  13695. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13696. '"$reload_cmds_CXX"
  13697. ;;
  13698. *)
  13699. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13700. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13701. ;;
  13702. esac
  13703. ;;
  13704. tandem*)
  13705. case $cc_basename in
  13706. NCC*)
  13707. # NonStop-UX NCC 3.20
  13708. # FIXME: insert proper C++ library support
  13709. ld_shlibs_CXX=no
  13710. ;;
  13711. *)
  13712. # FIXME: insert proper C++ library support
  13713. ld_shlibs_CXX=no
  13714. ;;
  13715. esac
  13716. ;;
  13717. vxworks*)
  13718. # FIXME: insert proper C++ library support
  13719. ld_shlibs_CXX=no
  13720. ;;
  13721. *)
  13722. # FIXME: insert proper C++ library support
  13723. ld_shlibs_CXX=no
  13724. ;;
  13725. esac
  13726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13727. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  13728. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13729. GCC_CXX=$GXX
  13730. LD_CXX=$LD
  13731. ## CAVEAT EMPTOR:
  13732. ## There is no encapsulation within the following macros, do not change
  13733. ## the running order or otherwise move them around unless you know exactly
  13734. ## what you are doing...
  13735. # Dependencies to place before and after the object being linked:
  13736. predep_objects_CXX=
  13737. postdep_objects_CXX=
  13738. predeps_CXX=
  13739. postdeps_CXX=
  13740. compiler_lib_search_path_CXX=
  13741. cat > conftest.$ac_ext <<_LT_EOF
  13742. class Foo
  13743. {
  13744. public:
  13745. Foo (void) { a = 0; }
  13746. private:
  13747. int a;
  13748. };
  13749. _LT_EOF
  13750. _lt_libdeps_save_CFLAGS=$CFLAGS
  13751. case "$CC $CFLAGS " in #(
  13752. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13753. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13754. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13755. esac
  13756. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13757. (eval $ac_compile) 2>&5
  13758. ac_status=$?
  13759. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13760. test $ac_status = 0; }; then
  13761. # Parse the compiler output and extract the necessary
  13762. # objects, libraries and library flags.
  13763. # Sentinel used to keep track of whether or not we are before
  13764. # the conftest object file.
  13765. pre_test_object_deps_done=no
  13766. for p in `eval "$output_verbose_link_cmd"`; do
  13767. case $prev$p in
  13768. -L* | -R* | -l*)
  13769. # Some compilers place space between "-{L,R}" and the path.
  13770. # Remove the space.
  13771. if test x-L = "x$p" ||
  13772. test x-R = "x$p" ||
  13773. test x-l = "x$p"; then
  13774. prev=$p
  13775. continue
  13776. fi
  13777. # Expand the sysroot to ease extracting the directories later.
  13778. if test -z "$prev"; then
  13779. case $p in
  13780. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13781. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13782. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13783. esac
  13784. fi
  13785. case $p in
  13786. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13787. esac
  13788. if test no = "$pre_test_object_deps_done"; then
  13789. case $prev in
  13790. -L | -R)
  13791. # Internal compiler library paths should come after those
  13792. # provided the user. The postdeps already come after the
  13793. # user supplied libs so there is no need to process them.
  13794. if test -z "$compiler_lib_search_path_CXX"; then
  13795. compiler_lib_search_path_CXX=$prev$p
  13796. else
  13797. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13798. fi
  13799. ;;
  13800. # The "-l" case would never come before the object being
  13801. # linked, so don't bother handling this case.
  13802. esac
  13803. else
  13804. if test -z "$postdeps_CXX"; then
  13805. postdeps_CXX=$prev$p
  13806. else
  13807. postdeps_CXX="${postdeps_CXX} $prev$p"
  13808. fi
  13809. fi
  13810. prev=
  13811. ;;
  13812. *.lto.$objext) ;; # Ignore GCC LTO objects
  13813. *.$objext)
  13814. # This assumes that the test object file only shows up
  13815. # once in the compiler output.
  13816. if test "$p" = "conftest.$objext"; then
  13817. pre_test_object_deps_done=yes
  13818. continue
  13819. fi
  13820. if test no = "$pre_test_object_deps_done"; then
  13821. if test -z "$predep_objects_CXX"; then
  13822. predep_objects_CXX=$p
  13823. else
  13824. predep_objects_CXX="$predep_objects_CXX $p"
  13825. fi
  13826. else
  13827. if test -z "$postdep_objects_CXX"; then
  13828. postdep_objects_CXX=$p
  13829. else
  13830. postdep_objects_CXX="$postdep_objects_CXX $p"
  13831. fi
  13832. fi
  13833. ;;
  13834. *) ;; # Ignore the rest.
  13835. esac
  13836. done
  13837. # Clean up.
  13838. rm -f a.out a.exe
  13839. else
  13840. echo "libtool.m4: error: problem compiling CXX test program"
  13841. fi
  13842. $RM -f confest.$objext
  13843. CFLAGS=$_lt_libdeps_save_CFLAGS
  13844. # PORTME: override above test on systems where it is broken
  13845. case $host_os in
  13846. interix[3-9]*)
  13847. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13848. # hack all around it, let's just trust "g++" to DTRT.
  13849. predep_objects_CXX=
  13850. postdep_objects_CXX=
  13851. postdeps_CXX=
  13852. ;;
  13853. esac
  13854. case " $postdeps_CXX " in
  13855. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13856. esac
  13857. compiler_lib_search_dirs_CXX=
  13858. if test -n "${compiler_lib_search_path_CXX}"; then
  13859. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13860. fi
  13861. lt_prog_compiler_wl_CXX=
  13862. lt_prog_compiler_pic_CXX=
  13863. lt_prog_compiler_static_CXX=
  13864. # C++ specific cases for pic, static, wl, etc.
  13865. if test yes = "$GXX"; then
  13866. lt_prog_compiler_wl_CXX='-Wl,'
  13867. lt_prog_compiler_static_CXX='-static'
  13868. case $host_os in
  13869. aix*)
  13870. # All AIX code is PIC.
  13871. if test ia64 = "$host_cpu"; then
  13872. # AIX 5 now supports IA64 processor
  13873. lt_prog_compiler_static_CXX='-Bstatic'
  13874. fi
  13875. lt_prog_compiler_pic_CXX='-fPIC'
  13876. ;;
  13877. amigaos*)
  13878. case $host_cpu in
  13879. powerpc)
  13880. # see comment about AmigaOS4 .so support
  13881. lt_prog_compiler_pic_CXX='-fPIC'
  13882. ;;
  13883. m68k)
  13884. # FIXME: we need at least 68020 code to build shared libraries, but
  13885. # adding the '-m68020' flag to GCC prevents building anything better,
  13886. # like '-m68040'.
  13887. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13888. ;;
  13889. esac
  13890. ;;
  13891. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13892. # PIC is the default for these OSes.
  13893. ;;
  13894. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13895. # This hack is so that the source file can tell whether it is being
  13896. # built for inclusion in a dll (and should export symbols for example).
  13897. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13898. # (--disable-auto-import) libraries
  13899. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13900. case $host_os in
  13901. os2*)
  13902. lt_prog_compiler_static_CXX='$wl-static'
  13903. ;;
  13904. esac
  13905. ;;
  13906. darwin* | rhapsody*)
  13907. # PIC is the default on this platform
  13908. # Common symbols not allowed in MH_DYLIB files
  13909. lt_prog_compiler_pic_CXX='-fno-common'
  13910. ;;
  13911. *djgpp*)
  13912. # DJGPP does not support shared libraries at all
  13913. lt_prog_compiler_pic_CXX=
  13914. ;;
  13915. haiku*)
  13916. # PIC is the default for Haiku.
  13917. # The "-static" flag exists, but is broken.
  13918. lt_prog_compiler_static_CXX=
  13919. ;;
  13920. interix[3-9]*)
  13921. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13922. # Instead, we relocate shared libraries at runtime.
  13923. ;;
  13924. sysv4*MP*)
  13925. if test -d /usr/nec; then
  13926. lt_prog_compiler_pic_CXX=-Kconform_pic
  13927. fi
  13928. ;;
  13929. hpux*)
  13930. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13931. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13932. # sets the default TLS model and affects inlining.
  13933. case $host_cpu in
  13934. hppa*64*)
  13935. ;;
  13936. *)
  13937. lt_prog_compiler_pic_CXX='-fPIC'
  13938. ;;
  13939. esac
  13940. ;;
  13941. *qnx* | *nto*)
  13942. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13943. # it will coredump.
  13944. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13945. ;;
  13946. *)
  13947. lt_prog_compiler_pic_CXX='-fPIC'
  13948. ;;
  13949. esac
  13950. else
  13951. case $host_os in
  13952. aix[4-9]*)
  13953. # All AIX code is PIC.
  13954. if test ia64 = "$host_cpu"; then
  13955. # AIX 5 now supports IA64 processor
  13956. lt_prog_compiler_static_CXX='-Bstatic'
  13957. else
  13958. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13959. fi
  13960. ;;
  13961. chorus*)
  13962. case $cc_basename in
  13963. cxch68*)
  13964. # Green Hills C++ Compiler
  13965. # _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"
  13966. ;;
  13967. esac
  13968. ;;
  13969. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13970. # This hack is so that the source file can tell whether it is being
  13971. # built for inclusion in a dll (and should export symbols for example).
  13972. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13973. ;;
  13974. dgux*)
  13975. case $cc_basename in
  13976. ec++*)
  13977. lt_prog_compiler_pic_CXX='-KPIC'
  13978. ;;
  13979. ghcx*)
  13980. # Green Hills C++ Compiler
  13981. lt_prog_compiler_pic_CXX='-pic'
  13982. ;;
  13983. *)
  13984. ;;
  13985. esac
  13986. ;;
  13987. freebsd* | dragonfly* | midnightbsd*)
  13988. # FreeBSD uses GNU C++
  13989. ;;
  13990. hpux9* | hpux10* | hpux11*)
  13991. case $cc_basename in
  13992. CC*)
  13993. lt_prog_compiler_wl_CXX='-Wl,'
  13994. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13995. if test ia64 != "$host_cpu"; then
  13996. lt_prog_compiler_pic_CXX='+Z'
  13997. fi
  13998. ;;
  13999. aCC*)
  14000. lt_prog_compiler_wl_CXX='-Wl,'
  14001. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14002. case $host_cpu in
  14003. hppa*64*|ia64*)
  14004. # +Z the default
  14005. ;;
  14006. *)
  14007. lt_prog_compiler_pic_CXX='+Z'
  14008. ;;
  14009. esac
  14010. ;;
  14011. *)
  14012. ;;
  14013. esac
  14014. ;;
  14015. interix*)
  14016. # This is c89, which is MS Visual C++ (no shared libs)
  14017. # Anyone wants to do a port?
  14018. ;;
  14019. irix5* | irix6* | nonstopux*)
  14020. case $cc_basename in
  14021. CC*)
  14022. lt_prog_compiler_wl_CXX='-Wl,'
  14023. lt_prog_compiler_static_CXX='-non_shared'
  14024. # CC pic flag -KPIC is the default.
  14025. ;;
  14026. *)
  14027. ;;
  14028. esac
  14029. ;;
  14030. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14031. case $cc_basename in
  14032. KCC*)
  14033. # KAI C++ Compiler
  14034. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14035. lt_prog_compiler_pic_CXX='-fPIC'
  14036. ;;
  14037. ecpc* )
  14038. # old Intel C++ for x86_64, which still supported -KPIC.
  14039. lt_prog_compiler_wl_CXX='-Wl,'
  14040. lt_prog_compiler_pic_CXX='-KPIC'
  14041. lt_prog_compiler_static_CXX='-static'
  14042. ;;
  14043. icpc* )
  14044. # Intel C++, used to be incompatible with GCC.
  14045. # ICC 10 doesn't accept -KPIC any more.
  14046. lt_prog_compiler_wl_CXX='-Wl,'
  14047. lt_prog_compiler_pic_CXX='-fPIC'
  14048. lt_prog_compiler_static_CXX='-static'
  14049. ;;
  14050. pgCC* | pgcpp*)
  14051. # Portland Group C++ compiler
  14052. lt_prog_compiler_wl_CXX='-Wl,'
  14053. lt_prog_compiler_pic_CXX='-fpic'
  14054. lt_prog_compiler_static_CXX='-Bstatic'
  14055. ;;
  14056. cxx*)
  14057. # Compaq C++
  14058. # Make sure the PIC flag is empty. It appears that all Alpha
  14059. # Linux and Compaq Tru64 Unix objects are PIC.
  14060. lt_prog_compiler_pic_CXX=
  14061. lt_prog_compiler_static_CXX='-non_shared'
  14062. ;;
  14063. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14064. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14065. lt_prog_compiler_wl_CXX='-Wl,'
  14066. lt_prog_compiler_pic_CXX='-qpic'
  14067. lt_prog_compiler_static_CXX='-qstaticlink'
  14068. ;;
  14069. *)
  14070. case `$CC -V 2>&1 | sed 5q` in
  14071. *Sun\ C*)
  14072. # Sun C++ 5.9
  14073. lt_prog_compiler_pic_CXX='-KPIC'
  14074. lt_prog_compiler_static_CXX='-Bstatic'
  14075. lt_prog_compiler_wl_CXX='-Qoption ld '
  14076. ;;
  14077. esac
  14078. ;;
  14079. esac
  14080. ;;
  14081. lynxos*)
  14082. ;;
  14083. m88k*)
  14084. ;;
  14085. mvs*)
  14086. case $cc_basename in
  14087. cxx*)
  14088. lt_prog_compiler_pic_CXX='-W c,exportall'
  14089. ;;
  14090. *)
  14091. ;;
  14092. esac
  14093. ;;
  14094. netbsd*)
  14095. ;;
  14096. *qnx* | *nto*)
  14097. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14098. # it will coredump.
  14099. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14100. ;;
  14101. osf3* | osf4* | osf5*)
  14102. case $cc_basename in
  14103. KCC*)
  14104. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14105. ;;
  14106. RCC*)
  14107. # Rational C++ 2.4.1
  14108. lt_prog_compiler_pic_CXX='-pic'
  14109. ;;
  14110. cxx*)
  14111. # Digital/Compaq C++
  14112. lt_prog_compiler_wl_CXX='-Wl,'
  14113. # Make sure the PIC flag is empty. It appears that all Alpha
  14114. # Linux and Compaq Tru64 Unix objects are PIC.
  14115. lt_prog_compiler_pic_CXX=
  14116. lt_prog_compiler_static_CXX='-non_shared'
  14117. ;;
  14118. *)
  14119. ;;
  14120. esac
  14121. ;;
  14122. psos*)
  14123. ;;
  14124. solaris*)
  14125. case $cc_basename in
  14126. CC* | sunCC*)
  14127. # Sun C++ 4.2, 5.x and Centerline C++
  14128. lt_prog_compiler_pic_CXX='-KPIC'
  14129. lt_prog_compiler_static_CXX='-Bstatic'
  14130. lt_prog_compiler_wl_CXX='-Qoption ld '
  14131. ;;
  14132. gcx*)
  14133. # Green Hills C++ Compiler
  14134. lt_prog_compiler_pic_CXX='-PIC'
  14135. ;;
  14136. *)
  14137. ;;
  14138. esac
  14139. ;;
  14140. sunos4*)
  14141. case $cc_basename in
  14142. CC*)
  14143. # Sun C++ 4.x
  14144. lt_prog_compiler_pic_CXX='-pic'
  14145. lt_prog_compiler_static_CXX='-Bstatic'
  14146. ;;
  14147. lcc*)
  14148. # Lucid
  14149. lt_prog_compiler_pic_CXX='-pic'
  14150. ;;
  14151. *)
  14152. ;;
  14153. esac
  14154. ;;
  14155. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14156. case $cc_basename in
  14157. CC*)
  14158. lt_prog_compiler_wl_CXX='-Wl,'
  14159. lt_prog_compiler_pic_CXX='-KPIC'
  14160. lt_prog_compiler_static_CXX='-Bstatic'
  14161. ;;
  14162. esac
  14163. ;;
  14164. tandem*)
  14165. case $cc_basename in
  14166. NCC*)
  14167. # NonStop-UX NCC 3.20
  14168. lt_prog_compiler_pic_CXX='-KPIC'
  14169. ;;
  14170. *)
  14171. ;;
  14172. esac
  14173. ;;
  14174. vxworks*)
  14175. ;;
  14176. *)
  14177. lt_prog_compiler_can_build_shared_CXX=no
  14178. ;;
  14179. esac
  14180. fi
  14181. case $host_os in
  14182. # For platforms that do not support PIC, -DPIC is meaningless:
  14183. *djgpp*)
  14184. lt_prog_compiler_pic_CXX=
  14185. ;;
  14186. *)
  14187. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14188. ;;
  14189. esac
  14190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14191. printf %s "checking for $compiler option to produce PIC... " >&6; }
  14192. if test ${lt_cv_prog_compiler_pic_CXX+y}
  14193. then :
  14194. printf %s "(cached) " >&6
  14195. else $as_nop
  14196. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14197. fi
  14198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14199. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14200. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14201. #
  14202. # Check to make sure the PIC flag actually works.
  14203. #
  14204. if test -n "$lt_prog_compiler_pic_CXX"; then
  14205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14206. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14207. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  14208. then :
  14209. printf %s "(cached) " >&6
  14210. else $as_nop
  14211. lt_cv_prog_compiler_pic_works_CXX=no
  14212. ac_outfile=conftest.$ac_objext
  14213. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14214. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14215. # Insert the option either (1) after the last *FLAGS variable, or
  14216. # (2) before a word containing "conftest.", or (3) at the end.
  14217. # Note that $ac_compile itself does not contain backslashes and begins
  14218. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14219. # The option is referenced via a variable to avoid confusing sed.
  14220. lt_compile=`echo "$ac_compile" | $SED \
  14221. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14222. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14223. -e 's:$: $lt_compiler_flag:'`
  14224. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14225. (eval "$lt_compile" 2>conftest.err)
  14226. ac_status=$?
  14227. cat conftest.err >&5
  14228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14229. if (exit $ac_status) && test -s "$ac_outfile"; then
  14230. # The compiler can only warn and ignore the option if not recognized
  14231. # So say no if there are warnings other than the usual output.
  14232. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14233. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14234. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14235. lt_cv_prog_compiler_pic_works_CXX=yes
  14236. fi
  14237. fi
  14238. $RM conftest*
  14239. fi
  14240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14241. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14242. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14243. case $lt_prog_compiler_pic_CXX in
  14244. "" | " "*) ;;
  14245. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14246. esac
  14247. else
  14248. lt_prog_compiler_pic_CXX=
  14249. lt_prog_compiler_can_build_shared_CXX=no
  14250. fi
  14251. fi
  14252. #
  14253. # Check to make sure the static flag actually works.
  14254. #
  14255. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14257. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14258. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  14259. then :
  14260. printf %s "(cached) " >&6
  14261. else $as_nop
  14262. lt_cv_prog_compiler_static_works_CXX=no
  14263. save_LDFLAGS=$LDFLAGS
  14264. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14265. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14266. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14267. # The linker can only warn and ignore the option if not recognized
  14268. # So say no if there are warnings
  14269. if test -s conftest.err; then
  14270. # Append any errors to the config.log.
  14271. cat conftest.err 1>&5
  14272. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14273. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14274. if diff conftest.exp conftest.er2 >/dev/null; then
  14275. lt_cv_prog_compiler_static_works_CXX=yes
  14276. fi
  14277. else
  14278. lt_cv_prog_compiler_static_works_CXX=yes
  14279. fi
  14280. fi
  14281. $RM -r conftest*
  14282. LDFLAGS=$save_LDFLAGS
  14283. fi
  14284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14285. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14286. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14287. :
  14288. else
  14289. lt_prog_compiler_static_CXX=
  14290. fi
  14291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14292. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14293. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14294. then :
  14295. printf %s "(cached) " >&6
  14296. else $as_nop
  14297. lt_cv_prog_compiler_c_o_CXX=no
  14298. $RM -r conftest 2>/dev/null
  14299. mkdir conftest
  14300. cd conftest
  14301. mkdir out
  14302. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14303. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14304. # Insert the option either (1) after the last *FLAGS variable, or
  14305. # (2) before a word containing "conftest.", or (3) at the end.
  14306. # Note that $ac_compile itself does not contain backslashes and begins
  14307. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14308. lt_compile=`echo "$ac_compile" | $SED \
  14309. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14310. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14311. -e 's:$: $lt_compiler_flag:'`
  14312. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14313. (eval "$lt_compile" 2>out/conftest.err)
  14314. ac_status=$?
  14315. cat out/conftest.err >&5
  14316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14317. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14318. then
  14319. # The compiler can only warn and ignore the option if not recognized
  14320. # So say no if there are warnings
  14321. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14322. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14323. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14324. lt_cv_prog_compiler_c_o_CXX=yes
  14325. fi
  14326. fi
  14327. chmod u+w . 2>&5
  14328. $RM conftest*
  14329. # SGI C++ compiler will create directory out/ii_files/ for
  14330. # template instantiation
  14331. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14332. $RM out/* && rmdir out
  14333. cd ..
  14334. $RM -r conftest
  14335. $RM conftest*
  14336. fi
  14337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14338. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14340. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14341. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14342. then :
  14343. printf %s "(cached) " >&6
  14344. else $as_nop
  14345. lt_cv_prog_compiler_c_o_CXX=no
  14346. $RM -r conftest 2>/dev/null
  14347. mkdir conftest
  14348. cd conftest
  14349. mkdir out
  14350. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14351. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14352. # Insert the option either (1) after the last *FLAGS variable, or
  14353. # (2) before a word containing "conftest.", or (3) at the end.
  14354. # Note that $ac_compile itself does not contain backslashes and begins
  14355. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14356. lt_compile=`echo "$ac_compile" | $SED \
  14357. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14358. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14359. -e 's:$: $lt_compiler_flag:'`
  14360. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14361. (eval "$lt_compile" 2>out/conftest.err)
  14362. ac_status=$?
  14363. cat out/conftest.err >&5
  14364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14365. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14366. then
  14367. # The compiler can only warn and ignore the option if not recognized
  14368. # So say no if there are warnings
  14369. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14370. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14371. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14372. lt_cv_prog_compiler_c_o_CXX=yes
  14373. fi
  14374. fi
  14375. chmod u+w . 2>&5
  14376. $RM conftest*
  14377. # SGI C++ compiler will create directory out/ii_files/ for
  14378. # template instantiation
  14379. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14380. $RM out/* && rmdir out
  14381. cd ..
  14382. $RM -r conftest
  14383. $RM conftest*
  14384. fi
  14385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14386. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14387. hard_links=nottested
  14388. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14389. # do not overwrite the value of need_locks provided by the user
  14390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14391. printf %s "checking if we can lock with hard links... " >&6; }
  14392. hard_links=yes
  14393. $RM conftest*
  14394. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14395. touch conftest.a
  14396. ln conftest.a conftest.b 2>&5 || hard_links=no
  14397. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14399. printf "%s\n" "$hard_links" >&6; }
  14400. if test no = "$hard_links"; then
  14401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14402. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14403. need_locks=warn
  14404. fi
  14405. else
  14406. need_locks=no
  14407. fi
  14408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14409. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14410. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14411. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14412. case $host_os in
  14413. aix[4-9]*)
  14414. # If we're using GNU nm, then we don't want the "-C" option.
  14415. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14416. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14417. # weak defined symbols like other global defined symbols, whereas
  14418. # GNU nm marks them as "W".
  14419. # While the 'weak' keyword is ignored in the Export File, we need
  14420. # it in the Import File for the 'aix-soname' feature, so we have
  14421. # to replace the "-B" option with "-P" for AIX nm.
  14422. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14423. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  14424. else
  14425. export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  14426. fi
  14427. ;;
  14428. pw32*)
  14429. export_symbols_cmds_CXX=$ltdll_cmds
  14430. ;;
  14431. cygwin* | mingw* | cegcc*)
  14432. case $cc_basename in
  14433. cl*)
  14434. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14435. ;;
  14436. *)
  14437. 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'
  14438. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14439. ;;
  14440. esac
  14441. ;;
  14442. *)
  14443. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14444. ;;
  14445. esac
  14446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14447. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  14448. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14449. with_gnu_ld_CXX=$with_gnu_ld
  14450. #
  14451. # Do we need to explicitly link libc?
  14452. #
  14453. case "x$archive_cmds_need_lc_CXX" in
  14454. x|xyes)
  14455. # Assume -lc should be added
  14456. archive_cmds_need_lc_CXX=yes
  14457. if test yes,yes = "$GCC,$enable_shared"; then
  14458. case $archive_cmds_CXX in
  14459. *'~'*)
  14460. # FIXME: we may have to deal with multi-command sequences.
  14461. ;;
  14462. '$CC '*)
  14463. # Test whether the compiler implicitly links with -lc since on some
  14464. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14465. # to ld, don't add -lc before -lgcc.
  14466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14467. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  14468. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  14469. then :
  14470. printf %s "(cached) " >&6
  14471. else $as_nop
  14472. $RM conftest*
  14473. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14474. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14475. (eval $ac_compile) 2>&5
  14476. ac_status=$?
  14477. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14478. test $ac_status = 0; } 2>conftest.err; then
  14479. soname=conftest
  14480. lib=conftest
  14481. libobjs=conftest.$ac_objext
  14482. deplibs=
  14483. wl=$lt_prog_compiler_wl_CXX
  14484. pic_flag=$lt_prog_compiler_pic_CXX
  14485. compiler_flags=-v
  14486. linker_flags=-v
  14487. verstring=
  14488. output_objdir=.
  14489. libname=conftest
  14490. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14491. allow_undefined_flag_CXX=
  14492. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14493. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14494. ac_status=$?
  14495. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14496. test $ac_status = 0; }
  14497. then
  14498. lt_cv_archive_cmds_need_lc_CXX=no
  14499. else
  14500. lt_cv_archive_cmds_need_lc_CXX=yes
  14501. fi
  14502. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14503. else
  14504. cat conftest.err 1>&5
  14505. fi
  14506. $RM conftest*
  14507. fi
  14508. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14509. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14510. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14511. ;;
  14512. esac
  14513. fi
  14514. ;;
  14515. esac
  14516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14517. printf %s "checking dynamic linker characteristics... " >&6; }
  14518. library_names_spec=
  14519. libname_spec='lib$name'
  14520. soname_spec=
  14521. shrext_cmds=.so
  14522. postinstall_cmds=
  14523. postuninstall_cmds=
  14524. finish_cmds=
  14525. finish_eval=
  14526. shlibpath_var=
  14527. shlibpath_overrides_runpath=unknown
  14528. version_type=none
  14529. dynamic_linker="$host_os ld.so"
  14530. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14531. need_lib_prefix=unknown
  14532. hardcode_into_libs=no
  14533. # when you set need_version to no, make sure it does not cause -set_version
  14534. # flags to be left without arguments
  14535. need_version=unknown
  14536. case $host_os in
  14537. aix3*)
  14538. version_type=linux # correct to gnu/linux during the next big refactor
  14539. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14540. shlibpath_var=LIBPATH
  14541. # AIX 3 has no versioning support, so we append a major version to the name.
  14542. soname_spec='$libname$release$shared_ext$major'
  14543. ;;
  14544. aix[4-9]*)
  14545. version_type=linux # correct to gnu/linux during the next big refactor
  14546. need_lib_prefix=no
  14547. need_version=no
  14548. hardcode_into_libs=yes
  14549. if test ia64 = "$host_cpu"; then
  14550. # AIX 5 supports IA64
  14551. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14552. shlibpath_var=LD_LIBRARY_PATH
  14553. else
  14554. # With GCC up to 2.95.x, collect2 would create an import file
  14555. # for dependence libraries. The import file would start with
  14556. # the line '#! .'. This would cause the generated library to
  14557. # depend on '.', always an invalid library. This was fixed in
  14558. # development snapshots of GCC prior to 3.0.
  14559. case $host_os in
  14560. aix4 | aix4.[01] | aix4.[01].*)
  14561. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14562. echo ' yes '
  14563. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14564. :
  14565. else
  14566. can_build_shared=no
  14567. fi
  14568. ;;
  14569. esac
  14570. # Using Import Files as archive members, it is possible to support
  14571. # filename-based versioning of shared library archives on AIX. While
  14572. # this would work for both with and without runtime linking, it will
  14573. # prevent static linking of such archives. So we do filename-based
  14574. # shared library versioning with .so extension only, which is used
  14575. # when both runtime linking and shared linking is enabled.
  14576. # Unfortunately, runtime linking may impact performance, so we do
  14577. # not want this to be the default eventually. Also, we use the
  14578. # versioned .so libs for executables only if there is the -brtl
  14579. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14580. # To allow for filename-based versioning support, we need to create
  14581. # libNAME.so.V as an archive file, containing:
  14582. # *) an Import File, referring to the versioned filename of the
  14583. # archive as well as the shared archive member, telling the
  14584. # bitwidth (32 or 64) of that shared object, and providing the
  14585. # list of exported symbols of that shared object, eventually
  14586. # decorated with the 'weak' keyword
  14587. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14588. # it being seen by the linker.
  14589. # At run time we better use the real file rather than another symlink,
  14590. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14591. case $with_aix_soname,$aix_use_runtimelinking in
  14592. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14593. # soname into executable. Probably we can add versioning support to
  14594. # collect2, so additional links can be useful in future.
  14595. aix,yes) # traditional libtool
  14596. dynamic_linker='AIX unversionable lib.so'
  14597. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14598. # instead of lib<name>.a to let people know that these are not
  14599. # typical AIX shared libraries.
  14600. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14601. ;;
  14602. aix,no) # traditional AIX only
  14603. dynamic_linker='AIX lib.a(lib.so.V)'
  14604. # We preserve .a as extension for shared libraries through AIX4.2
  14605. # and later when we are not doing run time linking.
  14606. library_names_spec='$libname$release.a $libname.a'
  14607. soname_spec='$libname$release$shared_ext$major'
  14608. ;;
  14609. svr4,*) # full svr4 only
  14610. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14611. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14612. # We do not specify a path in Import Files, so LIBPATH fires.
  14613. shlibpath_overrides_runpath=yes
  14614. ;;
  14615. *,yes) # both, prefer svr4
  14616. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14617. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14618. # unpreferred sharedlib libNAME.a needs extra handling
  14619. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  14620. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  14621. # We do not specify a path in Import Files, so LIBPATH fires.
  14622. shlibpath_overrides_runpath=yes
  14623. ;;
  14624. *,no) # both, prefer aix
  14625. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14626. library_names_spec='$libname$release.a $libname.a'
  14627. soname_spec='$libname$release$shared_ext$major'
  14628. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14629. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  14630. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  14631. ;;
  14632. esac
  14633. shlibpath_var=LIBPATH
  14634. fi
  14635. ;;
  14636. amigaos*)
  14637. case $host_cpu in
  14638. powerpc)
  14639. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14640. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14641. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14642. ;;
  14643. m68k)
  14644. library_names_spec='$libname.ixlibrary $libname.a'
  14645. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14646. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  14647. ;;
  14648. esac
  14649. ;;
  14650. beos*)
  14651. library_names_spec='$libname$shared_ext'
  14652. dynamic_linker="$host_os ld.so"
  14653. shlibpath_var=LIBRARY_PATH
  14654. ;;
  14655. bsdi[45]*)
  14656. version_type=linux # correct to gnu/linux during the next big refactor
  14657. need_version=no
  14658. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14659. soname_spec='$libname$release$shared_ext$major'
  14660. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14661. shlibpath_var=LD_LIBRARY_PATH
  14662. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14663. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14664. # the default ld.so.conf also contains /usr/contrib/lib and
  14665. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14666. # libtool to hard-code these into programs
  14667. ;;
  14668. cygwin* | mingw* | pw32* | cegcc*)
  14669. version_type=windows
  14670. shrext_cmds=.dll
  14671. need_version=no
  14672. need_lib_prefix=no
  14673. case $GCC,$cc_basename in
  14674. yes,*)
  14675. # gcc
  14676. library_names_spec='$libname.dll.a'
  14677. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14678. postinstall_cmds='base_file=`basename \$file`~
  14679. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14680. dldir=$destdir/`dirname \$dlpath`~
  14681. test -d \$dldir || mkdir -p \$dldir~
  14682. $install_prog $dir/$dlname \$dldir/$dlname~
  14683. chmod a+x \$dldir/$dlname~
  14684. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14685. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14686. fi'
  14687. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14688. dlpath=$dir/\$dldll~
  14689. $RM \$dlpath'
  14690. shlibpath_overrides_runpath=yes
  14691. case $host_os in
  14692. cygwin*)
  14693. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14694. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14695. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  14696. ;;
  14697. mingw* | cegcc*)
  14698. # MinGW DLLs use traditional 'lib' prefix
  14699. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14700. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  14701. ;;
  14702. pw32*)
  14703. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14704. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14705. ;;
  14706. esac
  14707. dynamic_linker='Win32 ld.exe'
  14708. ;;
  14709. *,cl*)
  14710. # Native MSVC
  14711. libname_spec='$name'
  14712. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14713. library_names_spec='$libname.dll.lib'
  14714. case $build_os in
  14715. mingw*)
  14716. sys_lib_search_path_spec=
  14717. lt_save_ifs=$IFS
  14718. IFS=';'
  14719. for lt_path in $LIB
  14720. do
  14721. IFS=$lt_save_ifs
  14722. # Let DOS variable expansion print the short 8.3 style file name.
  14723. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14724. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14725. done
  14726. IFS=$lt_save_ifs
  14727. # Convert to MSYS style.
  14728. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14729. ;;
  14730. cygwin*)
  14731. # Convert to unix form, then to dos form, then back to unix form
  14732. # but this time dos style (no spaces!) so that the unix form looks
  14733. # like /cygdrive/c/PROGRA~1:/cygdr...
  14734. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14735. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14736. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14737. ;;
  14738. *)
  14739. sys_lib_search_path_spec=$LIB
  14740. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14741. # It is most probably a Windows format PATH.
  14742. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14743. else
  14744. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14745. fi
  14746. # FIXME: find the short name or the path components, as spaces are
  14747. # common. (e.g. "Program Files" -> "PROGRA~1")
  14748. ;;
  14749. esac
  14750. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14751. postinstall_cmds='base_file=`basename \$file`~
  14752. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14753. dldir=$destdir/`dirname \$dlpath`~
  14754. test -d \$dldir || mkdir -p \$dldir~
  14755. $install_prog $dir/$dlname \$dldir/$dlname'
  14756. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14757. dlpath=$dir/\$dldll~
  14758. $RM \$dlpath'
  14759. shlibpath_overrides_runpath=yes
  14760. dynamic_linker='Win32 link.exe'
  14761. ;;
  14762. *)
  14763. # Assume MSVC wrapper
  14764. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14765. dynamic_linker='Win32 ld.exe'
  14766. ;;
  14767. esac
  14768. # FIXME: first we should search . and the directory the executable is in
  14769. shlibpath_var=PATH
  14770. ;;
  14771. darwin* | rhapsody*)
  14772. dynamic_linker="$host_os dyld"
  14773. version_type=darwin
  14774. need_lib_prefix=no
  14775. need_version=no
  14776. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14777. soname_spec='$libname$release$major$shared_ext'
  14778. shlibpath_overrides_runpath=yes
  14779. shlibpath_var=DYLD_LIBRARY_PATH
  14780. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14781. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14782. ;;
  14783. dgux*)
  14784. version_type=linux # correct to gnu/linux during the next big refactor
  14785. need_lib_prefix=no
  14786. need_version=no
  14787. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14788. soname_spec='$libname$release$shared_ext$major'
  14789. shlibpath_var=LD_LIBRARY_PATH
  14790. ;;
  14791. freebsd* | dragonfly* | midnightbsd*)
  14792. # DragonFly does not have aout. When/if they implement a new
  14793. # versioning mechanism, adjust this.
  14794. if test -x /usr/bin/objformat; then
  14795. objformat=`/usr/bin/objformat`
  14796. else
  14797. case $host_os in
  14798. freebsd[23].*) objformat=aout ;;
  14799. *) objformat=elf ;;
  14800. esac
  14801. fi
  14802. version_type=freebsd-$objformat
  14803. case $version_type in
  14804. freebsd-elf*)
  14805. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14806. soname_spec='$libname$release$shared_ext$major'
  14807. need_version=no
  14808. need_lib_prefix=no
  14809. ;;
  14810. freebsd-*)
  14811. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14812. need_version=yes
  14813. ;;
  14814. esac
  14815. shlibpath_var=LD_LIBRARY_PATH
  14816. case $host_os in
  14817. freebsd2.*)
  14818. shlibpath_overrides_runpath=yes
  14819. ;;
  14820. freebsd3.[01]* | freebsdelf3.[01]*)
  14821. shlibpath_overrides_runpath=yes
  14822. hardcode_into_libs=yes
  14823. ;;
  14824. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14825. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14826. shlibpath_overrides_runpath=no
  14827. hardcode_into_libs=yes
  14828. ;;
  14829. *) # from 4.6 on, and DragonFly
  14830. shlibpath_overrides_runpath=yes
  14831. hardcode_into_libs=yes
  14832. ;;
  14833. esac
  14834. ;;
  14835. haiku*)
  14836. version_type=linux # correct to gnu/linux during the next big refactor
  14837. need_lib_prefix=no
  14838. need_version=no
  14839. dynamic_linker="$host_os runtime_loader"
  14840. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14841. soname_spec='$libname$release$shared_ext$major'
  14842. shlibpath_var=LIBRARY_PATH
  14843. shlibpath_overrides_runpath=no
  14844. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14845. hardcode_into_libs=yes
  14846. ;;
  14847. hpux9* | hpux10* | hpux11*)
  14848. # Give a soname corresponding to the major version so that dld.sl refuses to
  14849. # link against other versions.
  14850. version_type=sunos
  14851. need_lib_prefix=no
  14852. need_version=no
  14853. case $host_cpu in
  14854. ia64*)
  14855. shrext_cmds='.so'
  14856. hardcode_into_libs=yes
  14857. dynamic_linker="$host_os dld.so"
  14858. shlibpath_var=LD_LIBRARY_PATH
  14859. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14860. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14861. soname_spec='$libname$release$shared_ext$major'
  14862. if test 32 = "$HPUX_IA64_MODE"; then
  14863. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14864. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14865. else
  14866. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14867. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14868. fi
  14869. ;;
  14870. hppa*64*)
  14871. shrext_cmds='.sl'
  14872. hardcode_into_libs=yes
  14873. dynamic_linker="$host_os dld.sl"
  14874. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14875. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14876. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14877. soname_spec='$libname$release$shared_ext$major'
  14878. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14879. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14880. ;;
  14881. *)
  14882. shrext_cmds='.sl'
  14883. dynamic_linker="$host_os dld.sl"
  14884. shlibpath_var=SHLIB_PATH
  14885. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14886. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14887. soname_spec='$libname$release$shared_ext$major'
  14888. ;;
  14889. esac
  14890. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14891. postinstall_cmds='chmod 555 $lib'
  14892. # or fails outright, so override atomically:
  14893. install_override_mode=555
  14894. ;;
  14895. interix[3-9]*)
  14896. version_type=linux # correct to gnu/linux during the next big refactor
  14897. need_lib_prefix=no
  14898. need_version=no
  14899. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14900. soname_spec='$libname$release$shared_ext$major'
  14901. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14902. shlibpath_var=LD_LIBRARY_PATH
  14903. shlibpath_overrides_runpath=no
  14904. hardcode_into_libs=yes
  14905. ;;
  14906. irix5* | irix6* | nonstopux*)
  14907. case $host_os in
  14908. nonstopux*) version_type=nonstopux ;;
  14909. *)
  14910. if test yes = "$lt_cv_prog_gnu_ld"; then
  14911. version_type=linux # correct to gnu/linux during the next big refactor
  14912. else
  14913. version_type=irix
  14914. fi ;;
  14915. esac
  14916. need_lib_prefix=no
  14917. need_version=no
  14918. soname_spec='$libname$release$shared_ext$major'
  14919. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14920. case $host_os in
  14921. irix5* | nonstopux*)
  14922. libsuff= shlibsuff=
  14923. ;;
  14924. *)
  14925. case $LD in # libtool.m4 will add one of these switches to LD
  14926. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14927. libsuff= shlibsuff= libmagic=32-bit;;
  14928. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14929. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14930. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14931. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14932. *) libsuff= shlibsuff= libmagic=never-match;;
  14933. esac
  14934. ;;
  14935. esac
  14936. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14937. shlibpath_overrides_runpath=no
  14938. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14939. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14940. hardcode_into_libs=yes
  14941. ;;
  14942. # No shared lib support for Linux oldld, aout, or coff.
  14943. linux*oldld* | linux*aout* | linux*coff*)
  14944. dynamic_linker=no
  14945. ;;
  14946. linux*android*)
  14947. version_type=none # Android doesn't support versioned libraries.
  14948. need_lib_prefix=no
  14949. need_version=no
  14950. library_names_spec='$libname$release$shared_ext'
  14951. soname_spec='$libname$release$shared_ext'
  14952. finish_cmds=
  14953. shlibpath_var=LD_LIBRARY_PATH
  14954. shlibpath_overrides_runpath=yes
  14955. # This implies no fast_install, which is unacceptable.
  14956. # Some rework will be needed to allow for fast_install
  14957. # before this can be enabled.
  14958. hardcode_into_libs=yes
  14959. dynamic_linker='Android linker'
  14960. # Don't embed -rpath directories since the linker doesn't support them.
  14961. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14962. ;;
  14963. # This must be glibc/ELF.
  14964. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14965. version_type=linux # correct to gnu/linux during the next big refactor
  14966. need_lib_prefix=no
  14967. need_version=no
  14968. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14969. soname_spec='$libname$release$shared_ext$major'
  14970. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14971. shlibpath_var=LD_LIBRARY_PATH
  14972. shlibpath_overrides_runpath=no
  14973. # Some binutils ld are patched to set DT_RUNPATH
  14974. if test ${lt_cv_shlibpath_overrides_runpath+y}
  14975. then :
  14976. printf %s "(cached) " >&6
  14977. else $as_nop
  14978. lt_cv_shlibpath_overrides_runpath=no
  14979. save_LDFLAGS=$LDFLAGS
  14980. save_libdir=$libdir
  14981. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14982. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14984. /* end confdefs.h. */
  14985. int
  14986. main (void)
  14987. {
  14988. ;
  14989. return 0;
  14990. }
  14991. _ACEOF
  14992. if ac_fn_cxx_try_link "$LINENO"
  14993. then :
  14994. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  14995. then :
  14996. lt_cv_shlibpath_overrides_runpath=yes
  14997. fi
  14998. fi
  14999. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15000. conftest$ac_exeext conftest.$ac_ext
  15001. LDFLAGS=$save_LDFLAGS
  15002. libdir=$save_libdir
  15003. fi
  15004. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  15005. # This implies no fast_install, which is unacceptable.
  15006. # Some rework will be needed to allow for fast_install
  15007. # before this can be enabled.
  15008. hardcode_into_libs=yes
  15009. # Add ABI-specific directories to the system library path.
  15010. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  15011. # Ideally, we could use ldconfig to report *all* directores which are
  15012. # searched for libraries, however this is still not possible. Aside from not
  15013. # being certain /sbin/ldconfig is available, command
  15014. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  15015. # even though it is searched at run-time. Try to do the best guess by
  15016. # appending ld.so.conf contents (and includes) to the search path.
  15017. if test -f /etc/ld.so.conf; then
  15018. 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' ' '`
  15019. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  15020. fi
  15021. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15022. # powerpc, because MkLinux only supported shared libraries with the
  15023. # GNU dynamic linker. Since this was broken with cross compilers,
  15024. # most powerpc-linux boxes support dynamic linking these days and
  15025. # people can always --disable-shared, the test was removed, and we
  15026. # assume the GNU/Linux dynamic linker is in use.
  15027. dynamic_linker='GNU/Linux ld.so'
  15028. ;;
  15029. netbsd*)
  15030. version_type=sunos
  15031. need_lib_prefix=no
  15032. need_version=no
  15033. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15034. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15035. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15036. dynamic_linker='NetBSD (a.out) ld.so'
  15037. else
  15038. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15039. soname_spec='$libname$release$shared_ext$major'
  15040. dynamic_linker='NetBSD ld.elf_so'
  15041. fi
  15042. shlibpath_var=LD_LIBRARY_PATH
  15043. shlibpath_overrides_runpath=yes
  15044. hardcode_into_libs=yes
  15045. ;;
  15046. newsos6)
  15047. version_type=linux # correct to gnu/linux during the next big refactor
  15048. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15049. shlibpath_var=LD_LIBRARY_PATH
  15050. shlibpath_overrides_runpath=yes
  15051. ;;
  15052. *nto* | *qnx*)
  15053. version_type=qnx
  15054. need_lib_prefix=no
  15055. need_version=no
  15056. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15057. soname_spec='$libname$release$shared_ext$major'
  15058. shlibpath_var=LD_LIBRARY_PATH
  15059. shlibpath_overrides_runpath=no
  15060. hardcode_into_libs=yes
  15061. dynamic_linker='ldqnx.so'
  15062. ;;
  15063. openbsd* | bitrig*)
  15064. version_type=sunos
  15065. sys_lib_dlsearch_path_spec=/usr/lib
  15066. need_lib_prefix=no
  15067. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15068. need_version=no
  15069. else
  15070. need_version=yes
  15071. fi
  15072. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15073. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15074. shlibpath_var=LD_LIBRARY_PATH
  15075. shlibpath_overrides_runpath=yes
  15076. ;;
  15077. os2*)
  15078. libname_spec='$name'
  15079. shrext_cmds=.dll
  15080. need_lib_prefix=no
  15081. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15082. # SDL customization: removed versioning support.
  15083. # version_type=windows
  15084. # need_version=no
  15085. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15086. # v=$($ECHO $release$versuffix | tr -d .-);
  15087. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15088. # $ECHO $n$v`$shared_ext'
  15089. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  15090. library_names_spec='${libname}_dll.$libext'
  15091. dynamic_linker='OS/2 ld.exe'
  15092. shlibpath_var=BEGINLIBPATH
  15093. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15094. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15095. postinstall_cmds='base_file=`basename \$file`~
  15096. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15097. dldir=$destdir/`dirname \$dlpath`~
  15098. test -d \$dldir || mkdir -p \$dldir~
  15099. $install_prog $dir/$dlname \$dldir/$dlname~
  15100. chmod a+x \$dldir/$dlname~
  15101. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15102. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15103. fi'
  15104. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15105. dlpath=$dir/\$dldll~
  15106. $RM \$dlpath'
  15107. ;;
  15108. osf3* | osf4* | osf5*)
  15109. version_type=osf
  15110. need_lib_prefix=no
  15111. need_version=no
  15112. soname_spec='$libname$release$shared_ext$major'
  15113. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15114. shlibpath_var=LD_LIBRARY_PATH
  15115. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15116. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15117. ;;
  15118. rdos*)
  15119. dynamic_linker=no
  15120. ;;
  15121. solaris*)
  15122. version_type=linux # correct to gnu/linux during the next big refactor
  15123. need_lib_prefix=no
  15124. need_version=no
  15125. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15126. soname_spec='$libname$release$shared_ext$major'
  15127. shlibpath_var=LD_LIBRARY_PATH
  15128. shlibpath_overrides_runpath=yes
  15129. hardcode_into_libs=yes
  15130. # ldd complains unless libraries are executable
  15131. postinstall_cmds='chmod +x $lib'
  15132. ;;
  15133. sunos4*)
  15134. version_type=sunos
  15135. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15136. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15137. shlibpath_var=LD_LIBRARY_PATH
  15138. shlibpath_overrides_runpath=yes
  15139. if test yes = "$with_gnu_ld"; then
  15140. need_lib_prefix=no
  15141. fi
  15142. need_version=yes
  15143. ;;
  15144. sysv4 | sysv4.3*)
  15145. version_type=linux # correct to gnu/linux during the next big refactor
  15146. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15147. soname_spec='$libname$release$shared_ext$major'
  15148. shlibpath_var=LD_LIBRARY_PATH
  15149. case $host_vendor in
  15150. sni)
  15151. shlibpath_overrides_runpath=no
  15152. need_lib_prefix=no
  15153. runpath_var=LD_RUN_PATH
  15154. ;;
  15155. siemens)
  15156. need_lib_prefix=no
  15157. ;;
  15158. motorola)
  15159. need_lib_prefix=no
  15160. need_version=no
  15161. shlibpath_overrides_runpath=no
  15162. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15163. ;;
  15164. esac
  15165. ;;
  15166. sysv4*MP*)
  15167. if test -d /usr/nec; then
  15168. version_type=linux # correct to gnu/linux during the next big refactor
  15169. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15170. soname_spec='$libname$shared_ext.$major'
  15171. shlibpath_var=LD_LIBRARY_PATH
  15172. fi
  15173. ;;
  15174. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15175. version_type=sco
  15176. need_lib_prefix=no
  15177. need_version=no
  15178. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15179. soname_spec='$libname$release$shared_ext$major'
  15180. shlibpath_var=LD_LIBRARY_PATH
  15181. shlibpath_overrides_runpath=yes
  15182. hardcode_into_libs=yes
  15183. if test yes = "$with_gnu_ld"; then
  15184. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15185. else
  15186. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15187. case $host_os in
  15188. sco3.2v5*)
  15189. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15190. ;;
  15191. esac
  15192. fi
  15193. sys_lib_dlsearch_path_spec='/usr/lib'
  15194. ;;
  15195. tpf*)
  15196. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15197. version_type=linux # correct to gnu/linux during the next big refactor
  15198. need_lib_prefix=no
  15199. need_version=no
  15200. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15201. shlibpath_var=LD_LIBRARY_PATH
  15202. shlibpath_overrides_runpath=no
  15203. hardcode_into_libs=yes
  15204. ;;
  15205. uts4*)
  15206. version_type=linux # correct to gnu/linux during the next big refactor
  15207. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15208. soname_spec='$libname$release$shared_ext$major'
  15209. shlibpath_var=LD_LIBRARY_PATH
  15210. ;;
  15211. *)
  15212. dynamic_linker=no
  15213. ;;
  15214. esac
  15215. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15216. printf "%s\n" "$dynamic_linker" >&6; }
  15217. test no = "$dynamic_linker" && can_build_shared=no
  15218. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15219. if test yes = "$GCC"; then
  15220. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15221. fi
  15222. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15223. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15224. fi
  15225. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15226. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15227. fi
  15228. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15229. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15230. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15231. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15232. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15233. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15235. printf %s "checking how to hardcode library paths into programs... " >&6; }
  15236. hardcode_action_CXX=
  15237. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15238. test -n "$runpath_var_CXX" ||
  15239. test yes = "$hardcode_automatic_CXX"; then
  15240. # We can hardcode non-existent directories.
  15241. if test no != "$hardcode_direct_CXX" &&
  15242. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15243. # have to relink, otherwise we might link with an installed library
  15244. # when we should be linking with a yet-to-be-installed one
  15245. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15246. test no != "$hardcode_minus_L_CXX"; then
  15247. # Linking always hardcodes the temporary library directory.
  15248. hardcode_action_CXX=relink
  15249. else
  15250. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15251. hardcode_action_CXX=immediate
  15252. fi
  15253. else
  15254. # We cannot hardcode anything, or else we can only hardcode existing
  15255. # directories.
  15256. hardcode_action_CXX=unsupported
  15257. fi
  15258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15259. printf "%s\n" "$hardcode_action_CXX" >&6; }
  15260. if test relink = "$hardcode_action_CXX" ||
  15261. test yes = "$inherit_rpath_CXX"; then
  15262. # Fast installation is not supported
  15263. enable_fast_install=no
  15264. elif test yes = "$shlibpath_overrides_runpath" ||
  15265. test no = "$enable_shared"; then
  15266. # Fast installation is not necessary
  15267. enable_fast_install=needless
  15268. fi
  15269. fi # test -n "$compiler"
  15270. CC=$lt_save_CC
  15271. CFLAGS=$lt_save_CFLAGS
  15272. LDCXX=$LD
  15273. LD=$lt_save_LD
  15274. GCC=$lt_save_GCC
  15275. with_gnu_ld=$lt_save_with_gnu_ld
  15276. lt_cv_path_LDCXX=$lt_cv_path_LD
  15277. lt_cv_path_LD=$lt_save_path_LD
  15278. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15279. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15280. fi # test yes != "$_lt_caught_CXX_error"
  15281. ac_ext=c
  15282. ac_cpp='$CPP $CPPFLAGS'
  15283. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15284. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15285. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  15287. printf %s "checking for egrep... " >&6; }
  15288. if test ${ac_cv_path_EGREP+y}
  15289. then :
  15290. printf %s "(cached) " >&6
  15291. else $as_nop
  15292. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  15293. then ac_cv_path_EGREP="$GREP -E"
  15294. else
  15295. if test -z "$EGREP"; then
  15296. ac_path_EGREP_found=false
  15297. # Loop through the user's path and test for each of PROGNAME-LIST
  15298. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15299. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15300. do
  15301. IFS=$as_save_IFS
  15302. case $as_dir in #(((
  15303. '') as_dir=./ ;;
  15304. */) ;;
  15305. *) as_dir=$as_dir/ ;;
  15306. esac
  15307. for ac_prog in egrep
  15308. do
  15309. for ac_exec_ext in '' $ac_executable_extensions; do
  15310. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  15311. as_fn_executable_p "$ac_path_EGREP" || continue
  15312. # Check for GNU ac_path_EGREP and select it if it is found.
  15313. # Check for GNU $ac_path_EGREP
  15314. case `"$ac_path_EGREP" --version 2>&1` in
  15315. *GNU*)
  15316. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  15317. *)
  15318. ac_count=0
  15319. printf %s 0123456789 >"conftest.in"
  15320. while :
  15321. do
  15322. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15323. mv "conftest.tmp" "conftest.in"
  15324. cp "conftest.in" "conftest.nl"
  15325. printf "%s\n" 'EGREP' >> "conftest.nl"
  15326. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15327. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15328. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15329. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  15330. # Best one so far, save it but keep looking for a better one
  15331. ac_cv_path_EGREP="$ac_path_EGREP"
  15332. ac_path_EGREP_max=$ac_count
  15333. fi
  15334. # 10*(2^10) chars as input seems more than enough
  15335. test $ac_count -gt 10 && break
  15336. done
  15337. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15338. esac
  15339. $ac_path_EGREP_found && break 3
  15340. done
  15341. done
  15342. done
  15343. IFS=$as_save_IFS
  15344. if test -z "$ac_cv_path_EGREP"; then
  15345. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15346. fi
  15347. else
  15348. ac_cv_path_EGREP=$EGREP
  15349. fi
  15350. fi
  15351. fi
  15352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  15353. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  15354. EGREP="$ac_cv_path_EGREP"
  15355. # Find a good install program. We prefer a C program (faster),
  15356. # so one script is as good as another. But avoid the broken or
  15357. # incompatible versions:
  15358. # SysV /etc/install, /usr/sbin/install
  15359. # SunOS /usr/etc/install
  15360. # IRIX /sbin/install
  15361. # AIX /bin/install
  15362. # AmigaOS /C/install, which installs bootblocks on floppy discs
  15363. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  15364. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  15365. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  15366. # OS/2's system install, which has a completely different semantic
  15367. # ./install, which can be erroneously created by make from ./install.sh.
  15368. # Reject install programs that cannot install multiple files.
  15369. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  15370. printf %s "checking for a BSD-compatible install... " >&6; }
  15371. if test -z "$INSTALL"; then
  15372. if test ${ac_cv_path_install+y}
  15373. then :
  15374. printf %s "(cached) " >&6
  15375. else $as_nop
  15376. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15377. for as_dir in $PATH
  15378. do
  15379. IFS=$as_save_IFS
  15380. case $as_dir in #(((
  15381. '') as_dir=./ ;;
  15382. */) ;;
  15383. *) as_dir=$as_dir/ ;;
  15384. esac
  15385. # Account for fact that we put trailing slashes in our PATH walk.
  15386. case $as_dir in #((
  15387. ./ | /[cC]/* | \
  15388. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  15389. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  15390. /usr/ucb/* ) ;;
  15391. *)
  15392. # OSF1 and SCO ODT 3.0 have their own names for install.
  15393. # Don't use installbsd from OSF since it installs stuff as root
  15394. # by default.
  15395. for ac_prog in ginstall scoinst install; do
  15396. for ac_exec_ext in '' $ac_executable_extensions; do
  15397. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  15398. if test $ac_prog = install &&
  15399. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15400. # AIX install. It has an incompatible calling convention.
  15401. :
  15402. elif test $ac_prog = install &&
  15403. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15404. # program-specific install script used by HP pwplus--don't use.
  15405. :
  15406. else
  15407. rm -rf conftest.one conftest.two conftest.dir
  15408. echo one > conftest.one
  15409. echo two > conftest.two
  15410. mkdir conftest.dir
  15411. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  15412. test -s conftest.one && test -s conftest.two &&
  15413. test -s conftest.dir/conftest.one &&
  15414. test -s conftest.dir/conftest.two
  15415. then
  15416. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  15417. break 3
  15418. fi
  15419. fi
  15420. fi
  15421. done
  15422. done
  15423. ;;
  15424. esac
  15425. done
  15426. IFS=$as_save_IFS
  15427. rm -rf conftest.one conftest.two conftest.dir
  15428. fi
  15429. if test ${ac_cv_path_install+y}; then
  15430. INSTALL=$ac_cv_path_install
  15431. else
  15432. # As a last resort, use the slow shell script. Don't cache a
  15433. # value for INSTALL within a source directory, because that will
  15434. # break other packages using the cache if that directory is
  15435. # removed, or if the value is a relative name.
  15436. INSTALL=$ac_install_sh
  15437. fi
  15438. fi
  15439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  15440. printf "%s\n" "$INSTALL" >&6; }
  15441. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  15442. # It thinks the first close brace ends the variable substitution.
  15443. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  15444. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  15445. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  15446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15447. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15448. set x ${MAKE-make}
  15449. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15450. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  15451. then :
  15452. printf %s "(cached) " >&6
  15453. else $as_nop
  15454. cat >conftest.make <<\_ACEOF
  15455. SHELL = /bin/sh
  15456. all:
  15457. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15458. _ACEOF
  15459. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15460. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15461. *@@@%%%=?*=@@@%%%*)
  15462. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15463. *)
  15464. eval ac_cv_prog_make_${ac_make}_set=no;;
  15465. esac
  15466. rm -f conftest.make
  15467. fi
  15468. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15469. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15470. printf "%s\n" "yes" >&6; }
  15471. SET_MAKE=
  15472. else
  15473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15474. printf "%s\n" "no" >&6; }
  15475. SET_MAKE="MAKE=${MAKE-make}"
  15476. fi
  15477. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15478. if test -n "$ac_tool_prefix"; then
  15479. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15480. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15482. printf %s "checking for $ac_word... " >&6; }
  15483. if test ${ac_cv_path_PKG_CONFIG+y}
  15484. then :
  15485. printf %s "(cached) " >&6
  15486. else $as_nop
  15487. case $PKG_CONFIG in
  15488. [\\/]* | ?:[\\/]*)
  15489. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15490. ;;
  15491. *)
  15492. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15493. for as_dir in $PATH
  15494. do
  15495. IFS=$as_save_IFS
  15496. case $as_dir in #(((
  15497. '') as_dir=./ ;;
  15498. */) ;;
  15499. *) as_dir=$as_dir/ ;;
  15500. esac
  15501. for ac_exec_ext in '' $ac_executable_extensions; do
  15502. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15503. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15504. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15505. break 2
  15506. fi
  15507. done
  15508. done
  15509. IFS=$as_save_IFS
  15510. ;;
  15511. esac
  15512. fi
  15513. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15514. if test -n "$PKG_CONFIG"; then
  15515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15516. printf "%s\n" "$PKG_CONFIG" >&6; }
  15517. else
  15518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15519. printf "%s\n" "no" >&6; }
  15520. fi
  15521. fi
  15522. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15523. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15524. # Extract the first word of "pkg-config", so it can be a program name with args.
  15525. set dummy pkg-config; ac_word=$2
  15526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15527. printf %s "checking for $ac_word... " >&6; }
  15528. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  15529. then :
  15530. printf %s "(cached) " >&6
  15531. else $as_nop
  15532. case $ac_pt_PKG_CONFIG in
  15533. [\\/]* | ?:[\\/]*)
  15534. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15535. ;;
  15536. *)
  15537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15538. for as_dir in $PATH
  15539. do
  15540. IFS=$as_save_IFS
  15541. case $as_dir in #(((
  15542. '') as_dir=./ ;;
  15543. */) ;;
  15544. *) as_dir=$as_dir/ ;;
  15545. esac
  15546. for ac_exec_ext in '' $ac_executable_extensions; do
  15547. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15548. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15549. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15550. break 2
  15551. fi
  15552. done
  15553. done
  15554. IFS=$as_save_IFS
  15555. ;;
  15556. esac
  15557. fi
  15558. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15559. if test -n "$ac_pt_PKG_CONFIG"; then
  15560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15561. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  15562. else
  15563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15564. printf "%s\n" "no" >&6; }
  15565. fi
  15566. if test "x$ac_pt_PKG_CONFIG" = x; then
  15567. PKG_CONFIG=""
  15568. else
  15569. case $cross_compiling:$ac_tool_warned in
  15570. yes:)
  15571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15572. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15573. ac_tool_warned=yes ;;
  15574. esac
  15575. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15576. fi
  15577. else
  15578. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15579. fi
  15580. fi
  15581. if test -n "$PKG_CONFIG"; then
  15582. _pkg_min_version=0.9.0
  15583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15584. printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15585. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15586. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15587. printf "%s\n" "yes" >&6; }
  15588. else
  15589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15590. printf "%s\n" "no" >&6; }
  15591. PKG_CONFIG=""
  15592. fi
  15593. fi
  15594. if test -z "$AWK" ; then
  15595. as_fn_error $? "*** awk not found, aborting" "$LINENO" 5
  15596. fi
  15597. for ac_prog in gsort sort
  15598. do
  15599. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15600. set dummy $ac_prog; ac_word=$2
  15601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15602. printf %s "checking for $ac_word... " >&6; }
  15603. if test ${ac_cv_prog_SORT+y}
  15604. then :
  15605. printf %s "(cached) " >&6
  15606. else $as_nop
  15607. if test -n "$SORT"; then
  15608. ac_cv_prog_SORT="$SORT" # Let the user override the test.
  15609. else
  15610. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15611. for as_dir in $PATH
  15612. do
  15613. IFS=$as_save_IFS
  15614. case $as_dir in #(((
  15615. '') as_dir=./ ;;
  15616. */) ;;
  15617. *) as_dir=$as_dir/ ;;
  15618. esac
  15619. for ac_exec_ext in '' $ac_executable_extensions; do
  15620. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15621. ac_cv_prog_SORT="$ac_prog"
  15622. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15623. break 2
  15624. fi
  15625. done
  15626. done
  15627. IFS=$as_save_IFS
  15628. fi
  15629. fi
  15630. SORT=$ac_cv_prog_SORT
  15631. if test -n "$SORT"; then
  15632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
  15633. printf "%s\n" "$SORT" >&6; }
  15634. else
  15635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15636. printf "%s\n" "no" >&6; }
  15637. fi
  15638. test -n "$SORT" && break
  15639. done
  15640. test -n "$SORT" || SORT="false"
  15641. if ! "$SORT" -V </dev/null >/dev/null
  15642. then :
  15643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&5
  15644. printf "%s\n" "$as_me: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&2;}
  15645. fi
  15646. # Check whether --enable-largefile was given.
  15647. if test ${enable_largefile+y}
  15648. then :
  15649. enableval=$enable_largefile;
  15650. fi
  15651. if test "$enable_largefile" != no; then
  15652. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  15653. printf %s "checking for special C compiler options needed for large files... " >&6; }
  15654. if test ${ac_cv_sys_largefile_CC+y}
  15655. then :
  15656. printf %s "(cached) " >&6
  15657. else $as_nop
  15658. ac_cv_sys_largefile_CC=no
  15659. if test "$GCC" != yes; then
  15660. ac_save_CC=$CC
  15661. while :; do
  15662. # IRIX 6.2 and later do not support large files by default,
  15663. # so use the C compiler's -n32 option if that helps.
  15664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15665. /* end confdefs.h. */
  15666. #include <sys/types.h>
  15667. /* Check that off_t can represent 2**63 - 1 correctly.
  15668. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15669. since some C++ compilers masquerading as C compilers
  15670. incorrectly reject 9223372036854775807. */
  15671. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15672. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15673. && LARGE_OFF_T % 2147483647 == 1)
  15674. ? 1 : -1];
  15675. int
  15676. main (void)
  15677. {
  15678. ;
  15679. return 0;
  15680. }
  15681. _ACEOF
  15682. if ac_fn_c_try_compile "$LINENO"
  15683. then :
  15684. break
  15685. fi
  15686. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15687. CC="$CC -n32"
  15688. if ac_fn_c_try_compile "$LINENO"
  15689. then :
  15690. ac_cv_sys_largefile_CC=' -n32'; break
  15691. fi
  15692. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15693. break
  15694. done
  15695. CC=$ac_save_CC
  15696. rm -f conftest.$ac_ext
  15697. fi
  15698. fi
  15699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  15700. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  15701. if test "$ac_cv_sys_largefile_CC" != no; then
  15702. CC=$CC$ac_cv_sys_largefile_CC
  15703. fi
  15704. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  15705. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  15706. if test ${ac_cv_sys_file_offset_bits+y}
  15707. then :
  15708. printf %s "(cached) " >&6
  15709. else $as_nop
  15710. while :; do
  15711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15712. /* end confdefs.h. */
  15713. #include <sys/types.h>
  15714. /* Check that off_t can represent 2**63 - 1 correctly.
  15715. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15716. since some C++ compilers masquerading as C compilers
  15717. incorrectly reject 9223372036854775807. */
  15718. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15719. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15720. && LARGE_OFF_T % 2147483647 == 1)
  15721. ? 1 : -1];
  15722. int
  15723. main (void)
  15724. {
  15725. ;
  15726. return 0;
  15727. }
  15728. _ACEOF
  15729. if ac_fn_c_try_compile "$LINENO"
  15730. then :
  15731. ac_cv_sys_file_offset_bits=no; break
  15732. fi
  15733. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15735. /* end confdefs.h. */
  15736. #define _FILE_OFFSET_BITS 64
  15737. #include <sys/types.h>
  15738. /* Check that off_t can represent 2**63 - 1 correctly.
  15739. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15740. since some C++ compilers masquerading as C compilers
  15741. incorrectly reject 9223372036854775807. */
  15742. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15743. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15744. && LARGE_OFF_T % 2147483647 == 1)
  15745. ? 1 : -1];
  15746. int
  15747. main (void)
  15748. {
  15749. ;
  15750. return 0;
  15751. }
  15752. _ACEOF
  15753. if ac_fn_c_try_compile "$LINENO"
  15754. then :
  15755. ac_cv_sys_file_offset_bits=64; break
  15756. fi
  15757. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15758. ac_cv_sys_file_offset_bits=unknown
  15759. break
  15760. done
  15761. fi
  15762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  15763. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  15764. case $ac_cv_sys_file_offset_bits in #(
  15765. no | unknown) ;;
  15766. *)
  15767. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  15768. ;;
  15769. esac
  15770. rm -rf conftest*
  15771. if test $ac_cv_sys_file_offset_bits = unknown; then
  15772. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  15773. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  15774. if test ${ac_cv_sys_large_files+y}
  15775. then :
  15776. printf %s "(cached) " >&6
  15777. else $as_nop
  15778. while :; do
  15779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15780. /* end confdefs.h. */
  15781. #include <sys/types.h>
  15782. /* Check that off_t can represent 2**63 - 1 correctly.
  15783. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15784. since some C++ compilers masquerading as C compilers
  15785. incorrectly reject 9223372036854775807. */
  15786. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15787. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15788. && LARGE_OFF_T % 2147483647 == 1)
  15789. ? 1 : -1];
  15790. int
  15791. main (void)
  15792. {
  15793. ;
  15794. return 0;
  15795. }
  15796. _ACEOF
  15797. if ac_fn_c_try_compile "$LINENO"
  15798. then :
  15799. ac_cv_sys_large_files=no; break
  15800. fi
  15801. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15803. /* end confdefs.h. */
  15804. #define _LARGE_FILES 1
  15805. #include <sys/types.h>
  15806. /* Check that off_t can represent 2**63 - 1 correctly.
  15807. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15808. since some C++ compilers masquerading as C compilers
  15809. incorrectly reject 9223372036854775807. */
  15810. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15811. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15812. && LARGE_OFF_T % 2147483647 == 1)
  15813. ? 1 : -1];
  15814. int
  15815. main (void)
  15816. {
  15817. ;
  15818. return 0;
  15819. }
  15820. _ACEOF
  15821. if ac_fn_c_try_compile "$LINENO"
  15822. then :
  15823. ac_cv_sys_large_files=1; break
  15824. fi
  15825. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15826. ac_cv_sys_large_files=unknown
  15827. break
  15828. done
  15829. fi
  15830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  15831. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  15832. case $ac_cv_sys_large_files in #(
  15833. no | unknown) ;;
  15834. *)
  15835. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  15836. ;;
  15837. esac
  15838. rm -rf conftest*
  15839. fi
  15840. fi
  15841. case "$host" in
  15842. *-*-mingw*)
  15843. # Except on msys, where make can't handle full pathnames (bug 1972)
  15844. ;;
  15845. *)
  15846. srcdir=`cd $srcdir && pwd`
  15847. ;;
  15848. esac
  15849. INCLUDE="-I$srcdir/include"
  15850. case "$host" in
  15851. *-*-nto-qnx*)
  15852. ;;
  15853. *)
  15854. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  15855. ;;
  15856. esac
  15857. case "$host" in
  15858. *-*-haiku*)
  15859. LINKER='$(CXX)'
  15860. LIBTOOLLINKERTAG='CXX'
  15861. ;;
  15862. *)
  15863. LINKER='$(CC)'
  15864. LIBTOOLLINKERTAG='CC'
  15865. ;;
  15866. esac
  15867. if test x$srcdir != x.; then
  15868. INCLUDE="-Iinclude $INCLUDE"
  15869. elif test -d .git; then
  15870. as_fn_error $? "
  15871. *** When building from a git clone you should configure and build in a
  15872. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  15873. " "$LINENO" 5
  15874. fi
  15875. BASE_CFLAGS=""
  15876. BASE_LDFLAGS=""
  15877. case "$host" in
  15878. *-*-cygwin*)
  15879. # We build SDL on cygwin without the UNIX emulation layer
  15880. save_CFLAGS="$CFLAGS"
  15881. have_no_cygwin=no
  15882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  15883. printf %s "checking for GCC -mno-cygwin option... " >&6; }
  15884. CFLAGS="$save_CFLAGS -mno-cygwin"
  15885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15886. /* end confdefs.h. */
  15887. int
  15888. main (void)
  15889. {
  15890. ;
  15891. return 0;
  15892. }
  15893. _ACEOF
  15894. if ac_fn_c_try_compile "$LINENO"
  15895. then :
  15896. have_no_cygwin=yes
  15897. fi
  15898. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15899. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  15900. printf "%s\n" "$have_no_cygwin" >&6; }
  15901. CFLAGS="$save_CFLAGS"
  15902. if test x$have_no_cygwin = xyes; then
  15903. BASE_CFLAGS="-mno-cygwin"
  15904. BASE_LDFLAGS="-mno-cygwin"
  15905. fi
  15906. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  15907. ;;
  15908. esac
  15909. # Uncomment the following line if you want to force SDL and applications
  15910. # built with it to be compiled for a particular architecture.
  15911. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  15912. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  15913. # The default optimization for SDL is -O3 (Bug #31)
  15914. if test "x$orig_CFLAGS" = x; then
  15915. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  15916. fi
  15917. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  15918. BUILD_LDFLAGS="$LDFLAGS"
  15919. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  15920. ## These are common directories to find software packages
  15921. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  15922. # if test -d $path/include; then
  15923. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  15924. # fi
  15925. # if test -d $path/lib; then
  15926. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  15927. # fi
  15928. #done
  15929. SDL_CFLAGS="$BASE_CFLAGS"
  15930. SDL_LIBS="-lSDL2"
  15931. if test "x$BASE_LDFLAGS" != x; then
  15932. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  15933. fi
  15934. if test "x$EXTRA_CFLAGS" != x; then
  15935. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  15936. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  15937. fi
  15938. if test "x$EXTRA_LDFLAGS" != x; then
  15939. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  15940. fi
  15941. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  15942. find_lib()
  15943. {
  15944. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15945. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15946. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  15947. if test "$cross_compiling" = yes; then
  15948. host_lib_path=""
  15949. else
  15950. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  15951. fi
  15952. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  15953. lib=`ls -- $path/$1 2>/dev/null | sed 's,.*/,,' | "$SORT" -V -r | $AWK 'BEGIN{FS="."}{ print NF, $0 }' | "$SORT" -n -s | sed 's,[0-9]* ,,' | head -1`
  15954. if test x$lib != x; then
  15955. echo $lib
  15956. return
  15957. fi
  15958. done
  15959. }
  15960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  15961. printf %s "checking for an ANSI C-conforming const... " >&6; }
  15962. if test ${ac_cv_c_const+y}
  15963. then :
  15964. printf %s "(cached) " >&6
  15965. else $as_nop
  15966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15967. /* end confdefs.h. */
  15968. int
  15969. main (void)
  15970. {
  15971. #ifndef __cplusplus
  15972. /* Ultrix mips cc rejects this sort of thing. */
  15973. typedef int charset[2];
  15974. const charset cs = { 0, 0 };
  15975. /* SunOS 4.1.1 cc rejects this. */
  15976. char const *const *pcpcc;
  15977. char **ppc;
  15978. /* NEC SVR4.0.2 mips cc rejects this. */
  15979. struct point {int x, y;};
  15980. static struct point const zero = {0,0};
  15981. /* IBM XL C 1.02.0.0 rejects this.
  15982. It does not let you subtract one const X* pointer from another in
  15983. an arm of an if-expression whose if-part is not a constant
  15984. expression */
  15985. const char *g = "string";
  15986. pcpcc = &g + (g ? g-g : 0);
  15987. /* HPUX 7.0 cc rejects these. */
  15988. ++pcpcc;
  15989. ppc = (char**) pcpcc;
  15990. pcpcc = (char const *const *) ppc;
  15991. { /* SCO 3.2v4 cc rejects this sort of thing. */
  15992. char tx;
  15993. char *t = &tx;
  15994. char const *s = 0 ? (char *) 0 : (char const *) 0;
  15995. *t++ = 0;
  15996. if (s) return 0;
  15997. }
  15998. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  15999. int x[] = {25, 17};
  16000. const int *foo = &x[0];
  16001. ++foo;
  16002. }
  16003. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  16004. typedef const int *iptr;
  16005. iptr p = 0;
  16006. ++p;
  16007. }
  16008. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  16009. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  16010. struct s { int j; const int *ap[3]; } bx;
  16011. struct s *b = &bx; b->j = 5;
  16012. }
  16013. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  16014. const int foo = 10;
  16015. if (!foo) return 0;
  16016. }
  16017. return !cs[0] && !zero.x;
  16018. #endif
  16019. ;
  16020. return 0;
  16021. }
  16022. _ACEOF
  16023. if ac_fn_c_try_compile "$LINENO"
  16024. then :
  16025. ac_cv_c_const=yes
  16026. else $as_nop
  16027. ac_cv_c_const=no
  16028. fi
  16029. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16030. fi
  16031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  16032. printf "%s\n" "$ac_cv_c_const" >&6; }
  16033. if test $ac_cv_c_const = no; then
  16034. printf "%s\n" "#define const /**/" >>confdefs.h
  16035. fi
  16036. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16037. printf %s "checking for inline... " >&6; }
  16038. if test ${ac_cv_c_inline+y}
  16039. then :
  16040. printf %s "(cached) " >&6
  16041. else $as_nop
  16042. ac_cv_c_inline=no
  16043. for ac_kw in inline __inline__ __inline; do
  16044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16045. /* end confdefs.h. */
  16046. #ifndef __cplusplus
  16047. typedef int foo_t;
  16048. static $ac_kw foo_t static_foo (void) {return 0; }
  16049. $ac_kw foo_t foo (void) {return 0; }
  16050. #endif
  16051. _ACEOF
  16052. if ac_fn_c_try_compile "$LINENO"
  16053. then :
  16054. ac_cv_c_inline=$ac_kw
  16055. fi
  16056. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16057. test "$ac_cv_c_inline" != no && break
  16058. done
  16059. fi
  16060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16061. printf "%s\n" "$ac_cv_c_inline" >&6; }
  16062. case $ac_cv_c_inline in
  16063. inline | yes) ;;
  16064. *)
  16065. case $ac_cv_c_inline in
  16066. no) ac_val=;;
  16067. *) ac_val=$ac_cv_c_inline;;
  16068. esac
  16069. cat >>confdefs.h <<_ACEOF
  16070. #ifndef __cplusplus
  16071. #define inline $ac_val
  16072. #endif
  16073. _ACEOF
  16074. ;;
  16075. esac
  16076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  16077. printf %s "checking for working volatile... " >&6; }
  16078. if test ${ac_cv_c_volatile+y}
  16079. then :
  16080. printf %s "(cached) " >&6
  16081. else $as_nop
  16082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16083. /* end confdefs.h. */
  16084. int
  16085. main (void)
  16086. {
  16087. volatile int x;
  16088. int * volatile y = (int *) 0;
  16089. return !x && !y;
  16090. ;
  16091. return 0;
  16092. }
  16093. _ACEOF
  16094. if ac_fn_c_try_compile "$LINENO"
  16095. then :
  16096. ac_cv_c_volatile=yes
  16097. else $as_nop
  16098. ac_cv_c_volatile=no
  16099. fi
  16100. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16101. fi
  16102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  16103. printf "%s\n" "$ac_cv_c_volatile" >&6; }
  16104. if test $ac_cv_c_volatile = no; then
  16105. printf "%s\n" "#define volatile /**/" >>confdefs.h
  16106. fi
  16107. # Check whether --enable-assertions was given.
  16108. if test ${enable_assertions+y}
  16109. then :
  16110. enableval=$enable_assertions;
  16111. else $as_nop
  16112. enable_assertions=auto
  16113. fi
  16114. case "$enable_assertions" in
  16115. auto) # Use optimization settings to determine assertion level
  16116. ;;
  16117. disabled)
  16118. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  16119. ;;
  16120. release)
  16121. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  16122. ;;
  16123. enabled)
  16124. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  16125. ;;
  16126. paranoid)
  16127. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  16128. ;;
  16129. *)
  16130. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  16131. ;;
  16132. esac
  16133. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BUILD_MAJOR_VERSION=$SDL_MAJOR_VERSION -DSDL_BUILD_MINOR_VERSION=$SDL_MINOR_VERSION -DSDL_BUILD_MICRO_VERSION=$SDL_MICRO_VERSION"
  16134. # Check whether --enable-dependency-tracking was given.
  16135. if test ${enable_dependency_tracking+y}
  16136. then :
  16137. enableval=$enable_dependency_tracking;
  16138. else $as_nop
  16139. enable_dependency_tracking=yes
  16140. fi
  16141. if test x$enable_dependency_tracking = xyes; then
  16142. have_gcc_mmd_mt=no
  16143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  16144. printf %s "checking for GCC -MMD -MT option... " >&6; }
  16145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16146. /* end confdefs.h. */
  16147. #if !defined(__GNUC__) || __GNUC__ < 3
  16148. #error Dependency tracking requires GCC 3.0 or newer
  16149. #endif
  16150. int
  16151. main (void)
  16152. {
  16153. ;
  16154. return 0;
  16155. }
  16156. _ACEOF
  16157. if ac_fn_c_try_compile "$LINENO"
  16158. then :
  16159. have_gcc_mmd_mt=yes
  16160. fi
  16161. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  16163. printf "%s\n" "$have_gcc_mmd_mt" >&6; }
  16164. if test x$have_gcc_mmd_mt = xyes; then
  16165. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  16166. fi
  16167. fi
  16168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  16169. printf %s "checking for linker option --no-undefined... " >&6; }
  16170. have_no_undefined=no
  16171. case "$host" in
  16172. *-*-openbsd*)
  16173. ;;
  16174. *)
  16175. save_LDFLAGS="$LDFLAGS"
  16176. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  16177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16178. /* end confdefs.h. */
  16179. int
  16180. main (void)
  16181. {
  16182. ;
  16183. return 0;
  16184. }
  16185. _ACEOF
  16186. if ac_fn_c_try_link "$LINENO"
  16187. then :
  16188. have_no_undefined=yes
  16189. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  16190. fi
  16191. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16192. conftest$ac_exeext conftest.$ac_ext
  16193. LDFLAGS="$save_LDFLAGS"
  16194. ;;
  16195. esac
  16196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  16197. printf "%s\n" "$have_no_undefined" >&6; }
  16198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  16199. printf %s "checking for linker option --dynamicbase... " >&6; }
  16200. have_dynamicbase=no
  16201. case "$host" in
  16202. *)
  16203. save_LDFLAGS="$LDFLAGS"
  16204. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  16205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16206. /* end confdefs.h. */
  16207. int
  16208. main (void)
  16209. {
  16210. ;
  16211. return 0;
  16212. }
  16213. _ACEOF
  16214. if ac_fn_c_try_link "$LINENO"
  16215. then :
  16216. have_dynamicbase=yes
  16217. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  16218. fi
  16219. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16220. conftest$ac_exeext conftest.$ac_ext
  16221. LDFLAGS="$save_LDFLAGS"
  16222. ;;
  16223. esac
  16224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  16225. printf "%s\n" "$have_dynamicbase" >&6; }
  16226. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  16227. printf %s "checking for linker option --nxcompat... " >&6; }
  16228. have_nxcompat=no
  16229. case "$host" in
  16230. *)
  16231. save_LDFLAGS="$LDFLAGS"
  16232. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  16233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16234. /* end confdefs.h. */
  16235. int
  16236. main (void)
  16237. {
  16238. ;
  16239. return 0;
  16240. }
  16241. _ACEOF
  16242. if ac_fn_c_try_link "$LINENO"
  16243. then :
  16244. have_nxcompat=yes
  16245. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  16246. fi
  16247. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16248. conftest$ac_exeext conftest.$ac_ext
  16249. LDFLAGS="$save_LDFLAGS"
  16250. ;;
  16251. esac
  16252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  16253. printf "%s\n" "$have_nxcompat" >&6; }
  16254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  16255. printf %s "checking for linker option --high-entropy-va... " >&6; }
  16256. have_high_entropy_va=no
  16257. case "$host" in
  16258. *)
  16259. save_LDFLAGS="$LDFLAGS"
  16260. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  16261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16262. /* end confdefs.h. */
  16263. int
  16264. main (void)
  16265. {
  16266. ;
  16267. return 0;
  16268. }
  16269. _ACEOF
  16270. if ac_fn_c_try_link "$LINENO"
  16271. then :
  16272. have_high_entropy_va=yes
  16273. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  16274. fi
  16275. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16276. conftest$ac_exeext conftest.$ac_ext
  16277. LDFLAGS="$save_LDFLAGS"
  16278. ;;
  16279. esac
  16280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  16281. printf "%s\n" "$have_high_entropy_va" >&6; }
  16282. # Check whether --enable-libc was given.
  16283. if test ${enable_libc+y}
  16284. then :
  16285. enableval=$enable_libc;
  16286. else $as_nop
  16287. enable_libc=yes
  16288. fi
  16289. # Check whether --enable-system-iconv was given.
  16290. if test ${enable_system_iconv+y}
  16291. then :
  16292. enableval=$enable_system_iconv;
  16293. else $as_nop
  16294. enable_system_iconv=yes
  16295. fi
  16296. if test x$enable_libc = xyes; then
  16297. printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
  16298. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  16299. if test "x$ac_cv_header_sys_types_h" = xyes
  16300. then :
  16301. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  16302. fi
  16303. ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  16304. if test "x$ac_cv_header_stdio_h" = xyes
  16305. then :
  16306. printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
  16307. fi
  16308. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  16309. if test "x$ac_cv_header_stdlib_h" = xyes
  16310. then :
  16311. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  16312. fi
  16313. ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
  16314. if test "x$ac_cv_header_stddef_h" = xyes
  16315. then :
  16316. printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
  16317. fi
  16318. ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  16319. if test "x$ac_cv_header_stdarg_h" = xyes
  16320. then :
  16321. printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
  16322. fi
  16323. ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  16324. if test "x$ac_cv_header_malloc_h" = xyes
  16325. then :
  16326. printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
  16327. fi
  16328. ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
  16329. if test "x$ac_cv_header_memory_h" = xyes
  16330. then :
  16331. printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
  16332. fi
  16333. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  16334. if test "x$ac_cv_header_string_h" = xyes
  16335. then :
  16336. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  16337. fi
  16338. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  16339. if test "x$ac_cv_header_strings_h" = xyes
  16340. then :
  16341. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  16342. fi
  16343. ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  16344. if test "x$ac_cv_header_wchar_h" = xyes
  16345. then :
  16346. printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
  16347. fi
  16348. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  16349. if test "x$ac_cv_header_inttypes_h" = xyes
  16350. then :
  16351. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  16352. fi
  16353. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  16354. if test "x$ac_cv_header_stdint_h" = xyes
  16355. then :
  16356. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  16357. fi
  16358. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  16359. if test "x$ac_cv_header_limits_h" = xyes
  16360. then :
  16361. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  16362. fi
  16363. ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
  16364. if test "x$ac_cv_header_ctype_h" = xyes
  16365. then :
  16366. printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
  16367. fi
  16368. ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
  16369. if test "x$ac_cv_header_math_h" = xyes
  16370. then :
  16371. printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
  16372. fi
  16373. ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
  16374. if test "x$ac_cv_header_float_h" = xyes
  16375. then :
  16376. printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
  16377. fi
  16378. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16379. if test "x$ac_cv_header_iconv_h" = xyes
  16380. then :
  16381. printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
  16382. fi
  16383. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  16384. if test "x$ac_cv_header_signal_h" = xyes
  16385. then :
  16386. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  16387. fi
  16388. ac_fn_c_check_header_compile "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default"
  16389. if test "x$ac_cv_header_linux_input_h" = xyes
  16390. then :
  16391. printf "%s\n" "#define HAVE_LINUX_INPUT_H 1" >>confdefs.h
  16392. fi
  16393. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16394. if test "x$ac_cv_type_size_t" = xyes
  16395. then :
  16396. else $as_nop
  16397. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  16398. fi
  16399. ac_ext=c
  16400. ac_cpp='$CPP $CPPFLAGS'
  16401. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16402. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16403. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  16405. printf %s "checking how to run the C preprocessor... " >&6; }
  16406. # On Suns, sometimes $CPP names a directory.
  16407. if test -n "$CPP" && test -d "$CPP"; then
  16408. CPP=
  16409. fi
  16410. if test -z "$CPP"; then
  16411. if test ${ac_cv_prog_CPP+y}
  16412. then :
  16413. printf %s "(cached) " >&6
  16414. else $as_nop
  16415. # Double quotes because $CC needs to be expanded
  16416. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  16417. do
  16418. ac_preproc_ok=false
  16419. for ac_c_preproc_warn_flag in '' yes
  16420. do
  16421. # Use a header file that comes with gcc, so configuring glibc
  16422. # with a fresh cross-compiler works.
  16423. # On the NeXT, cc -E runs the code through the compiler's parser,
  16424. # not just through cpp. "Syntax error" is here to catch this case.
  16425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16426. /* end confdefs.h. */
  16427. #include <limits.h>
  16428. Syntax error
  16429. _ACEOF
  16430. if ac_fn_c_try_cpp "$LINENO"
  16431. then :
  16432. else $as_nop
  16433. # Broken: fails on valid input.
  16434. continue
  16435. fi
  16436. rm -f conftest.err conftest.i conftest.$ac_ext
  16437. # OK, works on sane cases. Now check whether nonexistent headers
  16438. # can be detected and how.
  16439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16440. /* end confdefs.h. */
  16441. #include <ac_nonexistent.h>
  16442. _ACEOF
  16443. if ac_fn_c_try_cpp "$LINENO"
  16444. then :
  16445. # Broken: success on invalid input.
  16446. continue
  16447. else $as_nop
  16448. # Passes both tests.
  16449. ac_preproc_ok=:
  16450. break
  16451. fi
  16452. rm -f conftest.err conftest.i conftest.$ac_ext
  16453. done
  16454. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16455. rm -f conftest.i conftest.err conftest.$ac_ext
  16456. if $ac_preproc_ok
  16457. then :
  16458. break
  16459. fi
  16460. done
  16461. ac_cv_prog_CPP=$CPP
  16462. fi
  16463. CPP=$ac_cv_prog_CPP
  16464. else
  16465. ac_cv_prog_CPP=$CPP
  16466. fi
  16467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  16468. printf "%s\n" "$CPP" >&6; }
  16469. ac_preproc_ok=false
  16470. for ac_c_preproc_warn_flag in '' yes
  16471. do
  16472. # Use a header file that comes with gcc, so configuring glibc
  16473. # with a fresh cross-compiler works.
  16474. # On the NeXT, cc -E runs the code through the compiler's parser,
  16475. # not just through cpp. "Syntax error" is here to catch this case.
  16476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16477. /* end confdefs.h. */
  16478. #include <limits.h>
  16479. Syntax error
  16480. _ACEOF
  16481. if ac_fn_c_try_cpp "$LINENO"
  16482. then :
  16483. else $as_nop
  16484. # Broken: fails on valid input.
  16485. continue
  16486. fi
  16487. rm -f conftest.err conftest.i conftest.$ac_ext
  16488. # OK, works on sane cases. Now check whether nonexistent headers
  16489. # can be detected and how.
  16490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16491. /* end confdefs.h. */
  16492. #include <ac_nonexistent.h>
  16493. _ACEOF
  16494. if ac_fn_c_try_cpp "$LINENO"
  16495. then :
  16496. # Broken: success on invalid input.
  16497. continue
  16498. else $as_nop
  16499. # Passes both tests.
  16500. ac_preproc_ok=:
  16501. break
  16502. fi
  16503. rm -f conftest.err conftest.i conftest.$ac_ext
  16504. done
  16505. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16506. rm -f conftest.i conftest.err conftest.$ac_ext
  16507. if $ac_preproc_ok
  16508. then :
  16509. else $as_nop
  16510. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16511. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  16512. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  16513. See \`config.log' for more details" "$LINENO" 5; }
  16514. fi
  16515. ac_ext=c
  16516. ac_cpp='$CPP $CPPFLAGS'
  16517. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16518. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16519. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  16521. printf %s "checking for M_PI in math.h... " >&6; }
  16522. if test ${ac_cv_define_M_PI+y}
  16523. then :
  16524. printf %s "(cached) " >&6
  16525. else $as_nop
  16526. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16527. /* end confdefs.h. */
  16528. #include <math.h>
  16529. #ifdef M_PI
  16530. YES_IS_DEFINED
  16531. #endif
  16532. _ACEOF
  16533. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16534. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
  16535. then :
  16536. ac_cv_define_M_PI=yes
  16537. else $as_nop
  16538. ac_cv_define_M_PI=no
  16539. fi
  16540. rm -rf conftest*
  16541. fi
  16542. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  16543. printf "%s\n" "$ac_cv_define_M_PI" >&6; }
  16544. if test "$ac_cv_define_M_PI" = "yes" ; then
  16545. printf "%s\n" "#define HAVE_M_PI /**/" >>confdefs.h
  16546. fi
  16547. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  16548. # for constant arguments. Useless!
  16549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  16550. printf %s "checking for working alloca.h... " >&6; }
  16551. if test ${ac_cv_working_alloca_h+y}
  16552. then :
  16553. printf %s "(cached) " >&6
  16554. else $as_nop
  16555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16556. /* end confdefs.h. */
  16557. #include <alloca.h>
  16558. int
  16559. main (void)
  16560. {
  16561. char *p = (char *) alloca (2 * sizeof (int));
  16562. if (p) return 0;
  16563. ;
  16564. return 0;
  16565. }
  16566. _ACEOF
  16567. if ac_fn_c_try_link "$LINENO"
  16568. then :
  16569. ac_cv_working_alloca_h=yes
  16570. else $as_nop
  16571. ac_cv_working_alloca_h=no
  16572. fi
  16573. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16574. conftest$ac_exeext conftest.$ac_ext
  16575. fi
  16576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  16577. printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
  16578. if test $ac_cv_working_alloca_h = yes; then
  16579. printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
  16580. fi
  16581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  16582. printf %s "checking for alloca... " >&6; }
  16583. if test ${ac_cv_func_alloca_works+y}
  16584. then :
  16585. printf %s "(cached) " >&6
  16586. else $as_nop
  16587. if test $ac_cv_working_alloca_h = yes; then
  16588. ac_cv_func_alloca_works=yes
  16589. else
  16590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16591. /* end confdefs.h. */
  16592. #include <stdlib.h>
  16593. #include <stddef.h>
  16594. #ifndef alloca
  16595. # ifdef __GNUC__
  16596. # define alloca __builtin_alloca
  16597. # elif defined _MSC_VER
  16598. # include <malloc.h>
  16599. # define alloca _alloca
  16600. # else
  16601. # ifdef __cplusplus
  16602. extern "C"
  16603. # endif
  16604. void *alloca (size_t);
  16605. # endif
  16606. #endif
  16607. int
  16608. main (void)
  16609. {
  16610. char *p = (char *) alloca (1);
  16611. if (p) return 0;
  16612. ;
  16613. return 0;
  16614. }
  16615. _ACEOF
  16616. if ac_fn_c_try_link "$LINENO"
  16617. then :
  16618. ac_cv_func_alloca_works=yes
  16619. else $as_nop
  16620. ac_cv_func_alloca_works=no
  16621. fi
  16622. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16623. conftest$ac_exeext conftest.$ac_ext
  16624. fi
  16625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  16626. printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
  16627. fi
  16628. if test $ac_cv_func_alloca_works = yes; then
  16629. printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
  16630. else
  16631. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  16632. # that cause trouble. Some versions do not even contain alloca or
  16633. # contain a buggy version. If you still want to use their alloca,
  16634. # use ar to extract alloca.o from them instead of compiling alloca.c.
  16635. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  16636. printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
  16637. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  16638. printf %s "checking stack direction for C alloca... " >&6; }
  16639. if test ${ac_cv_c_stack_direction+y}
  16640. then :
  16641. printf %s "(cached) " >&6
  16642. else $as_nop
  16643. if test "$cross_compiling" = yes
  16644. then :
  16645. ac_cv_c_stack_direction=0
  16646. else $as_nop
  16647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16648. /* end confdefs.h. */
  16649. $ac_includes_default
  16650. int
  16651. find_stack_direction (int *addr, int depth)
  16652. {
  16653. int dir, dummy = 0;
  16654. if (! addr)
  16655. addr = &dummy;
  16656. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  16657. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  16658. return dir + dummy;
  16659. }
  16660. int
  16661. main (int argc, char **argv)
  16662. {
  16663. return find_stack_direction (0, argc + !argv + 20) < 0;
  16664. }
  16665. _ACEOF
  16666. if ac_fn_c_try_run "$LINENO"
  16667. then :
  16668. ac_cv_c_stack_direction=1
  16669. else $as_nop
  16670. ac_cv_c_stack_direction=-1
  16671. fi
  16672. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16673. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16674. fi
  16675. fi
  16676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  16677. printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
  16678. printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
  16679. fi
  16680. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  16681. if test "x$ac_cv_func_mprotect" = xyes
  16682. then :
  16683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16684. /* end confdefs.h. */
  16685. #include <sys/types.h>
  16686. #include <sys/mman.h>
  16687. int
  16688. main (void)
  16689. {
  16690. ;
  16691. return 0;
  16692. }
  16693. _ACEOF
  16694. if ac_fn_c_try_compile "$LINENO"
  16695. then :
  16696. printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
  16697. fi
  16698. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16699. fi
  16700. ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
  16701. if test "x$ac_cv_func_malloc" = xyes
  16702. then :
  16703. printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
  16704. fi
  16705. ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
  16706. if test "x$ac_cv_func_calloc" = xyes
  16707. then :
  16708. printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h
  16709. fi
  16710. ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
  16711. if test "x$ac_cv_func_realloc" = xyes
  16712. then :
  16713. printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
  16714. fi
  16715. ac_fn_c_check_func "$LINENO" "free" "ac_cv_func_free"
  16716. if test "x$ac_cv_func_free" = xyes
  16717. then :
  16718. printf "%s\n" "#define HAVE_FREE 1" >>confdefs.h
  16719. fi
  16720. ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
  16721. if test "x$ac_cv_func_getenv" = xyes
  16722. then :
  16723. printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
  16724. fi
  16725. ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
  16726. if test "x$ac_cv_func_setenv" = xyes
  16727. then :
  16728. printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
  16729. fi
  16730. ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
  16731. if test "x$ac_cv_func_putenv" = xyes
  16732. then :
  16733. printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
  16734. fi
  16735. ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
  16736. if test "x$ac_cv_func_unsetenv" = xyes
  16737. then :
  16738. printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
  16739. fi
  16740. ac_fn_c_check_func "$LINENO" "bsearch" "ac_cv_func_bsearch"
  16741. if test "x$ac_cv_func_bsearch" = xyes
  16742. then :
  16743. printf "%s\n" "#define HAVE_BSEARCH 1" >>confdefs.h
  16744. fi
  16745. ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
  16746. if test "x$ac_cv_func_qsort" = xyes
  16747. then :
  16748. printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h
  16749. fi
  16750. ac_fn_c_check_func "$LINENO" "abs" "ac_cv_func_abs"
  16751. if test "x$ac_cv_func_abs" = xyes
  16752. then :
  16753. printf "%s\n" "#define HAVE_ABS 1" >>confdefs.h
  16754. fi
  16755. ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
  16756. if test "x$ac_cv_func_bcopy" = xyes
  16757. then :
  16758. printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
  16759. fi
  16760. ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
  16761. if test "x$ac_cv_func_memset" = xyes
  16762. then :
  16763. printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
  16764. fi
  16765. ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
  16766. if test "x$ac_cv_func_memcmp" = xyes
  16767. then :
  16768. printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
  16769. fi
  16770. ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
  16771. if test "x$ac_cv_func_memcpy" = xyes
  16772. then :
  16773. printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
  16774. fi
  16775. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  16776. if test "x$ac_cv_func_memmove" = xyes
  16777. then :
  16778. printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
  16779. fi
  16780. ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
  16781. if test "x$ac_cv_func_wcslen" = xyes
  16782. then :
  16783. printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
  16784. fi
  16785. ac_fn_c_check_func "$LINENO" "wcslcpy" "ac_cv_func_wcslcpy"
  16786. if test "x$ac_cv_func_wcslcpy" = xyes
  16787. then :
  16788. printf "%s\n" "#define HAVE_WCSLCPY 1" >>confdefs.h
  16789. fi
  16790. ac_fn_c_check_func "$LINENO" "wcslcat" "ac_cv_func_wcslcat"
  16791. if test "x$ac_cv_func_wcslcat" = xyes
  16792. then :
  16793. printf "%s\n" "#define HAVE_WCSLCAT 1" >>confdefs.h
  16794. fi
  16795. ac_fn_c_check_func "$LINENO" "_wcsdup" "ac_cv_func__wcsdup"
  16796. if test "x$ac_cv_func__wcsdup" = xyes
  16797. then :
  16798. printf "%s\n" "#define HAVE__WCSDUP 1" >>confdefs.h
  16799. fi
  16800. ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
  16801. if test "x$ac_cv_func_wcsdup" = xyes
  16802. then :
  16803. printf "%s\n" "#define HAVE_WCSDUP 1" >>confdefs.h
  16804. fi
  16805. ac_fn_c_check_func "$LINENO" "wcsstr" "ac_cv_func_wcsstr"
  16806. if test "x$ac_cv_func_wcsstr" = xyes
  16807. then :
  16808. printf "%s\n" "#define HAVE_WCSSTR 1" >>confdefs.h
  16809. fi
  16810. ac_fn_c_check_func "$LINENO" "wcscmp" "ac_cv_func_wcscmp"
  16811. if test "x$ac_cv_func_wcscmp" = xyes
  16812. then :
  16813. printf "%s\n" "#define HAVE_WCSCMP 1" >>confdefs.h
  16814. fi
  16815. ac_fn_c_check_func "$LINENO" "wcsncmp" "ac_cv_func_wcsncmp"
  16816. if test "x$ac_cv_func_wcsncmp" = xyes
  16817. then :
  16818. printf "%s\n" "#define HAVE_WCSNCMP 1" >>confdefs.h
  16819. fi
  16820. ac_fn_c_check_func "$LINENO" "wcscasecmp" "ac_cv_func_wcscasecmp"
  16821. if test "x$ac_cv_func_wcscasecmp" = xyes
  16822. then :
  16823. printf "%s\n" "#define HAVE_WCSCASECMP 1" >>confdefs.h
  16824. fi
  16825. ac_fn_c_check_func "$LINENO" "_wcsicmp" "ac_cv_func__wcsicmp"
  16826. if test "x$ac_cv_func__wcsicmp" = xyes
  16827. then :
  16828. printf "%s\n" "#define HAVE__WCSICMP 1" >>confdefs.h
  16829. fi
  16830. ac_fn_c_check_func "$LINENO" "wcsncasecmp" "ac_cv_func_wcsncasecmp"
  16831. if test "x$ac_cv_func_wcsncasecmp" = xyes
  16832. then :
  16833. printf "%s\n" "#define HAVE_WCSNCASECMP 1" >>confdefs.h
  16834. fi
  16835. ac_fn_c_check_func "$LINENO" "_wcsnicmp" "ac_cv_func__wcsnicmp"
  16836. if test "x$ac_cv_func__wcsnicmp" = xyes
  16837. then :
  16838. printf "%s\n" "#define HAVE__WCSNICMP 1" >>confdefs.h
  16839. fi
  16840. ac_fn_c_check_func "$LINENO" "strlen" "ac_cv_func_strlen"
  16841. if test "x$ac_cv_func_strlen" = xyes
  16842. then :
  16843. printf "%s\n" "#define HAVE_STRLEN 1" >>confdefs.h
  16844. fi
  16845. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  16846. if test "x$ac_cv_func_strlcpy" = xyes
  16847. then :
  16848. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  16849. fi
  16850. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  16851. if test "x$ac_cv_func_strlcat" = xyes
  16852. then :
  16853. printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
  16854. fi
  16855. ac_fn_c_check_func "$LINENO" "_strrev" "ac_cv_func__strrev"
  16856. if test "x$ac_cv_func__strrev" = xyes
  16857. then :
  16858. printf "%s\n" "#define HAVE__STRREV 1" >>confdefs.h
  16859. fi
  16860. ac_fn_c_check_func "$LINENO" "_strupr" "ac_cv_func__strupr"
  16861. if test "x$ac_cv_func__strupr" = xyes
  16862. then :
  16863. printf "%s\n" "#define HAVE__STRUPR 1" >>confdefs.h
  16864. fi
  16865. ac_fn_c_check_func "$LINENO" "_strlwr" "ac_cv_func__strlwr"
  16866. if test "x$ac_cv_func__strlwr" = xyes
  16867. then :
  16868. printf "%s\n" "#define HAVE__STRLWR 1" >>confdefs.h
  16869. fi
  16870. ac_fn_c_check_func "$LINENO" "index" "ac_cv_func_index"
  16871. if test "x$ac_cv_func_index" = xyes
  16872. then :
  16873. printf "%s\n" "#define HAVE_INDEX 1" >>confdefs.h
  16874. fi
  16875. ac_fn_c_check_func "$LINENO" "rindex" "ac_cv_func_rindex"
  16876. if test "x$ac_cv_func_rindex" = xyes
  16877. then :
  16878. printf "%s\n" "#define HAVE_RINDEX 1" >>confdefs.h
  16879. fi
  16880. ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
  16881. if test "x$ac_cv_func_strchr" = xyes
  16882. then :
  16883. printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
  16884. fi
  16885. ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
  16886. if test "x$ac_cv_func_strrchr" = xyes
  16887. then :
  16888. printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
  16889. fi
  16890. ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
  16891. if test "x$ac_cv_func_strstr" = xyes
  16892. then :
  16893. printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
  16894. fi
  16895. ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
  16896. if test "x$ac_cv_func_strtok_r" = xyes
  16897. then :
  16898. printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
  16899. fi
  16900. ac_fn_c_check_func "$LINENO" "itoa" "ac_cv_func_itoa"
  16901. if test "x$ac_cv_func_itoa" = xyes
  16902. then :
  16903. printf "%s\n" "#define HAVE_ITOA 1" >>confdefs.h
  16904. fi
  16905. ac_fn_c_check_func "$LINENO" "_ltoa" "ac_cv_func__ltoa"
  16906. if test "x$ac_cv_func__ltoa" = xyes
  16907. then :
  16908. printf "%s\n" "#define HAVE__LTOA 1" >>confdefs.h
  16909. fi
  16910. ac_fn_c_check_func "$LINENO" "_uitoa" "ac_cv_func__uitoa"
  16911. if test "x$ac_cv_func__uitoa" = xyes
  16912. then :
  16913. printf "%s\n" "#define HAVE__UITOA 1" >>confdefs.h
  16914. fi
  16915. ac_fn_c_check_func "$LINENO" "_ultoa" "ac_cv_func__ultoa"
  16916. if test "x$ac_cv_func__ultoa" = xyes
  16917. then :
  16918. printf "%s\n" "#define HAVE__ULTOA 1" >>confdefs.h
  16919. fi
  16920. ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
  16921. if test "x$ac_cv_func_strtod" = xyes
  16922. then :
  16923. printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
  16924. fi
  16925. ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
  16926. if test "x$ac_cv_func_strtol" = xyes
  16927. then :
  16928. printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
  16929. fi
  16930. ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
  16931. if test "x$ac_cv_func_strtoul" = xyes
  16932. then :
  16933. printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
  16934. fi
  16935. ac_fn_c_check_func "$LINENO" "_i64toa" "ac_cv_func__i64toa"
  16936. if test "x$ac_cv_func__i64toa" = xyes
  16937. then :
  16938. printf "%s\n" "#define HAVE__I64TOA 1" >>confdefs.h
  16939. fi
  16940. ac_fn_c_check_func "$LINENO" "_ui64toa" "ac_cv_func__ui64toa"
  16941. if test "x$ac_cv_func__ui64toa" = xyes
  16942. then :
  16943. printf "%s\n" "#define HAVE__UI64TOA 1" >>confdefs.h
  16944. fi
  16945. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  16946. if test "x$ac_cv_func_strtoll" = xyes
  16947. then :
  16948. printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
  16949. fi
  16950. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  16951. if test "x$ac_cv_func_strtoull" = xyes
  16952. then :
  16953. printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
  16954. fi
  16955. ac_fn_c_check_func "$LINENO" "atoi" "ac_cv_func_atoi"
  16956. if test "x$ac_cv_func_atoi" = xyes
  16957. then :
  16958. printf "%s\n" "#define HAVE_ATOI 1" >>confdefs.h
  16959. fi
  16960. ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
  16961. if test "x$ac_cv_func_atof" = xyes
  16962. then :
  16963. printf "%s\n" "#define HAVE_ATOF 1" >>confdefs.h
  16964. fi
  16965. ac_fn_c_check_func "$LINENO" "strcmp" "ac_cv_func_strcmp"
  16966. if test "x$ac_cv_func_strcmp" = xyes
  16967. then :
  16968. printf "%s\n" "#define HAVE_STRCMP 1" >>confdefs.h
  16969. fi
  16970. ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp"
  16971. if test "x$ac_cv_func_strncmp" = xyes
  16972. then :
  16973. printf "%s\n" "#define HAVE_STRNCMP 1" >>confdefs.h
  16974. fi
  16975. ac_fn_c_check_func "$LINENO" "_stricmp" "ac_cv_func__stricmp"
  16976. if test "x$ac_cv_func__stricmp" = xyes
  16977. then :
  16978. printf "%s\n" "#define HAVE__STRICMP 1" >>confdefs.h
  16979. fi
  16980. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  16981. if test "x$ac_cv_func_strcasecmp" = xyes
  16982. then :
  16983. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  16984. fi
  16985. ac_fn_c_check_func "$LINENO" "_strnicmp" "ac_cv_func__strnicmp"
  16986. if test "x$ac_cv_func__strnicmp" = xyes
  16987. then :
  16988. printf "%s\n" "#define HAVE__STRNICMP 1" >>confdefs.h
  16989. fi
  16990. ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
  16991. if test "x$ac_cv_func_strncasecmp" = xyes
  16992. then :
  16993. printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
  16994. fi
  16995. ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
  16996. if test "x$ac_cv_func_strcasestr" = xyes
  16997. then :
  16998. printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
  16999. fi
  17000. ac_fn_c_check_func "$LINENO" "vsscanf" "ac_cv_func_vsscanf"
  17001. if test "x$ac_cv_func_vsscanf" = xyes
  17002. then :
  17003. printf "%s\n" "#define HAVE_VSSCANF 1" >>confdefs.h
  17004. fi
  17005. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  17006. if test "x$ac_cv_func_vsnprintf" = xyes
  17007. then :
  17008. printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
  17009. fi
  17010. ac_fn_c_check_func "$LINENO" "fopen64" "ac_cv_func_fopen64"
  17011. if test "x$ac_cv_func_fopen64" = xyes
  17012. then :
  17013. printf "%s\n" "#define HAVE_FOPEN64 1" >>confdefs.h
  17014. fi
  17015. ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
  17016. if test "x$ac_cv_func_fseeko" = xyes
  17017. then :
  17018. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  17019. fi
  17020. ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64"
  17021. if test "x$ac_cv_func_fseeko64" = xyes
  17022. then :
  17023. printf "%s\n" "#define HAVE_FSEEKO64 1" >>confdefs.h
  17024. fi
  17025. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  17026. if test "x$ac_cv_func_sigaction" = xyes
  17027. then :
  17028. printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
  17029. fi
  17030. ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
  17031. if test "x$ac_cv_func_setjmp" = xyes
  17032. then :
  17033. printf "%s\n" "#define HAVE_SETJMP 1" >>confdefs.h
  17034. fi
  17035. ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  17036. if test "x$ac_cv_func_nanosleep" = xyes
  17037. then :
  17038. printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
  17039. fi
  17040. ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
  17041. if test "x$ac_cv_func_sysconf" = xyes
  17042. then :
  17043. printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
  17044. fi
  17045. ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
  17046. if test "x$ac_cv_func_sysctlbyname" = xyes
  17047. then :
  17048. printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
  17049. fi
  17050. ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
  17051. if test "x$ac_cv_func_getauxval" = xyes
  17052. then :
  17053. printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
  17054. fi
  17055. ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"
  17056. if test "x$ac_cv_func_elf_aux_info" = xyes
  17057. then :
  17058. printf "%s\n" "#define HAVE_ELF_AUX_INFO 1" >>confdefs.h
  17059. fi
  17060. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  17061. if test "x$ac_cv_func_poll" = xyes
  17062. then :
  17063. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  17064. fi
  17065. ac_fn_c_check_func "$LINENO" "_Exit" "ac_cv_func__Exit"
  17066. if test "x$ac_cv_func__Exit" = xyes
  17067. then :
  17068. printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
  17069. fi
  17070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  17071. printf %s "checking for pow in -lm... " >&6; }
  17072. if test ${ac_cv_lib_m_pow+y}
  17073. then :
  17074. printf %s "(cached) " >&6
  17075. else $as_nop
  17076. ac_check_lib_save_LIBS=$LIBS
  17077. LIBS="-lm $LIBS"
  17078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17079. /* end confdefs.h. */
  17080. /* Override any GCC internal prototype to avoid an error.
  17081. Use char because int might match the return type of a GCC
  17082. builtin and then its argument prototype would still apply. */
  17083. char pow ();
  17084. int
  17085. main (void)
  17086. {
  17087. return pow ();
  17088. ;
  17089. return 0;
  17090. }
  17091. _ACEOF
  17092. if ac_fn_c_try_link "$LINENO"
  17093. then :
  17094. ac_cv_lib_m_pow=yes
  17095. else $as_nop
  17096. ac_cv_lib_m_pow=no
  17097. fi
  17098. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17099. conftest$ac_exeext conftest.$ac_ext
  17100. LIBS=$ac_check_lib_save_LIBS
  17101. fi
  17102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  17103. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  17104. if test "x$ac_cv_lib_m_pow" = xyes
  17105. then :
  17106. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  17107. fi
  17108. ac_fn_c_check_func "$LINENO" "acos" "ac_cv_func_acos"
  17109. if test "x$ac_cv_func_acos" = xyes
  17110. then :
  17111. printf "%s\n" "#define HAVE_ACOS 1" >>confdefs.h
  17112. fi
  17113. ac_fn_c_check_func "$LINENO" "acosf" "ac_cv_func_acosf"
  17114. if test "x$ac_cv_func_acosf" = xyes
  17115. then :
  17116. printf "%s\n" "#define HAVE_ACOSF 1" >>confdefs.h
  17117. fi
  17118. ac_fn_c_check_func "$LINENO" "asin" "ac_cv_func_asin"
  17119. if test "x$ac_cv_func_asin" = xyes
  17120. then :
  17121. printf "%s\n" "#define HAVE_ASIN 1" >>confdefs.h
  17122. fi
  17123. ac_fn_c_check_func "$LINENO" "asinf" "ac_cv_func_asinf"
  17124. if test "x$ac_cv_func_asinf" = xyes
  17125. then :
  17126. printf "%s\n" "#define HAVE_ASINF 1" >>confdefs.h
  17127. fi
  17128. ac_fn_c_check_func "$LINENO" "atan" "ac_cv_func_atan"
  17129. if test "x$ac_cv_func_atan" = xyes
  17130. then :
  17131. printf "%s\n" "#define HAVE_ATAN 1" >>confdefs.h
  17132. fi
  17133. ac_fn_c_check_func "$LINENO" "atanf" "ac_cv_func_atanf"
  17134. if test "x$ac_cv_func_atanf" = xyes
  17135. then :
  17136. printf "%s\n" "#define HAVE_ATANF 1" >>confdefs.h
  17137. fi
  17138. ac_fn_c_check_func "$LINENO" "atan2" "ac_cv_func_atan2"
  17139. if test "x$ac_cv_func_atan2" = xyes
  17140. then :
  17141. printf "%s\n" "#define HAVE_ATAN2 1" >>confdefs.h
  17142. fi
  17143. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  17144. if test "x$ac_cv_func_atan2f" = xyes
  17145. then :
  17146. printf "%s\n" "#define HAVE_ATAN2F 1" >>confdefs.h
  17147. fi
  17148. ac_fn_c_check_func "$LINENO" "ceil" "ac_cv_func_ceil"
  17149. if test "x$ac_cv_func_ceil" = xyes
  17150. then :
  17151. printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h
  17152. fi
  17153. ac_fn_c_check_func "$LINENO" "ceilf" "ac_cv_func_ceilf"
  17154. if test "x$ac_cv_func_ceilf" = xyes
  17155. then :
  17156. printf "%s\n" "#define HAVE_CEILF 1" >>confdefs.h
  17157. fi
  17158. ac_fn_c_check_func "$LINENO" "copysign" "ac_cv_func_copysign"
  17159. if test "x$ac_cv_func_copysign" = xyes
  17160. then :
  17161. printf "%s\n" "#define HAVE_COPYSIGN 1" >>confdefs.h
  17162. fi
  17163. ac_fn_c_check_func "$LINENO" "copysignf" "ac_cv_func_copysignf"
  17164. if test "x$ac_cv_func_copysignf" = xyes
  17165. then :
  17166. printf "%s\n" "#define HAVE_COPYSIGNF 1" >>confdefs.h
  17167. fi
  17168. ac_fn_c_check_func "$LINENO" "cos" "ac_cv_func_cos"
  17169. if test "x$ac_cv_func_cos" = xyes
  17170. then :
  17171. printf "%s\n" "#define HAVE_COS 1" >>confdefs.h
  17172. fi
  17173. ac_fn_c_check_func "$LINENO" "cosf" "ac_cv_func_cosf"
  17174. if test "x$ac_cv_func_cosf" = xyes
  17175. then :
  17176. printf "%s\n" "#define HAVE_COSF 1" >>confdefs.h
  17177. fi
  17178. ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
  17179. if test "x$ac_cv_func_exp" = xyes
  17180. then :
  17181. printf "%s\n" "#define HAVE_EXP 1" >>confdefs.h
  17182. fi
  17183. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  17184. if test "x$ac_cv_func_expf" = xyes
  17185. then :
  17186. printf "%s\n" "#define HAVE_EXPF 1" >>confdefs.h
  17187. fi
  17188. ac_fn_c_check_func "$LINENO" "fabs" "ac_cv_func_fabs"
  17189. if test "x$ac_cv_func_fabs" = xyes
  17190. then :
  17191. printf "%s\n" "#define HAVE_FABS 1" >>confdefs.h
  17192. fi
  17193. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  17194. if test "x$ac_cv_func_fabsf" = xyes
  17195. then :
  17196. printf "%s\n" "#define HAVE_FABSF 1" >>confdefs.h
  17197. fi
  17198. ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
  17199. if test "x$ac_cv_func_floor" = xyes
  17200. then :
  17201. printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
  17202. fi
  17203. ac_fn_c_check_func "$LINENO" "floorf" "ac_cv_func_floorf"
  17204. if test "x$ac_cv_func_floorf" = xyes
  17205. then :
  17206. printf "%s\n" "#define HAVE_FLOORF 1" >>confdefs.h
  17207. fi
  17208. ac_fn_c_check_func "$LINENO" "trunc" "ac_cv_func_trunc"
  17209. if test "x$ac_cv_func_trunc" = xyes
  17210. then :
  17211. printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h
  17212. fi
  17213. ac_fn_c_check_func "$LINENO" "truncf" "ac_cv_func_truncf"
  17214. if test "x$ac_cv_func_truncf" = xyes
  17215. then :
  17216. printf "%s\n" "#define HAVE_TRUNCF 1" >>confdefs.h
  17217. fi
  17218. ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
  17219. if test "x$ac_cv_func_fmod" = xyes
  17220. then :
  17221. printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h
  17222. fi
  17223. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  17224. if test "x$ac_cv_func_fmodf" = xyes
  17225. then :
  17226. printf "%s\n" "#define HAVE_FMODF 1" >>confdefs.h
  17227. fi
  17228. ac_fn_c_check_func "$LINENO" "log" "ac_cv_func_log"
  17229. if test "x$ac_cv_func_log" = xyes
  17230. then :
  17231. printf "%s\n" "#define HAVE_LOG 1" >>confdefs.h
  17232. fi
  17233. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  17234. if test "x$ac_cv_func_logf" = xyes
  17235. then :
  17236. printf "%s\n" "#define HAVE_LOGF 1" >>confdefs.h
  17237. fi
  17238. ac_fn_c_check_func "$LINENO" "log10" "ac_cv_func_log10"
  17239. if test "x$ac_cv_func_log10" = xyes
  17240. then :
  17241. printf "%s\n" "#define HAVE_LOG10 1" >>confdefs.h
  17242. fi
  17243. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  17244. if test "x$ac_cv_func_log10f" = xyes
  17245. then :
  17246. printf "%s\n" "#define HAVE_LOG10F 1" >>confdefs.h
  17247. fi
  17248. ac_fn_c_check_func "$LINENO" "lround" "ac_cv_func_lround"
  17249. if test "x$ac_cv_func_lround" = xyes
  17250. then :
  17251. printf "%s\n" "#define HAVE_LROUND 1" >>confdefs.h
  17252. fi
  17253. ac_fn_c_check_func "$LINENO" "lroundf" "ac_cv_func_lroundf"
  17254. if test "x$ac_cv_func_lroundf" = xyes
  17255. then :
  17256. printf "%s\n" "#define HAVE_LROUNDF 1" >>confdefs.h
  17257. fi
  17258. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  17259. if test "x$ac_cv_func_pow" = xyes
  17260. then :
  17261. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  17262. fi
  17263. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  17264. if test "x$ac_cv_func_powf" = xyes
  17265. then :
  17266. printf "%s\n" "#define HAVE_POWF 1" >>confdefs.h
  17267. fi
  17268. ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
  17269. if test "x$ac_cv_func_round" = xyes
  17270. then :
  17271. printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h
  17272. fi
  17273. ac_fn_c_check_func "$LINENO" "roundf" "ac_cv_func_roundf"
  17274. if test "x$ac_cv_func_roundf" = xyes
  17275. then :
  17276. printf "%s\n" "#define HAVE_ROUNDF 1" >>confdefs.h
  17277. fi
  17278. ac_fn_c_check_func "$LINENO" "scalbn" "ac_cv_func_scalbn"
  17279. if test "x$ac_cv_func_scalbn" = xyes
  17280. then :
  17281. printf "%s\n" "#define HAVE_SCALBN 1" >>confdefs.h
  17282. fi
  17283. ac_fn_c_check_func "$LINENO" "scalbnf" "ac_cv_func_scalbnf"
  17284. if test "x$ac_cv_func_scalbnf" = xyes
  17285. then :
  17286. printf "%s\n" "#define HAVE_SCALBNF 1" >>confdefs.h
  17287. fi
  17288. ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
  17289. if test "x$ac_cv_func_sin" = xyes
  17290. then :
  17291. printf "%s\n" "#define HAVE_SIN 1" >>confdefs.h
  17292. fi
  17293. ac_fn_c_check_func "$LINENO" "sinf" "ac_cv_func_sinf"
  17294. if test "x$ac_cv_func_sinf" = xyes
  17295. then :
  17296. printf "%s\n" "#define HAVE_SINF 1" >>confdefs.h
  17297. fi
  17298. ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
  17299. if test "x$ac_cv_func_sqrt" = xyes
  17300. then :
  17301. printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
  17302. fi
  17303. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  17304. if test "x$ac_cv_func_sqrtf" = xyes
  17305. then :
  17306. printf "%s\n" "#define HAVE_SQRTF 1" >>confdefs.h
  17307. fi
  17308. ac_fn_c_check_func "$LINENO" "tan" "ac_cv_func_tan"
  17309. if test "x$ac_cv_func_tan" = xyes
  17310. then :
  17311. printf "%s\n" "#define HAVE_TAN 1" >>confdefs.h
  17312. fi
  17313. ac_fn_c_check_func "$LINENO" "tanf" "ac_cv_func_tanf"
  17314. if test "x$ac_cv_func_tanf" = xyes
  17315. then :
  17316. printf "%s\n" "#define HAVE_TANF 1" >>confdefs.h
  17317. fi
  17318. if test x$enable_system_iconv = xyes; then
  17319. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  17320. printf %s "checking for iconv_open in -liconv... " >&6; }
  17321. if test ${ac_cv_lib_iconv_iconv_open+y}
  17322. then :
  17323. printf %s "(cached) " >&6
  17324. else $as_nop
  17325. ac_check_lib_save_LIBS=$LIBS
  17326. LIBS="-liconv $LIBS"
  17327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17328. /* end confdefs.h. */
  17329. /* Override any GCC internal prototype to avoid an error.
  17330. Use char because int might match the return type of a GCC
  17331. builtin and then its argument prototype would still apply. */
  17332. char iconv_open ();
  17333. int
  17334. main (void)
  17335. {
  17336. return iconv_open ();
  17337. ;
  17338. return 0;
  17339. }
  17340. _ACEOF
  17341. if ac_fn_c_try_link "$LINENO"
  17342. then :
  17343. ac_cv_lib_iconv_iconv_open=yes
  17344. else $as_nop
  17345. ac_cv_lib_iconv_iconv_open=no
  17346. fi
  17347. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17348. conftest$ac_exeext conftest.$ac_ext
  17349. LIBS=$ac_check_lib_save_LIBS
  17350. fi
  17351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  17352. printf "%s\n" "$ac_cv_lib_iconv_iconv_open" >&6; }
  17353. if test "x$ac_cv_lib_iconv_iconv_open" = xyes
  17354. then :
  17355. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  17356. fi
  17357. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  17358. if test "x$ac_cv_func_iconv" = xyes
  17359. then :
  17360. printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
  17361. fi
  17362. fi
  17363. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  17364. "
  17365. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
  17366. then :
  17367. printf "%s\n" "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  17368. fi
  17369. ac_fn_c_check_header_compile "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  17370. if test "x$ac_cv_header_libunwind_h" = xyes
  17371. then :
  17372. printf "%s\n" "#define HAVE_LIBUNWIND_H 1" >>confdefs.h
  17373. fi
  17374. fi
  17375. # Check whether --enable-gcc-atomics was given.
  17376. if test ${enable_gcc_atomics+y}
  17377. then :
  17378. enableval=$enable_gcc_atomics;
  17379. else $as_nop
  17380. enable_gcc_atomics=yes
  17381. fi
  17382. if test x$enable_gcc_atomics = xyes; then
  17383. have_gcc_atomics=no
  17384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  17385. printf %s "checking for GCC builtin atomic operations... " >&6; }
  17386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17387. /* end confdefs.h. */
  17388. int
  17389. main (void)
  17390. {
  17391. int a;
  17392. void *x, *y, *z;
  17393. __sync_lock_test_and_set(&a, 4);
  17394. __sync_lock_test_and_set(&x, y);
  17395. __sync_fetch_and_add(&a, 1);
  17396. __sync_bool_compare_and_swap(&a, 5, 10);
  17397. __sync_bool_compare_and_swap(&x, y, z);
  17398. ;
  17399. return 0;
  17400. }
  17401. _ACEOF
  17402. if ac_fn_c_try_link "$LINENO"
  17403. then :
  17404. have_gcc_atomics=yes
  17405. fi
  17406. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17407. conftest$ac_exeext conftest.$ac_ext
  17408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  17409. printf "%s\n" "$have_gcc_atomics" >&6; }
  17410. if test x$have_gcc_atomics = xyes; then
  17411. printf "%s\n" "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  17412. else
  17413. # See if we have the minimum operation needed for GCC atomics
  17414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17415. /* end confdefs.h. */
  17416. int
  17417. main (void)
  17418. {
  17419. int a;
  17420. __sync_lock_test_and_set(&a, 1);
  17421. __sync_lock_release(&a);
  17422. ;
  17423. return 0;
  17424. }
  17425. _ACEOF
  17426. if ac_fn_c_try_link "$LINENO"
  17427. then :
  17428. have_gcc_sync_lock_test_and_set=yes
  17429. fi
  17430. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17431. conftest$ac_exeext conftest.$ac_ext
  17432. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  17433. printf "%s\n" "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  17434. fi
  17435. fi
  17436. fi
  17437. # Standard C sources
  17438. SOURCES="$SOURCES $srcdir/src/*.c"
  17439. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  17440. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  17441. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  17442. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  17443. SOURCES="$SOURCES $srcdir/src/events/*.c"
  17444. SOURCES="$SOURCES $srcdir/src/file/*.c"
  17445. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  17446. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  17447. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  17448. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  17449. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  17450. SOURCES="$SOURCES $srcdir/src/power/*.c"
  17451. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  17452. SOURCES="$SOURCES $srcdir/src/render/*.c"
  17453. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  17454. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  17455. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  17456. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  17457. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  17458. SOURCES="$SOURCES $srcdir/src/video/*.c"
  17459. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  17460. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  17461. case "$host" in
  17462. *-*-emscripten*)
  17463. default_atomic=no
  17464. ;;
  17465. *)
  17466. default_atomic=yes
  17467. ;;
  17468. esac
  17469. # Check whether --enable-atomic was given.
  17470. if test ${enable_atomic+y}
  17471. then :
  17472. enableval=$enable_atomic;
  17473. else $as_nop
  17474. enable_atomic=$default_atomic
  17475. fi
  17476. if test x$enable_atomic != xyes; then
  17477. printf "%s\n" "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  17478. else
  17479. SUMMARY_modules="${SUMMARY_modules} atomic"
  17480. fi
  17481. # Check whether --enable-audio was given.
  17482. if test ${enable_audio+y}
  17483. then :
  17484. enableval=$enable_audio;
  17485. else $as_nop
  17486. enable_audio=yes
  17487. fi
  17488. if test x$enable_audio != xyes; then
  17489. printf "%s\n" "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  17490. else
  17491. SUMMARY_modules="${SUMMARY_modules} audio"
  17492. fi
  17493. # Check whether --enable-video was given.
  17494. if test ${enable_video+y}
  17495. then :
  17496. enableval=$enable_video;
  17497. else $as_nop
  17498. enable_video=yes
  17499. fi
  17500. if test x$enable_video != xyes; then
  17501. printf "%s\n" "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  17502. else
  17503. SUMMARY_modules="${SUMMARY_modules} video"
  17504. fi
  17505. # Check whether --enable-render was given.
  17506. if test ${enable_render+y}
  17507. then :
  17508. enableval=$enable_render;
  17509. else $as_nop
  17510. enable_render=yes
  17511. fi
  17512. if test x$enable_render != xyes; then
  17513. printf "%s\n" "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  17514. else
  17515. SUMMARY_modules="${SUMMARY_modules} render"
  17516. fi
  17517. # Check whether --enable-events was given.
  17518. if test ${enable_events+y}
  17519. then :
  17520. enableval=$enable_events;
  17521. else $as_nop
  17522. enable_events=yes
  17523. fi
  17524. if test x$enable_events != xyes; then
  17525. printf "%s\n" "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  17526. else
  17527. SUMMARY_modules="${SUMMARY_modules} events"
  17528. fi
  17529. # Check whether --enable-joystick was given.
  17530. if test ${enable_joystick+y}
  17531. then :
  17532. enableval=$enable_joystick;
  17533. else $as_nop
  17534. enable_joystick=yes
  17535. fi
  17536. if test x$enable_joystick != xyes; then
  17537. printf "%s\n" "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  17538. else
  17539. SUMMARY_modules="${SUMMARY_modules} joystick"
  17540. fi
  17541. # Check whether --enable-haptic was given.
  17542. if test ${enable_haptic+y}
  17543. then :
  17544. enableval=$enable_haptic;
  17545. else $as_nop
  17546. enable_haptic=yes
  17547. fi
  17548. if test x$enable_haptic != xyes; then
  17549. printf "%s\n" "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  17550. else
  17551. SUMMARY_modules="${SUMMARY_modules} haptic"
  17552. fi
  17553. # Check whether --enable-hidapi was given.
  17554. if test ${enable_hidapi+y}
  17555. then :
  17556. enableval=$enable_hidapi;
  17557. else $as_nop
  17558. enable_hidapi=yes
  17559. fi
  17560. if test x$enable_hidapi != xyes; then
  17561. printf "%s\n" "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  17562. else
  17563. SUMMARY_modules="${SUMMARY_modules} hidapi"
  17564. fi
  17565. # Check whether --enable-sensor was given.
  17566. if test ${enable_sensor+y}
  17567. then :
  17568. enableval=$enable_sensor;
  17569. else $as_nop
  17570. enable_sensor=yes
  17571. fi
  17572. if test x$enable_sensor != xyes; then
  17573. printf "%s\n" "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  17574. else
  17575. SUMMARY_modules="${SUMMARY_modules} sensor"
  17576. fi
  17577. # Check whether --enable-power was given.
  17578. if test ${enable_power+y}
  17579. then :
  17580. enableval=$enable_power;
  17581. else $as_nop
  17582. enable_power=yes
  17583. fi
  17584. if test x$enable_power != xyes; then
  17585. printf "%s\n" "#define SDL_POWER_DISABLED 1" >>confdefs.h
  17586. else
  17587. SUMMARY_modules="${SUMMARY_modules} power"
  17588. fi
  17589. # Check whether --enable-filesystem was given.
  17590. if test ${enable_filesystem+y}
  17591. then :
  17592. enableval=$enable_filesystem;
  17593. else $as_nop
  17594. enable_filesystem=yes
  17595. fi
  17596. if test x$enable_filesystem != xyes; then
  17597. printf "%s\n" "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  17598. else
  17599. SUMMARY_modules="${SUMMARY_modules} filesystem"
  17600. fi
  17601. # Many subsystems depend on threads, so leave them enabled by default
  17602. #AC_ARG_ENABLE(threads,
  17603. #[AS_HELP_STRING([--enable-threads], [Enable the threading subsystem [default=yes]])],
  17604. # , enable_threads=yes)
  17605. enable_threads=yes
  17606. if test x$enable_threads != xyes; then
  17607. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  17608. else
  17609. SUMMARY_modules="${SUMMARY_modules} threads"
  17610. fi
  17611. # Check whether --enable-timers was given.
  17612. if test ${enable_timers+y}
  17613. then :
  17614. enableval=$enable_timers;
  17615. else $as_nop
  17616. enable_timers=yes
  17617. fi
  17618. if test x$enable_timers != xyes; then
  17619. printf "%s\n" "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  17620. else
  17621. SUMMARY_modules="${SUMMARY_modules} timers"
  17622. fi
  17623. # Check whether --enable-file was given.
  17624. if test ${enable_file+y}
  17625. then :
  17626. enableval=$enable_file;
  17627. else $as_nop
  17628. enable_file=yes
  17629. fi
  17630. if test x$enable_file != xyes; then
  17631. printf "%s\n" "#define SDL_FILE_DISABLED 1" >>confdefs.h
  17632. else
  17633. SUMMARY_modules="${SUMMARY_modules} file"
  17634. fi
  17635. # Check whether --enable-misc was given.
  17636. if test ${enable_misc+y}
  17637. then :
  17638. enableval=$enable_misc;
  17639. else $as_nop
  17640. enable_misc=yes
  17641. fi
  17642. if test x$enable_misc != xyes; then
  17643. printf "%s\n" "#define SDL_MISC_DISABLED 1" >>confdefs.h
  17644. else
  17645. SUMMARY_modules="${SUMMARY_modules} misc"
  17646. fi
  17647. # Check whether --enable-locale was given.
  17648. if test ${enable_locale+y}
  17649. then :
  17650. enableval=$enable_locale;
  17651. else $as_nop
  17652. enable_locale=yes
  17653. fi
  17654. if test x$enable_locale != xyes; then
  17655. printf "%s\n" "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  17656. else
  17657. SUMMARY_modules="${SUMMARY_modules} locale"
  17658. fi
  17659. # Check whether --enable-loadso was given.
  17660. if test ${enable_loadso+y}
  17661. then :
  17662. enableval=$enable_loadso;
  17663. else $as_nop
  17664. enable_loadso=yes
  17665. fi
  17666. if test x$enable_loadso != xyes; then
  17667. printf "%s\n" "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  17668. else
  17669. SUMMARY_modules="${SUMMARY_modules} loadso"
  17670. fi
  17671. # Check whether --enable-cpuinfo was given.
  17672. if test ${enable_cpuinfo+y}
  17673. then :
  17674. enableval=$enable_cpuinfo;
  17675. else $as_nop
  17676. enable_cpuinfo=yes
  17677. fi
  17678. if test x$enable_cpuinfo != xyes; then
  17679. printf "%s\n" "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  17680. else
  17681. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  17682. fi
  17683. # Check whether --enable-assembly was given.
  17684. if test ${enable_assembly+y}
  17685. then :
  17686. enableval=$enable_assembly;
  17687. else $as_nop
  17688. enable_assembly=yes
  17689. fi
  17690. if test x$enable_assembly = xyes; then
  17691. SUMMARY_modules="${SUMMARY_modules} assembly"
  17692. # Make sure that we don't generate floating point code that would
  17693. # cause illegal instruction exceptions on older processors
  17694. case "$host" in
  17695. *-*-darwin*)
  17696. # Don't need to worry about Apple hardware, it's all SSE capable
  17697. default_ssemath=yes
  17698. ;;
  17699. *64-*-*)
  17700. # x86 64-bit architectures all have SSE instructions
  17701. default_ssemath=yes
  17702. ;;
  17703. *)
  17704. default_ssemath=no
  17705. ;;
  17706. esac
  17707. # Check whether --enable-ssemath was given.
  17708. if test ${enable_ssemath+y}
  17709. then :
  17710. enableval=$enable_ssemath;
  17711. else $as_nop
  17712. enable_ssemath=$default_ssemath
  17713. fi
  17714. if test x$enable_ssemath = xno; then
  17715. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  17716. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  17717. fi
  17718. fi
  17719. # Check whether --enable-mmx was given.
  17720. if test ${enable_mmx+y}
  17721. then :
  17722. enableval=$enable_mmx;
  17723. else $as_nop
  17724. enable_mmx=yes
  17725. fi
  17726. if test x$enable_mmx = xyes; then
  17727. save_CFLAGS="$CFLAGS"
  17728. have_gcc_mmx=no
  17729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  17730. printf %s "checking for GCC -mmmx option... " >&6; }
  17731. mmx_CFLAGS="-mmmx"
  17732. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  17733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17734. /* end confdefs.h. */
  17735. #ifdef __MINGW32__
  17736. #include <_mingw.h>
  17737. #ifdef __MINGW64_VERSION_MAJOR
  17738. #include <intrin.h>
  17739. #else
  17740. #include <mmintrin.h>
  17741. #endif
  17742. #else
  17743. #include <mmintrin.h>
  17744. #endif
  17745. #ifndef __MMX__
  17746. #error Assembler CPP flag not enabled
  17747. #endif
  17748. int
  17749. main (void)
  17750. {
  17751. ;
  17752. return 0;
  17753. }
  17754. _ACEOF
  17755. if ac_fn_c_try_compile "$LINENO"
  17756. then :
  17757. have_gcc_mmx=yes
  17758. fi
  17759. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17760. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  17761. printf "%s\n" "$have_gcc_mmx" >&6; }
  17762. CFLAGS="$save_CFLAGS"
  17763. if test x$have_gcc_mmx = xyes; then
  17764. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  17765. SUMMARY_math="${SUMMARY_math} mmx"
  17766. fi
  17767. fi
  17768. # Check whether --enable-3dnow was given.
  17769. if test ${enable_3dnow+y}
  17770. then :
  17771. enableval=$enable_3dnow;
  17772. else $as_nop
  17773. enable_3dnow=yes
  17774. fi
  17775. if test x$enable_3dnow = xyes; then
  17776. save_CFLAGS="$CFLAGS"
  17777. have_gcc_3dnow=no
  17778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  17779. printf %s "checking for GCC -m3dnow option... " >&6; }
  17780. amd3dnow_CFLAGS="-m3dnow"
  17781. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  17782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17783. /* end confdefs.h. */
  17784. #include <mm3dnow.h>
  17785. #ifndef __3dNOW__
  17786. #error Assembler CPP flag not enabled
  17787. #endif
  17788. int
  17789. main (void)
  17790. {
  17791. void *p = 0;
  17792. _m_prefetch(p);
  17793. ;
  17794. return 0;
  17795. }
  17796. _ACEOF
  17797. if ac_fn_c_try_link "$LINENO"
  17798. then :
  17799. have_gcc_3dnow=yes
  17800. fi
  17801. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17802. conftest$ac_exeext conftest.$ac_ext
  17803. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  17804. printf "%s\n" "$have_gcc_3dnow" >&6; }
  17805. CFLAGS="$save_CFLAGS"
  17806. if test x$have_gcc_3dnow = xyes; then
  17807. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  17808. SUMMARY_math="${SUMMARY_math} 3dnow"
  17809. fi
  17810. fi
  17811. # Check whether --enable-sse was given.
  17812. if test ${enable_sse+y}
  17813. then :
  17814. enableval=$enable_sse;
  17815. else $as_nop
  17816. enable_sse=yes
  17817. fi
  17818. if test x$enable_sse = xyes; then
  17819. save_CFLAGS="$CFLAGS"
  17820. have_gcc_sse=no
  17821. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  17822. printf %s "checking for GCC -msse option... " >&6; }
  17823. sse_CFLAGS="-msse"
  17824. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  17825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17826. /* end confdefs.h. */
  17827. #ifdef __MINGW32__
  17828. #include <_mingw.h>
  17829. #ifdef __MINGW64_VERSION_MAJOR
  17830. #include <intrin.h>
  17831. #else
  17832. #include <xmmintrin.h>
  17833. #endif
  17834. #else
  17835. #include <xmmintrin.h>
  17836. #endif
  17837. #ifndef __SSE__
  17838. #error Assembler CPP flag not enabled
  17839. #endif
  17840. int
  17841. main (void)
  17842. {
  17843. ;
  17844. return 0;
  17845. }
  17846. _ACEOF
  17847. if ac_fn_c_try_compile "$LINENO"
  17848. then :
  17849. have_gcc_sse=yes
  17850. fi
  17851. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  17853. printf "%s\n" "$have_gcc_sse" >&6; }
  17854. CFLAGS="$save_CFLAGS"
  17855. if test x$have_gcc_sse = xyes; then
  17856. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  17857. SUMMARY_math="${SUMMARY_math} sse"
  17858. fi
  17859. fi
  17860. # Check whether --enable-sse2 was given.
  17861. if test ${enable_sse2+y}
  17862. then :
  17863. enableval=$enable_sse2;
  17864. else $as_nop
  17865. enable_sse2=$default_ssemath
  17866. fi
  17867. if test x$enable_sse2 = xyes; then
  17868. save_CFLAGS="$CFLAGS"
  17869. have_gcc_sse2=no
  17870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  17871. printf %s "checking for GCC -msse2 option... " >&6; }
  17872. sse2_CFLAGS="-msse2"
  17873. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  17874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17875. /* end confdefs.h. */
  17876. #ifdef __MINGW32__
  17877. #include <_mingw.h>
  17878. #ifdef __MINGW64_VERSION_MAJOR
  17879. #include <intrin.h>
  17880. #else
  17881. #include <emmintrin.h>
  17882. #endif
  17883. #else
  17884. #include <emmintrin.h>
  17885. #endif
  17886. #ifndef __SSE2__
  17887. #error Assembler CPP flag not enabled
  17888. #endif
  17889. int
  17890. main (void)
  17891. {
  17892. ;
  17893. return 0;
  17894. }
  17895. _ACEOF
  17896. if ac_fn_c_try_compile "$LINENO"
  17897. then :
  17898. have_gcc_sse2=yes
  17899. fi
  17900. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17901. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  17902. printf "%s\n" "$have_gcc_sse2" >&6; }
  17903. CFLAGS="$save_CFLAGS"
  17904. if test x$have_gcc_sse2 = xyes; then
  17905. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  17906. SUMMARY_math="${SUMMARY_math} sse2"
  17907. fi
  17908. fi
  17909. # Check whether --enable-sse3 was given.
  17910. if test ${enable_sse3+y}
  17911. then :
  17912. enableval=$enable_sse3;
  17913. else $as_nop
  17914. enable_sse3=$default_ssemath
  17915. fi
  17916. if test x$enable_sse3 = xyes; then
  17917. save_CFLAGS="$CFLAGS"
  17918. have_gcc_sse3=no
  17919. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  17920. printf %s "checking for GCC -msse3 option... " >&6; }
  17921. sse3_CFLAGS="-msse3"
  17922. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  17923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17924. /* end confdefs.h. */
  17925. #ifdef __MINGW32__
  17926. #include <_mingw.h>
  17927. #ifdef __MINGW64_VERSION_MAJOR
  17928. #include <intrin.h>
  17929. #else
  17930. #include <pmmintrin.h>
  17931. #endif
  17932. #else
  17933. #include <pmmintrin.h>
  17934. #endif
  17935. #ifndef __SSE2__
  17936. #error Assembler CPP flag not enabled
  17937. #endif
  17938. int
  17939. main (void)
  17940. {
  17941. ;
  17942. return 0;
  17943. }
  17944. _ACEOF
  17945. if ac_fn_c_try_compile "$LINENO"
  17946. then :
  17947. have_gcc_sse3=yes
  17948. fi
  17949. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17950. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  17951. printf "%s\n" "$have_gcc_sse3" >&6; }
  17952. CFLAGS="$save_CFLAGS"
  17953. if test x$have_gcc_sse3 = xyes; then
  17954. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  17955. SUMMARY_math="${SUMMARY_math} sse3"
  17956. fi
  17957. fi
  17958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  17959. printf %s "checking for immintrin.h... " >&6; }
  17960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17961. /* end confdefs.h. */
  17962. #include <immintrin.h>
  17963. int
  17964. main (void)
  17965. {
  17966. ;
  17967. return 0;
  17968. }
  17969. _ACEOF
  17970. if ac_fn_c_try_compile "$LINENO"
  17971. then :
  17972. have_immintrin_h_hdr=yes
  17973. else $as_nop
  17974. have_immintrin_h_hdr=no
  17975. fi
  17976. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17977. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  17978. printf "%s\n" "$have_immintrin_h_hdr" >&6; }
  17979. if test x$have_immintrin_h_hdr = xyes; then
  17980. printf "%s\n" "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  17981. fi
  17982. # Check whether --enable-altivec was given.
  17983. if test ${enable_altivec+y}
  17984. then :
  17985. enableval=$enable_altivec;
  17986. else $as_nop
  17987. enable_altivec=yes
  17988. fi
  17989. if test x$enable_altivec = xyes; then
  17990. save_CFLAGS="$CFLAGS"
  17991. have_gcc_altivec=no
  17992. have_altivec_h_hdr=no
  17993. altivec_CFLAGS="-maltivec"
  17994. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  17995. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  17996. printf %s "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  17997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17998. /* end confdefs.h. */
  17999. #include <altivec.h>
  18000. vector unsigned int vzero() {
  18001. return vec_splat_u32(0);
  18002. }
  18003. int
  18004. main (void)
  18005. {
  18006. ;
  18007. return 0;
  18008. }
  18009. _ACEOF
  18010. if ac_fn_c_try_compile "$LINENO"
  18011. then :
  18012. have_gcc_altivec=yes
  18013. have_altivec_h_hdr=yes
  18014. fi
  18015. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18017. printf "%s\n" "$have_gcc_altivec" >&6; }
  18018. if test x$have_gcc_altivec = xno; then
  18019. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  18020. printf %s "checking for Altivec with GCC -maltivec option... " >&6; }
  18021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18022. /* end confdefs.h. */
  18023. vector unsigned int vzero() {
  18024. return vec_splat_u32(0);
  18025. }
  18026. int
  18027. main (void)
  18028. {
  18029. ;
  18030. return 0;
  18031. }
  18032. _ACEOF
  18033. if ac_fn_c_try_compile "$LINENO"
  18034. then :
  18035. have_gcc_altivec=yes
  18036. fi
  18037. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18038. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18039. printf "%s\n" "$have_gcc_altivec" >&6; }
  18040. fi
  18041. if test x$have_gcc_altivec = xno; then
  18042. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  18043. printf %s "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  18044. altivec_CFLAGS="-faltivec"
  18045. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18047. /* end confdefs.h. */
  18048. #include <altivec.h>
  18049. vector unsigned int vzero() {
  18050. return vec_splat_u32(0);
  18051. }
  18052. int
  18053. main (void)
  18054. {
  18055. ;
  18056. return 0;
  18057. }
  18058. _ACEOF
  18059. if ac_fn_c_try_compile "$LINENO"
  18060. then :
  18061. have_gcc_altivec=yes
  18062. have_altivec_h_hdr=yes
  18063. fi
  18064. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18066. printf "%s\n" "$have_gcc_altivec" >&6; }
  18067. fi
  18068. if test x$have_gcc_altivec = xno; then
  18069. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  18070. printf %s "checking for Altivec with GCC -faltivec option... " >&6; }
  18071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18072. /* end confdefs.h. */
  18073. vector unsigned int vzero() {
  18074. return vec_splat_u32(0);
  18075. }
  18076. int
  18077. main (void)
  18078. {
  18079. ;
  18080. return 0;
  18081. }
  18082. _ACEOF
  18083. if ac_fn_c_try_compile "$LINENO"
  18084. then :
  18085. have_gcc_altivec=yes
  18086. fi
  18087. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18088. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18089. printf "%s\n" "$have_gcc_altivec" >&6; }
  18090. fi
  18091. CFLAGS="$save_CFLAGS"
  18092. if test x$have_gcc_altivec = xyes; then
  18093. printf "%s\n" "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  18094. if test x$have_altivec_h_hdr = xyes; then
  18095. printf "%s\n" "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  18096. fi
  18097. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  18098. SUMMARY_math="${SUMMARY_math} altivec"
  18099. fi
  18100. fi
  18101. fi
  18102. # Check whether --enable-lsx was given.
  18103. if test ${enable_lsx+y}
  18104. then :
  18105. enableval=$enable_lsx;
  18106. else $as_nop
  18107. enable_lsx=yes
  18108. fi
  18109. if test x$enable_lsx = xyes; then
  18110. save_CFLAGS="$CFLAGS"
  18111. have_gcc_lsx=no
  18112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlsx option" >&5
  18113. printf %s "checking for GCC -mlsx option... " >&6; }
  18114. lsx_CFLAGS="-mlsx"
  18115. CFLAGS="$save_CFLAGS $lsx_CFLAGS"
  18116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18117. /* end confdefs.h. */
  18118. #ifndef __loongarch_sx
  18119. #error Assembler CPP flag not enabled
  18120. #endif
  18121. int
  18122. main (void)
  18123. {
  18124. ;
  18125. return 0;
  18126. }
  18127. _ACEOF
  18128. if ac_fn_c_try_compile "$LINENO"
  18129. then :
  18130. have_gcc_lsx=yes
  18131. fi
  18132. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lsx" >&5
  18134. printf "%s\n" "$have_gcc_lsx" >&6; }
  18135. CFLAGS="$save_CFLAGS"
  18136. if test x$have_gcc_lsx = xyes; then
  18137. EXTRA_CFLAGS="$EXTRA_CFLAGS $lsx_CFLAGS"
  18138. SUMMARY_math="${SUMMARY_math} lsx"
  18139. fi
  18140. fi
  18141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lsxintrin.h" >&5
  18142. printf %s "checking for lsxintrin.h... " >&6; }
  18143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18144. /* end confdefs.h. */
  18145. #include <lsxintrin.h>
  18146. int
  18147. main (void)
  18148. {
  18149. ;
  18150. return 0;
  18151. }
  18152. _ACEOF
  18153. if ac_fn_c_try_compile "$LINENO"
  18154. then :
  18155. have_lsxintrin_h_hdr=yes
  18156. else $as_nop
  18157. have_lsxintrin_h_hdr=no
  18158. fi
  18159. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lsxintrin_h_hdr" >&5
  18161. printf "%s\n" "$have_lsxintrin_h_hdr" >&6; }
  18162. if test x$have_lsxintrin_h_hdr = xyes; then
  18163. printf "%s\n" "#define HAVE_LSXINTRIN_H 1" >>confdefs.h
  18164. fi
  18165. # Check whether --enable-lasx was given.
  18166. if test ${enable_lasx+y}
  18167. then :
  18168. enableval=$enable_lasx;
  18169. else $as_nop
  18170. enable_LASX=yes
  18171. fi
  18172. if test x$enable_LASX = xyes; then
  18173. save_CFLAGS="$CFLAGS"
  18174. have_gcc_lasx=no
  18175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlasx option" >&5
  18176. printf %s "checking for GCC -mlasx option... " >&6; }
  18177. lasx_CFLAGS="-mlasx"
  18178. CFLAGS="$save_CFLAGS $lasx_CFLAGS"
  18179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18180. /* end confdefs.h. */
  18181. #ifndef __loongarch_asx
  18182. #error Assembler CPP flag not enabled
  18183. #endif
  18184. int
  18185. main (void)
  18186. {
  18187. ;
  18188. return 0;
  18189. }
  18190. _ACEOF
  18191. if ac_fn_c_try_compile "$LINENO"
  18192. then :
  18193. have_gcc_lasx=yes
  18194. fi
  18195. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lasx" >&5
  18197. printf "%s\n" "$have_gcc_lasx" >&6; }
  18198. CFLAGS="$save_CFLAGS"
  18199. if test x$have_gcc_lasx = xyes; then
  18200. EXTRA_CFLAGS="$EXTRA_CFLAGS $lasx_CFLAGS"
  18201. SUMMARY_math="${SUMMARY_math} lasx"
  18202. fi
  18203. fi
  18204. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lasxintrin.h" >&5
  18205. printf %s "checking for lasxintrin.h... " >&6; }
  18206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18207. /* end confdefs.h. */
  18208. #include <lasxintrin.h>
  18209. int
  18210. main (void)
  18211. {
  18212. ;
  18213. return 0;
  18214. }
  18215. _ACEOF
  18216. if ac_fn_c_try_compile "$LINENO"
  18217. then :
  18218. have_lasxintrin_h_hdr=yes
  18219. else $as_nop
  18220. have_lasxintrin_h_hdr=no
  18221. fi
  18222. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lasxintrin_h_hdr" >&5
  18224. printf "%s\n" "$have_lasxintrin_h_hdr" >&6; }
  18225. if test x$have_lasxintrin_h_hdr = xyes; then
  18226. printf "%s\n" "#define HAVE_LASXINTRIN_H 1" >>confdefs.h
  18227. fi
  18228. CheckOSS()
  18229. {
  18230. # Check whether --enable-oss was given.
  18231. if test ${enable_oss+y}
  18232. then :
  18233. enableval=$enable_oss;
  18234. else $as_nop
  18235. enable_oss=maybe
  18236. fi
  18237. if test x$enable_oss = xmaybe; then
  18238. enable_oss=yes
  18239. fi
  18240. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  18241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  18242. printf %s "checking for OSS audio support... " >&6; }
  18243. have_oss=no
  18244. if test x$have_oss != xyes; then
  18245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18246. /* end confdefs.h. */
  18247. #include <sys/soundcard.h>
  18248. int
  18249. main (void)
  18250. {
  18251. int arg = SNDCTL_DSP_SETFRAGMENT;
  18252. ;
  18253. return 0;
  18254. }
  18255. _ACEOF
  18256. if ac_fn_c_try_compile "$LINENO"
  18257. then :
  18258. have_oss=yes
  18259. fi
  18260. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18261. fi
  18262. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  18263. printf "%s\n" "$have_oss" >&6; }
  18264. if test x$have_oss = xyes; then
  18265. SUMMARY_audio="${SUMMARY_audio} oss"
  18266. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  18267. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  18268. have_audio=yes
  18269. # We may need to link with ossaudio emulation library
  18270. case "$host" in
  18271. *-*-netbsd*)
  18272. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  18273. esac
  18274. fi
  18275. fi
  18276. }
  18277. CheckALSA()
  18278. {
  18279. # Check whether --enable-alsa was given.
  18280. if test ${enable_alsa+y}
  18281. then :
  18282. enableval=$enable_alsa;
  18283. else $as_nop
  18284. enable_alsa=yes
  18285. fi
  18286. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  18287. alsa_save_CFLAGS="$CFLAGS"
  18288. alsa_save_LDFLAGS="$LDFLAGS"
  18289. alsa_save_LIBS="$LIBS"
  18290. alsa_found=yes
  18291. # Check whether --with-alsa-prefix was given.
  18292. if test ${with_alsa_prefix+y}
  18293. then :
  18294. withval=$with_alsa_prefix; alsa_prefix="$withval"
  18295. else $as_nop
  18296. alsa_prefix=""
  18297. fi
  18298. # Check whether --with-alsa-inc-prefix was given.
  18299. if test ${with_alsa_inc_prefix+y}
  18300. then :
  18301. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  18302. else $as_nop
  18303. alsa_inc_prefix=""
  18304. fi
  18305. # Check whether --enable-alsatest was given.
  18306. if test ${enable_alsatest+y}
  18307. then :
  18308. enableval=$enable_alsatest; enable_alsatest="$enableval"
  18309. else $as_nop
  18310. enable_alsatest=yes
  18311. fi
  18312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  18313. printf %s "checking for ALSA CFLAGS... " >&6; }
  18314. if test "$alsa_inc_prefix" != "" ; then
  18315. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  18316. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  18317. fi
  18318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  18319. printf "%s\n" "$ALSA_CFLAGS" >&6; }
  18320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  18321. printf %s "checking for ALSA LDFLAGS... " >&6; }
  18322. if test "$alsa_prefix" != "" ; then
  18323. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  18324. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  18325. fi
  18326. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  18327. LIBS=`echo $LIBS | sed 's/-lm//'`
  18328. LIBS=`echo $LIBS | sed 's/-ldl//'`
  18329. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  18330. LIBS=`echo $LIBS | sed 's/ //'`
  18331. LIBS="$ALSA_LIBS $LIBS"
  18332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  18333. printf "%s\n" "$ALSA_LIBS" >&6; }
  18334. min_alsa_version=1.0.11
  18335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  18336. printf %s "checking for libasound headers version >= $min_alsa_version... " >&6; }
  18337. no_alsa=""
  18338. alsa_min_major_version=`echo $min_alsa_version | \
  18339. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18340. alsa_min_minor_version=`echo $min_alsa_version | \
  18341. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18342. alsa_min_micro_version=`echo $min_alsa_version | \
  18343. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18344. ac_ext=c
  18345. ac_cpp='$CPP $CPPFLAGS'
  18346. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18347. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18348. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18350. /* end confdefs.h. */
  18351. #include <alsa/asoundlib.h>
  18352. int
  18353. main (void)
  18354. {
  18355. /* ensure backward compatibility */
  18356. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  18357. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  18358. #endif
  18359. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  18360. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  18361. #endif
  18362. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  18363. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  18364. #endif
  18365. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  18366. exit(0);
  18367. # else
  18368. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  18369. # error not present
  18370. # endif
  18371. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  18372. exit(0);
  18373. # else
  18374. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  18375. # error not present
  18376. # endif
  18377. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  18378. # error not present
  18379. # endif
  18380. # endif
  18381. # endif
  18382. exit(0);
  18383. ;
  18384. return 0;
  18385. }
  18386. _ACEOF
  18387. if ac_fn_c_try_compile "$LINENO"
  18388. then :
  18389. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
  18390. printf "%s\n" "found." >&6; }
  18391. else $as_nop
  18392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  18393. printf "%s\n" "not present." >&6; }
  18394. alsa_found=no
  18395. fi
  18396. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18397. ac_ext=c
  18398. ac_cpp='$CPP $CPPFLAGS'
  18399. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18400. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18401. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18402. if test "x$enable_alsatest" = "xyes"; then
  18403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  18404. printf %s "checking for snd_ctl_open in -lasound... " >&6; }
  18405. if test ${ac_cv_lib_asound_snd_ctl_open+y}
  18406. then :
  18407. printf %s "(cached) " >&6
  18408. else $as_nop
  18409. ac_check_lib_save_LIBS=$LIBS
  18410. LIBS="-lasound $LIBS"
  18411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18412. /* end confdefs.h. */
  18413. /* Override any GCC internal prototype to avoid an error.
  18414. Use char because int might match the return type of a GCC
  18415. builtin and then its argument prototype would still apply. */
  18416. char snd_ctl_open ();
  18417. int
  18418. main (void)
  18419. {
  18420. return snd_ctl_open ();
  18421. ;
  18422. return 0;
  18423. }
  18424. _ACEOF
  18425. if ac_fn_c_try_link "$LINENO"
  18426. then :
  18427. ac_cv_lib_asound_snd_ctl_open=yes
  18428. else $as_nop
  18429. ac_cv_lib_asound_snd_ctl_open=no
  18430. fi
  18431. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18432. conftest$ac_exeext conftest.$ac_ext
  18433. LIBS=$ac_check_lib_save_LIBS
  18434. fi
  18435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  18436. printf "%s\n" "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  18437. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes
  18438. then :
  18439. printf "%s\n" "#define HAVE_LIBASOUND 1" >>confdefs.h
  18440. LIBS="-lasound $LIBS"
  18441. else $as_nop
  18442. alsa_found=no
  18443. fi
  18444. fi
  18445. if test "x$alsa_found" = "xyes" ; then
  18446. have_alsa=yes
  18447. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  18448. LIBS=`echo $LIBS | sed 's/ //'`
  18449. LIBS="-lasound $LIBS"
  18450. fi
  18451. if test "x$alsa_found" = "xno" ; then
  18452. have_alsa=no
  18453. CFLAGS="$alsa_save_CFLAGS"
  18454. LDFLAGS="$alsa_save_LDFLAGS"
  18455. LIBS="$alsa_save_LIBS"
  18456. ALSA_CFLAGS=""
  18457. ALSA_LIBS=""
  18458. fi
  18459. # Restore all flags from before the ALSA detection runs
  18460. CFLAGS="$alsa_save_CFLAGS"
  18461. LDFLAGS="$alsa_save_LDFLAGS"
  18462. LIBS="$alsa_save_LIBS"
  18463. if test x$have_alsa = xyes; then
  18464. # Check whether --enable-alsa-shared was given.
  18465. if test ${enable_alsa_shared+y}
  18466. then :
  18467. enableval=$enable_alsa_shared;
  18468. else $as_nop
  18469. enable_alsa_shared=yes
  18470. fi
  18471. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18472. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  18473. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  18474. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  18475. if test x$have_loadso != xyes && \
  18476. test x$enable_alsa_shared = xyes; then
  18477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  18478. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  18479. fi
  18480. if test x$have_loadso = xyes && \
  18481. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  18482. echo "-- dynamic libasound -> $alsa_lib"
  18483. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"$alsa_lib\"" >>confdefs.h
  18484. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  18485. else
  18486. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  18487. SUMMARY_audio="${SUMMARY_audio} alsa"
  18488. fi
  18489. have_audio=yes
  18490. fi
  18491. fi
  18492. }
  18493. CheckJACK()
  18494. {
  18495. # Check whether --enable-jack was given.
  18496. if test ${enable_jack+y}
  18497. then :
  18498. enableval=$enable_jack;
  18499. else $as_nop
  18500. enable_jack=yes
  18501. fi
  18502. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  18503. pkg_failed=no
  18504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  18505. printf %s "checking for jack >= 0.125... " >&6; }
  18506. if test -n "$JACK_CFLAGS"; then
  18507. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  18508. elif test -n "$PKG_CONFIG"; then
  18509. if test -n "$PKG_CONFIG" && \
  18510. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18511. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18512. ac_status=$?
  18513. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18514. test $ac_status = 0; }; then
  18515. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  18516. test "x$?" != "x0" && pkg_failed=yes
  18517. else
  18518. pkg_failed=yes
  18519. fi
  18520. else
  18521. pkg_failed=untried
  18522. fi
  18523. if test -n "$JACK_LIBS"; then
  18524. pkg_cv_JACK_LIBS="$JACK_LIBS"
  18525. elif test -n "$PKG_CONFIG"; then
  18526. if test -n "$PKG_CONFIG" && \
  18527. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18528. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18529. ac_status=$?
  18530. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18531. test $ac_status = 0; }; then
  18532. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  18533. test "x$?" != "x0" && pkg_failed=yes
  18534. else
  18535. pkg_failed=yes
  18536. fi
  18537. else
  18538. pkg_failed=untried
  18539. fi
  18540. if test $pkg_failed = yes; then
  18541. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18542. printf "%s\n" "no" >&6; }
  18543. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18544. _pkg_short_errors_supported=yes
  18545. else
  18546. _pkg_short_errors_supported=no
  18547. fi
  18548. if test $_pkg_short_errors_supported = yes; then
  18549. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18550. else
  18551. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18552. fi
  18553. # Put the nasty error message in config.log where it belongs
  18554. echo "$JACK_PKG_ERRORS" >&5
  18555. audio_jack=no
  18556. elif test $pkg_failed = untried; then
  18557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18558. printf "%s\n" "no" >&6; }
  18559. audio_jack=no
  18560. else
  18561. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  18562. JACK_LIBS=$pkg_cv_JACK_LIBS
  18563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18564. printf "%s\n" "yes" >&6; }
  18565. audio_jack=yes
  18566. fi
  18567. if test x$audio_jack = xyes; then
  18568. # Check whether --enable-jack-shared was given.
  18569. if test ${enable_jack_shared+y}
  18570. then :
  18571. enableval=$enable_jack_shared;
  18572. else $as_nop
  18573. enable_jack_shared=yes
  18574. fi
  18575. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18576. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  18577. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  18578. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  18579. if test x$have_loadso != xyes && \
  18580. test x$enable_jack_shared = xyes; then
  18581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  18582. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  18583. fi
  18584. if test x$have_loadso = xyes && \
  18585. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  18586. echo "-- dynamic libjack -> $jack_lib"
  18587. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK_DYNAMIC \"$jack_lib\"" >>confdefs.h
  18588. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  18589. case "$host" in
  18590. # On Solaris, jack must be linked deferred explicitly
  18591. # to prevent undefined symbol failures.
  18592. *-*-solaris*)
  18593. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  18594. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  18595. esac
  18596. else
  18597. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  18598. SUMMARY_audio="${SUMMARY_audio} jack"
  18599. fi
  18600. have_audio=yes
  18601. fi
  18602. fi
  18603. }
  18604. CheckESD()
  18605. {
  18606. # Check whether --enable-esd was given.
  18607. if test ${enable_esd+y}
  18608. then :
  18609. enableval=$enable_esd;
  18610. else $as_nop
  18611. enable_esd=yes
  18612. fi
  18613. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  18614. pkg_failed=no
  18615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for esound >= 0.2.8" >&5
  18616. printf %s "checking for esound >= 0.2.8... " >&6; }
  18617. if test -n "$ESD_CFLAGS"; then
  18618. pkg_cv_ESD_CFLAGS="$ESD_CFLAGS"
  18619. elif test -n "$PKG_CONFIG"; then
  18620. if test -n "$PKG_CONFIG" && \
  18621. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18622. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18623. ac_status=$?
  18624. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18625. test $ac_status = 0; }; then
  18626. pkg_cv_ESD_CFLAGS=`$PKG_CONFIG --cflags "esound >= 0.2.8" 2>/dev/null`
  18627. test "x$?" != "x0" && pkg_failed=yes
  18628. else
  18629. pkg_failed=yes
  18630. fi
  18631. else
  18632. pkg_failed=untried
  18633. fi
  18634. if test -n "$ESD_LIBS"; then
  18635. pkg_cv_ESD_LIBS="$ESD_LIBS"
  18636. elif test -n "$PKG_CONFIG"; then
  18637. if test -n "$PKG_CONFIG" && \
  18638. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18639. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18640. ac_status=$?
  18641. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18642. test $ac_status = 0; }; then
  18643. pkg_cv_ESD_LIBS=`$PKG_CONFIG --libs "esound >= 0.2.8" 2>/dev/null`
  18644. test "x$?" != "x0" && pkg_failed=yes
  18645. else
  18646. pkg_failed=yes
  18647. fi
  18648. else
  18649. pkg_failed=untried
  18650. fi
  18651. if test $pkg_failed = yes; then
  18652. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18653. printf "%s\n" "no" >&6; }
  18654. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18655. _pkg_short_errors_supported=yes
  18656. else
  18657. _pkg_short_errors_supported=no
  18658. fi
  18659. if test $_pkg_short_errors_supported = yes; then
  18660. ESD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18661. else
  18662. ESD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18663. fi
  18664. # Put the nasty error message in config.log where it belongs
  18665. echo "$ESD_PKG_ERRORS" >&5
  18666. have_esd=no
  18667. elif test $pkg_failed = untried; then
  18668. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18669. printf "%s\n" "no" >&6; }
  18670. have_esd=no
  18671. else
  18672. ESD_CFLAGS=$pkg_cv_ESD_CFLAGS
  18673. ESD_LIBS=$pkg_cv_ESD_LIBS
  18674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18675. printf "%s\n" "yes" >&6; }
  18676. have_esd=yes
  18677. fi
  18678. if test x$have_esd = xno; then
  18679. # Check whether --with-esd-prefix was given.
  18680. if test ${with_esd_prefix+y}
  18681. then :
  18682. withval=$with_esd_prefix; esd_prefix="$withval"
  18683. else $as_nop
  18684. esd_prefix=""
  18685. fi
  18686. # Check whether --with-esd-exec-prefix was given.
  18687. if test ${with_esd_exec_prefix+y}
  18688. then :
  18689. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  18690. else $as_nop
  18691. esd_exec_prefix=""
  18692. fi
  18693. # Check whether --enable-esdtest was given.
  18694. if test ${enable_esdtest+y}
  18695. then :
  18696. enableval=$enable_esdtest;
  18697. else $as_nop
  18698. enable_esdtest=yes
  18699. fi
  18700. if test x$esd_exec_prefix != x ; then
  18701. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  18702. if test x${ESD_CONFIG+set} != xset ; then
  18703. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  18704. fi
  18705. fi
  18706. if test x$esd_prefix != x ; then
  18707. esd_args="$esd_args --prefix=$esd_prefix"
  18708. if test x${ESD_CONFIG+set} != xset ; then
  18709. ESD_CONFIG=$esd_prefix/bin/esd-config
  18710. fi
  18711. fi
  18712. # Extract the first word of "esd-config", so it can be a program name with args.
  18713. set dummy esd-config; ac_word=$2
  18714. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18715. printf %s "checking for $ac_word... " >&6; }
  18716. if test ${ac_cv_path_ESD_CONFIG+y}
  18717. then :
  18718. printf %s "(cached) " >&6
  18719. else $as_nop
  18720. case $ESD_CONFIG in
  18721. [\\/]* | ?:[\\/]*)
  18722. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  18723. ;;
  18724. *)
  18725. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18726. for as_dir in $PATH
  18727. do
  18728. IFS=$as_save_IFS
  18729. case $as_dir in #(((
  18730. '') as_dir=./ ;;
  18731. */) ;;
  18732. *) as_dir=$as_dir/ ;;
  18733. esac
  18734. for ac_exec_ext in '' $ac_executable_extensions; do
  18735. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18736. ac_cv_path_ESD_CONFIG="$as_dir$ac_word$ac_exec_ext"
  18737. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18738. break 2
  18739. fi
  18740. done
  18741. done
  18742. IFS=$as_save_IFS
  18743. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  18744. ;;
  18745. esac
  18746. fi
  18747. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  18748. if test -n "$ESD_CONFIG"; then
  18749. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  18750. printf "%s\n" "$ESD_CONFIG" >&6; }
  18751. else
  18752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18753. printf "%s\n" "no" >&6; }
  18754. fi
  18755. min_esd_version=0.2.8
  18756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  18757. printf %s "checking for ESD - version >= $min_esd_version... " >&6; }
  18758. no_esd=""
  18759. if test "$ESD_CONFIG" = "no" ; then
  18760. no_esd=yes
  18761. else
  18762. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  18763. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  18764. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  18765. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18766. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  18767. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18768. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  18769. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18770. if test "x$enable_esdtest" = "xyes" ; then
  18771. ac_ext=c
  18772. ac_cpp='$CPP $CPPFLAGS'
  18773. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18774. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18775. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18776. ac_save_CFLAGS="$CFLAGS"
  18777. ac_save_LIBS="$LIBS"
  18778. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18779. LIBS="$LIBS $ESD_LIBS"
  18780. rm -f conf.esdtest
  18781. if test "$cross_compiling" = yes
  18782. then :
  18783. echo $ac_n "cross compiling; assumed OK... $ac_c"
  18784. else $as_nop
  18785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18786. /* end confdefs.h. */
  18787. #include <stdio.h>
  18788. #include <stdlib.h>
  18789. #include <esd.h>
  18790. int main (void)
  18791. {
  18792. int major, minor, micro;
  18793. FILE *fp = fopen("conf.esdtest", "w");
  18794. if (fp) fclose(fp);
  18795. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  18796. printf("%s, bad version string\n", "$min_esd_version");
  18797. exit(1);
  18798. }
  18799. if (($esd_major_version > major) ||
  18800. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  18801. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  18802. {
  18803. return 0;
  18804. }
  18805. else
  18806. {
  18807. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  18808. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  18809. printf("*** best to upgrade to the required version.\n");
  18810. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  18811. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  18812. printf("*** config.cache before re-running configure\n");
  18813. return 1;
  18814. }
  18815. }
  18816. _ACEOF
  18817. if ac_fn_c_try_run "$LINENO"
  18818. then :
  18819. else $as_nop
  18820. no_esd=yes
  18821. fi
  18822. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18823. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18824. fi
  18825. CFLAGS="$ac_save_CFLAGS"
  18826. LIBS="$ac_save_LIBS"
  18827. ac_ext=c
  18828. ac_cpp='$CPP $CPPFLAGS'
  18829. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18830. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18831. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18832. fi
  18833. fi
  18834. if test "x$no_esd" = x ; then
  18835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18836. printf "%s\n" "yes" >&6; }
  18837. have_esd=yes
  18838. else
  18839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18840. printf "%s\n" "no" >&6; }
  18841. if test "$ESD_CONFIG" = "no" ; then
  18842. :
  18843. else
  18844. if test -f conf.esdtest ; then
  18845. :
  18846. else
  18847. echo "*** Could not run ESD test program, checking why..."
  18848. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18849. LIBS="$LIBS $ESD_LIBS"
  18850. ac_ext=c
  18851. ac_cpp='$CPP $CPPFLAGS'
  18852. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18853. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18854. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18856. /* end confdefs.h. */
  18857. #include <stdio.h>
  18858. #include <esd.h>
  18859. int
  18860. main (void)
  18861. {
  18862. return 0;
  18863. ;
  18864. return 0;
  18865. }
  18866. _ACEOF
  18867. if ac_fn_c_try_link "$LINENO"
  18868. then :
  18869. echo "*** The test program compiled, but did not run. This usually means"
  18870. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  18871. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  18872. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  18873. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  18874. echo "*** is required on your system"
  18875. echo "***"
  18876. echo "*** If you have an old version installed, it is best to remove it, although"
  18877. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  18878. else $as_nop
  18879. echo "*** The test program failed to compile or link. See the file config.log for the"
  18880. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  18881. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  18882. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  18883. fi
  18884. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18885. conftest$ac_exeext conftest.$ac_ext
  18886. CFLAGS="$ac_save_CFLAGS"
  18887. LIBS="$ac_save_LIBS"
  18888. ac_ext=c
  18889. ac_cpp='$CPP $CPPFLAGS'
  18890. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18891. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18892. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18893. fi
  18894. fi
  18895. ESD_CFLAGS=""
  18896. ESD_LIBS=""
  18897. have_esd=no
  18898. fi
  18899. rm -f conf.esdtest
  18900. fi
  18901. if test x$have_esd = xyes; then
  18902. # Check whether --enable-esd-shared was given.
  18903. if test ${enable_esd_shared+y}
  18904. then :
  18905. enableval=$enable_esd_shared;
  18906. else $as_nop
  18907. enable_esd_shared=yes
  18908. fi
  18909. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18910. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  18911. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  18912. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  18913. if test x$have_loadso != xyes && \
  18914. test x$enable_esd_shared = xyes; then
  18915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  18916. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  18917. fi
  18918. if test x$have_loadso = xyes && \
  18919. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  18920. echo "-- dynamic libesd -> $esd_lib"
  18921. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD_DYNAMIC \"$esd_lib\"" >>confdefs.h
  18922. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  18923. else
  18924. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  18925. SUMMARY_audio="${SUMMARY_audio} esd"
  18926. fi
  18927. have_audio=yes
  18928. fi
  18929. fi
  18930. }
  18931. CheckPipewire()
  18932. {
  18933. # Check whether --enable-pipewire was given.
  18934. if test ${enable_pipewire+y}
  18935. then :
  18936. enableval=$enable_pipewire;
  18937. else $as_nop
  18938. enable_pipewire=yes
  18939. fi
  18940. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  18941. pkg_failed=no
  18942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  18943. printf %s "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  18944. if test -n "$PIPEWIRE_CFLAGS"; then
  18945. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  18946. elif test -n "$PKG_CONFIG"; then
  18947. if test -n "$PKG_CONFIG" && \
  18948. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18949. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18950. ac_status=$?
  18951. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18952. test $ac_status = 0; }; then
  18953. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18954. test "x$?" != "x0" && pkg_failed=yes
  18955. else
  18956. pkg_failed=yes
  18957. fi
  18958. else
  18959. pkg_failed=untried
  18960. fi
  18961. if test -n "$PIPEWIRE_LIBS"; then
  18962. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  18963. elif test -n "$PKG_CONFIG"; then
  18964. if test -n "$PKG_CONFIG" && \
  18965. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18966. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18967. ac_status=$?
  18968. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18969. test $ac_status = 0; }; then
  18970. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18971. test "x$?" != "x0" && pkg_failed=yes
  18972. else
  18973. pkg_failed=yes
  18974. fi
  18975. else
  18976. pkg_failed=untried
  18977. fi
  18978. if test $pkg_failed = yes; then
  18979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18980. printf "%s\n" "no" >&6; }
  18981. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18982. _pkg_short_errors_supported=yes
  18983. else
  18984. _pkg_short_errors_supported=no
  18985. fi
  18986. if test $_pkg_short_errors_supported = yes; then
  18987. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  18988. else
  18989. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  18990. fi
  18991. # Put the nasty error message in config.log where it belongs
  18992. echo "$PIPEWIRE_PKG_ERRORS" >&5
  18993. audio_pipewire=no
  18994. elif test $pkg_failed = untried; then
  18995. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18996. printf "%s\n" "no" >&6; }
  18997. audio_pipewire=no
  18998. else
  18999. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  19000. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  19001. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19002. printf "%s\n" "yes" >&6; }
  19003. audio_pipewire=yes
  19004. fi
  19005. if test x$audio_pipewire = xyes; then
  19006. # Check whether --enable-pipewire-shared was given.
  19007. if test ${enable_pipewire_shared+y}
  19008. then :
  19009. enableval=$enable_pipewire_shared;
  19010. else $as_nop
  19011. enable_pipewire_shared=yes
  19012. fi
  19013. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19014. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  19015. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  19016. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  19017. if test x$have_loadso != xyes && \
  19018. test x$enable_pipewire_shared = xyes; then
  19019. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  19020. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  19021. fi
  19022. if test x$have_loadso = xyes && \
  19023. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  19024. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  19025. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC \"$pipewire_lib\"" >>confdefs.h
  19026. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  19027. else
  19028. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  19029. SUMMARY_audio="${SUMMARY_audio} pipewire"
  19030. fi
  19031. have_audio=yes
  19032. fi
  19033. fi
  19034. }
  19035. CheckPulseAudio()
  19036. {
  19037. # Check whether --enable-pulseaudio was given.
  19038. if test ${enable_pulseaudio+y}
  19039. then :
  19040. enableval=$enable_pulseaudio;
  19041. else $as_nop
  19042. enable_pulseaudio=yes
  19043. fi
  19044. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  19045. pkg_failed=no
  19046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  19047. printf %s "checking for libpulse-simple >= 0.9... " >&6; }
  19048. if test -n "$PULSEAUDIO_CFLAGS"; then
  19049. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  19050. elif test -n "$PKG_CONFIG"; then
  19051. if test -n "$PKG_CONFIG" && \
  19052. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  19053. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  19054. ac_status=$?
  19055. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19056. test $ac_status = 0; }; then
  19057. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  19058. test "x$?" != "x0" && pkg_failed=yes
  19059. else
  19060. pkg_failed=yes
  19061. fi
  19062. else
  19063. pkg_failed=untried
  19064. fi
  19065. if test -n "$PULSEAUDIO_LIBS"; then
  19066. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  19067. elif test -n "$PKG_CONFIG"; then
  19068. if test -n "$PKG_CONFIG" && \
  19069. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  19070. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  19071. ac_status=$?
  19072. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19073. test $ac_status = 0; }; then
  19074. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  19075. test "x$?" != "x0" && pkg_failed=yes
  19076. else
  19077. pkg_failed=yes
  19078. fi
  19079. else
  19080. pkg_failed=untried
  19081. fi
  19082. if test $pkg_failed = yes; then
  19083. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19084. printf "%s\n" "no" >&6; }
  19085. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19086. _pkg_short_errors_supported=yes
  19087. else
  19088. _pkg_short_errors_supported=no
  19089. fi
  19090. if test $_pkg_short_errors_supported = yes; then
  19091. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  19092. else
  19093. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  19094. fi
  19095. # Put the nasty error message in config.log where it belongs
  19096. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  19097. audio_pulseaudio=no
  19098. elif test $pkg_failed = untried; then
  19099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19100. printf "%s\n" "no" >&6; }
  19101. audio_pulseaudio=no
  19102. else
  19103. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  19104. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  19105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19106. printf "%s\n" "yes" >&6; }
  19107. audio_pulseaudio=yes
  19108. fi
  19109. if test x$audio_pulseaudio = xyes; then
  19110. # Check whether --enable-pulseaudio-shared was given.
  19111. if test ${enable_pulseaudio_shared+y}
  19112. then :
  19113. enableval=$enable_pulseaudio_shared;
  19114. else $as_nop
  19115. enable_pulseaudio_shared=yes
  19116. fi
  19117. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19118. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  19119. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  19120. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  19121. if test x$have_loadso != xyes && \
  19122. test x$enable_pulseaudio_shared = xyes; then
  19123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  19124. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  19125. fi
  19126. if test x$have_loadso = xyes && \
  19127. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  19128. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  19129. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \"$pulseaudio_lib\"" >>confdefs.h
  19130. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  19131. case "$host" in
  19132. # On Solaris, pulseaudio must be linked deferred explicitly
  19133. # to prevent undefined symbol failures.
  19134. *-*-solaris*)
  19135. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  19136. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  19137. esac
  19138. else
  19139. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  19140. SUMMARY_audio="${SUMMARY_audio} pulse"
  19141. fi
  19142. have_audio=yes
  19143. fi
  19144. fi
  19145. }
  19146. CheckARTSC()
  19147. {
  19148. # Check whether --enable-arts was given.
  19149. if test ${enable_arts+y}
  19150. then :
  19151. enableval=$enable_arts;
  19152. else $as_nop
  19153. enable_arts=yes
  19154. fi
  19155. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  19156. # Extract the first word of "artsc-config", so it can be a program name with args.
  19157. set dummy artsc-config; ac_word=$2
  19158. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19159. printf %s "checking for $ac_word... " >&6; }
  19160. if test ${ac_cv_path_ARTSCONFIG+y}
  19161. then :
  19162. printf %s "(cached) " >&6
  19163. else $as_nop
  19164. case $ARTSCONFIG in
  19165. [\\/]* | ?:[\\/]*)
  19166. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  19167. ;;
  19168. *)
  19169. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19170. for as_dir in $PATH
  19171. do
  19172. IFS=$as_save_IFS
  19173. case $as_dir in #(((
  19174. '') as_dir=./ ;;
  19175. */) ;;
  19176. *) as_dir=$as_dir/ ;;
  19177. esac
  19178. for ac_exec_ext in '' $ac_executable_extensions; do
  19179. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19180. ac_cv_path_ARTSCONFIG="$as_dir$ac_word$ac_exec_ext"
  19181. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19182. break 2
  19183. fi
  19184. done
  19185. done
  19186. IFS=$as_save_IFS
  19187. ;;
  19188. esac
  19189. fi
  19190. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  19191. if test -n "$ARTSCONFIG"; then
  19192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  19193. printf "%s\n" "$ARTSCONFIG" >&6; }
  19194. else
  19195. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19196. printf "%s\n" "no" >&6; }
  19197. fi
  19198. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  19199. : # arts isn't installed
  19200. else
  19201. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  19202. ARTS_LIBS=`$ARTSCONFIG --libs`
  19203. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  19204. printf %s "checking for aRts development environment... " >&6; }
  19205. audio_arts=no
  19206. save_CFLAGS="$CFLAGS"
  19207. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  19208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19209. /* end confdefs.h. */
  19210. #include <artsc.h>
  19211. int
  19212. main (void)
  19213. {
  19214. arts_stream_t stream;
  19215. ;
  19216. return 0;
  19217. }
  19218. _ACEOF
  19219. if ac_fn_c_try_compile "$LINENO"
  19220. then :
  19221. audio_arts=yes
  19222. fi
  19223. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19224. CFLAGS="$save_CFLAGS"
  19225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  19226. printf "%s\n" "$audio_arts" >&6; }
  19227. if test x$audio_arts = xyes; then
  19228. # Check whether --enable-arts-shared was given.
  19229. if test ${enable_arts_shared+y}
  19230. then :
  19231. enableval=$enable_arts_shared;
  19232. else $as_nop
  19233. enable_arts_shared=yes
  19234. fi
  19235. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19236. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  19237. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  19238. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  19239. if test x$have_loadso != xyes && \
  19240. test x$enable_arts_shared = xyes; then
  19241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  19242. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  19243. fi
  19244. if test x$have_loadso = xyes && \
  19245. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  19246. echo "-- dynamic libartsc -> $arts_lib"
  19247. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS_DYNAMIC \"$arts_lib\"" >>confdefs.h
  19248. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  19249. else
  19250. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  19251. SUMMARY_audio="${SUMMARY_audio} arts"
  19252. fi
  19253. have_audio=yes
  19254. fi
  19255. fi
  19256. fi
  19257. }
  19258. CheckNAS()
  19259. {
  19260. # Check whether --enable-nas was given.
  19261. if test ${enable_nas+y}
  19262. then :
  19263. enableval=$enable_nas;
  19264. else $as_nop
  19265. enable_nas=yes
  19266. fi
  19267. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  19268. ac_fn_c_check_header_compile "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  19269. if test "x$ac_cv_header_audio_audiolib_h" = xyes
  19270. then :
  19271. have_nas_hdr=yes
  19272. fi
  19273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  19274. printf %s "checking for AuOpenServer in -laudio... " >&6; }
  19275. if test ${ac_cv_lib_audio_AuOpenServer+y}
  19276. then :
  19277. printf %s "(cached) " >&6
  19278. else $as_nop
  19279. ac_check_lib_save_LIBS=$LIBS
  19280. LIBS="-laudio $LIBS"
  19281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19282. /* end confdefs.h. */
  19283. /* Override any GCC internal prototype to avoid an error.
  19284. Use char because int might match the return type of a GCC
  19285. builtin and then its argument prototype would still apply. */
  19286. char AuOpenServer ();
  19287. int
  19288. main (void)
  19289. {
  19290. return AuOpenServer ();
  19291. ;
  19292. return 0;
  19293. }
  19294. _ACEOF
  19295. if ac_fn_c_try_link "$LINENO"
  19296. then :
  19297. ac_cv_lib_audio_AuOpenServer=yes
  19298. else $as_nop
  19299. ac_cv_lib_audio_AuOpenServer=no
  19300. fi
  19301. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19302. conftest$ac_exeext conftest.$ac_ext
  19303. LIBS=$ac_check_lib_save_LIBS
  19304. fi
  19305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  19306. printf "%s\n" "$ac_cv_lib_audio_AuOpenServer" >&6; }
  19307. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes
  19308. then :
  19309. have_nas_lib=yes
  19310. fi
  19311. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  19312. printf %s "checking for NAS audio support... " >&6; }
  19313. have_nas=no
  19314. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  19315. have_nas=yes
  19316. NAS_LIBS="-laudio"
  19317. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  19318. have_nas=yes
  19319. NAS_CFLAGS="-I/usr/X11R6/include/"
  19320. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  19321. fi
  19322. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  19323. printf "%s\n" "$have_nas" >&6; }
  19324. if test x$have_nas = xyes; then
  19325. # Check whether --enable-nas-shared was given.
  19326. if test ${enable_nas_shared+y}
  19327. then :
  19328. enableval=$enable_nas_shared;
  19329. else $as_nop
  19330. enable_nas_shared=yes
  19331. fi
  19332. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19333. if test x$have_loadso != xyes && \
  19334. test x$enable_nas_shared = xyes; then
  19335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  19336. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  19337. fi
  19338. if test x$have_loadso = xyes && \
  19339. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  19340. echo "-- dynamic libaudio -> $nas_lib"
  19341. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS_DYNAMIC \"$nas_lib\"" >>confdefs.h
  19342. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  19343. else
  19344. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  19345. SUMMARY_audio="${SUMMARY_audio} nas"
  19346. fi
  19347. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  19348. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  19349. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  19350. have_audio=yes
  19351. fi
  19352. fi
  19353. }
  19354. CheckSNDIO()
  19355. {
  19356. # Check whether --enable-sndio was given.
  19357. if test ${enable_sndio+y}
  19358. then :
  19359. enableval=$enable_sndio;
  19360. else $as_nop
  19361. enable_sndio=yes
  19362. fi
  19363. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  19364. pkg_failed=no
  19365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndio" >&5
  19366. printf %s "checking for sndio... " >&6; }
  19367. if test -n "$SNDIO_CFLAGS"; then
  19368. pkg_cv_SNDIO_CFLAGS="$SNDIO_CFLAGS"
  19369. elif test -n "$PKG_CONFIG"; then
  19370. if test -n "$PKG_CONFIG" && \
  19371. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  19372. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  19373. ac_status=$?
  19374. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19375. test $ac_status = 0; }; then
  19376. pkg_cv_SNDIO_CFLAGS=`$PKG_CONFIG --cflags "sndio" 2>/dev/null`
  19377. test "x$?" != "x0" && pkg_failed=yes
  19378. else
  19379. pkg_failed=yes
  19380. fi
  19381. else
  19382. pkg_failed=untried
  19383. fi
  19384. if test -n "$SNDIO_LIBS"; then
  19385. pkg_cv_SNDIO_LIBS="$SNDIO_LIBS"
  19386. elif test -n "$PKG_CONFIG"; then
  19387. if test -n "$PKG_CONFIG" && \
  19388. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  19389. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  19390. ac_status=$?
  19391. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19392. test $ac_status = 0; }; then
  19393. pkg_cv_SNDIO_LIBS=`$PKG_CONFIG --libs "sndio" 2>/dev/null`
  19394. test "x$?" != "x0" && pkg_failed=yes
  19395. else
  19396. pkg_failed=yes
  19397. fi
  19398. else
  19399. pkg_failed=untried
  19400. fi
  19401. if test $pkg_failed = yes; then
  19402. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19403. printf "%s\n" "no" >&6; }
  19404. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19405. _pkg_short_errors_supported=yes
  19406. else
  19407. _pkg_short_errors_supported=no
  19408. fi
  19409. if test $_pkg_short_errors_supported = yes; then
  19410. SNDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndio" 2>&1`
  19411. else
  19412. SNDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndio" 2>&1`
  19413. fi
  19414. # Put the nasty error message in config.log where it belongs
  19415. echo "$SNDIO_PKG_ERRORS" >&5
  19416. audio_sndio=no
  19417. elif test $pkg_failed = untried; then
  19418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19419. printf "%s\n" "no" >&6; }
  19420. audio_sndio=no
  19421. else
  19422. SNDIO_CFLAGS=$pkg_cv_SNDIO_CFLAGS
  19423. SNDIO_LIBS=$pkg_cv_SNDIO_LIBS
  19424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19425. printf "%s\n" "yes" >&6; }
  19426. audio_sndio=yes
  19427. fi
  19428. if test x$audio_sndio = xyes; then
  19429. # Check whether --enable-sndio-shared was given.
  19430. if test ${enable_sndio_shared+y}
  19431. then :
  19432. enableval=$enable_sndio_shared;
  19433. else $as_nop
  19434. enable_sndio_shared=yes
  19435. fi
  19436. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19437. if test x$have_loadso != xyes && \
  19438. test x$enable_sndio_shared = xyes; then
  19439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  19440. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  19441. fi
  19442. if test x$have_loadso = xyes && \
  19443. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  19444. echo "-- dynamic libsndio -> $sndio_lib"
  19445. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC \"$sndio_lib\"" >>confdefs.h
  19446. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  19447. else
  19448. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  19449. SUMMARY_audio="${SUMMARY_audio} sndio"
  19450. fi
  19451. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  19452. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  19453. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  19454. have_audio=yes
  19455. fi
  19456. fi
  19457. }
  19458. CheckFusionSound()
  19459. {
  19460. # Check whether --enable-fusionsound was given.
  19461. if test ${enable_fusionsound+y}
  19462. then :
  19463. enableval=$enable_fusionsound;
  19464. else $as_nop
  19465. enable_fusionsound=no
  19466. fi
  19467. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  19468. pkg_failed=no
  19469. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  19470. printf %s "checking for fusionsound >= 1.1.1... " >&6; }
  19471. if test -n "$FUSIONSOUND_CFLAGS"; then
  19472. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  19473. elif test -n "$PKG_CONFIG"; then
  19474. if test -n "$PKG_CONFIG" && \
  19475. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19476. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19477. ac_status=$?
  19478. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19479. test $ac_status = 0; }; then
  19480. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  19481. test "x$?" != "x0" && pkg_failed=yes
  19482. else
  19483. pkg_failed=yes
  19484. fi
  19485. else
  19486. pkg_failed=untried
  19487. fi
  19488. if test -n "$FUSIONSOUND_LIBS"; then
  19489. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  19490. elif test -n "$PKG_CONFIG"; then
  19491. if test -n "$PKG_CONFIG" && \
  19492. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19493. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19494. ac_status=$?
  19495. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19496. test $ac_status = 0; }; then
  19497. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  19498. test "x$?" != "x0" && pkg_failed=yes
  19499. else
  19500. pkg_failed=yes
  19501. fi
  19502. else
  19503. pkg_failed=untried
  19504. fi
  19505. if test $pkg_failed = yes; then
  19506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19507. printf "%s\n" "no" >&6; }
  19508. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19509. _pkg_short_errors_supported=yes
  19510. else
  19511. _pkg_short_errors_supported=no
  19512. fi
  19513. if test $_pkg_short_errors_supported = yes; then
  19514. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19515. else
  19516. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19517. fi
  19518. # Put the nasty error message in config.log where it belongs
  19519. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  19520. fusionsound=no
  19521. elif test $pkg_failed = untried; then
  19522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19523. printf "%s\n" "no" >&6; }
  19524. fusionsound=no
  19525. else
  19526. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  19527. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  19528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19529. printf "%s\n" "yes" >&6; }
  19530. fusionsound=yes
  19531. fi
  19532. if test x$fusionsound = xyes; then
  19533. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  19534. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  19535. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  19536. # Check whether --enable-fusionsound-shared was given.
  19537. if test ${enable_fusionsound_shared+y}
  19538. then :
  19539. enableval=$enable_fusionsound_shared;
  19540. else $as_nop
  19541. enable_fusionsound_shared=yes
  19542. fi
  19543. fusionsound_shared=no
  19544. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  19545. printf %s "checking for FusionSound dynamic loading support... " >&6; }
  19546. if test x$have_loadso != xyes && \
  19547. test x$enable_fusionsound_shared = xyes; then
  19548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  19549. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  19550. fi
  19551. if test x$have_loadso = xyes && \
  19552. test x$enable_fusionsound_shared = xyes; then
  19553. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC \"libfusionsound.so\"" >>confdefs.h
  19554. fusionsound_shared=yes
  19555. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  19556. else
  19557. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  19558. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  19559. fi
  19560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  19561. printf "%s\n" "$fusionsound_shared" >&6; }
  19562. have_audio=yes
  19563. fi
  19564. fi
  19565. }
  19566. CheckDiskAudio()
  19567. {
  19568. # Check whether --enable-diskaudio was given.
  19569. if test ${enable_diskaudio+y}
  19570. then :
  19571. enableval=$enable_diskaudio;
  19572. else $as_nop
  19573. enable_diskaudio=yes
  19574. fi
  19575. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  19576. printf "%s\n" "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  19577. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  19578. SUMMARY_audio="${SUMMARY_audio} disk"
  19579. have_audio=yes
  19580. fi
  19581. }
  19582. CheckDummyAudio()
  19583. {
  19584. # Check whether --enable-dummyaudio was given.
  19585. if test ${enable_dummyaudio+y}
  19586. then :
  19587. enableval=$enable_dummyaudio;
  19588. else $as_nop
  19589. enable_dummyaudio=yes
  19590. fi
  19591. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  19592. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  19593. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  19594. SUMMARY_audio="${SUMMARY_audio} dummy"
  19595. have_audio=yes
  19596. fi
  19597. }
  19598. CheckLibSampleRate()
  19599. {
  19600. # Check whether --enable-libsamplerate was given.
  19601. if test ${enable_libsamplerate+y}
  19602. then :
  19603. enableval=$enable_libsamplerate;
  19604. else $as_nop
  19605. enable_libsamplerate=yes
  19606. fi
  19607. if test x$enable_libsamplerate = xyes; then
  19608. ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  19609. if test "x$ac_cv_header_samplerate_h" = xyes
  19610. then :
  19611. have_samplerate_h_hdr=yes
  19612. else $as_nop
  19613. have_samplerate_h_hdr=no
  19614. fi
  19615. if test x$have_samplerate_h_hdr = xyes; then
  19616. printf "%s\n" "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  19617. # Check whether --enable-libsamplerate-shared was given.
  19618. if test ${enable_libsamplerate_shared+y}
  19619. then :
  19620. enableval=$enable_libsamplerate_shared;
  19621. else $as_nop
  19622. enable_libsamplerate_shared=yes
  19623. fi
  19624. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19625. if test x$have_loadso != xyes && \
  19626. test x$enable_libsamplerate_shared = xyes; then
  19627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  19628. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  19629. fi
  19630. if test x$have_loadso = xyes && \
  19631. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  19632. echo "-- dynamic libsamplerate -> $samplerate_lib"
  19633. printf "%s\n" "#define SDL_LIBSAMPLERATE_DYNAMIC \"$samplerate_lib\"" >>confdefs.h
  19634. else
  19635. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  19636. fi
  19637. fi
  19638. fi
  19639. }
  19640. CheckARM()
  19641. {
  19642. # Check whether --enable-arm-simd was given.
  19643. if test ${enable_arm_simd+y}
  19644. then :
  19645. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  19646. else $as_nop
  19647. enable_arm_simd=no
  19648. fi
  19649. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  19650. save_CFLAGS="$CFLAGS"
  19651. have_arm_simd=no
  19652. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19653. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  19654. printf %s "checking for ARM SIMD... " >&6; }
  19655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19656. /* end confdefs.h. */
  19657. .text
  19658. .arch armv6
  19659. .object_arch armv4
  19660. .arm
  19661. .altmacro
  19662. #ifndef __ARM_EABI__
  19663. #error EABI is required (to be sure that calling conventions are compatible)
  19664. #endif
  19665. pld [r0]
  19666. uqadd8 r0, r0, r0
  19667. _ACEOF
  19668. if ac_fn_c_try_compile "$LINENO"
  19669. then :
  19670. have_arm_simd=yes
  19671. fi
  19672. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  19674. printf "%s\n" "$have_arm_simd" >&6; }
  19675. CFLAGS="$save_CFLAGS"
  19676. if test x$have_arm_simd = xyes; then
  19677. printf "%s\n" "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  19678. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  19679. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  19680. fi
  19681. fi
  19682. }
  19683. CheckNEON()
  19684. {
  19685. # Check whether --enable-arm-neon was given.
  19686. if test ${enable_arm_neon+y}
  19687. then :
  19688. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  19689. else $as_nop
  19690. enable_arm_neon=no
  19691. fi
  19692. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  19693. save_CFLAGS="$CFLAGS"
  19694. have_arm_neon=no
  19695. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19696. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  19697. printf %s "checking for ARM NEON... " >&6; }
  19698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19699. /* end confdefs.h. */
  19700. .text
  19701. .fpu neon
  19702. .arch armv7a
  19703. .object_arch armv4
  19704. .eabi_attribute 10, 0
  19705. .arm
  19706. .altmacro
  19707. #ifndef __ARM_EABI__
  19708. #error EABI is required (to be sure that calling conventions are compatible)
  19709. #endif
  19710. pld [r0]
  19711. vmovn.u16 d0, q0
  19712. _ACEOF
  19713. if ac_fn_c_try_compile "$LINENO"
  19714. then :
  19715. have_arm_neon=yes
  19716. fi
  19717. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  19719. printf "%s\n" "$have_arm_neon" >&6; }
  19720. CFLAGS="$save_CFLAGS"
  19721. if test x$have_arm_neon = xyes; then
  19722. printf "%s\n" "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  19723. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  19724. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  19725. fi
  19726. fi
  19727. }
  19728. CheckObjectiveCARC()
  19729. {
  19730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  19731. printf %s "checking for clang -fobjc-arc option... " >&6; }
  19732. have_clang_objc_arc=no
  19733. save_CFLAGS="$CFLAGS"
  19734. CFLAGS="$save_CFLAGS -fobjc-arc"
  19735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19736. /* end confdefs.h. */
  19737. int x = 0;
  19738. int
  19739. main (void)
  19740. {
  19741. ;
  19742. return 0;
  19743. }
  19744. _ACEOF
  19745. if ac_fn_c_try_compile "$LINENO"
  19746. then :
  19747. have_clang_objc_arc=yes
  19748. fi
  19749. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19750. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  19751. printf "%s\n" "$have_clang_objc_arc" >&6; }
  19752. CFLAGS="$save_CFLAGS"
  19753. if test x$have_clang_objc_arc = xyes; then
  19754. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  19755. fi
  19756. }
  19757. CheckGDwarf4()
  19758. {
  19759. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -gdwarf-4 option" >&5
  19760. printf %s "checking for GCC -gdwarf-4 option... " >&6; }
  19761. have_gcc_gdwarf4=no
  19762. save_CFLAGS="$CFLAGS"
  19763. CFLAGS="$save_CFLAGS -gdwarf-4"
  19764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19765. /* end confdefs.h. */
  19766. int x = 0;
  19767. int
  19768. main (void)
  19769. {
  19770. ;
  19771. return 0;
  19772. }
  19773. _ACEOF
  19774. if ac_fn_c_try_compile "$LINENO"
  19775. then :
  19776. have_gcc_gdwarf4=yes
  19777. fi
  19778. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19779. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_gdwarf4" >&5
  19780. printf "%s\n" "$have_gcc_gdwarf4" >&6; }
  19781. CFLAGS="$save_CFLAGS"
  19782. if test x$have_gcc_gdwarf4 = xyes; then
  19783. EXTRA_CFLAGS="$EXTRA_CFLAGS -gdwarf-4"
  19784. fi
  19785. }
  19786. CheckVisibilityHidden()
  19787. {
  19788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  19789. printf %s "checking for GCC -fvisibility=hidden option... " >&6; }
  19790. have_gcc_fvisibility=no
  19791. visibility_CFLAGS="-fvisibility=hidden"
  19792. save_CFLAGS="$CFLAGS"
  19793. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  19794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19795. /* end confdefs.h. */
  19796. #if !defined(__GNUC__) || __GNUC__ < 4
  19797. #error SDL only uses visibility attributes in GCC 4 or newer
  19798. #endif
  19799. int
  19800. main (void)
  19801. {
  19802. ;
  19803. return 0;
  19804. }
  19805. _ACEOF
  19806. if ac_fn_c_try_compile "$LINENO"
  19807. then :
  19808. have_gcc_fvisibility=yes
  19809. fi
  19810. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19811. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  19812. printf "%s\n" "$have_gcc_fvisibility" >&6; }
  19813. CFLAGS="$save_CFLAGS"
  19814. if test x$have_gcc_fvisibility = xyes; then
  19815. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  19816. fi
  19817. }
  19818. CheckNoStrictAliasing()
  19819. {
  19820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  19821. printf %s "checking for GCC -fno-strict-aliasing option... " >&6; }
  19822. have_gcc_no_strict_aliasing=no
  19823. save_CFLAGS="$CFLAGS"
  19824. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  19825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19826. /* end confdefs.h. */
  19827. int x = 0;
  19828. int
  19829. main (void)
  19830. {
  19831. ;
  19832. return 0;
  19833. }
  19834. _ACEOF
  19835. if ac_fn_c_try_compile "$LINENO"
  19836. then :
  19837. have_gcc_no_strict_aliasing=yes
  19838. fi
  19839. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19840. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  19841. printf "%s\n" "$have_gcc_no_strict_aliasing" >&6; }
  19842. CFLAGS="$save_CFLAGS"
  19843. if test x$have_gcc_no_strict_aliasing = xyes; then
  19844. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  19845. fi
  19846. }
  19847. CheckStackBoundary()
  19848. {
  19849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  19850. printf %s "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  19851. have_gcc_preferred_stack_boundary=no
  19852. save_CFLAGS="$CFLAGS"
  19853. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  19854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19855. /* end confdefs.h. */
  19856. int x = 0;
  19857. int
  19858. main (void)
  19859. {
  19860. ;
  19861. return 0;
  19862. }
  19863. _ACEOF
  19864. if ac_fn_c_try_compile "$LINENO"
  19865. then :
  19866. have_gcc_preferred_stack_boundary=yes
  19867. fi
  19868. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19869. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  19870. printf "%s\n" "$have_gcc_preferred_stack_boundary" >&6; }
  19871. CFLAGS="$save_CFLAGS"
  19872. if test x$have_gcc_preferred_stack_boundary = xyes; then
  19873. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  19874. fi
  19875. }
  19876. CheckWerror()
  19877. {
  19878. # Check whether --enable-werror was given.
  19879. if test ${enable_werror+y}
  19880. then :
  19881. enableval=$enable_werror; enable_werror=$enableval
  19882. else $as_nop
  19883. enable_werror=no
  19884. fi
  19885. if test x$enable_werror = xyes; then
  19886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Werror option" >&5
  19887. printf %s "checking for GCC -Werror option... " >&6; }
  19888. have_gcc_werror=no
  19889. save_CFLAGS="$CFLAGS"
  19890. CFLAGS="$save_CFLAGS -Werror"
  19891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19892. /* end confdefs.h. */
  19893. int x = 0;
  19894. int
  19895. main (void)
  19896. {
  19897. ;
  19898. return 0;
  19899. }
  19900. _ACEOF
  19901. if ac_fn_c_try_compile "$LINENO"
  19902. then :
  19903. have_gcc_werror=yes
  19904. fi
  19905. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  19907. printf "%s\n" "$have_gcc_werror" >&6; }
  19908. CFLAGS="$save_CFLAGS"
  19909. if test x$have_gcc_werror = xyes; then
  19910. EXTRA_CFLAGS="$EXTRA_CFLAGS -Werror"
  19911. fi
  19912. fi
  19913. }
  19914. CheckNoErrorDeprecatedDeclarationsWerror()
  19915. {
  19916. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wno-error=deprecated-declarations option" >&5
  19917. printf %s "checking for GCC -Wno-error=deprecated-declarations option... " >&6; }
  19918. have_gcc_no_werror_deprecated_declarations=no
  19919. save_CFLAGS="$CFLAGS"
  19920. CFLAGS="$save_CFLAGS -Wno-error=deprecated-declarations"
  19921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19922. /* end confdefs.h. */
  19923. int x = 0;
  19924. int
  19925. main (void)
  19926. {
  19927. ;
  19928. return 0;
  19929. }
  19930. _ACEOF
  19931. if ac_fn_c_try_compile "$LINENO"
  19932. then :
  19933. have_gcc_no_werror_deprecated_declarations=yes
  19934. fi
  19935. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  19937. printf "%s\n" "$have_gcc_werror" >&6; }
  19938. CFLAGS="$save_CFLAGS"
  19939. if test x$have_gcc_no_werror_deprecated_declarations = xyes; then
  19940. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-error=deprecated-declarations"
  19941. fi
  19942. }
  19943. CheckDeclarationAfterStatement()
  19944. {
  19945. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  19946. printf %s "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  19947. have_gcc_declaration_after_statement=no
  19948. save_CFLAGS="$CFLAGS"
  19949. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19951. /* end confdefs.h. */
  19952. int x = 0;
  19953. int
  19954. main (void)
  19955. {
  19956. ;
  19957. return 0;
  19958. }
  19959. _ACEOF
  19960. if ac_fn_c_try_compile "$LINENO"
  19961. then :
  19962. have_gcc_declaration_after_statement=yes
  19963. fi
  19964. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19965. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  19966. printf "%s\n" "$have_gcc_declaration_after_statement" >&6; }
  19967. CFLAGS="$save_CFLAGS"
  19968. if test x$have_gcc_declaration_after_statement = xyes; then
  19969. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19970. fi
  19971. }
  19972. CheckWarnAll()
  19973. {
  19974. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  19975. printf %s "checking for GCC -Wall option... " >&6; }
  19976. have_gcc_Wall=no
  19977. save_CFLAGS="$CFLAGS"
  19978. CFLAGS="$save_CFLAGS -Wall"
  19979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19980. /* end confdefs.h. */
  19981. int x = 0;
  19982. int
  19983. main (void)
  19984. {
  19985. ;
  19986. return 0;
  19987. }
  19988. _ACEOF
  19989. if ac_fn_c_try_compile "$LINENO"
  19990. then :
  19991. have_gcc_Wall=yes
  19992. fi
  19993. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19994. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  19995. printf "%s\n" "$have_gcc_Wall" >&6; }
  19996. CFLAGS="$save_CFLAGS"
  19997. if test x$have_gcc_Wall = xyes; then
  19998. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  19999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  20000. printf %s "checking for necessary GCC -Wno-multichar option... " >&6; }
  20001. need_gcc_Wno_multichar=no
  20002. case "$host" in
  20003. *-*-haiku*)
  20004. need_gcc_Wno_multichar=yes
  20005. ;;
  20006. esac
  20007. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  20008. printf "%s\n" "$need_gcc_Wno_multichar" >&6; }
  20009. if test x$need_gcc_Wno_multichar = xyes; then
  20010. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  20011. fi
  20012. fi
  20013. }
  20014. CheckWayland()
  20015. {
  20016. # Check whether --enable-video-wayland was given.
  20017. if test ${enable_video_wayland+y}
  20018. then :
  20019. enableval=$enable_video_wayland;
  20020. else $as_nop
  20021. enable_video_wayland=yes
  20022. fi
  20023. # Check whether --enable-video-wayland-qt-touch was given.
  20024. if test ${enable_video_wayland_qt_touch+y}
  20025. then :
  20026. enableval=$enable_video_wayland_qt_touch;
  20027. else $as_nop
  20028. enable_video_wayland_qt_touch=yes
  20029. fi
  20030. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  20031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  20032. printf %s "checking for Wayland support... " >&6; }
  20033. video_wayland=no
  20034. if test x$video_opengl_egl = xyes && \
  20035. test x$video_opengles_v2 = xyes; then
  20036. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  20037. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  20038. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  20039. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  20040. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'
  20041. then :
  20042. WAYLAND_SCANNER_CODE_MODE=private-code
  20043. else $as_nop
  20044. WAYLAND_SCANNER_CODE_MODE=code
  20045. fi
  20046. video_wayland=yes
  20047. fi
  20048. fi
  20049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  20050. printf "%s\n" "$video_wayland" >&6; }
  20051. if test x$video_wayland = xyes; then
  20052. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  20053. if test x$enable_video_wayland_qt_touch = xyes; then
  20054. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  20055. fi
  20056. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  20057. SOURCES="$SOURCES $WAYLAND_SOURCES"
  20058. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  20059. # Check whether --enable-wayland-shared was given.
  20060. if test ${enable_wayland_shared+y}
  20061. then :
  20062. enableval=$enable_wayland_shared;
  20063. else $as_nop
  20064. enable_wayland_shared=maybe
  20065. fi
  20066. case "$host" in
  20067. *)
  20068. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20069. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20070. if test x$wayland_egl_lib = x; then
  20071. # This works in Ubuntu 13.10, maybe others
  20072. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20073. fi
  20074. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20075. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20076. ;;
  20077. esac
  20078. if test x$enable_wayland_shared = xmaybe; then
  20079. enable_wayland_shared=yes
  20080. fi
  20081. if test x$have_loadso != xyes && \
  20082. test x$enable_wayland_shared = xyes; then
  20083. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  20084. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  20085. enable_wayland_shared=no
  20086. fi
  20087. if test x$have_loadso = xyes && \
  20088. test x$enable_wayland_shared = xyes && \
  20089. test x$wayland_client_lib != x && \
  20090. test x$wayland_egl_lib != x && \
  20091. test x$wayland_cursor_lib != x && \
  20092. test x$xkbcommon_lib != x; then
  20093. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  20094. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  20095. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  20096. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  20097. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC \"$wayland_client_lib\"" >>confdefs.h
  20098. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL \"$wayland_egl_lib\"" >>confdefs.h
  20099. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR \"$wayland_cursor_lib\"" >>confdefs.h
  20100. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON \"$xkbcommon_lib\"" >>confdefs.h
  20101. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  20102. else
  20103. enable_wayland_shared=no
  20104. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  20105. SUMMARY_video="${SUMMARY_video} wayland"
  20106. fi
  20107. have_video=yes
  20108. # Check whether --enable-libdecor was given.
  20109. if test ${enable_libdecor+y}
  20110. then :
  20111. enableval=$enable_libdecor;
  20112. else $as_nop
  20113. enable_libdecor=yes
  20114. fi
  20115. if test x$enable_libdecor = xyes; then
  20116. pkg_failed=no
  20117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  20118. printf %s "checking for libdecor-0... " >&6; }
  20119. if test -n "$DECOR_CFLAGS"; then
  20120. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  20121. elif test -n "$PKG_CONFIG"; then
  20122. if test -n "$PKG_CONFIG" && \
  20123. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20124. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20125. ac_status=$?
  20126. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20127. test $ac_status = 0; }; then
  20128. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  20129. test "x$?" != "x0" && pkg_failed=yes
  20130. else
  20131. pkg_failed=yes
  20132. fi
  20133. else
  20134. pkg_failed=untried
  20135. fi
  20136. if test -n "$DECOR_LIBS"; then
  20137. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  20138. elif test -n "$PKG_CONFIG"; then
  20139. if test -n "$PKG_CONFIG" && \
  20140. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20141. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20142. ac_status=$?
  20143. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20144. test $ac_status = 0; }; then
  20145. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  20146. test "x$?" != "x0" && pkg_failed=yes
  20147. else
  20148. pkg_failed=yes
  20149. fi
  20150. else
  20151. pkg_failed=untried
  20152. fi
  20153. if test $pkg_failed = yes; then
  20154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20155. printf "%s\n" "no" >&6; }
  20156. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20157. _pkg_short_errors_supported=yes
  20158. else
  20159. _pkg_short_errors_supported=no
  20160. fi
  20161. if test $_pkg_short_errors_supported = yes; then
  20162. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  20163. else
  20164. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  20165. fi
  20166. # Put the nasty error message in config.log where it belongs
  20167. echo "$DECOR_PKG_ERRORS" >&5
  20168. video_libdecor=no
  20169. elif test $pkg_failed = untried; then
  20170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20171. printf "%s\n" "no" >&6; }
  20172. video_libdecor=no
  20173. else
  20174. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  20175. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  20176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20177. printf "%s\n" "yes" >&6; }
  20178. video_libdecor=yes
  20179. fi
  20180. if test x$video_libdecor = xyes; then
  20181. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  20182. printf "%s\n" "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  20183. # Check whether --enable-libdecor-shared was given.
  20184. if test ${enable_libdecor_shared+y}
  20185. then :
  20186. enableval=$enable_libdecor_shared;
  20187. else $as_nop
  20188. enable_libdecor_shared=yes
  20189. fi
  20190. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20191. if test x$enable_wayland_shared != xyes; then
  20192. enable_libdecor_shared=no
  20193. fi
  20194. if test x$have_loadso != xyes && \
  20195. test x$enable_libdecor_shared = xyes; then
  20196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  20197. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  20198. fi
  20199. if test x$have_loadso = xyes && \
  20200. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  20201. echo "-- dynamic libdecor -> $decor_lib"
  20202. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR \"$decor_lib\"" >>confdefs.h
  20203. else
  20204. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  20205. fi
  20206. fi
  20207. fi
  20208. fi
  20209. fi
  20210. }
  20211. CheckNativeClient()
  20212. {
  20213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20214. /* end confdefs.h. */
  20215. #if !defined(__native_client__)
  20216. #error "NO NACL"
  20217. #endif
  20218. int
  20219. main (void)
  20220. {
  20221. ;
  20222. return 0;
  20223. }
  20224. _ACEOF
  20225. if ac_fn_c_try_compile "$LINENO"
  20226. then :
  20227. printf "%s\n" "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  20228. printf "%s\n" "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  20229. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  20230. printf "%s\n" "#define HAVE_OPENGLES2 1" >>confdefs.h
  20231. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20232. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20233. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  20234. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  20235. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  20236. SUMMARY_audio="${SUMMARY_audio} nacl"
  20237. have_audio=yes
  20238. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  20239. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  20240. have_video=yes
  20241. fi
  20242. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20243. }
  20244. CheckRPI()
  20245. {
  20246. # Check whether --enable-video-rpi was given.
  20247. if test ${enable_video_rpi+y}
  20248. then :
  20249. enableval=$enable_video_rpi;
  20250. else $as_nop
  20251. enable_video_rpi=yes
  20252. fi
  20253. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  20254. pkg_failed=no
  20255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  20256. printf %s "checking for bcm_host brcmegl... " >&6; }
  20257. if test -n "$RPI_CFLAGS"; then
  20258. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  20259. elif test -n "$PKG_CONFIG"; then
  20260. if test -n "$PKG_CONFIG" && \
  20261. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20262. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20263. ac_status=$?
  20264. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20265. test $ac_status = 0; }; then
  20266. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  20267. test "x$?" != "x0" && pkg_failed=yes
  20268. else
  20269. pkg_failed=yes
  20270. fi
  20271. else
  20272. pkg_failed=untried
  20273. fi
  20274. if test -n "$RPI_LIBS"; then
  20275. pkg_cv_RPI_LIBS="$RPI_LIBS"
  20276. elif test -n "$PKG_CONFIG"; then
  20277. if test -n "$PKG_CONFIG" && \
  20278. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20279. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20280. ac_status=$?
  20281. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20282. test $ac_status = 0; }; then
  20283. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  20284. test "x$?" != "x0" && pkg_failed=yes
  20285. else
  20286. pkg_failed=yes
  20287. fi
  20288. else
  20289. pkg_failed=untried
  20290. fi
  20291. if test $pkg_failed = yes; then
  20292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20293. printf "%s\n" "no" >&6; }
  20294. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20295. _pkg_short_errors_supported=yes
  20296. else
  20297. _pkg_short_errors_supported=no
  20298. fi
  20299. if test $_pkg_short_errors_supported = yes; then
  20300. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20301. else
  20302. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20303. fi
  20304. # Put the nasty error message in config.log where it belongs
  20305. echo "$RPI_PKG_ERRORS" >&5
  20306. video_rpi=no
  20307. elif test $pkg_failed = untried; then
  20308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20309. printf "%s\n" "no" >&6; }
  20310. video_rpi=no
  20311. else
  20312. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  20313. RPI_LIBS=$pkg_cv_RPI_LIBS
  20314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20315. printf "%s\n" "yes" >&6; }
  20316. video_rpi=yes
  20317. fi
  20318. if test x$video_rpi = xno; then
  20319. if test x$ARCH = xnetbsd; then
  20320. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  20321. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  20322. else
  20323. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  20324. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  20325. fi
  20326. fi
  20327. # Save the original compiler flags and libraries
  20328. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20329. # Add the Raspberry Pi compiler flags and libraries
  20330. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  20331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  20332. printf %s "checking for Raspberry Pi 2/3... " >&6; }
  20333. have_video_rpi=no
  20334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20335. /* end confdefs.h. */
  20336. #include <bcm_host.h>
  20337. #include <EGL/eglplatform.h>
  20338. int
  20339. main (void)
  20340. {
  20341. EGL_DISPMANX_WINDOW_T window;
  20342. bcm_host_init();
  20343. ;
  20344. return 0;
  20345. }
  20346. _ACEOF
  20347. if ac_fn_c_try_link "$LINENO"
  20348. then :
  20349. have_video_rpi=yes
  20350. fi
  20351. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20352. conftest$ac_exeext conftest.$ac_ext
  20353. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  20354. printf "%s\n" "$have_video_rpi" >&6; }
  20355. # Restore the compiler flags and libraries
  20356. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20357. if test x$have_video_rpi = xyes; then
  20358. CFLAGS="$CFLAGS $RPI_CFLAGS"
  20359. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  20360. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  20361. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  20362. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  20363. printf "%s\n" "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  20364. SUMMARY_video="${SUMMARY_video} rpi"
  20365. have_video=yes
  20366. fi
  20367. fi
  20368. }
  20369. CheckX11()
  20370. {
  20371. # Check whether --enable-video-x11 was given.
  20372. if test ${enable_video_x11+y}
  20373. then :
  20374. enableval=$enable_video_x11;
  20375. else $as_nop
  20376. enable_video_x11=yes
  20377. case "$host" in
  20378. *-*-darwin*|*-ios-*)
  20379. enable_video_x11=no
  20380. ;;
  20381. esac
  20382. fi
  20383. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  20384. case "$host" in
  20385. *-*-darwin*)
  20386. # This isn't necessary for X11, but fixes GLX detection
  20387. if test "x$x_includes" = xNONE && \
  20388. test "x$x_libraries" = xNONE && \
  20389. test -d /opt/X11/include && \
  20390. test -d /opt/X11/lib; then
  20391. x_includes="/opt/X11/include"
  20392. x_libraries="/opt/X11/lib"
  20393. fi
  20394. ;;
  20395. esac
  20396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  20397. printf %s "checking for X... " >&6; }
  20398. # Check whether --with-x was given.
  20399. if test ${with_x+y}
  20400. then :
  20401. withval=$with_x;
  20402. fi
  20403. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  20404. if test "x$with_x" = xno; then
  20405. # The user explicitly disabled X.
  20406. have_x=disabled
  20407. else
  20408. case $x_includes,$x_libraries in #(
  20409. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  20410. *,NONE | NONE,*) if test ${ac_cv_have_x+y}
  20411. then :
  20412. printf %s "(cached) " >&6
  20413. else $as_nop
  20414. # One or both of the vars are not set, and there is no cached value.
  20415. ac_x_includes=no
  20416. ac_x_libraries=no
  20417. # Do we need to do anything special at all?
  20418. ac_save_LIBS=$LIBS
  20419. LIBS="-lX11 $LIBS"
  20420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20421. /* end confdefs.h. */
  20422. #include <X11/Xlib.h>
  20423. int
  20424. main (void)
  20425. {
  20426. XrmInitialize ()
  20427. ;
  20428. return 0;
  20429. }
  20430. _ACEOF
  20431. if ac_fn_c_try_link "$LINENO"
  20432. then :
  20433. # We can compile and link X programs with no special options.
  20434. ac_x_includes=
  20435. ac_x_libraries=
  20436. fi
  20437. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20438. conftest$ac_exeext conftest.$ac_ext
  20439. LIBS="$ac_save_LIBS"
  20440. # If that didn't work, only try xmkmf and file system searches
  20441. # for native compilation.
  20442. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
  20443. then :
  20444. rm -f -r conftest.dir
  20445. if mkdir conftest.dir; then
  20446. cd conftest.dir
  20447. cat >Imakefile <<'_ACEOF'
  20448. incroot:
  20449. @echo incroot='${INCROOT}'
  20450. usrlibdir:
  20451. @echo usrlibdir='${USRLIBDIR}'
  20452. libdir:
  20453. @echo libdir='${LIBDIR}'
  20454. _ACEOF
  20455. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  20456. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  20457. for ac_var in incroot usrlibdir libdir; do
  20458. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  20459. done
  20460. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  20461. for ac_extension in a so sl dylib la dll; do
  20462. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  20463. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  20464. ac_im_usrlibdir=$ac_im_libdir; break
  20465. fi
  20466. done
  20467. # Screen out bogus values from the imake configuration. They are
  20468. # bogus both because they are the default anyway, and because
  20469. # using them would break gcc on systems where it needs fixed includes.
  20470. case $ac_im_incroot in
  20471. /usr/include) ac_x_includes= ;;
  20472. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  20473. esac
  20474. case $ac_im_usrlibdir in
  20475. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  20476. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  20477. esac
  20478. fi
  20479. cd ..
  20480. rm -f -r conftest.dir
  20481. fi
  20482. # Standard set of common directories for X headers.
  20483. # Check X11 before X11Rn because it is often a symlink to the current release.
  20484. ac_x_header_dirs='
  20485. /usr/X11/include
  20486. /usr/X11R7/include
  20487. /usr/X11R6/include
  20488. /usr/X11R5/include
  20489. /usr/X11R4/include
  20490. /usr/include/X11
  20491. /usr/include/X11R7
  20492. /usr/include/X11R6
  20493. /usr/include/X11R5
  20494. /usr/include/X11R4
  20495. /usr/local/X11/include
  20496. /usr/local/X11R7/include
  20497. /usr/local/X11R6/include
  20498. /usr/local/X11R5/include
  20499. /usr/local/X11R4/include
  20500. /usr/local/include/X11
  20501. /usr/local/include/X11R7
  20502. /usr/local/include/X11R6
  20503. /usr/local/include/X11R5
  20504. /usr/local/include/X11R4
  20505. /opt/X11/include
  20506. /usr/X386/include
  20507. /usr/x386/include
  20508. /usr/XFree86/include/X11
  20509. /usr/include
  20510. /usr/local/include
  20511. /usr/unsupported/include
  20512. /usr/athena/include
  20513. /usr/local/x11r5/include
  20514. /usr/lpp/Xamples/include
  20515. /usr/openwin/include
  20516. /usr/openwin/share/include'
  20517. if test "$ac_x_includes" = no; then
  20518. # Guess where to find include files, by looking for Xlib.h.
  20519. # First, try using that file with no special directory specified.
  20520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20521. /* end confdefs.h. */
  20522. #include <X11/Xlib.h>
  20523. _ACEOF
  20524. if ac_fn_c_try_cpp "$LINENO"
  20525. then :
  20526. # We can compile using X headers with no special include directory.
  20527. ac_x_includes=
  20528. else $as_nop
  20529. for ac_dir in $ac_x_header_dirs; do
  20530. if test -r "$ac_dir/X11/Xlib.h"; then
  20531. ac_x_includes=$ac_dir
  20532. break
  20533. fi
  20534. done
  20535. fi
  20536. rm -f conftest.err conftest.i conftest.$ac_ext
  20537. fi # $ac_x_includes = no
  20538. if test "$ac_x_libraries" = no; then
  20539. # Check for the libraries.
  20540. # See if we find them without any special options.
  20541. # Don't add to $LIBS permanently.
  20542. ac_save_LIBS=$LIBS
  20543. LIBS="-lX11 $LIBS"
  20544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20545. /* end confdefs.h. */
  20546. #include <X11/Xlib.h>
  20547. int
  20548. main (void)
  20549. {
  20550. XrmInitialize ()
  20551. ;
  20552. return 0;
  20553. }
  20554. _ACEOF
  20555. if ac_fn_c_try_link "$LINENO"
  20556. then :
  20557. LIBS=$ac_save_LIBS
  20558. # We can link X programs with no special library path.
  20559. ac_x_libraries=
  20560. else $as_nop
  20561. LIBS=$ac_save_LIBS
  20562. for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  20563. do
  20564. # Don't even attempt the hair of trying to link an X program!
  20565. for ac_extension in a so sl dylib la dll; do
  20566. if test -r "$ac_dir/libX11.$ac_extension"; then
  20567. ac_x_libraries=$ac_dir
  20568. break 2
  20569. fi
  20570. done
  20571. done
  20572. fi
  20573. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20574. conftest$ac_exeext conftest.$ac_ext
  20575. fi # $ac_x_libraries = no
  20576. fi
  20577. # Record the results.
  20578. case $ac_x_includes,$ac_x_libraries in #(
  20579. no,* | *,no | *\'*) :
  20580. # Didn't find X, or a directory has "'" in its name.
  20581. ac_cv_have_x="have_x=no" ;; #(
  20582. *) :
  20583. # Record where we found X for the cache.
  20584. ac_cv_have_x="have_x=yes\
  20585. ac_x_includes='$ac_x_includes'\
  20586. ac_x_libraries='$ac_x_libraries'" ;;
  20587. esac
  20588. fi
  20589. ;; #(
  20590. *) have_x=yes;;
  20591. esac
  20592. eval "$ac_cv_have_x"
  20593. fi # $with_x != no
  20594. if test "$have_x" != yes; then
  20595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  20596. printf "%s\n" "$have_x" >&6; }
  20597. no_x=yes
  20598. else
  20599. # If each of the values was on the command line, it overrides each guess.
  20600. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  20601. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  20602. # Update the cache value to reflect the command line values.
  20603. ac_cv_have_x="have_x=yes\
  20604. ac_x_includes='$x_includes'\
  20605. ac_x_libraries='$x_libraries'"
  20606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  20607. printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
  20608. fi
  20609. if test "$no_x" = yes; then
  20610. # Not all programs may use this symbol, but it does not hurt to define it.
  20611. printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
  20612. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  20613. else
  20614. if test -n "$x_includes"; then
  20615. X_CFLAGS="$X_CFLAGS -I$x_includes"
  20616. fi
  20617. # It would also be nice to do this for all -L options, not just this one.
  20618. if test -n "$x_libraries"; then
  20619. X_LIBS="$X_LIBS -L$x_libraries"
  20620. # For Solaris; some versions of Sun CC require a space after -R and
  20621. # others require no space. Words are not sufficient . . . .
  20622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  20623. printf %s "checking whether -R must be followed by a space... " >&6; }
  20624. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  20625. ac_xsave_c_werror_flag=$ac_c_werror_flag
  20626. ac_c_werror_flag=yes
  20627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20628. /* end confdefs.h. */
  20629. int
  20630. main (void)
  20631. {
  20632. ;
  20633. return 0;
  20634. }
  20635. _ACEOF
  20636. if ac_fn_c_try_link "$LINENO"
  20637. then :
  20638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20639. printf "%s\n" "no" >&6; }
  20640. X_LIBS="$X_LIBS -R$x_libraries"
  20641. else $as_nop
  20642. LIBS="$ac_xsave_LIBS -R $x_libraries"
  20643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20644. /* end confdefs.h. */
  20645. int
  20646. main (void)
  20647. {
  20648. ;
  20649. return 0;
  20650. }
  20651. _ACEOF
  20652. if ac_fn_c_try_link "$LINENO"
  20653. then :
  20654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20655. printf "%s\n" "yes" >&6; }
  20656. X_LIBS="$X_LIBS -R $x_libraries"
  20657. else $as_nop
  20658. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  20659. printf "%s\n" "neither works" >&6; }
  20660. fi
  20661. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20662. conftest$ac_exeext conftest.$ac_ext
  20663. fi
  20664. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20665. conftest$ac_exeext conftest.$ac_ext
  20666. ac_c_werror_flag=$ac_xsave_c_werror_flag
  20667. LIBS=$ac_xsave_LIBS
  20668. fi
  20669. # Check for system-dependent libraries X programs must link with.
  20670. # Do this before checking for the system-independent R6 libraries
  20671. # (-lICE), since we may need -lsocket or whatever for X linking.
  20672. if test "$ISC" = yes; then
  20673. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  20674. else
  20675. # Martyn Johnson says this is needed for Ultrix, if the X
  20676. # libraries were built with DECnet support. And Karl Berry says
  20677. # the Alpha needs dnet_stub (dnet does not exist).
  20678. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  20679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20680. /* end confdefs.h. */
  20681. /* Override any GCC internal prototype to avoid an error.
  20682. Use char because int might match the return type of a GCC
  20683. builtin and then its argument prototype would still apply. */
  20684. char XOpenDisplay ();
  20685. int
  20686. main (void)
  20687. {
  20688. return XOpenDisplay ();
  20689. ;
  20690. return 0;
  20691. }
  20692. _ACEOF
  20693. if ac_fn_c_try_link "$LINENO"
  20694. then :
  20695. else $as_nop
  20696. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  20697. printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
  20698. if test ${ac_cv_lib_dnet_dnet_ntoa+y}
  20699. then :
  20700. printf %s "(cached) " >&6
  20701. else $as_nop
  20702. ac_check_lib_save_LIBS=$LIBS
  20703. LIBS="-ldnet $LIBS"
  20704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20705. /* end confdefs.h. */
  20706. /* Override any GCC internal prototype to avoid an error.
  20707. Use char because int might match the return type of a GCC
  20708. builtin and then its argument prototype would still apply. */
  20709. char dnet_ntoa ();
  20710. int
  20711. main (void)
  20712. {
  20713. return dnet_ntoa ();
  20714. ;
  20715. return 0;
  20716. }
  20717. _ACEOF
  20718. if ac_fn_c_try_link "$LINENO"
  20719. then :
  20720. ac_cv_lib_dnet_dnet_ntoa=yes
  20721. else $as_nop
  20722. ac_cv_lib_dnet_dnet_ntoa=no
  20723. fi
  20724. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20725. conftest$ac_exeext conftest.$ac_ext
  20726. LIBS=$ac_check_lib_save_LIBS
  20727. fi
  20728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  20729. printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  20730. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
  20731. then :
  20732. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  20733. fi
  20734. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  20735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  20736. printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  20737. if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
  20738. then :
  20739. printf %s "(cached) " >&6
  20740. else $as_nop
  20741. ac_check_lib_save_LIBS=$LIBS
  20742. LIBS="-ldnet_stub $LIBS"
  20743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20744. /* end confdefs.h. */
  20745. /* Override any GCC internal prototype to avoid an error.
  20746. Use char because int might match the return type of a GCC
  20747. builtin and then its argument prototype would still apply. */
  20748. char dnet_ntoa ();
  20749. int
  20750. main (void)
  20751. {
  20752. return dnet_ntoa ();
  20753. ;
  20754. return 0;
  20755. }
  20756. _ACEOF
  20757. if ac_fn_c_try_link "$LINENO"
  20758. then :
  20759. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  20760. else $as_nop
  20761. ac_cv_lib_dnet_stub_dnet_ntoa=no
  20762. fi
  20763. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20764. conftest$ac_exeext conftest.$ac_ext
  20765. LIBS=$ac_check_lib_save_LIBS
  20766. fi
  20767. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  20768. printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  20769. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
  20770. then :
  20771. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  20772. fi
  20773. fi
  20774. fi
  20775. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20776. conftest$ac_exeext conftest.$ac_ext
  20777. LIBS="$ac_xsave_LIBS"
  20778. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  20779. # to get the SysV transport functions.
  20780. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  20781. # needs -lnsl.
  20782. # The nsl library prevents programs from opening the X display
  20783. # on Irix 5.2, according to T.E. Dickey.
  20784. # The functions gethostbyname, getservbyname, and inet_addr are
  20785. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  20786. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  20787. if test "x$ac_cv_func_gethostbyname" = xyes
  20788. then :
  20789. fi
  20790. if test $ac_cv_func_gethostbyname = no; then
  20791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  20792. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  20793. if test ${ac_cv_lib_nsl_gethostbyname+y}
  20794. then :
  20795. printf %s "(cached) " >&6
  20796. else $as_nop
  20797. ac_check_lib_save_LIBS=$LIBS
  20798. LIBS="-lnsl $LIBS"
  20799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20800. /* end confdefs.h. */
  20801. /* Override any GCC internal prototype to avoid an error.
  20802. Use char because int might match the return type of a GCC
  20803. builtin and then its argument prototype would still apply. */
  20804. char gethostbyname ();
  20805. int
  20806. main (void)
  20807. {
  20808. return gethostbyname ();
  20809. ;
  20810. return 0;
  20811. }
  20812. _ACEOF
  20813. if ac_fn_c_try_link "$LINENO"
  20814. then :
  20815. ac_cv_lib_nsl_gethostbyname=yes
  20816. else $as_nop
  20817. ac_cv_lib_nsl_gethostbyname=no
  20818. fi
  20819. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20820. conftest$ac_exeext conftest.$ac_ext
  20821. LIBS=$ac_check_lib_save_LIBS
  20822. fi
  20823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  20824. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  20825. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  20826. then :
  20827. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  20828. fi
  20829. if test $ac_cv_lib_nsl_gethostbyname = no; then
  20830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  20831. printf %s "checking for gethostbyname in -lbsd... " >&6; }
  20832. if test ${ac_cv_lib_bsd_gethostbyname+y}
  20833. then :
  20834. printf %s "(cached) " >&6
  20835. else $as_nop
  20836. ac_check_lib_save_LIBS=$LIBS
  20837. LIBS="-lbsd $LIBS"
  20838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20839. /* end confdefs.h. */
  20840. /* Override any GCC internal prototype to avoid an error.
  20841. Use char because int might match the return type of a GCC
  20842. builtin and then its argument prototype would still apply. */
  20843. char gethostbyname ();
  20844. int
  20845. main (void)
  20846. {
  20847. return gethostbyname ();
  20848. ;
  20849. return 0;
  20850. }
  20851. _ACEOF
  20852. if ac_fn_c_try_link "$LINENO"
  20853. then :
  20854. ac_cv_lib_bsd_gethostbyname=yes
  20855. else $as_nop
  20856. ac_cv_lib_bsd_gethostbyname=no
  20857. fi
  20858. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20859. conftest$ac_exeext conftest.$ac_ext
  20860. LIBS=$ac_check_lib_save_LIBS
  20861. fi
  20862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  20863. printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
  20864. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
  20865. then :
  20866. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  20867. fi
  20868. fi
  20869. fi
  20870. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  20871. # socket/setsockopt and other routines are undefined under SCO ODT
  20872. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  20873. # on later versions), says Simon Leinen: it contains gethostby*
  20874. # variants that don't use the name server (or something). -lsocket
  20875. # must be given before -lnsl if both are needed. We assume that
  20876. # if connect needs -lnsl, so does gethostbyname.
  20877. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  20878. if test "x$ac_cv_func_connect" = xyes
  20879. then :
  20880. fi
  20881. if test $ac_cv_func_connect = no; then
  20882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  20883. printf %s "checking for connect in -lsocket... " >&6; }
  20884. if test ${ac_cv_lib_socket_connect+y}
  20885. then :
  20886. printf %s "(cached) " >&6
  20887. else $as_nop
  20888. ac_check_lib_save_LIBS=$LIBS
  20889. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  20890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20891. /* end confdefs.h. */
  20892. /* Override any GCC internal prototype to avoid an error.
  20893. Use char because int might match the return type of a GCC
  20894. builtin and then its argument prototype would still apply. */
  20895. char connect ();
  20896. int
  20897. main (void)
  20898. {
  20899. return connect ();
  20900. ;
  20901. return 0;
  20902. }
  20903. _ACEOF
  20904. if ac_fn_c_try_link "$LINENO"
  20905. then :
  20906. ac_cv_lib_socket_connect=yes
  20907. else $as_nop
  20908. ac_cv_lib_socket_connect=no
  20909. fi
  20910. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20911. conftest$ac_exeext conftest.$ac_ext
  20912. LIBS=$ac_check_lib_save_LIBS
  20913. fi
  20914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  20915. printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
  20916. if test "x$ac_cv_lib_socket_connect" = xyes
  20917. then :
  20918. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  20919. fi
  20920. fi
  20921. # Guillermo Gomez says -lposix is necessary on A/UX.
  20922. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  20923. if test "x$ac_cv_func_remove" = xyes
  20924. then :
  20925. fi
  20926. if test $ac_cv_func_remove = no; then
  20927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  20928. printf %s "checking for remove in -lposix... " >&6; }
  20929. if test ${ac_cv_lib_posix_remove+y}
  20930. then :
  20931. printf %s "(cached) " >&6
  20932. else $as_nop
  20933. ac_check_lib_save_LIBS=$LIBS
  20934. LIBS="-lposix $LIBS"
  20935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20936. /* end confdefs.h. */
  20937. /* Override any GCC internal prototype to avoid an error.
  20938. Use char because int might match the return type of a GCC
  20939. builtin and then its argument prototype would still apply. */
  20940. char remove ();
  20941. int
  20942. main (void)
  20943. {
  20944. return remove ();
  20945. ;
  20946. return 0;
  20947. }
  20948. _ACEOF
  20949. if ac_fn_c_try_link "$LINENO"
  20950. then :
  20951. ac_cv_lib_posix_remove=yes
  20952. else $as_nop
  20953. ac_cv_lib_posix_remove=no
  20954. fi
  20955. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20956. conftest$ac_exeext conftest.$ac_ext
  20957. LIBS=$ac_check_lib_save_LIBS
  20958. fi
  20959. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  20960. printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
  20961. if test "x$ac_cv_lib_posix_remove" = xyes
  20962. then :
  20963. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  20964. fi
  20965. fi
  20966. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  20967. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  20968. if test "x$ac_cv_func_shmat" = xyes
  20969. then :
  20970. fi
  20971. if test $ac_cv_func_shmat = no; then
  20972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  20973. printf %s "checking for shmat in -lipc... " >&6; }
  20974. if test ${ac_cv_lib_ipc_shmat+y}
  20975. then :
  20976. printf %s "(cached) " >&6
  20977. else $as_nop
  20978. ac_check_lib_save_LIBS=$LIBS
  20979. LIBS="-lipc $LIBS"
  20980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20981. /* end confdefs.h. */
  20982. /* Override any GCC internal prototype to avoid an error.
  20983. Use char because int might match the return type of a GCC
  20984. builtin and then its argument prototype would still apply. */
  20985. char shmat ();
  20986. int
  20987. main (void)
  20988. {
  20989. return shmat ();
  20990. ;
  20991. return 0;
  20992. }
  20993. _ACEOF
  20994. if ac_fn_c_try_link "$LINENO"
  20995. then :
  20996. ac_cv_lib_ipc_shmat=yes
  20997. else $as_nop
  20998. ac_cv_lib_ipc_shmat=no
  20999. fi
  21000. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21001. conftest$ac_exeext conftest.$ac_ext
  21002. LIBS=$ac_check_lib_save_LIBS
  21003. fi
  21004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  21005. printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
  21006. if test "x$ac_cv_lib_ipc_shmat" = xyes
  21007. then :
  21008. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  21009. fi
  21010. fi
  21011. fi
  21012. # Check for libraries that X11R6 Xt/Xaw programs need.
  21013. ac_save_LDFLAGS=$LDFLAGS
  21014. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  21015. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  21016. # check for ICE first), but we must link in the order -lSM -lICE or
  21017. # we get undefined symbols. So assume we have SM if we have ICE.
  21018. # These have to be linked with before -lX11, unlike the other
  21019. # libraries we check for below, so use a different variable.
  21020. # John Interrante, Karl Berry
  21021. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  21022. printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
  21023. if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
  21024. then :
  21025. printf %s "(cached) " >&6
  21026. else $as_nop
  21027. ac_check_lib_save_LIBS=$LIBS
  21028. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  21029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21030. /* end confdefs.h. */
  21031. /* Override any GCC internal prototype to avoid an error.
  21032. Use char because int might match the return type of a GCC
  21033. builtin and then its argument prototype would still apply. */
  21034. char IceConnectionNumber ();
  21035. int
  21036. main (void)
  21037. {
  21038. return IceConnectionNumber ();
  21039. ;
  21040. return 0;
  21041. }
  21042. _ACEOF
  21043. if ac_fn_c_try_link "$LINENO"
  21044. then :
  21045. ac_cv_lib_ICE_IceConnectionNumber=yes
  21046. else $as_nop
  21047. ac_cv_lib_ICE_IceConnectionNumber=no
  21048. fi
  21049. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21050. conftest$ac_exeext conftest.$ac_ext
  21051. LIBS=$ac_check_lib_save_LIBS
  21052. fi
  21053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  21054. printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  21055. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
  21056. then :
  21057. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  21058. fi
  21059. LDFLAGS=$ac_save_LDFLAGS
  21060. fi
  21061. if test x$have_x = xyes; then
  21062. # Check whether --enable-x11-shared was given.
  21063. if test ${enable_x11_shared+y}
  21064. then :
  21065. enableval=$enable_x11_shared;
  21066. else $as_nop
  21067. enable_x11_shared=maybe
  21068. fi
  21069. case "$host" in
  21070. *-*-darwin*)
  21071. # Apple now puts this in /opt/X11
  21072. x11_lib='/opt/X11/lib/libX11.6.dylib'
  21073. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  21074. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  21075. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  21076. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  21077. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  21078. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  21079. xss_lib='/opt/X11/lib/libXss.1.dylib'
  21080. ;;
  21081. *-*-openbsd*)
  21082. x11_lib='libX11.so'
  21083. x11ext_lib='libXext.so'
  21084. xcursor_lib='libXcursor.so'
  21085. xinput_lib='libXi.so'
  21086. xfixes_lib='libXfixes.so'
  21087. xrandr_lib='libXrandr.so'
  21088. xrender_lib='libXrender.so'
  21089. xss_lib='libXss.so'
  21090. ;;
  21091. *)
  21092. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21093. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21094. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21095. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21096. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21097. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21098. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21099. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21100. ;;
  21101. esac
  21102. if test x$ac_cv_func_shmat != xyes; then
  21103. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  21104. fi
  21105. CFLAGS="$CFLAGS $X_CFLAGS"
  21106. LDFLAGS="$LDFLAGS $X_LIBS"
  21107. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  21108. #include <X11/Xproto.h>
  21109. "
  21110. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes
  21111. then :
  21112. have_xext_h_hdr=yes
  21113. else $as_nop
  21114. have_xext_h_hdr=no
  21115. fi
  21116. if test x$have_xext_h_hdr != xyes; then
  21117. as_fn_error $? "
  21118. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  21119. " "$LINENO" 5
  21120. fi
  21121. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  21122. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  21123. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  21124. # Needed so SDL applications can include SDL_syswm.h
  21125. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  21126. if test x$enable_x11_shared = xmaybe; then
  21127. enable_x11_shared=yes
  21128. fi
  21129. if test x$have_loadso != xyes && \
  21130. test x$enable_x11_shared = xyes; then
  21131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  21132. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  21133. enable_x11_shared=no
  21134. fi
  21135. if test x$have_loadso = xyes && \
  21136. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  21137. echo "-- dynamic libX11 -> $x11_lib"
  21138. echo "-- dynamic libX11ext -> $x11ext_lib"
  21139. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC \"$x11_lib\"" >>confdefs.h
  21140. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT \"$x11ext_lib\"" >>confdefs.h
  21141. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  21142. else
  21143. enable_x11_shared=no
  21144. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  21145. SUMMARY_video="${SUMMARY_video} x11"
  21146. fi
  21147. have_video=yes
  21148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  21149. printf %s "checking for XGenericEvent... " >&6; }
  21150. have_XGenericEvent=no
  21151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21152. /* end confdefs.h. */
  21153. #include <X11/Xlib.h>
  21154. int
  21155. main (void)
  21156. {
  21157. Display *display;
  21158. XEvent event;
  21159. XGenericEventCookie *cookie = &event.xcookie;
  21160. XNextEvent(display, &event);
  21161. XGetEventData(display, cookie);
  21162. XFreeEventData(display, cookie);
  21163. ;
  21164. return 0;
  21165. }
  21166. _ACEOF
  21167. if ac_fn_c_try_compile "$LINENO"
  21168. then :
  21169. have_XGenericEvent=yes
  21170. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  21171. fi
  21172. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  21174. printf "%s\n" "$have_XGenericEvent" >&6; }
  21175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  21176. printf %s "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  21177. if test ${ac_cv_lib_X11_XkbKeycodeToKeysym+y}
  21178. then :
  21179. printf %s "(cached) " >&6
  21180. else $as_nop
  21181. ac_check_lib_save_LIBS=$LIBS
  21182. LIBS="-lX11 $LIBS"
  21183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21184. /* end confdefs.h. */
  21185. /* Override any GCC internal prototype to avoid an error.
  21186. Use char because int might match the return type of a GCC
  21187. builtin and then its argument prototype would still apply. */
  21188. char XkbKeycodeToKeysym ();
  21189. int
  21190. main (void)
  21191. {
  21192. return XkbKeycodeToKeysym ();
  21193. ;
  21194. return 0;
  21195. }
  21196. _ACEOF
  21197. if ac_fn_c_try_link "$LINENO"
  21198. then :
  21199. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  21200. else $as_nop
  21201. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  21202. fi
  21203. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21204. conftest$ac_exeext conftest.$ac_ext
  21205. LIBS=$ac_check_lib_save_LIBS
  21206. fi
  21207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  21208. printf "%s\n" "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  21209. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes
  21210. then :
  21211. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  21212. fi
  21213. # Check whether --enable-video-x11-xcursor was given.
  21214. if test ${enable_video_x11_xcursor+y}
  21215. then :
  21216. enableval=$enable_video_x11_xcursor;
  21217. else $as_nop
  21218. enable_video_x11_xcursor=yes
  21219. fi
  21220. if test x$enable_video_x11_xcursor = xyes; then
  21221. definitely_enable_video_x11_xcursor=no
  21222. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  21223. "
  21224. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes
  21225. then :
  21226. have_xcursor_h_hdr=yes
  21227. else $as_nop
  21228. have_xcursor_h_hdr=no
  21229. fi
  21230. if test x$have_xcursor_h_hdr = xyes; then
  21231. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  21232. echo "-- dynamic libXcursor -> $xcursor_lib"
  21233. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR \"$xcursor_lib\"" >>confdefs.h
  21234. definitely_enable_video_x11_xcursor=yes
  21235. else
  21236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  21237. printf %s "checking for XcursorImageCreate in -lXcursor... " >&6; }
  21238. if test ${ac_cv_lib_Xcursor_XcursorImageCreate+y}
  21239. then :
  21240. printf %s "(cached) " >&6
  21241. else $as_nop
  21242. ac_check_lib_save_LIBS=$LIBS
  21243. LIBS="-lXcursor $LIBS"
  21244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21245. /* end confdefs.h. */
  21246. /* Override any GCC internal prototype to avoid an error.
  21247. Use char because int might match the return type of a GCC
  21248. builtin and then its argument prototype would still apply. */
  21249. char XcursorImageCreate ();
  21250. int
  21251. main (void)
  21252. {
  21253. return XcursorImageCreate ();
  21254. ;
  21255. return 0;
  21256. }
  21257. _ACEOF
  21258. if ac_fn_c_try_link "$LINENO"
  21259. then :
  21260. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  21261. else $as_nop
  21262. ac_cv_lib_Xcursor_XcursorImageCreate=no
  21263. fi
  21264. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21265. conftest$ac_exeext conftest.$ac_ext
  21266. LIBS=$ac_check_lib_save_LIBS
  21267. fi
  21268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  21269. printf "%s\n" "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  21270. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes
  21271. then :
  21272. have_xcursor_lib=yes
  21273. fi
  21274. if test x$have_xcursor_lib = xyes ; then
  21275. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  21276. definitely_enable_video_x11_xcursor=yes
  21277. fi
  21278. fi
  21279. fi
  21280. fi
  21281. if test x$definitely_enable_video_x11_xcursor = xyes; then
  21282. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  21283. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  21284. fi
  21285. # Check whether --enable-video-x11-xdbe was given.
  21286. if test ${enable_video_x11_xdbe+y}
  21287. then :
  21288. enableval=$enable_video_x11_xdbe;
  21289. else $as_nop
  21290. enable_video_x11_xdbe=yes
  21291. fi
  21292. if test x$enable_video_x11_xdbe = xyes; then
  21293. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  21294. "
  21295. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes
  21296. then :
  21297. have_dbe_h_hdr=yes
  21298. else $as_nop
  21299. have_dbe_h_hdr=no
  21300. fi
  21301. if test x$have_dbe_h_hdr = xyes; then
  21302. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  21303. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  21304. fi
  21305. fi
  21306. # Check whether --enable-video-x11-xinput was given.
  21307. if test ${enable_video_x11_xinput+y}
  21308. then :
  21309. enableval=$enable_video_x11_xinput;
  21310. else $as_nop
  21311. enable_video_x11_xinput=yes
  21312. fi
  21313. if test x$enable_video_x11_xinput = xyes; then
  21314. definitely_enable_video_x11_xinput=no
  21315. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  21316. "
  21317. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes
  21318. then :
  21319. have_xinput_h_hdr=yes
  21320. else $as_nop
  21321. have_xinput_h_hdr=no
  21322. fi
  21323. if test x$have_xinput_h_hdr = xyes; then
  21324. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  21325. echo "-- dynamic libXi -> $xinput_lib"
  21326. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 \"$xinput_lib\"" >>confdefs.h
  21327. definitely_enable_video_x11_xinput=yes
  21328. else
  21329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  21330. printf %s "checking for XOpenDevice in -lXi... " >&6; }
  21331. if test ${ac_cv_lib_Xi_XOpenDevice+y}
  21332. then :
  21333. printf %s "(cached) " >&6
  21334. else $as_nop
  21335. ac_check_lib_save_LIBS=$LIBS
  21336. LIBS="-lXi $LIBS"
  21337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21338. /* end confdefs.h. */
  21339. /* Override any GCC internal prototype to avoid an error.
  21340. Use char because int might match the return type of a GCC
  21341. builtin and then its argument prototype would still apply. */
  21342. char XOpenDevice ();
  21343. int
  21344. main (void)
  21345. {
  21346. return XOpenDevice ();
  21347. ;
  21348. return 0;
  21349. }
  21350. _ACEOF
  21351. if ac_fn_c_try_link "$LINENO"
  21352. then :
  21353. ac_cv_lib_Xi_XOpenDevice=yes
  21354. else $as_nop
  21355. ac_cv_lib_Xi_XOpenDevice=no
  21356. fi
  21357. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21358. conftest$ac_exeext conftest.$ac_ext
  21359. LIBS=$ac_check_lib_save_LIBS
  21360. fi
  21361. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  21362. printf "%s\n" "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  21363. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes
  21364. then :
  21365. have_xinput_lib=yes
  21366. fi
  21367. if test x$have_xinput_lib = xyes ; then
  21368. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  21369. definitely_enable_video_x11_xinput=yes
  21370. fi
  21371. fi
  21372. fi
  21373. fi
  21374. if test x$definitely_enable_video_x11_xinput = xyes; then
  21375. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  21376. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  21377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  21378. printf %s "checking for xinput2 multitouch... " >&6; }
  21379. have_xinput2_multitouch=no
  21380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21381. /* end confdefs.h. */
  21382. #include <X11/Xlib.h>
  21383. #include <X11/Xproto.h>
  21384. #include <X11/extensions/XInput2.h>
  21385. int
  21386. main (void)
  21387. {
  21388. int event_type = XI_TouchBegin;
  21389. XITouchClassInfo *t;
  21390. ;
  21391. return 0;
  21392. }
  21393. _ACEOF
  21394. if ac_fn_c_try_compile "$LINENO"
  21395. then :
  21396. have_xinput2_multitouch=yes
  21397. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  21398. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  21399. fi
  21400. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  21402. printf "%s\n" "$have_xinput2_multitouch" >&6; }
  21403. fi
  21404. # Check whether --enable-video-x11-xfixes was given.
  21405. if test ${enable_video_x11_xfixes+y}
  21406. then :
  21407. enableval=$enable_video_x11_xfixes;
  21408. else $as_nop
  21409. enable_video_x11_xfixes=yes
  21410. fi
  21411. if test x$enable_video_x11_xfixes = xyes; then
  21412. definitely_enable_video_x11_xfixes=no
  21413. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  21414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  21415. printf %s "checking for X11/extensions/Xfixes.h... " >&6; }
  21416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21417. /* end confdefs.h. */
  21418. #include <X11/Xlib.h>
  21419. #include <X11/Xproto.h>
  21420. #include <X11/extensions/XInput2.h>
  21421. #include <X11/extensions/Xfixes.h>
  21422. int
  21423. main (void)
  21424. {
  21425. BarrierEventID b;
  21426. ;
  21427. return 0;
  21428. }
  21429. _ACEOF
  21430. if ac_fn_c_try_compile "$LINENO"
  21431. then :
  21432. have_xfixes_h_hdr=yes
  21433. else $as_nop
  21434. have_xfixes_h_hdr=no
  21435. fi
  21436. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  21438. printf "%s\n" "$have_xfixes_h_hdr" >&6; }
  21439. if test x$have_xfixes_h_hdr = xyes; then
  21440. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  21441. echo "-- dynamic libXfixes -> $xfixes_lib"
  21442. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES \"$xfixes_lib\"" >>confdefs.h
  21443. definitely_enable_video_x11_xfixes=yes
  21444. else
  21445. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  21446. printf %s "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  21447. if test ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+y}
  21448. then :
  21449. printf %s "(cached) " >&6
  21450. else $as_nop
  21451. ac_check_lib_save_LIBS=$LIBS
  21452. LIBS="-lXfixes $LIBS"
  21453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21454. /* end confdefs.h. */
  21455. /* Override any GCC internal prototype to avoid an error.
  21456. Use char because int might match the return type of a GCC
  21457. builtin and then its argument prototype would still apply. */
  21458. char XFixesCreatePointerBarrier ();
  21459. int
  21460. main (void)
  21461. {
  21462. return XFixesCreatePointerBarrier ();
  21463. ;
  21464. return 0;
  21465. }
  21466. _ACEOF
  21467. if ac_fn_c_try_link "$LINENO"
  21468. then :
  21469. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  21470. else $as_nop
  21471. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  21472. fi
  21473. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21474. conftest$ac_exeext conftest.$ac_ext
  21475. LIBS=$ac_check_lib_save_LIBS
  21476. fi
  21477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  21478. printf "%s\n" "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  21479. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes
  21480. then :
  21481. have_xfixes_lib=yes
  21482. fi
  21483. if test x$have_xfixes_lib = xyes ; then
  21484. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  21485. definitely_enable_video_x11_xfixes=yes
  21486. fi
  21487. fi
  21488. fi
  21489. fi
  21490. if test x$definitely_enable_video_x11_xfixes = xyes; then
  21491. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  21492. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  21493. fi
  21494. # Check whether --enable-video-x11-xrandr was given.
  21495. if test ${enable_video_x11_xrandr+y}
  21496. then :
  21497. enableval=$enable_video_x11_xrandr;
  21498. else $as_nop
  21499. enable_video_x11_xrandr=yes
  21500. fi
  21501. if test x$enable_video_x11_xrandr = xyes; then
  21502. definitely_enable_video_x11_xrandr=no
  21503. have_xrandr_h_hdr=no
  21504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21505. /* end confdefs.h. */
  21506. #include <X11/Xlib.h>
  21507. #include <X11/extensions/Xrandr.h>
  21508. int
  21509. main (void)
  21510. {
  21511. XRRScreenResources *res = NULL;
  21512. ;
  21513. return 0;
  21514. }
  21515. _ACEOF
  21516. if ac_fn_c_try_compile "$LINENO"
  21517. then :
  21518. have_xrandr_h_hdr=yes
  21519. fi
  21520. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21521. if test x$have_xrandr_h_hdr = xyes; then
  21522. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  21523. echo "-- dynamic libXrandr -> $xrandr_lib"
  21524. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR \"$xrandr_lib\"" >>confdefs.h
  21525. definitely_enable_video_x11_xrandr=yes
  21526. else
  21527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  21528. printf %s "checking for XRRQueryExtension in -lXrandr... " >&6; }
  21529. if test ${ac_cv_lib_Xrandr_XRRQueryExtension+y}
  21530. then :
  21531. printf %s "(cached) " >&6
  21532. else $as_nop
  21533. ac_check_lib_save_LIBS=$LIBS
  21534. LIBS="-lXrandr $LIBS"
  21535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21536. /* end confdefs.h. */
  21537. /* Override any GCC internal prototype to avoid an error.
  21538. Use char because int might match the return type of a GCC
  21539. builtin and then its argument prototype would still apply. */
  21540. char XRRQueryExtension ();
  21541. int
  21542. main (void)
  21543. {
  21544. return XRRQueryExtension ();
  21545. ;
  21546. return 0;
  21547. }
  21548. _ACEOF
  21549. if ac_fn_c_try_link "$LINENO"
  21550. then :
  21551. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  21552. else $as_nop
  21553. ac_cv_lib_Xrandr_XRRQueryExtension=no
  21554. fi
  21555. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21556. conftest$ac_exeext conftest.$ac_ext
  21557. LIBS=$ac_check_lib_save_LIBS
  21558. fi
  21559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  21560. printf "%s\n" "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  21561. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes
  21562. then :
  21563. have_xrandr_lib=yes
  21564. fi
  21565. if test x$have_xrandr_lib = xyes ; then
  21566. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  21567. definitely_enable_video_x11_xrandr=yes
  21568. fi
  21569. fi
  21570. fi
  21571. fi
  21572. if test x$definitely_enable_video_x11_xrandr = xyes; then
  21573. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  21574. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  21575. fi
  21576. # Check whether --enable-video-x11-scrnsaver was given.
  21577. if test ${enable_video_x11_scrnsaver+y}
  21578. then :
  21579. enableval=$enable_video_x11_scrnsaver;
  21580. else $as_nop
  21581. enable_video_x11_scrnsaver=yes
  21582. fi
  21583. if test x$enable_video_x11_scrnsaver = xyes; then
  21584. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  21585. "
  21586. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes
  21587. then :
  21588. have_scrnsaver_h_hdr=yes
  21589. else $as_nop
  21590. have_scrnsaver_h_hdr=no
  21591. fi
  21592. if test x$have_scrnsaver_h_hdr = xyes; then
  21593. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  21594. echo "-- dynamic libXss -> $xss_lib"
  21595. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS \"$xss_lib\"" >>confdefs.h
  21596. definitely_enable_video_x11_scrnsaver=yes
  21597. else
  21598. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  21599. printf %s "checking for XScreenSaverSuspend in -lXss... " >&6; }
  21600. if test ${ac_cv_lib_Xss_XScreenSaverSuspend+y}
  21601. then :
  21602. printf %s "(cached) " >&6
  21603. else $as_nop
  21604. ac_check_lib_save_LIBS=$LIBS
  21605. LIBS="-lXss $LIBS"
  21606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21607. /* end confdefs.h. */
  21608. /* Override any GCC internal prototype to avoid an error.
  21609. Use char because int might match the return type of a GCC
  21610. builtin and then its argument prototype would still apply. */
  21611. char XScreenSaverSuspend ();
  21612. int
  21613. main (void)
  21614. {
  21615. return XScreenSaverSuspend ();
  21616. ;
  21617. return 0;
  21618. }
  21619. _ACEOF
  21620. if ac_fn_c_try_link "$LINENO"
  21621. then :
  21622. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  21623. else $as_nop
  21624. ac_cv_lib_Xss_XScreenSaverSuspend=no
  21625. fi
  21626. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21627. conftest$ac_exeext conftest.$ac_ext
  21628. LIBS=$ac_check_lib_save_LIBS
  21629. fi
  21630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  21631. printf "%s\n" "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  21632. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes
  21633. then :
  21634. have_xss_lib=yes
  21635. fi
  21636. if test x$have_xss_lib = xyes ; then
  21637. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  21638. definitely_enable_video_x11_scrnsaver=yes
  21639. fi
  21640. fi
  21641. fi
  21642. fi
  21643. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  21644. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  21645. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  21646. fi
  21647. # Check whether --enable-video-x11-xshape was given.
  21648. if test ${enable_video_x11_xshape+y}
  21649. then :
  21650. enableval=$enable_video_x11_xshape;
  21651. else $as_nop
  21652. enable_video_x11_xshape=yes
  21653. fi
  21654. if test x$enable_video_x11_xshape = xyes; then
  21655. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  21656. "
  21657. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes
  21658. then :
  21659. have_shape_h_hdr=yes
  21660. else $as_nop
  21661. have_shape_h_hdr=no
  21662. fi
  21663. if test x$have_shape_h_hdr = xyes; then
  21664. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  21665. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  21666. fi
  21667. fi
  21668. fi
  21669. fi
  21670. if test x$have_x != xyes; then
  21671. # Prevent Mesa from including X11 headers
  21672. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  21673. fi
  21674. }
  21675. CheckVivanteVideo()
  21676. {
  21677. # Check whether --enable-video-vivante was given.
  21678. if test ${enable_video_vivante+y}
  21679. then :
  21680. enableval=$enable_video_vivante;
  21681. else $as_nop
  21682. enable_video_vivante=yes
  21683. fi
  21684. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  21685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  21686. printf %s "checking for Vivante VDK API... " >&6; }
  21687. have_vivante_vdk=no
  21688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21689. /* end confdefs.h. */
  21690. #define LINUX
  21691. #define EGL_API_FB
  21692. #include <gc_vdk.h>
  21693. int
  21694. main (void)
  21695. {
  21696. ;
  21697. return 0;
  21698. }
  21699. _ACEOF
  21700. if ac_fn_c_try_compile "$LINENO"
  21701. then :
  21702. have_vivante_vdk=yes
  21703. fi
  21704. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  21706. printf "%s\n" "$have_vivante_vdk" >&6; }
  21707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  21708. printf %s "checking for Vivante FB API... " >&6; }
  21709. have_vivante_egl=no
  21710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21711. /* end confdefs.h. */
  21712. #define LINUX
  21713. #define EGL_API_FB
  21714. #include <EGL/eglvivante.h>
  21715. int
  21716. main (void)
  21717. {
  21718. ;
  21719. return 0;
  21720. }
  21721. _ACEOF
  21722. if ac_fn_c_try_compile "$LINENO"
  21723. then :
  21724. have_vivante_egl=yes
  21725. fi
  21726. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21727. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  21728. printf "%s\n" "$have_vivante_egl" >&6; }
  21729. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  21730. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  21731. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  21732. if test x$have_vivante_vdk = xyes; then
  21733. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  21734. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  21735. fi
  21736. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  21737. SUMMARY_video="${SUMMARY_video} vivante"
  21738. have_video=yes
  21739. fi
  21740. fi
  21741. }
  21742. CheckHaikuVideo()
  21743. {
  21744. if test x$enable_video = xyes; then
  21745. printf "%s\n" "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  21746. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  21747. have_video=yes
  21748. SUMMARY_video="${SUMMARY_video} haiku"
  21749. fi
  21750. }
  21751. CheckCOCOA()
  21752. {
  21753. # Check whether --enable-video-cocoa was given.
  21754. if test ${enable_video_cocoa+y}
  21755. then :
  21756. enableval=$enable_video_cocoa;
  21757. else $as_nop
  21758. enable_video_cocoa=yes
  21759. fi
  21760. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  21761. save_CFLAGS="$CFLAGS"
  21762. CFLAGS="$CFLAGS -x objective-c"
  21763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  21764. printf %s "checking for Cocoa framework... " >&6; }
  21765. have_cocoa=no
  21766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21767. /* end confdefs.h. */
  21768. #import <Cocoa/Cocoa.h>
  21769. int
  21770. main (void)
  21771. {
  21772. ;
  21773. return 0;
  21774. }
  21775. _ACEOF
  21776. if ac_fn_c_try_compile "$LINENO"
  21777. then :
  21778. have_cocoa=yes
  21779. fi
  21780. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  21782. printf "%s\n" "$have_cocoa" >&6; }
  21783. CFLAGS="$save_CFLAGS"
  21784. if test x$have_cocoa = xyes; then
  21785. printf "%s\n" "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  21786. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  21787. SUMMARY_video="${SUMMARY_video} cocoa"
  21788. have_video=yes
  21789. fi
  21790. fi
  21791. }
  21792. CheckMETAL()
  21793. {
  21794. # Check whether --enable-video-metal was given.
  21795. if test ${enable_video_metal+y}
  21796. then :
  21797. enableval=$enable_video_metal;
  21798. else $as_nop
  21799. enable_video_metal=yes
  21800. fi
  21801. # Check whether --enable-render-metal was given.
  21802. if test ${enable_render_metal+y}
  21803. then :
  21804. enableval=$enable_render_metal;
  21805. else $as_nop
  21806. enable_render_metal=yes
  21807. fi
  21808. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  21809. save_CFLAGS="$CFLAGS"
  21810. CFLAGS="$CFLAGS -x objective-c"
  21811. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  21812. printf %s "checking for Metal framework... " >&6; }
  21813. have_metal=no
  21814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21815. /* end confdefs.h. */
  21816. #import <Cocoa/Cocoa.h>
  21817. #import <Metal/Metal.h>
  21818. #import <QuartzCore/CAMetalLayer.h>
  21819. #if TARGET_CPU_X86
  21820. #error Metal doesn't work on this configuration
  21821. #endif
  21822. int
  21823. main (void)
  21824. {
  21825. ;
  21826. return 0;
  21827. }
  21828. _ACEOF
  21829. if ac_fn_c_try_compile "$LINENO"
  21830. then :
  21831. have_metal=yes
  21832. fi
  21833. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21834. CFLAGS="$save_CFLAGS"
  21835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  21836. printf "%s\n" "$have_metal" >&6; }
  21837. if test x$have_metal = xyes; then
  21838. printf "%s\n" "#define SDL_VIDEO_METAL 1" >>confdefs.h
  21839. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  21840. printf "%s\n" "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  21841. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  21842. fi
  21843. SUMMARY_video="${SUMMARY_video} metal"
  21844. else
  21845. enable_video_metal=no
  21846. enable_render_metal=no
  21847. fi
  21848. fi
  21849. }
  21850. CheckDirectFB()
  21851. {
  21852. # Check whether --enable-video-directfb was given.
  21853. if test ${enable_video_directfb+y}
  21854. then :
  21855. enableval=$enable_video_directfb;
  21856. else $as_nop
  21857. enable_video_directfb=no
  21858. fi
  21859. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  21860. pkg_failed=no
  21861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  21862. printf %s "checking for directfb >= 1.0.0... " >&6; }
  21863. if test -n "$DIRECTFB_CFLAGS"; then
  21864. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  21865. elif test -n "$PKG_CONFIG"; then
  21866. if test -n "$PKG_CONFIG" && \
  21867. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  21868. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  21869. ac_status=$?
  21870. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21871. test $ac_status = 0; }; then
  21872. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  21873. test "x$?" != "x0" && pkg_failed=yes
  21874. else
  21875. pkg_failed=yes
  21876. fi
  21877. else
  21878. pkg_failed=untried
  21879. fi
  21880. if test -n "$DIRECTFB_LIBS"; then
  21881. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  21882. elif test -n "$PKG_CONFIG"; then
  21883. if test -n "$PKG_CONFIG" && \
  21884. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  21885. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  21886. ac_status=$?
  21887. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21888. test $ac_status = 0; }; then
  21889. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  21890. test "x$?" != "x0" && pkg_failed=yes
  21891. else
  21892. pkg_failed=yes
  21893. fi
  21894. else
  21895. pkg_failed=untried
  21896. fi
  21897. if test $pkg_failed = yes; then
  21898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21899. printf "%s\n" "no" >&6; }
  21900. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21901. _pkg_short_errors_supported=yes
  21902. else
  21903. _pkg_short_errors_supported=no
  21904. fi
  21905. if test $_pkg_short_errors_supported = yes; then
  21906. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  21907. else
  21908. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  21909. fi
  21910. # Put the nasty error message in config.log where it belongs
  21911. echo "$DIRECTFB_PKG_ERRORS" >&5
  21912. video_directfb=no
  21913. elif test $pkg_failed = untried; then
  21914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21915. printf "%s\n" "no" >&6; }
  21916. video_directfb=no
  21917. else
  21918. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  21919. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  21920. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21921. printf "%s\n" "yes" >&6; }
  21922. video_directfb=yes
  21923. fi
  21924. if test x$video_directfb = xyes; then
  21925. # SuSE 11.1 installs directfb-config without directfb-devel
  21926. save_CPPFLAGS="$CPPFLAGS"
  21927. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  21928. ac_fn_c_check_header_compile "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  21929. if test "x$ac_cv_header_directfb_h" = xyes
  21930. then :
  21931. have_directfb_hdr=yes
  21932. else $as_nop
  21933. have_directfb_hdr=no
  21934. fi
  21935. CPPFLAGS="$save_CPPFLAGS"
  21936. video_directfb=$have_directfb_hdr
  21937. fi
  21938. if test x$video_directfb = xyes; then
  21939. # Check whether --enable-directfb-shared was given.
  21940. if test ${enable_directfb_shared+y}
  21941. then :
  21942. enableval=$enable_directfb_shared;
  21943. else $as_nop
  21944. enable_directfb_shared=yes
  21945. fi
  21946. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  21947. printf "%s\n" "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  21948. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  21949. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  21950. directfb_shared=no
  21951. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  21952. if test x$have_loadso != xyes && \
  21953. test x$enable_directfb_shared = xyes; then
  21954. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  21955. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  21956. fi
  21957. if test x$have_loadso = xyes && \
  21958. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  21959. directfb_shared=yes
  21960. echo "-- dynamic libdirectfb -> $directfb_lib"
  21961. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC \"$directfb_lib\"" >>confdefs.h
  21962. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  21963. else
  21964. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  21965. SUMMARY_video="${SUMMARY_video} directfb"
  21966. fi
  21967. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  21968. have_video=yes
  21969. fi
  21970. fi
  21971. }
  21972. CheckKMSDRM()
  21973. {
  21974. # Check whether --enable-video-kmsdrm was given.
  21975. if test ${enable_video_kmsdrm+y}
  21976. then :
  21977. enableval=$enable_video_kmsdrm;
  21978. else $as_nop
  21979. enable_video_kmsdrm=yes
  21980. fi
  21981. if test x$enable_video = xyes && \
  21982. test x$enable_video_kmsdrm = xyes && \
  21983. test x$video_opengl_egl = xyes; then
  21984. video_kmsdrm=no
  21985. pkg_failed=no
  21986. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  21987. printf %s "checking for libdrm >= 1.4.82... " >&6; }
  21988. if test -n "$LIBDRM_CFLAGS"; then
  21989. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  21990. elif test -n "$PKG_CONFIG"; then
  21991. if test -n "$PKG_CONFIG" && \
  21992. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  21993. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  21994. ac_status=$?
  21995. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21996. test $ac_status = 0; }; then
  21997. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  21998. test "x$?" != "x0" && pkg_failed=yes
  21999. else
  22000. pkg_failed=yes
  22001. fi
  22002. else
  22003. pkg_failed=untried
  22004. fi
  22005. if test -n "$LIBDRM_LIBS"; then
  22006. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  22007. elif test -n "$PKG_CONFIG"; then
  22008. if test -n "$PKG_CONFIG" && \
  22009. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  22010. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  22011. ac_status=$?
  22012. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22013. test $ac_status = 0; }; then
  22014. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  22015. test "x$?" != "x0" && pkg_failed=yes
  22016. else
  22017. pkg_failed=yes
  22018. fi
  22019. else
  22020. pkg_failed=untried
  22021. fi
  22022. if test $pkg_failed = yes; then
  22023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22024. printf "%s\n" "no" >&6; }
  22025. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22026. _pkg_short_errors_supported=yes
  22027. else
  22028. _pkg_short_errors_supported=no
  22029. fi
  22030. if test $_pkg_short_errors_supported = yes; then
  22031. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  22032. else
  22033. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  22034. fi
  22035. # Put the nasty error message in config.log where it belongs
  22036. echo "$LIBDRM_PKG_ERRORS" >&5
  22037. libdrm_avail=no
  22038. elif test $pkg_failed = untried; then
  22039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22040. printf "%s\n" "no" >&6; }
  22041. libdrm_avail=no
  22042. else
  22043. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  22044. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  22045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22046. printf "%s\n" "yes" >&6; }
  22047. libdrm_avail=yes
  22048. fi
  22049. pkg_failed=no
  22050. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  22051. printf %s "checking for gbm >= 11.1.0... " >&6; }
  22052. if test -n "$LIBGBM_CFLAGS"; then
  22053. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  22054. elif test -n "$PKG_CONFIG"; then
  22055. if test -n "$PKG_CONFIG" && \
  22056. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22057. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22058. ac_status=$?
  22059. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22060. test $ac_status = 0; }; then
  22061. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  22062. test "x$?" != "x0" && pkg_failed=yes
  22063. else
  22064. pkg_failed=yes
  22065. fi
  22066. else
  22067. pkg_failed=untried
  22068. fi
  22069. if test -n "$LIBGBM_LIBS"; then
  22070. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  22071. elif test -n "$PKG_CONFIG"; then
  22072. if test -n "$PKG_CONFIG" && \
  22073. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22074. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22075. ac_status=$?
  22076. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22077. test $ac_status = 0; }; then
  22078. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  22079. test "x$?" != "x0" && pkg_failed=yes
  22080. else
  22081. pkg_failed=yes
  22082. fi
  22083. else
  22084. pkg_failed=untried
  22085. fi
  22086. if test $pkg_failed = yes; then
  22087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22088. printf "%s\n" "no" >&6; }
  22089. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22090. _pkg_short_errors_supported=yes
  22091. else
  22092. _pkg_short_errors_supported=no
  22093. fi
  22094. if test $_pkg_short_errors_supported = yes; then
  22095. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22096. else
  22097. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22098. fi
  22099. # Put the nasty error message in config.log where it belongs
  22100. echo "$LIBGBM_PKG_ERRORS" >&5
  22101. libgbm_avail=no
  22102. elif test $pkg_failed = untried; then
  22103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22104. printf "%s\n" "no" >&6; }
  22105. libgbm_avail=no
  22106. else
  22107. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  22108. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  22109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22110. printf "%s\n" "yes" >&6; }
  22111. libgbm_avail=yes
  22112. fi
  22113. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  22114. video_kmsdrm=yes
  22115. fi
  22116. if test x$video_kmsdrm = xyes; then
  22117. # Check whether --enable-kmsdrm-shared was given.
  22118. if test ${enable_kmsdrm_shared+y}
  22119. then :
  22120. enableval=$enable_kmsdrm_shared;
  22121. else $as_nop
  22122. enable_kmsdrm_shared=yes
  22123. fi
  22124. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  22125. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  22126. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  22127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  22128. printf %s "checking for kmsdrm dynamic loading support... " >&6; }
  22129. kmsdrm_shared=no
  22130. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  22131. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  22132. if test x$have_loadso != xyes && \
  22133. test x$enable_kmsdrm_shared = xyes; then
  22134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  22135. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  22136. fi
  22137. if test x$have_loadso = xyes && \
  22138. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  22139. kmsdrm_shared=yes
  22140. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC \"$drm_lib\"" >>confdefs.h
  22141. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM \"$gbm_lib\"" >>confdefs.h
  22142. printf "%s\n" "#define HAVE_KMSDRM_SHARED \"TRUE\"" >>confdefs.h
  22143. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  22144. else
  22145. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  22146. SUMMARY_video="${SUMMARY_video} kmsdrm"
  22147. fi
  22148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  22149. printf "%s\n" "$kmsdrm_shared" >&6; }
  22150. if test x$kmsdrm_shared = xyes; then
  22151. echo "-- dynamic libdrm -> $drm_lib"
  22152. echo "-- dynamic libgbm -> $gbm_lib"
  22153. fi
  22154. have_video=yes
  22155. fi
  22156. fi
  22157. }
  22158. CheckDummyVideo()
  22159. {
  22160. # Check whether --enable-video-dummy was given.
  22161. if test ${enable_video_dummy+y}
  22162. then :
  22163. enableval=$enable_video_dummy;
  22164. else $as_nop
  22165. enable_video_dummy=yes
  22166. fi
  22167. if test x$enable_video_dummy = xyes; then
  22168. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  22169. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  22170. have_video=yes
  22171. SUMMARY_video="${SUMMARY_video} dummy"
  22172. fi
  22173. }
  22174. CheckOffscreenVideo()
  22175. {
  22176. # Check whether --enable-video-offscreen was given.
  22177. if test ${enable_video_offscreen+y}
  22178. then :
  22179. enableval=$enable_video_offscreen;
  22180. else $as_nop
  22181. enable_video_offscreen=yes
  22182. fi
  22183. if test x$enable_video_offscreen = xyes; then
  22184. printf "%s\n" "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  22185. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  22186. have_video=yes
  22187. SUMMARY_video="${SUMMARY_video} offscreen"
  22188. fi
  22189. }
  22190. CheckQNXVideo()
  22191. {
  22192. if test x$enable_video = xyes; then
  22193. printf "%s\n" "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  22194. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  22195. have_video=yes
  22196. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  22197. SUMMARY_video="${SUMMARY_video} qnx"
  22198. fi
  22199. }
  22200. CheckQNXAudio()
  22201. {
  22202. if test x$enable_audio = xyes; then
  22203. printf "%s\n" "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  22204. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  22205. have_audio=yes
  22206. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  22207. SUMMARY_audio="${SUMMARY_audio} qsa"
  22208. fi
  22209. }
  22210. # Check whether --enable-video-opengl was given.
  22211. if test ${enable_video_opengl+y}
  22212. then :
  22213. enableval=$enable_video_opengl;
  22214. else $as_nop
  22215. enable_video_opengl=yes
  22216. fi
  22217. CheckGLX()
  22218. {
  22219. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  22221. printf %s "checking for GLX support... " >&6; }
  22222. video_opengl_glx=no
  22223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22224. /* end confdefs.h. */
  22225. #include <GL/glx.h>
  22226. int
  22227. main (void)
  22228. {
  22229. ;
  22230. return 0;
  22231. }
  22232. _ACEOF
  22233. if ac_fn_c_try_compile "$LINENO"
  22234. then :
  22235. video_opengl_glx=yes
  22236. fi
  22237. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  22239. printf "%s\n" "$video_opengl_glx" >&6; }
  22240. if test x$video_opengl_glx = xyes; then
  22241. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22242. printf "%s\n" "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  22243. fi
  22244. fi
  22245. }
  22246. # Check whether --enable-video-opengles was given.
  22247. if test ${enable_video_opengles+y}
  22248. then :
  22249. enableval=$enable_video_opengles;
  22250. else $as_nop
  22251. enable_video_opengles=yes
  22252. fi
  22253. # Check whether --enable-video-opengles1 was given.
  22254. if test ${enable_video_opengles1+y}
  22255. then :
  22256. enableval=$enable_video_opengles1;
  22257. else $as_nop
  22258. enable_video_opengles1=yes
  22259. fi
  22260. # Check whether --enable-video-opengles2 was given.
  22261. if test ${enable_video_opengles2+y}
  22262. then :
  22263. enableval=$enable_video_opengles2;
  22264. else $as_nop
  22265. enable_video_opengles2=yes
  22266. fi
  22267. CheckEGL()
  22268. {
  22269. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22271. printf %s "checking for EGL support... " >&6; }
  22272. video_opengl_egl=no
  22273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22274. /* end confdefs.h. */
  22275. #define LINUX
  22276. #define EGL_API_FB
  22277. #define MESA_EGL_NO_X11_HEADERS
  22278. #define EGL_NO_X11
  22279. #include <EGL/egl.h>
  22280. #include <EGL/eglext.h>
  22281. int
  22282. main (void)
  22283. {
  22284. ;
  22285. return 0;
  22286. }
  22287. _ACEOF
  22288. if ac_fn_c_try_compile "$LINENO"
  22289. then :
  22290. video_opengl_egl=yes
  22291. fi
  22292. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22293. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22294. printf "%s\n" "$video_opengl_egl" >&6; }
  22295. if test x$video_opengl_egl = xyes; then
  22296. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22297. fi
  22298. fi
  22299. }
  22300. CheckOpenGL()
  22301. {
  22302. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  22304. printf %s "checking for OpenGL headers... " >&6; }
  22305. video_opengl=no
  22306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22307. /* end confdefs.h. */
  22308. #include <GL/gl.h>
  22309. #include <GL/glext.h>
  22310. int
  22311. main (void)
  22312. {
  22313. ;
  22314. return 0;
  22315. }
  22316. _ACEOF
  22317. if ac_fn_c_try_compile "$LINENO"
  22318. then :
  22319. video_opengl=yes
  22320. fi
  22321. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22322. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  22323. printf "%s\n" "$video_opengl" >&6; }
  22324. if test x$video_opengl = xyes; then
  22325. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22326. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22327. SUMMARY_video="${SUMMARY_video} opengl"
  22328. fi
  22329. fi
  22330. }
  22331. CheckOpenGLES()
  22332. {
  22333. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22334. if test x$enable_video_opengles1 = xyes; then
  22335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  22336. printf %s "checking for OpenGL ES v1 headers... " >&6; }
  22337. video_opengles_v1=no
  22338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22339. /* end confdefs.h. */
  22340. #include <GLES/gl.h>
  22341. #include <GLES/glext.h>
  22342. int
  22343. main (void)
  22344. {
  22345. ;
  22346. return 0;
  22347. }
  22348. _ACEOF
  22349. if ac_fn_c_try_compile "$LINENO"
  22350. then :
  22351. video_opengles_v1=yes
  22352. fi
  22353. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  22355. printf "%s\n" "$video_opengles_v1" >&6; }
  22356. if test x$video_opengles_v1 = xyes; then
  22357. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22358. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22359. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22360. fi
  22361. fi
  22362. if test x$enable_video_opengles2 = xyes; then
  22363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22364. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22365. video_opengles_v2=no
  22366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22367. /* end confdefs.h. */
  22368. #include <GLES2/gl2.h>
  22369. #include <GLES2/gl2ext.h>
  22370. int
  22371. main (void)
  22372. {
  22373. ;
  22374. return 0;
  22375. }
  22376. _ACEOF
  22377. if ac_fn_c_try_compile "$LINENO"
  22378. then :
  22379. video_opengles_v2=yes
  22380. fi
  22381. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22383. printf "%s\n" "$video_opengles_v2" >&6; }
  22384. if test x$video_opengles_v2 = xyes; then
  22385. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22386. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22387. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22388. fi
  22389. fi
  22390. fi
  22391. }
  22392. CheckWINDOWSGL()
  22393. {
  22394. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22395. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22396. printf "%s\n" "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  22397. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22398. SUMMARY_video="${SUMMARY_video} opengl"
  22399. fi
  22400. }
  22401. CheckWINDOWSGLES()
  22402. {
  22403. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22405. printf %s "checking for EGL support... " >&6; }
  22406. video_opengl_egl=no
  22407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22408. /* end confdefs.h. */
  22409. #include <EGL/egl.h>
  22410. int
  22411. main (void)
  22412. {
  22413. ;
  22414. return 0;
  22415. }
  22416. _ACEOF
  22417. if ac_fn_c_try_compile "$LINENO"
  22418. then :
  22419. video_opengl_egl=yes
  22420. fi
  22421. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22423. printf "%s\n" "$video_opengl_egl" >&6; }
  22424. if test x$video_opengl_egl = xyes; then
  22425. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22426. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22427. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22428. fi
  22429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22430. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22431. video_opengles_v2=no
  22432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22433. /* end confdefs.h. */
  22434. #include <GLES2/gl2.h>
  22435. #include <GLES2/gl2ext.h>
  22436. int
  22437. main (void)
  22438. {
  22439. ;
  22440. return 0;
  22441. }
  22442. _ACEOF
  22443. if ac_fn_c_try_compile "$LINENO"
  22444. then :
  22445. video_opengles_v2=yes
  22446. fi
  22447. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22449. printf "%s\n" "$video_opengles_v2" >&6; }
  22450. if test x$video_opengles_v2 = xyes; then
  22451. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22452. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22453. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22454. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22455. fi
  22456. fi
  22457. }
  22458. CheckHaikuGL()
  22459. {
  22460. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22461. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22462. printf "%s\n" "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  22463. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22464. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  22465. SUMMARY_video="${SUMMARY_video} opengl"
  22466. fi
  22467. }
  22468. CheckMacGL()
  22469. {
  22470. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22471. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22472. printf "%s\n" "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  22473. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22474. SUMMARY_video="${SUMMARY_video} opengl"
  22475. fi
  22476. }
  22477. CheckMacGLES()
  22478. {
  22479. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22480. video_opengl_egl=yes
  22481. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22482. video_opengles_v2=yes
  22483. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22484. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22485. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22486. fi
  22487. }
  22488. CheckEmscriptenGLES()
  22489. {
  22490. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22491. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22492. printf %s "checking for EGL support... " >&6; }
  22493. video_opengl_egl=no
  22494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22495. /* end confdefs.h. */
  22496. #include <EGL/egl.h>
  22497. int
  22498. main (void)
  22499. {
  22500. ;
  22501. return 0;
  22502. }
  22503. _ACEOF
  22504. if ac_fn_c_try_compile "$LINENO"
  22505. then :
  22506. video_opengl_egl=yes
  22507. fi
  22508. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22510. printf "%s\n" "$video_opengl_egl" >&6; }
  22511. if test x$video_opengl_egl = xyes; then
  22512. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22513. fi
  22514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22515. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22516. video_opengles_v2=no
  22517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22518. /* end confdefs.h. */
  22519. #include <GLES2/gl2.h>
  22520. #include <GLES2/gl2ext.h>
  22521. int
  22522. main (void)
  22523. {
  22524. ;
  22525. return 0;
  22526. }
  22527. _ACEOF
  22528. if ac_fn_c_try_compile "$LINENO"
  22529. then :
  22530. video_opengles_v2=yes
  22531. fi
  22532. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22534. printf "%s\n" "$video_opengles_v2" >&6; }
  22535. if test x$video_opengles_v2 = xyes; then
  22536. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22537. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22538. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22539. fi
  22540. fi
  22541. }
  22542. # Check whether --enable-video-vulkan was given.
  22543. if test ${enable_video_vulkan+y}
  22544. then :
  22545. enableval=$enable_video_vulkan;
  22546. else $as_nop
  22547. enable_video_vulkan=yes
  22548. fi
  22549. CheckVulkan()
  22550. {
  22551. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  22552. case "$host" in
  22553. *-*-android*)
  22554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22555. /* end confdefs.h. */
  22556. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  22557. #error Vulkan doesn't work on this configuration
  22558. #endif
  22559. int
  22560. main (void)
  22561. {
  22562. ;
  22563. return 0;
  22564. }
  22565. _ACEOF
  22566. if ac_fn_c_try_compile "$LINENO"
  22567. then :
  22568. else $as_nop
  22569. enable_video_vulkan=no
  22570. fi
  22571. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22572. ;;
  22573. *-*-darwin*)
  22574. save_CFLAGS="$CFLAGS"
  22575. CFLAGS="$CFLAGS -x objective-c"
  22576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22577. /* end confdefs.h. */
  22578. #include <Cocoa/Cocoa.h>
  22579. #include <Metal/Metal.h>
  22580. #include <QuartzCore/CAMetalLayer.h>
  22581. #if TARGET_CPU_X86
  22582. #error Vulkan doesn't work on this configuration
  22583. #endif
  22584. int
  22585. main (void)
  22586. {
  22587. ;
  22588. return 0;
  22589. }
  22590. _ACEOF
  22591. if ac_fn_c_try_compile "$LINENO"
  22592. then :
  22593. else $as_nop
  22594. enable_video_vulkan=no
  22595. fi
  22596. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22597. CFLAGS="$save_CFLAGS"
  22598. ;;
  22599. *)
  22600. ;;
  22601. esac
  22602. if test x$enable_video_vulkan = xno; then
  22603. # For reasons I am totally unable to see, I get an undefined macro error if
  22604. # I put this in the AC_TRY_COMPILE.
  22605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  22606. printf "%s\n" "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  22607. fi
  22608. fi
  22609. if test x$have_loadso != xyes; then
  22610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  22611. printf "%s\n" "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  22612. enable_video_vulkan=no
  22613. fi
  22614. if test x$enable_video_vulkan = xyes; then
  22615. printf "%s\n" "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  22616. SUMMARY_video="${SUMMARY_video} vulkan"
  22617. fi
  22618. }
  22619. CheckInputEvents()
  22620. {
  22621. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  22622. printf %s "checking for Linux 2.4 unified input interface... " >&6; }
  22623. use_input_events=no
  22624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22625. /* end confdefs.h. */
  22626. #include <linux/input.h>
  22627. int
  22628. main (void)
  22629. {
  22630. #ifndef EVIOCGNAME
  22631. #error EVIOCGNAME() ioctl not available
  22632. #endif
  22633. ;
  22634. return 0;
  22635. }
  22636. _ACEOF
  22637. if ac_fn_c_try_compile "$LINENO"
  22638. then :
  22639. use_input_events=yes
  22640. fi
  22641. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  22643. printf "%s\n" "$use_input_events" >&6; }
  22644. if test x$use_input_events = xyes; then
  22645. printf "%s\n" "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  22646. SUMMARY_input="${SUMMARY_input} linuxev"
  22647. fi
  22648. }
  22649. CheckInputKD()
  22650. {
  22651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  22652. printf %s "checking for Linux kd.h... " >&6; }
  22653. use_input_kd=no
  22654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22655. /* end confdefs.h. */
  22656. #include <linux/kd.h>
  22657. #include <linux/keyboard.h>
  22658. #include <sys/ioctl.h>
  22659. int
  22660. main (void)
  22661. {
  22662. struct kbentry kbe;
  22663. kbe.kb_table = KG_CTRL;
  22664. ioctl(0, KDGKBENT, &kbe);
  22665. ;
  22666. return 0;
  22667. }
  22668. _ACEOF
  22669. if ac_fn_c_try_compile "$LINENO"
  22670. then :
  22671. use_input_kd=yes
  22672. fi
  22673. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  22675. printf "%s\n" "$use_input_kd" >&6; }
  22676. if test x$use_input_kd = xyes; then
  22677. printf "%s\n" "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  22678. SUMMARY_input="${SUMMARY_input} linuxkd"
  22679. fi
  22680. }
  22681. CheckInputKBIO()
  22682. {
  22683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  22684. printf %s "checking for FreeBSD kbio.h... " >&6; }
  22685. use_input_kbio=no
  22686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22687. /* end confdefs.h. */
  22688. #include <sys/kbio.h>
  22689. #include <sys/ioctl.h>
  22690. int
  22691. main (void)
  22692. {
  22693. accentmap_t accTable;
  22694. ioctl(0, KDENABIO, 1);
  22695. ;
  22696. return 0;
  22697. }
  22698. _ACEOF
  22699. if ac_fn_c_try_compile "$LINENO"
  22700. then :
  22701. use_input_kbio=yes
  22702. fi
  22703. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22704. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  22705. printf "%s\n" "$use_input_kbio" >&6; }
  22706. if test x$use_input_kbio = xyes; then
  22707. printf "%s\n" "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  22708. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  22709. fi
  22710. }
  22711. CheckInputWSCONS()
  22712. {
  22713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  22714. printf %s "checking for OpenBSD wscons... " >&6; }
  22715. use_input_wscons=no
  22716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22717. /* end confdefs.h. */
  22718. #include <sys/time.h>
  22719. #include <dev/wscons/wsconsio.h>
  22720. #include <dev/wscons/wsksymdef.h>
  22721. #include <dev/wscons/wsksymvar.h>
  22722. #include <sys/ioctl.h>
  22723. int
  22724. main (void)
  22725. {
  22726. struct wskbd_map_data data;
  22727. ioctl(0, WSKBDIO_GETMAP, &data);
  22728. ;
  22729. return 0;
  22730. }
  22731. _ACEOF
  22732. if ac_fn_c_try_compile "$LINENO"
  22733. then :
  22734. use_input_wscons=yes
  22735. fi
  22736. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  22738. printf "%s\n" "$use_input_wscons" >&6; }
  22739. if test x$use_input_wscons = xyes; then
  22740. printf "%s\n" "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  22741. SUMMARY_input="${SUMMARY_input} wscons"
  22742. fi
  22743. }
  22744. CheckLibUDev()
  22745. {
  22746. # Check whether --enable-libudev was given.
  22747. if test ${enable_libudev+y}
  22748. then :
  22749. enableval=$enable_libudev;
  22750. else $as_nop
  22751. enable_libudev=yes
  22752. fi
  22753. if test x$enable_libudev = xyes; then
  22754. ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  22755. if test "x$ac_cv_header_libudev_h" = xyes
  22756. then :
  22757. have_libudev_h_hdr=yes
  22758. else $as_nop
  22759. have_libudev_h_hdr=no
  22760. fi
  22761. if test x$have_libudev_h_hdr = xyes; then
  22762. printf "%s\n" "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  22763. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  22764. if test x$udev_lib != x; then
  22765. echo "-- dynamic udev -> $udev_lib"
  22766. printf "%s\n" "#define SDL_UDEV_DYNAMIC \"$udev_lib\"" >>confdefs.h
  22767. fi
  22768. fi
  22769. fi
  22770. }
  22771. CheckDBus()
  22772. {
  22773. # Check whether --enable-dbus was given.
  22774. if test ${enable_dbus+y}
  22775. then :
  22776. enableval=$enable_dbus;
  22777. else $as_nop
  22778. enable_dbus=yes
  22779. fi
  22780. if test x$enable_dbus = xyes; then
  22781. pkg_failed=no
  22782. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  22783. printf %s "checking for dbus-1... " >&6; }
  22784. if test -n "$DBUS_CFLAGS"; then
  22785. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  22786. elif test -n "$PKG_CONFIG"; then
  22787. if test -n "$PKG_CONFIG" && \
  22788. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  22789. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  22790. ac_status=$?
  22791. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22792. test $ac_status = 0; }; then
  22793. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  22794. test "x$?" != "x0" && pkg_failed=yes
  22795. else
  22796. pkg_failed=yes
  22797. fi
  22798. else
  22799. pkg_failed=untried
  22800. fi
  22801. if test -n "$DBUS_LIBS"; then
  22802. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  22803. elif test -n "$PKG_CONFIG"; then
  22804. if test -n "$PKG_CONFIG" && \
  22805. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  22806. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  22807. ac_status=$?
  22808. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22809. test $ac_status = 0; }; then
  22810. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  22811. test "x$?" != "x0" && pkg_failed=yes
  22812. else
  22813. pkg_failed=yes
  22814. fi
  22815. else
  22816. pkg_failed=untried
  22817. fi
  22818. if test $pkg_failed = yes; then
  22819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22820. printf "%s\n" "no" >&6; }
  22821. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22822. _pkg_short_errors_supported=yes
  22823. else
  22824. _pkg_short_errors_supported=no
  22825. fi
  22826. if test $_pkg_short_errors_supported = yes; then
  22827. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  22828. else
  22829. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  22830. fi
  22831. # Put the nasty error message in config.log where it belongs
  22832. echo "$DBUS_PKG_ERRORS" >&5
  22833. have_dbus=no
  22834. elif test $pkg_failed = untried; then
  22835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22836. printf "%s\n" "no" >&6; }
  22837. have_dbus=no
  22838. else
  22839. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  22840. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  22841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22842. printf "%s\n" "yes" >&6; }
  22843. have_dbus=yes
  22844. fi
  22845. save_CPPFLAGS="$CPPFLAGS"
  22846. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  22847. ac_fn_c_check_header_compile "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  22848. if test "x$ac_cv_header_dbus_dbus_h" = xyes
  22849. then :
  22850. have_dbus_dbus_h_hdr=yes
  22851. else $as_nop
  22852. have_dbus_dbus_h_hdr=no
  22853. fi
  22854. CPPFLAGS="$save_CPPFLAGS"
  22855. if test x$have_dbus_dbus_h_hdr = xyes; then
  22856. printf "%s\n" "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  22857. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  22858. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  22859. fi
  22860. fi
  22861. }
  22862. CheckIME()
  22863. {
  22864. # Check whether --enable-ime was given.
  22865. if test ${enable_ime+y}
  22866. then :
  22867. enableval=$enable_ime;
  22868. else $as_nop
  22869. enable_ime=yes
  22870. fi
  22871. if test x$enable_ime = xyes; then
  22872. printf "%s\n" "#define SDL_USE_IME 1" >>confdefs.h
  22873. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  22874. fi
  22875. }
  22876. CheckInotify()
  22877. {
  22878. save_LIBS="$LIBS"
  22879. case "$host" in
  22880. *-*-freebsd*|*-*dragonfly*) LIBS="$LIBS -linotify"
  22881. ;;
  22882. esac
  22883. for ac_header in sys/inotify.h
  22884. do :
  22885. ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  22886. if test "x$ac_cv_header_sys_inotify_h" = xyes
  22887. then :
  22888. printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
  22889. have_inotify_inotify_h_hdr=yes
  22890. fi
  22891. done
  22892. for ac_func in inotify_init
  22893. do :
  22894. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  22895. if test "x$ac_cv_func_inotify_init" = xyes
  22896. then :
  22897. printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
  22898. have_inotify=yes
  22899. fi
  22900. done
  22901. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  22902. if test "x$ac_cv_func_inotify_init1" = xyes
  22903. then :
  22904. printf "%s\n" "#define HAVE_INOTIFY_INIT1 1" >>confdefs.h
  22905. fi
  22906. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  22907. printf "%s\n" "#define HAVE_INOTIFY 1" >>confdefs.h
  22908. case "$host" in
  22909. *-*-freebsd*|*-*-dragonfly*)
  22910. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  22911. ;;
  22912. esac
  22913. fi
  22914. LIBS="$save_LIBS"
  22915. }
  22916. CheckIBus()
  22917. {
  22918. # Check whether --enable-ibus was given.
  22919. if test ${enable_ibus+y}
  22920. then :
  22921. enableval=$enable_ibus;
  22922. else $as_nop
  22923. enable_ibus=yes
  22924. fi
  22925. if test x$enable_ibus = xyes; then
  22926. pkg_failed=no
  22927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  22928. printf %s "checking for ibus-1.0... " >&6; }
  22929. if test -n "$IBUS_CFLAGS"; then
  22930. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  22931. elif test -n "$PKG_CONFIG"; then
  22932. if test -n "$PKG_CONFIG" && \
  22933. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  22934. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  22935. ac_status=$?
  22936. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22937. test $ac_status = 0; }; then
  22938. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  22939. test "x$?" != "x0" && pkg_failed=yes
  22940. else
  22941. pkg_failed=yes
  22942. fi
  22943. else
  22944. pkg_failed=untried
  22945. fi
  22946. if test -n "$IBUS_LIBS"; then
  22947. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  22948. elif test -n "$PKG_CONFIG"; then
  22949. if test -n "$PKG_CONFIG" && \
  22950. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  22951. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  22952. ac_status=$?
  22953. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22954. test $ac_status = 0; }; then
  22955. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  22956. test "x$?" != "x0" && pkg_failed=yes
  22957. else
  22958. pkg_failed=yes
  22959. fi
  22960. else
  22961. pkg_failed=untried
  22962. fi
  22963. if test $pkg_failed = yes; then
  22964. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22965. printf "%s\n" "no" >&6; }
  22966. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22967. _pkg_short_errors_supported=yes
  22968. else
  22969. _pkg_short_errors_supported=no
  22970. fi
  22971. if test $_pkg_short_errors_supported = yes; then
  22972. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  22973. else
  22974. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  22975. fi
  22976. # Put the nasty error message in config.log where it belongs
  22977. echo "$IBUS_PKG_ERRORS" >&5
  22978. have_ibus=no
  22979. elif test $pkg_failed = untried; then
  22980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22981. printf "%s\n" "no" >&6; }
  22982. have_ibus=no
  22983. else
  22984. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  22985. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  22986. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22987. printf "%s\n" "yes" >&6; }
  22988. have_ibus=yes
  22989. fi
  22990. save_CPPFLAGS="$CPPFLAGS"
  22991. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  22992. ac_fn_c_check_header_compile "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  22993. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes
  22994. then :
  22995. have_ibus_ibus_h_hdr=yes
  22996. else $as_nop
  22997. have_ibus_ibus_h_hdr=no
  22998. fi
  22999. CPPFLAGS="$save_CPPFLAGS"
  23000. if test x$have_ibus_ibus_h_hdr = xyes; then
  23001. if test x$enable_ime != xyes; then
  23002. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  23003. printf "%s\n" "$as_me: WARNING: IME support is required for IBus." >&2;}
  23004. have_ibus_ibus_h_hdr=no
  23005. elif test x$enable_dbus != xyes; then
  23006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  23007. printf "%s\n" "$as_me: WARNING: DBus support is required for IBus." >&2;}
  23008. have_ibus_ibus_h_hdr=no
  23009. elif test x$have_inotify_inotify_h_hdr != xyes; then
  23010. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  23011. printf "%s\n" "$as_me: WARNING: INotify support is required for IBus." >&2;}
  23012. have_ibus_ibus_h_hdr=no
  23013. else
  23014. printf "%s\n" "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  23015. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  23016. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  23017. fi
  23018. fi
  23019. fi
  23020. }
  23021. CheckFcitx()
  23022. {
  23023. # Check whether --enable-fcitx was given.
  23024. if test ${enable_fcitx+y}
  23025. then :
  23026. enableval=$enable_fcitx;
  23027. else $as_nop
  23028. enable_fcitx=yes
  23029. fi
  23030. if test x$enable_fcitx = xyes; then
  23031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  23032. printf %s "checking for fcitx support... " >&6; }
  23033. have_fcitx=no
  23034. if test x$enable_ime != xyes; then
  23035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  23036. printf "%s\n" "$as_me: WARNING: IME support is required for fcitx." >&2;}
  23037. elif test x$have_dbus_dbus_h_hdr != xyes; then
  23038. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  23039. printf "%s\n" "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  23040. else
  23041. have_fcitx=yes
  23042. printf "%s\n" "#define HAVE_FCITX 1" >>confdefs.h
  23043. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  23044. fi
  23045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  23046. printf "%s\n" "$have_fcitx" >&6; }
  23047. fi
  23048. }
  23049. CheckJoystickMFI()
  23050. {
  23051. # Check whether --enable-joystick-mfi was given.
  23052. if test ${enable_joystick_mfi+y}
  23053. then :
  23054. enableval=$enable_joystick_mfi;
  23055. else $as_nop
  23056. enable_joystick_mfi=yes
  23057. fi
  23058. if test x$enable_joystick_mfi = xyes; then
  23059. save_CFLAGS="$CFLAGS"
  23060. save_LDFLAGS="$LDFLAGS"
  23061. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  23062. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  23064. printf %s "checking for GameController framework... " >&6; }
  23065. enable_joystick_mfi=no
  23066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23067. /* end confdefs.h. */
  23068. #include <AvailabilityMacros.h>
  23069. #include <TargetConditionals.h>
  23070. #import <GameController/GameController.h>
  23071. int
  23072. main (void)
  23073. {
  23074. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  23075. #error GameController framework doesn't work on this configuration
  23076. #endif
  23077. #if TARGET_CPU_X86
  23078. #error GameController framework doesn't work on this configuration
  23079. #endif
  23080. ;
  23081. return 0;
  23082. }
  23083. _ACEOF
  23084. if ac_fn_c_try_link "$LINENO"
  23085. then :
  23086. enable_joystick_mfi=yes
  23087. fi
  23088. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23089. conftest$ac_exeext conftest.$ac_ext
  23090. CFLAGS="$save_CFLAGS"
  23091. LDFLAGS="$save_LDFLAGS"
  23092. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  23093. printf "%s\n" "$enable_joystick_mfi" >&6; }
  23094. if test x$enable_joystick_mfi = xyes; then
  23095. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  23096. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  23097. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23098. fi
  23099. fi
  23100. }
  23101. CheckPTHREAD()
  23102. {
  23103. case "$host" in
  23104. *-*-emscripten*)
  23105. enable_pthreads_default=no
  23106. ;;
  23107. *)
  23108. enable_pthreads_default=yes
  23109. ;;
  23110. esac
  23111. # Check whether --enable-pthreads was given.
  23112. if test ${enable_pthreads+y}
  23113. then :
  23114. enableval=$enable_pthreads;
  23115. else $as_nop
  23116. enable_pthreads=maybe
  23117. fi
  23118. # Check whether --enable-pthread-sem was given.
  23119. if test ${enable_pthread_sem+y}
  23120. then :
  23121. enableval=$enable_pthread_sem;
  23122. else $as_nop
  23123. enable_pthread_sem=maybe
  23124. fi
  23125. if test x$enable_pthreads = xmaybe; then
  23126. enable_pthreads=$enable_pthreads_default
  23127. fi
  23128. if test x$enable_pthread_sem = xmaybe; then
  23129. enable_pthread_sem=$enable_pthreads
  23130. fi
  23131. case "$host" in
  23132. *-*-android*)
  23133. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23134. pthread_lib=""
  23135. ;;
  23136. *-*-linux*|*-*-uclinux*)
  23137. pthread_cflags="-D_REENTRANT"
  23138. pthread_lib="-lpthread"
  23139. ;;
  23140. *-*-bsdi*)
  23141. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23142. pthread_lib=""
  23143. ;;
  23144. *-*-darwin*)
  23145. pthread_cflags="-D_THREAD_SAFE"
  23146. # causes Carbon.p complaints?
  23147. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23148. ;;
  23149. *-*-freebsd*|*-*-dragonfly*)
  23150. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23151. pthread_lib="-pthread"
  23152. ;;
  23153. *-*-netbsd*)
  23154. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23155. pthread_lib="-lpthread"
  23156. ;;
  23157. *-*-openbsd*)
  23158. pthread_cflags="-D_REENTRANT"
  23159. pthread_lib="-lpthread"
  23160. ;;
  23161. *-*-solaris2.9)
  23162. # From Solaris 9+, posix4's preferred name is rt.
  23163. pthread_cflags="-D_REENTRANT"
  23164. pthread_lib="-lpthread -lrt"
  23165. ;;
  23166. *-*-solaris2.10)
  23167. # Solaris 10+ merged pthread into libc.
  23168. pthread_cflags="-D_REENTRANT"
  23169. pthread_lib="-lrt"
  23170. ;;
  23171. *-*-solaris*)
  23172. # Solaris 11+ merged rt into libc.
  23173. pthread_cflags="-D_REENTRANT"
  23174. pthread_lib=""
  23175. ;;
  23176. *-*-sysv5*)
  23177. pthread_cflags="-D_REENTRANT -Kthread"
  23178. pthread_lib=""
  23179. ;;
  23180. *-*-aix*)
  23181. pthread_cflags="-D_REENTRANT -mthreads"
  23182. pthread_lib="-lpthread"
  23183. ;;
  23184. *-*-hpux11*)
  23185. pthread_cflags="-D_REENTRANT"
  23186. pthread_lib="-L/usr/lib -lpthread"
  23187. ;;
  23188. *-*-haiku*)
  23189. pthread_cflags="-D_REENTRANT"
  23190. pthread_lib=""
  23191. ;;
  23192. *-*-nto*)
  23193. pthread_cflags="-D_REENTRANT"
  23194. pthread_lib=""
  23195. ;;
  23196. *-*-emscripten*)
  23197. pthread_cflags="-D_REENTRANT -pthread"
  23198. pthread_lib="-pthread"
  23199. ;;
  23200. *)
  23201. pthread_cflags="-D_REENTRANT"
  23202. pthread_lib="-lpthread"
  23203. ;;
  23204. esac
  23205. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  23206. # Save the original compiler flags and libraries
  23207. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23208. # Add the pthread compiler flags and libraries
  23209. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23210. # Check to see if we have pthread support on this system
  23211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  23212. printf %s "checking for pthreads... " >&6; }
  23213. use_pthreads=no
  23214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23215. /* end confdefs.h. */
  23216. #include <pthread.h>
  23217. int
  23218. main (void)
  23219. {
  23220. pthread_attr_t type;
  23221. pthread_attr_init(&type);
  23222. ;
  23223. return 0;
  23224. }
  23225. _ACEOF
  23226. if ac_fn_c_try_link "$LINENO"
  23227. then :
  23228. use_pthreads=yes
  23229. fi
  23230. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23231. conftest$ac_exeext conftest.$ac_ext
  23232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  23233. printf "%s\n" "$use_pthreads" >&6; }
  23234. # Restore the compiler flags and libraries
  23235. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23236. # Do futher testing if we have pthread support...
  23237. if test x$use_pthreads = xyes; then
  23238. printf "%s\n" "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  23239. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  23240. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  23241. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  23242. # Save the original compiler flags and libraries
  23243. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23244. # Add the pthread compiler flags and libraries
  23245. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23246. # Check to see if recursive mutexes are available
  23247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  23248. printf %s "checking for recursive mutexes... " >&6; }
  23249. has_recursive_mutexes=no
  23250. if test x$has_recursive_mutexes = xno; then
  23251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23252. /* end confdefs.h. */
  23253. #define _GNU_SOURCE 1
  23254. #include <pthread.h>
  23255. int
  23256. main (void)
  23257. {
  23258. pthread_mutexattr_t attr;
  23259. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  23260. ;
  23261. return 0;
  23262. }
  23263. _ACEOF
  23264. if ac_fn_c_try_link "$LINENO"
  23265. then :
  23266. has_recursive_mutexes=yes
  23267. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  23268. fi
  23269. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23270. conftest$ac_exeext conftest.$ac_ext
  23271. fi
  23272. if test x$has_recursive_mutexes = xno; then
  23273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23274. /* end confdefs.h. */
  23275. #define _GNU_SOURCE 1
  23276. #include <pthread.h>
  23277. int
  23278. main (void)
  23279. {
  23280. pthread_mutexattr_t attr;
  23281. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  23282. ;
  23283. return 0;
  23284. }
  23285. _ACEOF
  23286. if ac_fn_c_try_link "$LINENO"
  23287. then :
  23288. has_recursive_mutexes=yes
  23289. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  23290. fi
  23291. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23292. conftest$ac_exeext conftest.$ac_ext
  23293. fi
  23294. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  23295. printf "%s\n" "$has_recursive_mutexes" >&6; }
  23296. # Check to see if pthread semaphore support is missing
  23297. if test x$enable_pthread_sem = xyes; then
  23298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  23299. printf %s "checking for pthread semaphores... " >&6; }
  23300. have_pthread_sem=no
  23301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23302. /* end confdefs.h. */
  23303. #include <pthread.h>
  23304. #include <semaphore.h>
  23305. int
  23306. main (void)
  23307. {
  23308. ;
  23309. return 0;
  23310. }
  23311. _ACEOF
  23312. if ac_fn_c_try_compile "$LINENO"
  23313. then :
  23314. have_pthread_sem=yes
  23315. fi
  23316. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  23318. printf "%s\n" "$have_pthread_sem" >&6; }
  23319. fi
  23320. if test x$have_pthread_sem = xyes; then
  23321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  23322. printf %s "checking for sem_timedwait... " >&6; }
  23323. have_sem_timedwait=no
  23324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23325. /* end confdefs.h. */
  23326. #include <pthread.h>
  23327. #include <semaphore.h>
  23328. int
  23329. main (void)
  23330. {
  23331. sem_timedwait(NULL, NULL);
  23332. ;
  23333. return 0;
  23334. }
  23335. _ACEOF
  23336. if ac_fn_c_try_link "$LINENO"
  23337. then :
  23338. have_sem_timedwait=yes
  23339. printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  23340. fi
  23341. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23342. conftest$ac_exeext conftest.$ac_ext
  23343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  23344. printf "%s\n" "$have_sem_timedwait" >&6; }
  23345. fi
  23346. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  23347. "
  23348. if test "x$ac_cv_header_pthread_np_h" = xyes
  23349. then :
  23350. have_pthread_np_h=yes
  23351. else $as_nop
  23352. have_pthread_np_h=no
  23353. fi
  23354. if test x$have_pthread_np_h = xyes; then
  23355. printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  23356. fi
  23357. # Check to see if pthread naming is available
  23358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  23359. printf %s "checking for pthread_setname_np... " >&6; }
  23360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23361. /* end confdefs.h. */
  23362. /* Override any GCC internal prototype to avoid an error.
  23363. Use char because int might match the return type of a GCC
  23364. builtin and then its argument prototype would still apply. */
  23365. char pthread_setname_np ();
  23366. int
  23367. main (void)
  23368. {
  23369. return pthread_setname_np ();
  23370. ;
  23371. return 0;
  23372. }
  23373. _ACEOF
  23374. if ac_fn_c_try_link "$LINENO"
  23375. then :
  23376. has_pthread_setname_np=yes
  23377. printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  23378. else $as_nop
  23379. has_pthread_setname_np=no
  23380. fi
  23381. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23382. conftest$ac_exeext conftest.$ac_ext
  23383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  23384. printf "%s\n" "$has_pthread_setname_np" >&6; }
  23385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  23386. printf %s "checking for pthread_set_name_np... " >&6; }
  23387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23388. /* end confdefs.h. */
  23389. /* Override any GCC internal prototype to avoid an error.
  23390. Use char because int might match the return type of a GCC
  23391. builtin and then its argument prototype would still apply. */
  23392. char pthread_set_name_np ();
  23393. int
  23394. main (void)
  23395. {
  23396. return pthread_set_name_np ();
  23397. ;
  23398. return 0;
  23399. }
  23400. _ACEOF
  23401. if ac_fn_c_try_link "$LINENO"
  23402. then :
  23403. has_pthread_set_name_np=yes
  23404. printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  23405. else $as_nop
  23406. has_pthread_set_name_np=no
  23407. fi
  23408. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23409. conftest$ac_exeext conftest.$ac_ext
  23410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  23411. printf "%s\n" "$has_pthread_set_name_np" >&6; }
  23412. # Restore the compiler flags and libraries
  23413. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23414. # Basic thread creation functions
  23415. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  23416. # Semaphores
  23417. # We can fake these with mutexes and condition variables if necessary
  23418. if test x$have_pthread_sem = xyes; then
  23419. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  23420. else
  23421. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  23422. fi
  23423. # Mutexes
  23424. # We can fake these with semaphores if necessary
  23425. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  23426. # Condition variables
  23427. # We can fake these with semaphores and mutexes if necessary
  23428. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  23429. # Thread local storage
  23430. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  23431. have_threads=yes
  23432. fi
  23433. fi
  23434. }
  23435. CheckWINDOWS()
  23436. {
  23437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  23438. printf %s "checking Windows compiler... " >&6; }
  23439. have_win32_gcc=no
  23440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23441. /* end confdefs.h. */
  23442. #include <windows.h>
  23443. int
  23444. main (void)
  23445. {
  23446. ;
  23447. return 0;
  23448. }
  23449. _ACEOF
  23450. if ac_fn_c_try_compile "$LINENO"
  23451. then :
  23452. have_win32_gcc=yes
  23453. fi
  23454. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  23456. printf "%s\n" "$have_win32_gcc" >&6; }
  23457. if test x$have_win32_gcc != xyes; then
  23458. as_fn_error $? "
  23459. *** Your compiler ($CC) does not produce Windows executables!
  23460. " "$LINENO" 5
  23461. fi
  23462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  23463. printf %s "checking Windows CE... " >&6; }
  23464. have_wince=no
  23465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23466. /* end confdefs.h. */
  23467. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  23468. #error This is not Windows CE
  23469. #endif
  23470. int
  23471. main (void)
  23472. {
  23473. ;
  23474. return 0;
  23475. }
  23476. _ACEOF
  23477. if ac_fn_c_try_compile "$LINENO"
  23478. then :
  23479. have_wince=yes
  23480. as_fn_error $? "
  23481. *** Sorry, Windows CE is no longer supported.
  23482. " "$LINENO" 5
  23483. fi
  23484. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23485. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  23486. printf "%s\n" "$have_wince" >&6; }
  23487. # This fixes Windows stack alignment with newer GCC
  23488. CheckStackBoundary
  23489. # headers needed elsewhere
  23490. ac_fn_c_check_header_compile "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  23491. if test "x$ac_cv_header_tpcshrd_h" = xyes
  23492. then :
  23493. have_tpcshrd_h=yes
  23494. fi
  23495. if test x$have_tpcshrd_h = xyes; then
  23496. printf "%s\n" "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  23497. fi
  23498. ac_fn_c_check_header_compile "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  23499. if test "x$ac_cv_header_roapi_h" = xyes
  23500. then :
  23501. have_roapi_h=yes
  23502. fi
  23503. if test x$have_roapi_h = xyes; then
  23504. printf "%s\n" "#define HAVE_ROAPI_H 1" >>confdefs.h
  23505. fi
  23506. ac_fn_c_check_header_compile "$LINENO" "shellscalingapi.h" "ac_cv_header_shellscalingapi_h" "$ac_includes_default"
  23507. if test "x$ac_cv_header_shellscalingapi_h" = xyes
  23508. then :
  23509. have_shellscalingapi_h=yes
  23510. fi
  23511. if test x$shellscalingapi_h = xyes; then
  23512. printf "%s\n" "#define HAVE_SHELLSCALINGAPI_H 1" >>confdefs.h
  23513. fi
  23514. }
  23515. CheckOS2()
  23516. {
  23517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  23518. printf %s "checking OS/2 compiler... " >&6; }
  23519. have_os2_gcc=no
  23520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23521. /* end confdefs.h. */
  23522. #include <os2.h>
  23523. int
  23524. main (void)
  23525. {
  23526. ;
  23527. return 0;
  23528. }
  23529. _ACEOF
  23530. if ac_fn_c_try_compile "$LINENO"
  23531. then :
  23532. have_os2_gcc=yes
  23533. fi
  23534. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  23536. printf "%s\n" "$have_os2_gcc" >&6; }
  23537. if test x$have_os2_gcc != xyes; then
  23538. as_fn_error $? "
  23539. *** Your compiler ($CC) does not produce OS/2 executables!
  23540. " "$LINENO" 5
  23541. fi
  23542. }
  23543. CheckDIRECTX()
  23544. {
  23545. # Check whether --enable-directx was given.
  23546. if test ${enable_directx+y}
  23547. then :
  23548. enableval=$enable_directx;
  23549. else $as_nop
  23550. enable_directx=yes
  23551. fi
  23552. if test x$enable_directx = xyes; then
  23553. ac_fn_c_check_header_compile "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  23554. if test "x$ac_cv_header_d3d9_h" = xyes
  23555. then :
  23556. have_d3d=yes
  23557. fi
  23558. ac_fn_c_check_header_compile "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  23559. if test "x$ac_cv_header_d3d11_1_h" = xyes
  23560. then :
  23561. have_d3d11=yes
  23562. fi
  23563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for d3d12 Windows SDK version" >&5
  23564. printf %s "checking for d3d12 Windows SDK version... " >&6; }
  23565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23566. /* end confdefs.h. */
  23567. #include <winsdkver.h>
  23568. #include <sdkddkver.h>
  23569. #include <d3d12.h>
  23570. ID3D12Device1 *device;
  23571. #if WDK_NTDDI_VERSION <= 0x0A000008
  23572. asdf
  23573. #endif
  23574. int
  23575. main (void)
  23576. {
  23577. ;
  23578. return 0;
  23579. }
  23580. _ACEOF
  23581. if ac_fn_c_try_compile "$LINENO"
  23582. then :
  23583. have_d3d12=yes
  23584. else $as_nop
  23585. have_d3d12=no
  23586. fi
  23587. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23588. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_d3d12" >&5
  23589. printf "%s\n" "$have_d3d12" >&6; }
  23590. ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  23591. if test "x$ac_cv_header_ddraw_h" = xyes
  23592. then :
  23593. have_ddraw=yes
  23594. fi
  23595. ac_fn_c_check_header_compile "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  23596. if test "x$ac_cv_header_dsound_h" = xyes
  23597. then :
  23598. have_dsound=yes
  23599. fi
  23600. ac_fn_c_check_header_compile "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  23601. if test "x$ac_cv_header_dinput_h" = xyes
  23602. then :
  23603. have_dinput=yes
  23604. fi
  23605. ac_fn_c_check_header_compile "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  23606. if test "x$ac_cv_header_dxgi_h" = xyes
  23607. then :
  23608. have_dxgi=yes
  23609. fi
  23610. if test x$have_ddraw = xyes; then
  23611. printf "%s\n" "#define HAVE_DDRAW_H 1" >>confdefs.h
  23612. fi
  23613. if test x$have_dinput = xyes; then
  23614. printf "%s\n" "#define HAVE_DINPUT_H 1" >>confdefs.h
  23615. fi
  23616. if test x$have_dsound = xyes; then
  23617. printf "%s\n" "#define HAVE_DSOUND_H 1" >>confdefs.h
  23618. fi
  23619. if test x$have_dxgi = xyes; then
  23620. printf "%s\n" "#define HAVE_DXGI_H 1" >>confdefs.h
  23621. fi
  23622. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  23623. # FIXME: ...so force it off for now.
  23624. case "$host" in
  23625. *-*-cygwin*)
  23626. have_dinput=false
  23627. ;;
  23628. esac
  23629. fi
  23630. # Check whether --enable-xinput was given.
  23631. if test ${enable_xinput+y}
  23632. then :
  23633. enableval=$enable_xinput;
  23634. else $as_nop
  23635. enable_xinput=yes
  23636. fi
  23637. if test x$enable_xinput = xyes; then
  23638. have_xinput_gamepadex=no
  23639. have_xinput_stateex=no
  23640. ac_fn_c_check_header_compile "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  23641. if test "x$ac_cv_header_xinput_h" = xyes
  23642. then :
  23643. have_xinput=yes
  23644. fi
  23645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  23646. printf %s "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  23647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23648. /* end confdefs.h. */
  23649. #include <windows.h>
  23650. #include <xinput.h>
  23651. XINPUT_GAMEPAD_EX x1;
  23652. int
  23653. main (void)
  23654. {
  23655. ;
  23656. return 0;
  23657. }
  23658. _ACEOF
  23659. if ac_fn_c_try_compile "$LINENO"
  23660. then :
  23661. have_xinput_gamepadex=yes
  23662. fi
  23663. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  23665. printf "%s\n" "$have_xinput_gamepadex" >&6; }
  23666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  23667. printf %s "checking for struct XINPUT_STATE_EX... " >&6; }
  23668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23669. /* end confdefs.h. */
  23670. #include <windows.h>
  23671. #include <xinput.h>
  23672. XINPUT_STATE_EX s1;
  23673. int
  23674. main (void)
  23675. {
  23676. ;
  23677. return 0;
  23678. }
  23679. _ACEOF
  23680. if ac_fn_c_try_compile "$LINENO"
  23681. then :
  23682. have_xinput_stateex=yes
  23683. fi
  23684. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  23686. printf "%s\n" "$have_xinput_stateex" >&6; }
  23687. if test x$have_xinput = xyes; then
  23688. printf "%s\n" "#define HAVE_XINPUT_H 1" >>confdefs.h
  23689. fi
  23690. if test x$have_xinput_gamepadex = xyes; then
  23691. printf "%s\n" "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  23692. fi
  23693. if test x$have_xinput_stateex = xyes; then
  23694. printf "%s\n" "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  23695. fi
  23696. fi
  23697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  23698. printf %s "checking for windows.gaming.input.h... " >&6; }
  23699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23700. /* end confdefs.h. */
  23701. #define COBJMACROS
  23702. #include <windows.gaming.input.h>
  23703. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  23704. int
  23705. main (void)
  23706. {
  23707. ;
  23708. return 0;
  23709. }
  23710. _ACEOF
  23711. if ac_fn_c_try_compile "$LINENO"
  23712. then :
  23713. have_wgi=yes
  23714. else $as_nop
  23715. have_wgi=no
  23716. fi
  23717. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  23719. printf "%s\n" "$have_wgi" >&6; }
  23720. if test x$have_wgi = xyes; then
  23721. printf "%s\n" "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  23722. fi
  23723. ac_fn_c_check_header_compile "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  23724. if test "x$ac_cv_header_mmdeviceapi_h" = xyes
  23725. then :
  23726. have_wasapi=yes
  23727. fi
  23728. if test x$have_wasapi = xyes; then
  23729. printf "%s\n" "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  23730. fi
  23731. ac_fn_c_check_header_compile "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  23732. if test "x$ac_cv_header_audioclient_h" = xyes
  23733. then :
  23734. else $as_nop
  23735. have_wasapi=no
  23736. fi
  23737. if test x$have_wasapi = xyes; then
  23738. printf "%s\n" "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  23739. fi
  23740. # Check whether --enable-wasapi was given.
  23741. if test ${enable_wasapi+y}
  23742. then :
  23743. enableval=$enable_wasapi;
  23744. else $as_nop
  23745. enable_wasapi=yes
  23746. fi
  23747. }
  23748. CheckDLOPEN()
  23749. {
  23750. printf "%s\n" "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  23751. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  23752. if test "x$ac_cv_header_dlfcn_h" = xyes
  23753. then :
  23754. have_dlfcn_h=yes
  23755. else $as_nop
  23756. have_dlfcn_h=no
  23757. fi
  23758. have_dlopen=no
  23759. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  23760. printf %s "checking for dlopen in -lc... " >&6; }
  23761. if test ${ac_cv_lib_c_dlopen+y}
  23762. then :
  23763. printf %s "(cached) " >&6
  23764. else $as_nop
  23765. ac_check_lib_save_LIBS=$LIBS
  23766. LIBS="-lc $LIBS"
  23767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23768. /* end confdefs.h. */
  23769. /* Override any GCC internal prototype to avoid an error.
  23770. Use char because int might match the return type of a GCC
  23771. builtin and then its argument prototype would still apply. */
  23772. char dlopen ();
  23773. int
  23774. main (void)
  23775. {
  23776. return dlopen ();
  23777. ;
  23778. return 0;
  23779. }
  23780. _ACEOF
  23781. if ac_fn_c_try_link "$LINENO"
  23782. then :
  23783. ac_cv_lib_c_dlopen=yes
  23784. else $as_nop
  23785. ac_cv_lib_c_dlopen=no
  23786. fi
  23787. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23788. conftest$ac_exeext conftest.$ac_ext
  23789. LIBS=$ac_check_lib_save_LIBS
  23790. fi
  23791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  23792. printf "%s\n" "$ac_cv_lib_c_dlopen" >&6; }
  23793. if test "x$ac_cv_lib_c_dlopen" = xyes
  23794. then :
  23795. have_dlopen=yes
  23796. else $as_nop
  23797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  23798. printf %s "checking for dlopen in -ldl... " >&6; }
  23799. if test ${ac_cv_lib_dl_dlopen+y}
  23800. then :
  23801. printf %s "(cached) " >&6
  23802. else $as_nop
  23803. ac_check_lib_save_LIBS=$LIBS
  23804. LIBS="-ldl $LIBS"
  23805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23806. /* end confdefs.h. */
  23807. /* Override any GCC internal prototype to avoid an error.
  23808. Use char because int might match the return type of a GCC
  23809. builtin and then its argument prototype would still apply. */
  23810. char dlopen ();
  23811. int
  23812. main (void)
  23813. {
  23814. return dlopen ();
  23815. ;
  23816. return 0;
  23817. }
  23818. _ACEOF
  23819. if ac_fn_c_try_link "$LINENO"
  23820. then :
  23821. ac_cv_lib_dl_dlopen=yes
  23822. else $as_nop
  23823. ac_cv_lib_dl_dlopen=no
  23824. fi
  23825. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23826. conftest$ac_exeext conftest.$ac_ext
  23827. LIBS=$ac_check_lib_save_LIBS
  23828. fi
  23829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  23830. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  23831. if test "x$ac_cv_lib_dl_dlopen" = xyes
  23832. then :
  23833. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  23834. fi
  23835. fi
  23836. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  23837. printf %s "checking for dlopen... " >&6; }
  23838. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  23839. printf "%s\n" "$have_dlopen" >&6; }
  23840. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  23841. printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
  23842. if test x$enable_loadso = xyes; then
  23843. printf "%s\n" "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  23844. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  23845. have_loadso=yes
  23846. fi
  23847. fi
  23848. }
  23849. CheckO_CLOEXEC()
  23850. {
  23851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  23852. printf %s "checking for O_CLOEXEC... " >&6; }
  23853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23854. /* end confdefs.h. */
  23855. #include <fcntl.h>
  23856. int flag = O_CLOEXEC;
  23857. int
  23858. main (void)
  23859. {
  23860. ;
  23861. return 0;
  23862. }
  23863. _ACEOF
  23864. if ac_fn_c_try_compile "$LINENO"
  23865. then :
  23866. have_o_cloexec=yes
  23867. else $as_nop
  23868. have_o_cloexec=no
  23869. fi
  23870. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23871. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  23872. printf "%s\n" "$have_o_cloexec" >&6; }
  23873. if test $have_o_cloexec = yes; then
  23874. printf "%s\n" "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  23875. fi
  23876. }
  23877. CheckUSBHID()
  23878. {
  23879. case "$host" in
  23880. *-*-*bsd*|*-*-dragonfly*)
  23881. if test x$enable_joystick = xyes; then
  23882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  23883. printf %s "checking for hid_init in -lusbhid... " >&6; }
  23884. if test ${ac_cv_lib_usbhid_hid_init+y}
  23885. then :
  23886. printf %s "(cached) " >&6
  23887. else $as_nop
  23888. ac_check_lib_save_LIBS=$LIBS
  23889. LIBS="-lusbhid $LIBS"
  23890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23891. /* end confdefs.h. */
  23892. /* Override any GCC internal prototype to avoid an error.
  23893. Use char because int might match the return type of a GCC
  23894. builtin and then its argument prototype would still apply. */
  23895. char hid_init ();
  23896. int
  23897. main (void)
  23898. {
  23899. return hid_init ();
  23900. ;
  23901. return 0;
  23902. }
  23903. _ACEOF
  23904. if ac_fn_c_try_link "$LINENO"
  23905. then :
  23906. ac_cv_lib_usbhid_hid_init=yes
  23907. else $as_nop
  23908. ac_cv_lib_usbhid_hid_init=no
  23909. fi
  23910. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23911. conftest$ac_exeext conftest.$ac_ext
  23912. LIBS=$ac_check_lib_save_LIBS
  23913. fi
  23914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  23915. printf "%s\n" "$ac_cv_lib_usbhid_hid_init" >&6; }
  23916. if test "x$ac_cv_lib_usbhid_hid_init" = xyes
  23917. then :
  23918. have_libusbhid=yes
  23919. fi
  23920. if test x$have_libusbhid = xyes; then
  23921. ac_fn_c_check_header_compile "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  23922. if test "x$ac_cv_header_usbhid_h" = xyes
  23923. then :
  23924. USB_CFLAGS="-DHAVE_USBHID_H"
  23925. fi
  23926. ac_fn_c_check_header_compile "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  23927. if test "x$ac_cv_header_libusbhid_h" = xyes
  23928. then :
  23929. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  23930. fi
  23931. USB_LIBS="$USB_LIBS -lusbhid"
  23932. else
  23933. ac_fn_c_check_header_compile "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  23934. if test "x$ac_cv_header_usb_h" = xyes
  23935. then :
  23936. USB_CFLAGS="-DHAVE_USB_H"
  23937. fi
  23938. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  23939. if test "x$ac_cv_header_libusb_h" = xyes
  23940. then :
  23941. USB_CFLAGS="-DHAVE_LIBUSB_H"
  23942. fi
  23943. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  23944. printf %s "checking for hid_init in -lusb... " >&6; }
  23945. if test ${ac_cv_lib_usb_hid_init+y}
  23946. then :
  23947. printf %s "(cached) " >&6
  23948. else $as_nop
  23949. ac_check_lib_save_LIBS=$LIBS
  23950. LIBS="-lusb $LIBS"
  23951. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23952. /* end confdefs.h. */
  23953. /* Override any GCC internal prototype to avoid an error.
  23954. Use char because int might match the return type of a GCC
  23955. builtin and then its argument prototype would still apply. */
  23956. char hid_init ();
  23957. int
  23958. main (void)
  23959. {
  23960. return hid_init ();
  23961. ;
  23962. return 0;
  23963. }
  23964. _ACEOF
  23965. if ac_fn_c_try_link "$LINENO"
  23966. then :
  23967. ac_cv_lib_usb_hid_init=yes
  23968. else $as_nop
  23969. ac_cv_lib_usb_hid_init=no
  23970. fi
  23971. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23972. conftest$ac_exeext conftest.$ac_ext
  23973. LIBS=$ac_check_lib_save_LIBS
  23974. fi
  23975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  23976. printf "%s\n" "$ac_cv_lib_usb_hid_init" >&6; }
  23977. if test "x$ac_cv_lib_usb_hid_init" = xyes
  23978. then :
  23979. USB_LIBS="$USB_LIBS -lusb"
  23980. fi
  23981. fi
  23982. save_CFLAGS="$CFLAGS"
  23983. CFLAGS="$CFLAGS $USB_CFLAGS"
  23984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  23985. printf %s "checking for usbhid... " >&6; }
  23986. have_usbhid=no
  23987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23988. /* end confdefs.h. */
  23989. #include <sys/types.h>
  23990. #if defined(HAVE_USB_H)
  23991. #include <usb.h>
  23992. #endif
  23993. #ifdef __DragonFly__
  23994. # include <bus/u4b/usb.h>
  23995. # include <bus/u4b/usbhid.h>
  23996. #else
  23997. # include <dev/usb/usb.h>
  23998. # include <dev/usb/usbhid.h>
  23999. #endif
  24000. #if defined(HAVE_USBHID_H)
  24001. #include <usbhid.h>
  24002. #elif defined(HAVE_LIBUSB_H)
  24003. #include <libusb.h>
  24004. #elif defined(HAVE_LIBUSBHID_H)
  24005. #include <libusbhid.h>
  24006. #endif
  24007. int
  24008. main (void)
  24009. {
  24010. struct report_desc *repdesc;
  24011. struct usb_ctl_report *repbuf;
  24012. hid_kind_t hidkind;
  24013. ;
  24014. return 0;
  24015. }
  24016. _ACEOF
  24017. if ac_fn_c_try_compile "$LINENO"
  24018. then :
  24019. have_usbhid=yes
  24020. fi
  24021. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  24023. printf "%s\n" "$have_usbhid" >&6; }
  24024. if test x$have_usbhid = xyes; then
  24025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  24026. printf %s "checking for ucr_data member of usb_ctl_report... " >&6; }
  24027. have_usbhid_ucr_data=no
  24028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24029. /* end confdefs.h. */
  24030. #include <sys/types.h>
  24031. #if defined(HAVE_USB_H)
  24032. #include <usb.h>
  24033. #endif
  24034. #ifdef __DragonFly__
  24035. # include <bus/u4b/usb.h>
  24036. # include <bus/u4b/usbhid.h>
  24037. #else
  24038. # include <dev/usb/usb.h>
  24039. # include <dev/usb/usbhid.h>
  24040. #endif
  24041. #if defined(HAVE_USBHID_H)
  24042. #include <usbhid.h>
  24043. #elif defined(HAVE_LIBUSB_H)
  24044. #include <libusb.h>
  24045. #elif defined(HAVE_LIBUSBHID_H)
  24046. #include <libusbhid.h>
  24047. #endif
  24048. int
  24049. main (void)
  24050. {
  24051. struct usb_ctl_report buf;
  24052. if (buf.ucr_data) { }
  24053. ;
  24054. return 0;
  24055. }
  24056. _ACEOF
  24057. if ac_fn_c_try_compile "$LINENO"
  24058. then :
  24059. have_usbhid_ucr_data=yes
  24060. fi
  24061. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24062. if test x$have_usbhid_ucr_data = xyes; then
  24063. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  24064. fi
  24065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  24066. printf "%s\n" "$have_usbhid_ucr_data" >&6; }
  24067. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  24068. printf %s "checking for new usbhid API... " >&6; }
  24069. have_usbhid_new=no
  24070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24071. /* end confdefs.h. */
  24072. #include <sys/types.h>
  24073. #if defined(HAVE_USB_H)
  24074. #include <usb.h>
  24075. #endif
  24076. #ifdef __DragonFly__
  24077. #include <bus/u4b/usb.h>
  24078. #include <bus/u4b/usbhid.h>
  24079. #else
  24080. #include <dev/usb/usb.h>
  24081. #include <dev/usb/usbhid.h>
  24082. #endif
  24083. #if defined(HAVE_USBHID_H)
  24084. #include <usbhid.h>
  24085. #elif defined(HAVE_LIBUSB_H)
  24086. #include <libusb.h>
  24087. #elif defined(HAVE_LIBUSBHID_H)
  24088. #include <libusbhid.h>
  24089. #endif
  24090. int
  24091. main (void)
  24092. {
  24093. report_desc_t d;
  24094. hid_start_parse(d, 1, 1);
  24095. ;
  24096. return 0;
  24097. }
  24098. _ACEOF
  24099. if ac_fn_c_try_compile "$LINENO"
  24100. then :
  24101. have_usbhid_new=yes
  24102. fi
  24103. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24104. if test x$have_usbhid_new = xyes; then
  24105. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  24106. fi
  24107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  24108. printf "%s\n" "$have_usbhid_new" >&6; }
  24109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  24110. printf %s "checking for struct joystick in machine/joystick.h... " >&6; }
  24111. have_machine_joystick=no
  24112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24113. /* end confdefs.h. */
  24114. #include <machine/joystick.h>
  24115. int
  24116. main (void)
  24117. {
  24118. struct joystick t;
  24119. ;
  24120. return 0;
  24121. }
  24122. _ACEOF
  24123. if ac_fn_c_try_compile "$LINENO"
  24124. then :
  24125. have_machine_joystick=yes
  24126. fi
  24127. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24128. if test x$have_machine_joystick = xyes; then
  24129. printf "%s\n" "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  24130. fi
  24131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  24132. printf "%s\n" "$have_machine_joystick" >&6; }
  24133. printf "%s\n" "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  24134. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  24135. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  24136. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  24137. have_joystick=yes
  24138. fi
  24139. CFLAGS="$save_CFLAGS"
  24140. fi
  24141. ;;
  24142. esac
  24143. }
  24144. CheckHIDAPI()
  24145. {
  24146. # Check whether --enable-hidapi-joystick was given.
  24147. if test ${enable_hidapi_joystick+y}
  24148. then :
  24149. enableval=$enable_hidapi_joystick;
  24150. else $as_nop
  24151. enable_hidapi_joystick=yes
  24152. fi
  24153. # Check whether --enable-hidapi-libusb was given.
  24154. if test ${enable_hidapi_libusb+y}
  24155. then :
  24156. enableval=$enable_hidapi_libusb;
  24157. else $as_nop
  24158. enable_hidapi_libusb=maybe
  24159. fi
  24160. if test x$enable_hidapi = xyes; then
  24161. case "$host" in
  24162. # libusb does not support iOS
  24163. *-ios-* )
  24164. enable_hidapi_libusb=no
  24165. ;;
  24166. # On the other hand, *BSD specifically uses libusb only
  24167. *-*-*bsd* )
  24168. enable_hidapi_libusb=yes
  24169. require_hidapi_libusb=yes
  24170. ;;
  24171. *-*-os2* )
  24172. enable_hidapi_libusb=yes
  24173. ;;
  24174. esac
  24175. hidapi_support=yes
  24176. if test x$enable_hidapi_libusb = xyes; then
  24177. pkg_failed=no
  24178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  24179. printf %s "checking for libusb-1.0... " >&6; }
  24180. if test -n "$LIBUSB_CFLAGS"; then
  24181. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  24182. elif test -n "$PKG_CONFIG"; then
  24183. if test -n "$PKG_CONFIG" && \
  24184. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24185. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24186. ac_status=$?
  24187. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24188. test $ac_status = 0; }; then
  24189. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  24190. test "x$?" != "x0" && pkg_failed=yes
  24191. else
  24192. pkg_failed=yes
  24193. fi
  24194. else
  24195. pkg_failed=untried
  24196. fi
  24197. if test -n "$LIBUSB_LIBS"; then
  24198. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  24199. elif test -n "$PKG_CONFIG"; then
  24200. if test -n "$PKG_CONFIG" && \
  24201. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24202. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24203. ac_status=$?
  24204. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24205. test $ac_status = 0; }; then
  24206. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  24207. test "x$?" != "x0" && pkg_failed=yes
  24208. else
  24209. pkg_failed=yes
  24210. fi
  24211. else
  24212. pkg_failed=untried
  24213. fi
  24214. if test $pkg_failed = yes; then
  24215. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24216. printf "%s\n" "no" >&6; }
  24217. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24218. _pkg_short_errors_supported=yes
  24219. else
  24220. _pkg_short_errors_supported=no
  24221. fi
  24222. if test $_pkg_short_errors_supported = yes; then
  24223. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24224. else
  24225. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24226. fi
  24227. # Put the nasty error message in config.log where it belongs
  24228. echo "$LIBUSB_PKG_ERRORS" >&5
  24229. have_libusb=no
  24230. elif test $pkg_failed = untried; then
  24231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24232. printf "%s\n" "no" >&6; }
  24233. have_libusb=no
  24234. else
  24235. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  24236. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  24237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24238. printf "%s\n" "yes" >&6; }
  24239. have_libusb=yes
  24240. fi
  24241. save_CPPFLAGS="$CPPFLAGS"
  24242. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  24243. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24244. if test "x$ac_cv_header_libusb_h" = xyes
  24245. then :
  24246. have_libusb_h=yes
  24247. else $as_nop
  24248. have_libusb_h=no
  24249. fi
  24250. CPPFLAGS="$save_CPPFLAGS"
  24251. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  24252. hidapi_support=no
  24253. fi
  24254. fi
  24255. if test x$hidapi_support = xyes; then
  24256. if test x$have_libusb_h = xyes; then
  24257. printf "%s\n" "#define HAVE_LIBUSB 1" >>confdefs.h
  24258. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  24259. if test x$require_hidapi_libusb = xyes; then
  24260. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  24261. else
  24262. if test x$have_loadso != xyes; then
  24263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  24264. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  24265. fi
  24266. # libusb is loaded dynamically, so don't add it to LDFLAGS
  24267. libusb_lib=""
  24268. case "$host" in
  24269. *-*-darwin* )
  24270. libusb_lib="libusb-1.0.0.dylib"
  24271. ;;
  24272. *-*-cygwin* | *-*-mingw* )
  24273. libusb_lib="libusb-1.0.dll"
  24274. ;;
  24275. *-*-os2* )
  24276. libusb_lib="usb100.dll"
  24277. ;;
  24278. esac
  24279. if test x$libusb_lib = x; then
  24280. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  24281. fi
  24282. printf "%s\n" "#define SDL_LIBUSB_DYNAMIC \"$libusb_lib\"" >>confdefs.h
  24283. fi
  24284. fi
  24285. fi
  24286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  24287. printf %s "checking for hidapi joystick support... " >&6; }
  24288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  24289. printf "%s\n" "$hidapi_support" >&6; }
  24290. fi
  24291. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  24292. printf "%s\n" "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  24293. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  24294. fi
  24295. }
  24296. CheckClockGettime()
  24297. {
  24298. # Check whether --enable-clock_gettime was given.
  24299. if test ${enable_clock_gettime+y}
  24300. then :
  24301. enableval=$enable_clock_gettime;
  24302. else $as_nop
  24303. enable_clock_gettime=yes
  24304. fi
  24305. if test x$enable_clock_gettime = xyes; then
  24306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  24307. printf %s "checking for clock_gettime in -lrt... " >&6; }
  24308. if test ${ac_cv_lib_rt_clock_gettime+y}
  24309. then :
  24310. printf %s "(cached) " >&6
  24311. else $as_nop
  24312. ac_check_lib_save_LIBS=$LIBS
  24313. LIBS="-lrt $LIBS"
  24314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24315. /* end confdefs.h. */
  24316. /* Override any GCC internal prototype to avoid an error.
  24317. Use char because int might match the return type of a GCC
  24318. builtin and then its argument prototype would still apply. */
  24319. char clock_gettime ();
  24320. int
  24321. main (void)
  24322. {
  24323. return clock_gettime ();
  24324. ;
  24325. return 0;
  24326. }
  24327. _ACEOF
  24328. if ac_fn_c_try_link "$LINENO"
  24329. then :
  24330. ac_cv_lib_rt_clock_gettime=yes
  24331. else $as_nop
  24332. ac_cv_lib_rt_clock_gettime=no
  24333. fi
  24334. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24335. conftest$ac_exeext conftest.$ac_ext
  24336. LIBS=$ac_check_lib_save_LIBS
  24337. fi
  24338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  24339. printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
  24340. if test "x$ac_cv_lib_rt_clock_gettime" = xyes
  24341. then :
  24342. have_clock_gettime=yes
  24343. fi
  24344. if test x$have_clock_gettime = xyes; then
  24345. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24346. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  24347. else
  24348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  24349. printf %s "checking for clock_gettime in -lc... " >&6; }
  24350. if test ${ac_cv_lib_c_clock_gettime+y}
  24351. then :
  24352. printf %s "(cached) " >&6
  24353. else $as_nop
  24354. ac_check_lib_save_LIBS=$LIBS
  24355. LIBS="-lc $LIBS"
  24356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24357. /* end confdefs.h. */
  24358. /* Override any GCC internal prototype to avoid an error.
  24359. Use char because int might match the return type of a GCC
  24360. builtin and then its argument prototype would still apply. */
  24361. char clock_gettime ();
  24362. int
  24363. main (void)
  24364. {
  24365. return clock_gettime ();
  24366. ;
  24367. return 0;
  24368. }
  24369. _ACEOF
  24370. if ac_fn_c_try_link "$LINENO"
  24371. then :
  24372. ac_cv_lib_c_clock_gettime=yes
  24373. else $as_nop
  24374. ac_cv_lib_c_clock_gettime=no
  24375. fi
  24376. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24377. conftest$ac_exeext conftest.$ac_ext
  24378. LIBS=$ac_check_lib_save_LIBS
  24379. fi
  24380. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  24381. printf "%s\n" "$ac_cv_lib_c_clock_gettime" >&6; }
  24382. if test "x$ac_cv_lib_c_clock_gettime" = xyes
  24383. then :
  24384. have_clock_gettime=yes
  24385. fi
  24386. if test x$have_clock_gettime = xyes; then
  24387. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24388. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  24389. fi
  24390. fi
  24391. fi
  24392. }
  24393. CheckLinuxVersion()
  24394. {
  24395. ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  24396. if test "x$ac_cv_header_linux_version_h" = xyes
  24397. then :
  24398. have_linux_version_h=yes
  24399. fi
  24400. if test x$have_linux_version_h = xyes; then
  24401. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  24402. fi
  24403. }
  24404. CheckRPATH()
  24405. {
  24406. # Check whether --enable-rpath was given.
  24407. if test ${enable_rpath+y}
  24408. then :
  24409. enableval=$enable_rpath;
  24410. else $as_nop
  24411. enable_rpath=yes
  24412. fi
  24413. }
  24414. CheckEventSignals()
  24415. {
  24416. # Check whether --enable-backgrounding-signal was given.
  24417. if test ${enable_backgrounding_signal+y}
  24418. then :
  24419. enableval=$enable_backgrounding_signal;
  24420. else $as_nop
  24421. enable_backgrounding_signal=no
  24422. fi
  24423. if test x$enable_backgrounding_signal != xno; then
  24424. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  24425. fi
  24426. # Check whether --enable-foregrounding-signal was given.
  24427. if test ${enable_foregrounding_signal+y}
  24428. then :
  24429. enableval=$enable_foregrounding_signal;
  24430. else $as_nop
  24431. enable_foregrounding_signal=no
  24432. fi
  24433. if test x$enable_foregrounding_signal != xno; then
  24434. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  24435. fi
  24436. }
  24437. CheckVirtualJoystick()
  24438. {
  24439. # Check whether --enable-joystick-virtual was given.
  24440. if test ${enable_joystick_virtual+y}
  24441. then :
  24442. enableval=$enable_joystick_virtual;
  24443. else $as_nop
  24444. enable_joystick_virtual=yes
  24445. fi
  24446. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  24447. printf "%s\n" "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  24448. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  24449. have_joystick_virtual=yes
  24450. fi
  24451. }
  24452. CheckWarnAll
  24453. CheckNoStrictAliasing
  24454. CheckEventSignals
  24455. have_locale=no
  24456. case "$host" in
  24457. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  24458. case "$host" in
  24459. *-*-android*)
  24460. # Android
  24461. ARCH=android
  24462. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  24463. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  24464. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  24465. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  24466. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  24467. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  24468. if test x$enable_video = xyes; then
  24469. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  24470. printf "%s\n" "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  24471. SUMMARY_video="${SUMMARY_video} android"
  24472. have_video=yes
  24473. fi
  24474. ;;
  24475. *-*-linux*) ARCH=linux ;;
  24476. *-*-uclinux*) ARCH=linux ;;
  24477. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  24478. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  24479. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  24480. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  24481. *-*-bsdi*) ARCH=bsdi ;;
  24482. *-*-freebsd*) ARCH=freebsd ;;
  24483. *-*-dragonfly*) ARCH=freebsd ;;
  24484. *-*-netbsd*) ARCH=netbsd ;;
  24485. *-*-openbsd*) ARCH=openbsd ;;
  24486. *-*-sysv5*) ARCH=sysv5 ;;
  24487. *-*-solaris*) ARCH=solaris ;;
  24488. *-*-hpux*) ARCH=hpux ;;
  24489. *-*-aix*) ARCH=aix ;;
  24490. *-*-minix*) ARCH=minix ;;
  24491. *-*-nto*) ARCH=nto
  24492. CheckQNXVideo
  24493. ;;
  24494. esac
  24495. CheckVisibilityHidden
  24496. CheckWerror
  24497. CheckDeclarationAfterStatement
  24498. CheckDummyVideo
  24499. CheckOffscreenVideo
  24500. CheckDiskAudio
  24501. CheckDummyAudio
  24502. CheckDLOPEN
  24503. CheckARM
  24504. CheckNEON
  24505. CheckO_CLOEXEC
  24506. CheckOSS
  24507. CheckALSA
  24508. CheckPipewire
  24509. CheckPulseAudio
  24510. CheckJACK
  24511. CheckARTSC
  24512. CheckESD
  24513. CheckNAS
  24514. CheckSNDIO
  24515. CheckFusionSound
  24516. CheckLibSampleRate
  24517. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  24518. CheckRPI
  24519. CheckX11
  24520. CheckDirectFB
  24521. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  24522. CheckEGL
  24523. CheckKMSDRM
  24524. CheckGLX
  24525. CheckOpenGL
  24526. CheckOpenGLES
  24527. CheckVulkan
  24528. CheckWayland
  24529. CheckInputEvents
  24530. CheckLibUDev
  24531. CheckDBus
  24532. CheckIME
  24533. CheckInotify
  24534. CheckIBus
  24535. CheckFcitx
  24536. case $ARCH in
  24537. linux)
  24538. CheckInputKD
  24539. ;;
  24540. freebsd)
  24541. CheckInputKBIO
  24542. ;;
  24543. openbsd|netbsd)
  24544. CheckInputWSCONS
  24545. ;;
  24546. esac
  24547. CheckUSBHID
  24548. CheckHIDAPI
  24549. CheckPTHREAD
  24550. CheckClockGettime
  24551. CheckLinuxVersion
  24552. CheckRPATH
  24553. CheckVivanteVideo
  24554. # Set up files for the misc library
  24555. if test x$enable_misc = xyes; then
  24556. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  24557. have_misc=yes
  24558. fi
  24559. # Set up files for the locale library
  24560. if test x$enable_locale = xyes; then
  24561. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  24562. have_locale=yes
  24563. fi
  24564. # Set up files for the audio library
  24565. if test x$enable_audio = xyes; then
  24566. case $ARCH in
  24567. sysv5|solaris|hpux)
  24568. printf "%s\n" "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  24569. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  24570. SUMMARY_audio="${SUMMARY_audio} sun"
  24571. have_audio=yes
  24572. ;;
  24573. netbsd) # Don't use this on OpenBSD, it's busted.
  24574. printf "%s\n" "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  24575. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  24576. SUMMARY_audio="${SUMMARY_audio} netbsd"
  24577. have_audio=yes
  24578. ;;
  24579. aix)
  24580. printf "%s\n" "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  24581. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  24582. SUMMARY_audio="${SUMMARY_audio} paudio"
  24583. have_audio=yes
  24584. ;;
  24585. android)
  24586. printf "%s\n" "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  24587. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  24588. SUMMARY_audio="${SUMMARY_audio} android"
  24589. printf "%s\n" "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  24590. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  24591. SUMMARY_audio="${SUMMARY_audio} openslES"
  24592. printf "%s\n" "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  24593. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  24594. SUMMARY_audio="${SUMMARY_audio} aaudio"
  24595. have_audio=yes
  24596. ;;
  24597. nto)
  24598. CheckQNXAudio
  24599. ;;
  24600. esac
  24601. fi
  24602. # Set up files for the joystick library
  24603. if test x$enable_joystick = xyes; then
  24604. case $ARCH in
  24605. linux)
  24606. if test "x$ac_cv_header_linux_input_h" = xyes; then
  24607. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24608. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24609. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24610. have_joystick=yes
  24611. fi
  24612. ;;
  24613. freebsd)
  24614. if test x$use_input_events = xyes -a x$ac_cv_header_linux_input_h = xyes; then
  24615. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24616. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24617. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24618. have_joystick=yes
  24619. fi
  24620. ;;
  24621. android)
  24622. printf "%s\n" "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  24623. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  24624. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24625. have_joystick=yes
  24626. ;;
  24627. esac
  24628. fi
  24629. # Set up files for the haptic library
  24630. if test x$enable_haptic = xyes; then
  24631. case $ARCH in
  24632. linux|freebsd)
  24633. if test x$use_input_events = xyes; then
  24634. printf "%s\n" "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  24635. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  24636. have_haptic=yes
  24637. fi
  24638. ;;
  24639. android)
  24640. printf "%s\n" "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  24641. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  24642. have_haptic=yes
  24643. ;;
  24644. esac
  24645. fi
  24646. # Set up files for the sensor library
  24647. if test x$enable_sensor = xyes; then
  24648. case $ARCH in
  24649. android)
  24650. printf "%s\n" "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  24651. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  24652. have_sensor=yes
  24653. ;;
  24654. esac
  24655. fi
  24656. # Set up files for the power library
  24657. if test x$enable_power = xyes; then
  24658. case $ARCH in
  24659. linux)
  24660. printf "%s\n" "#define SDL_POWER_LINUX 1" >>confdefs.h
  24661. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  24662. have_power=yes
  24663. ;;
  24664. android)
  24665. printf "%s\n" "#define SDL_POWER_ANDROID 1" >>confdefs.h
  24666. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  24667. have_power=yes
  24668. ;;
  24669. esac
  24670. fi
  24671. # Set up files for the filesystem library
  24672. if test x$enable_filesystem = xyes; then
  24673. case $ARCH in
  24674. android)
  24675. printf "%s\n" "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  24676. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  24677. have_filesystem=yes
  24678. ;;
  24679. *)
  24680. printf "%s\n" "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  24681. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  24682. have_filesystem=yes
  24683. ;;
  24684. esac
  24685. fi
  24686. # Set up files for the timer library
  24687. if test x$enable_timers = xyes; then
  24688. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24689. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24690. have_timers=yes
  24691. fi
  24692. # Set up files for udev hotplugging support
  24693. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  24694. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  24695. fi
  24696. # Set up files for evdev input
  24697. if test x$use_input_events = xyes; then
  24698. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  24699. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  24700. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  24701. fi
  24702. # Set up files for wscons input
  24703. if test x$use_input_wscons = xyes; then
  24704. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  24705. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  24706. fi
  24707. # Set up other core UNIX files
  24708. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  24709. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  24710. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_sandbox.c"
  24711. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24712. ;;
  24713. *-*-cygwin* | *-*-mingw*)
  24714. ARCH=win32
  24715. if test "$build" != "$host"; then # cross-compiling
  24716. # Default cross-compile location
  24717. ac_default_prefix=/usr/local/cross-tools/$host
  24718. else
  24719. # Look for the location of the tools and install there
  24720. if test "$BUILD_PREFIX" != ""; then
  24721. ac_default_prefix=$BUILD_PREFIX
  24722. fi
  24723. fi
  24724. if test x$enable_loadso = xyes; then
  24725. have_loadso=yes
  24726. fi
  24727. CheckGDwarf4
  24728. CheckWerror
  24729. CheckDeclarationAfterStatement
  24730. CheckDummyVideo
  24731. CheckOffscreenVideo
  24732. CheckDiskAudio
  24733. CheckDummyAudio
  24734. CheckWINDOWS
  24735. CheckWINDOWSGL
  24736. CheckWINDOWSGLES
  24737. CheckVulkan
  24738. CheckDIRECTX
  24739. CheckHIDAPI
  24740. # Set up the core platform files
  24741. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  24742. # Set up files for the misc library
  24743. if test x$enable_misc = xyes; then
  24744. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  24745. have_misc=yes
  24746. fi
  24747. # Use the Windows locale APIs.
  24748. if test x$enable_locale = xyes; then
  24749. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  24750. have_locale=yes
  24751. fi
  24752. # Set up files for the video library
  24753. if test x$enable_video = xyes; then
  24754. printf "%s\n" "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  24755. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  24756. have_video=yes
  24757. # Check whether --enable-render-d3d was given.
  24758. if test ${enable_render_d3d+y}
  24759. then :
  24760. enableval=$enable_render_d3d;
  24761. else $as_nop
  24762. enable_render_d3d=yes
  24763. fi
  24764. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  24765. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  24766. SUMMARY_video="${SUMMARY_video} d3d9"
  24767. fi
  24768. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  24769. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  24770. SUMMARY_video="${SUMMARY_video} d3d11"
  24771. fi
  24772. if test x$enable_render_d3d = xyes -a x$have_d3d12 = xyes; then
  24773. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D12 1" >>confdefs.h
  24774. SUMMARY_video="${SUMMARY_video} d3d12"
  24775. fi
  24776. fi
  24777. # Set up files for the audio library
  24778. if test x$enable_audio = xyes; then
  24779. printf "%s\n" "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  24780. SUMMARY_audio="${SUMMARY_audio} winmm"
  24781. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  24782. if test x$have_dsound = xyes; then
  24783. printf "%s\n" "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  24784. SUMMARY_audio="${SUMMARY_audio} directsound"
  24785. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  24786. fi
  24787. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  24788. printf "%s\n" "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  24789. SUMMARY_audio="${SUMMARY_audio} wasapi"
  24790. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  24791. fi
  24792. have_audio=yes
  24793. fi
  24794. # Set up files for the joystick library
  24795. if test x$enable_joystick = xyes; then
  24796. printf "%s\n" "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  24797. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  24798. if test x$have_xinput = xyes; then
  24799. printf "%s\n" "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  24800. fi
  24801. if test x$have_wgi = xyes; then
  24802. printf "%s\n" "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  24803. fi
  24804. if test x$have_dinput = xyes; then
  24805. printf "%s\n" "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  24806. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  24807. fi
  24808. fi
  24809. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  24810. have_joystick=yes
  24811. fi
  24812. if test x$enable_haptic = xyes; then
  24813. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  24814. if test x$have_xinput = xyes; then
  24815. printf "%s\n" "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  24816. fi
  24817. if test x$have_dinput = xyes; then
  24818. printf "%s\n" "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  24819. fi
  24820. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  24821. have_haptic=yes
  24822. fi
  24823. fi
  24824. # Set up files for the sensor library
  24825. ac_fn_c_check_header_compile "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  24826. if test "x$ac_cv_header_sensorsapi_h" = xyes
  24827. then :
  24828. have_winsensors=yes
  24829. else $as_nop
  24830. have_winsensors=no
  24831. fi
  24832. if test x$have_winsensors = xyes; then
  24833. printf "%s\n" "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  24834. fi
  24835. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  24836. printf "%s\n" "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  24837. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  24838. have_sensor=yes
  24839. fi
  24840. # Set up files for the power library
  24841. if test x$enable_power = xyes; then
  24842. printf "%s\n" "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  24843. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  24844. have_power=yes
  24845. fi
  24846. # Set up files for the filesystem library
  24847. if test x$enable_filesystem = xyes; then
  24848. printf "%s\n" "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  24849. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  24850. have_filesystem=yes
  24851. fi
  24852. # Set up files for the thread library
  24853. if test x$enable_threads = xyes; then
  24854. printf "%s\n" "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  24855. printf "%s\n" "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  24856. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  24857. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  24858. have_threads=yes
  24859. fi
  24860. # Set up files for the timer library
  24861. if test x$enable_timers = xyes; then
  24862. printf "%s\n" "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  24863. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  24864. have_timers=yes
  24865. fi
  24866. # Set up files for the shared object loading library
  24867. if test x$enable_loadso = xyes; then
  24868. printf "%s\n" "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  24869. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  24870. fi
  24871. # Set up the system libraries we need
  24872. if test -f /lib/w32api/libuuid.a; then
  24873. LIBUUID=/lib/w32api/libuuid.a
  24874. else
  24875. LIBUUID=-luuid
  24876. fi
  24877. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  24878. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  24879. # The Windows platform requires special setup
  24880. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  24881. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  24882. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  24883. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  24884. # Check to see if this is a mingw or cygwin build
  24885. have_mingw32=
  24886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  24887. printf %s "checking for main in -lmingw32... " >&6; }
  24888. if test ${ac_cv_lib_mingw32_main+y}
  24889. then :
  24890. printf %s "(cached) " >&6
  24891. else $as_nop
  24892. ac_check_lib_save_LIBS=$LIBS
  24893. LIBS="-lmingw32 $LIBS"
  24894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24895. /* end confdefs.h. */
  24896. int
  24897. main (void)
  24898. {
  24899. return main ();
  24900. ;
  24901. return 0;
  24902. }
  24903. _ACEOF
  24904. if ac_fn_c_try_link "$LINENO"
  24905. then :
  24906. ac_cv_lib_mingw32_main=yes
  24907. else $as_nop
  24908. ac_cv_lib_mingw32_main=no
  24909. fi
  24910. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24911. conftest$ac_exeext conftest.$ac_ext
  24912. LIBS=$ac_check_lib_save_LIBS
  24913. fi
  24914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  24915. printf "%s\n" "$ac_cv_lib_mingw32_main" >&6; }
  24916. if test "x$ac_cv_lib_mingw32_main" = xyes
  24917. then :
  24918. have_mingw32=yes
  24919. fi
  24920. if test x$have_mingw32 = xyes; then
  24921. SDL_LIBS="-lmingw32 $SDL_LIBS"
  24922. else
  24923. SDL_LIBS="-lcygwin $SDL_LIBS"
  24924. fi
  24925. ;;
  24926. *-*-beos*)
  24927. as_fn_error $? "
  24928. *** BeOS support has been removed as of SDL 2.0.2.
  24929. " "$LINENO" 5
  24930. ;;
  24931. *-*-haiku*)
  24932. ARCH=haiku
  24933. ac_default_prefix=/boot/system
  24934. CheckDummyVideo
  24935. CheckOffscreenVideo
  24936. CheckDiskAudio
  24937. CheckDummyAudio
  24938. CheckDLOPEN
  24939. CheckO_CLOEXEC
  24940. CheckHaikuVideo
  24941. CheckHaikuGL
  24942. CheckPTHREAD
  24943. # Set up files for the audio library
  24944. if test x$enable_audio = xyes; then
  24945. printf "%s\n" "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  24946. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  24947. SUMMARY_audio="${SUMMARY_audio} haiku"
  24948. have_audio=yes
  24949. fi
  24950. # Set up files for the joystick library
  24951. if test x$enable_joystick = xyes; then
  24952. printf "%s\n" "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  24953. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  24954. have_joystick=yes
  24955. fi
  24956. # Set up files for the timer library
  24957. if test x$enable_timers = xyes; then
  24958. printf "%s\n" "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  24959. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  24960. have_timers=yes
  24961. fi
  24962. # Set up files for the system power library
  24963. if test x$enable_power = xyes; then
  24964. printf "%s\n" "#define SDL_POWER_HAIKU 1" >>confdefs.h
  24965. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  24966. have_power=yes
  24967. fi
  24968. # Set up files for the system filesystem library
  24969. if test x$enable_filesystem = xyes; then
  24970. printf "%s\n" "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  24971. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  24972. have_filesystem=yes
  24973. fi
  24974. # Set up files for the misc library
  24975. if test x$enable_misc = xyes; then
  24976. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  24977. have_misc=yes
  24978. fi
  24979. # Set up files for the locale library
  24980. if test x$enable_locale = xyes; then
  24981. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  24982. have_locale=yes
  24983. fi
  24984. # The Haiku platform requires special setup.
  24985. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  24986. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  24987. ;;
  24988. *-ios-*)
  24989. ARCH=ios
  24990. CheckVisibilityHidden
  24991. CheckWerror
  24992. CheckNoErrorDeprecatedDeclarationsWerror
  24993. CheckDeclarationAfterStatement
  24994. CheckDummyVideo
  24995. CheckOffscreenVideo
  24996. CheckDiskAudio
  24997. CheckDummyAudio
  24998. CheckDLOPEN
  24999. CheckO_CLOEXEC
  25000. CheckMETAL
  25001. CheckVulkan
  25002. CheckPTHREAD
  25003. # Set up files for the misc library
  25004. if test x$enable_misc = xyes; then
  25005. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  25006. have_misc=yes
  25007. fi
  25008. # Set up files for the locale library
  25009. if test x$enable_locale = xyes; then
  25010. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25011. have_locale=yes
  25012. fi
  25013. # Set up files for the audio library
  25014. if test x$enable_audio = xyes; then
  25015. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25016. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25017. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25018. have_audio=yes
  25019. fi
  25020. # Set up files for the joystick library
  25021. if test x$enable_joystick = xyes; then
  25022. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  25023. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25024. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  25025. have_joystick=yes
  25026. else
  25027. # Need this code for accelerometer as joystick support
  25028. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25029. fi
  25030. # Set up files for the haptic library
  25031. #if test x$enable_haptic = xyes; then
  25032. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25033. # have_haptic=yes
  25034. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25035. #fi
  25036. # Set up files for the sensor library
  25037. if test x$enable_sensor = xyes; then
  25038. printf "%s\n" "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  25039. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  25040. have_sensor=yes
  25041. fi
  25042. # Set up files for the power library
  25043. if test x$enable_power = xyes; then
  25044. printf "%s\n" "#define SDL_POWER_UIKIT 1" >>confdefs.h
  25045. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  25046. have_power=yes
  25047. fi
  25048. # Set up files for the filesystem library
  25049. if test x$enable_filesystem = xyes; then
  25050. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25051. have_filesystem=yes
  25052. fi
  25053. # Set up additional files for the file library
  25054. if test x$enable_file = xyes; then
  25055. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25056. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25057. fi
  25058. # Set up files for the timer library
  25059. if test x$enable_timers = xyes; then
  25060. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25061. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25062. have_timers=yes
  25063. fi
  25064. # Set up other core UNIX files
  25065. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25066. # The iOS platform requires special setup.
  25067. printf "%s\n" "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  25068. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  25069. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  25070. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  25071. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  25072. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  25073. SUMMARY_video="${SUMMARY_video} uikit"
  25074. have_video=yes
  25075. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  25076. if test x$enable_system_iconv = xyes; then
  25077. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  25078. fi
  25079. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25080. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  25081. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  25082. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  25083. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  25084. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  25085. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  25086. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  25087. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  25088. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  25089. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  25090. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25091. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  25092. fi
  25093. ;;
  25094. *-*-darwin* )
  25095. # This could be either full "Mac OS X", or plain "Darwin" which is
  25096. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  25097. # Next line is broken, and a few files below require Mac OS X (full)
  25098. ARCH=macosx
  25099. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  25100. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  25101. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  25102. CheckObjectiveCARC
  25103. CheckVisibilityHidden
  25104. CheckWerror
  25105. CheckNoErrorDeprecatedDeclarationsWerror
  25106. CheckDeclarationAfterStatement
  25107. CheckDummyVideo
  25108. CheckOffscreenVideo
  25109. CheckDiskAudio
  25110. CheckDummyAudio
  25111. CheckDLOPEN
  25112. CheckO_CLOEXEC
  25113. CheckCOCOA
  25114. CheckMETAL
  25115. CheckX11
  25116. CheckMacGL
  25117. CheckMacGLES
  25118. CheckGLX
  25119. CheckOpenGL
  25120. CheckVulkan
  25121. CheckPTHREAD
  25122. CheckHIDAPI
  25123. # Set up files for the misc library
  25124. if test x$enable_misc = xyes; then
  25125. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  25126. have_misc=yes
  25127. fi
  25128. # Set up files for the locale library
  25129. if test x$enable_locale = xyes; then
  25130. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25131. have_locale=yes
  25132. fi
  25133. # Set up files for the audio library
  25134. if test x$enable_audio = xyes; then
  25135. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25136. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25137. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  25138. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25139. have_audio=yes
  25140. fi
  25141. # Set up files for the joystick library
  25142. if test x$enable_joystick = xyes; then
  25143. printf "%s\n" "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  25144. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  25145. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25146. CheckJoystickMFI
  25147. have_joystick=yes
  25148. fi
  25149. # Set up files for the haptic library
  25150. if test x$enable_haptic = xyes; then
  25151. printf "%s\n" "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  25152. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25153. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25154. have_haptic=yes
  25155. fi
  25156. # Set up files for the power library
  25157. if test x$enable_power = xyes; then
  25158. printf "%s\n" "#define SDL_POWER_MACOSX 1" >>confdefs.h
  25159. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  25160. have_power=yes
  25161. fi
  25162. # Set up files for the filesystem library
  25163. if test x$enable_filesystem = xyes; then
  25164. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25165. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25166. have_filesystem=yes
  25167. fi
  25168. # Set up files for the timer library
  25169. if test x$enable_timers = xyes; then
  25170. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25171. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25172. have_timers=yes
  25173. fi
  25174. # Set up additional files for the file library
  25175. if test x$enable_file = xyes; then
  25176. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25177. fi
  25178. # Set up other core UNIX files
  25179. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25180. # The Mac OS X platform requires special setup.
  25181. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25182. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  25183. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  25184. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  25185. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  25186. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25187. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  25188. fi
  25189. ;;
  25190. *-nacl|*-pnacl)
  25191. ARCH=nacl
  25192. CheckNativeClient
  25193. CheckDummyAudio
  25194. CheckDummyVideo
  25195. CheckOffscreenVideo
  25196. CheckInputEvents
  25197. CheckPTHREAD
  25198. CheckO_CLOEXEC
  25199. # Set up files for the timer library
  25200. if test x$enable_timers = xyes; then
  25201. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25202. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25203. have_timers=yes
  25204. fi
  25205. if test x$enable_filesystem = xyes; then
  25206. printf "%s\n" "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  25207. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  25208. have_filesystem=yes
  25209. fi
  25210. ;;
  25211. *-*-emscripten* )
  25212. if test x$enable_video = xyes; then
  25213. printf "%s\n" "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25214. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  25215. have_video=yes
  25216. SUMMARY_video="${SUMMARY_video} emscripten"
  25217. fi
  25218. if test x$enable_audio = xyes; then
  25219. printf "%s\n" "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25220. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  25221. have_audio=yes
  25222. SUMMARY_audio="${SUMMARY_audio} emscripten"
  25223. fi
  25224. CheckVisibilityHidden
  25225. CheckWerror
  25226. CheckDeclarationAfterStatement
  25227. CheckDummyVideo
  25228. CheckOffscreenVideo
  25229. CheckDiskAudio
  25230. CheckDummyAudio
  25231. CheckPTHREAD
  25232. CheckDLOPEN
  25233. CheckClockGettime
  25234. CheckEmscriptenGLES
  25235. # Set up files for the misc library
  25236. if test x$enable_misc = xyes; then
  25237. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  25238. have_misc=yes
  25239. fi
  25240. # Set up files for the power library
  25241. if test x$enable_power = xyes; then
  25242. printf "%s\n" "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  25243. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  25244. have_power=yes
  25245. fi
  25246. # Set up files for the joystick library
  25247. if test x$enable_joystick = xyes; then
  25248. printf "%s\n" "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  25249. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  25250. have_joystick=yes
  25251. fi
  25252. # Set up files for the filesystem library
  25253. if test x$enable_filesystem = xyes; then
  25254. printf "%s\n" "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  25255. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  25256. have_filesystem=yes
  25257. fi
  25258. # Set up files for the timer library
  25259. if test x$enable_timers = xyes; then
  25260. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25261. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25262. have_timers=yes
  25263. fi
  25264. # Set up files for the locale library
  25265. if test x$enable_locale = xyes; then
  25266. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  25267. have_locale=yes
  25268. fi
  25269. ;;
  25270. *-*-riscos*)
  25271. ARCH=riscos
  25272. CheckVisibilityHidden
  25273. CheckWerror
  25274. CheckDeclarationAfterStatement
  25275. CheckDummyVideo
  25276. CheckOffscreenVideo
  25277. CheckDiskAudio
  25278. CheckDummyAudio
  25279. CheckDLOPEN
  25280. CheckO_CLOEXEC
  25281. CheckOSS
  25282. CheckPTHREAD
  25283. CheckClockGettime
  25284. # Set up files for the misc library
  25285. if test x$enable_misc = xyes; then
  25286. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  25287. have_misc=yes
  25288. fi
  25289. # Set up files for the video library
  25290. if test x$enable_video = xyes; then
  25291. printf "%s\n" "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  25292. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  25293. have_video=yes
  25294. SUMMARY_video="${SUMMARY_video} riscos"
  25295. fi
  25296. # Set up files for the filesystem library
  25297. if test x$enable_filesystem = xyes; then
  25298. printf "%s\n" "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  25299. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  25300. have_filesystem=yes
  25301. fi
  25302. # Set up files for the timer library
  25303. if test x$enable_timers = xyes; then
  25304. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25305. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25306. have_timers=yes
  25307. fi
  25308. ;;
  25309. *-*-os2*)
  25310. ARCH=os2
  25311. if test "$build" != "$host"; then # cross-compiling
  25312. # Default cross-compile location
  25313. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  25314. else
  25315. # Look for the location of the tools and install there
  25316. if test "$BUILD_PREFIX" != ""; then
  25317. ac_default_prefix=$BUILD_PREFIX
  25318. fi
  25319. fi
  25320. enable_static=no # disable static builds
  25321. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  25322. CheckOS2
  25323. CheckWerror
  25324. CheckDeclarationAfterStatement
  25325. CheckDummyVideo
  25326. CheckDiskAudio
  25327. CheckDummyAudio
  25328. CheckHIDAPI
  25329. # Set up the core platform files
  25330. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  25331. if test x$enable_system_iconv = xyes; then
  25332. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  25333. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  25334. fi
  25335. fi
  25336. # Use the Unix locale APIs.
  25337. if test x$enable_locale = xyes; then
  25338. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  25339. have_locale=yes
  25340. fi
  25341. # Set up files for the video library
  25342. if test x$enable_video = xyes; then
  25343. printf "%s\n" "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  25344. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  25345. have_video=yes
  25346. SUMMARY_video="${SUMMARY_video} os/2"
  25347. fi
  25348. # Set up files for the audio library
  25349. if test x$enable_audio = xyes; then
  25350. printf "%s\n" "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  25351. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  25352. have_audio=yes
  25353. SUMMARY_audio="${SUMMARY_audio} os/2"
  25354. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  25355. fi
  25356. # Set up files for the thread library
  25357. if test x$enable_threads = xyes; then
  25358. printf "%s\n" "#define SDL_THREAD_OS2 1" >>confdefs.h
  25359. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  25360. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25361. have_threads=yes
  25362. fi
  25363. # Set up files for the timer library
  25364. if test x$enable_timers = xyes; then
  25365. printf "%s\n" "#define SDL_TIMER_OS2 1" >>confdefs.h
  25366. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  25367. have_timers=yes
  25368. fi
  25369. # Set up files for the shared object loading library
  25370. if test x$enable_loadso = xyes; then
  25371. printf "%s\n" "#define SDL_LOADSO_OS2 1" >>confdefs.h
  25372. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  25373. have_loadso=yes
  25374. fi
  25375. # Set up files for the filesystem library
  25376. if test x$enable_filesystem = xyes; then
  25377. printf "%s\n" "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  25378. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  25379. have_filesystem=yes
  25380. fi
  25381. # Set up files for the joystick library
  25382. if test x$enable_joystick = xyes; then
  25383. printf "%s\n" "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  25384. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  25385. have_joystick=yes
  25386. fi
  25387. ;;
  25388. *)
  25389. as_fn_error $? "
  25390. *** Unsupported host: Please add to configure.ac
  25391. " "$LINENO" 5
  25392. ;;
  25393. esac
  25394. CheckVirtualJoystick
  25395. # Check whether to install sdl2-config
  25396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  25397. printf %s "checking whether to install sdl2-config... " >&6; }
  25398. # Check whether --enable-sdl2-config was given.
  25399. if test ${enable_sdl2_config+y}
  25400. then :
  25401. enableval=$enable_sdl2_config; case "${enableval}" in
  25402. yes) enable_sdl2_config="TRUE" ;;
  25403. no) enable_sdl2_config="FALSE" ;;
  25404. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  25405. esac
  25406. else $as_nop
  25407. enable_sdl2_config="TRUE"
  25408. fi
  25409. if test "$enable_sdl2_config" = "TRUE"; then
  25410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25411. printf "%s\n" "yes" >&6; }
  25412. else
  25413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25414. printf "%s\n" "no" >&6; }
  25415. fi
  25416. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  25417. # Check whether --enable-vendor-info was given.
  25418. if test ${enable_vendor_info+y}
  25419. then :
  25420. enableval=$enable_vendor_info; enable_vendor_info="$enableval"
  25421. else $as_nop
  25422. enable_vendor_info=
  25423. fi
  25424. if test "$enable_vendor_info" = no
  25425. then :
  25426. enable_vendor_info=
  25427. fi
  25428. SDL_VENDOR_INFO=$enable_vendor_info
  25429. # Verify that we have all the platform specific files we need
  25430. if test x$have_audio != xyes; then
  25431. if test x$enable_audio = xyes; then
  25432. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  25433. fi
  25434. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  25435. fi
  25436. if test x$have_video != xyes; then
  25437. if test x$enable_video = xyes; then
  25438. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  25439. fi
  25440. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  25441. fi
  25442. if test x$have_misc != xyes; then
  25443. if test x$enable_misc = xyes; then
  25444. printf "%s\n" "#define SDL_MISC_DUMMY 1" >>confdefs.h
  25445. fi
  25446. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  25447. fi
  25448. if test x$have_locale != xyes; then
  25449. if test x$enable_locale = xyes; then
  25450. printf "%s\n" "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  25451. fi
  25452. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  25453. fi
  25454. if test x$have_joystick != xyes; then
  25455. if test x$enable_joystick = xyes; then
  25456. printf "%s\n" "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  25457. fi
  25458. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  25459. fi
  25460. if test x$have_haptic != xyes; then
  25461. if test x$enable_haptic = xyes; then
  25462. printf "%s\n" "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  25463. fi
  25464. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  25465. fi
  25466. if test x$have_sensor != xyes; then
  25467. if test x$enable_sensor = xyes; then
  25468. printf "%s\n" "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  25469. fi
  25470. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  25471. fi
  25472. if test x$have_threads != xyes; then
  25473. if test x$enable_threads = xyes; then
  25474. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  25475. fi
  25476. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  25477. fi
  25478. if test x$have_timers != xyes; then
  25479. if test x$enable_timers = xyes; then
  25480. printf "%s\n" "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  25481. fi
  25482. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  25483. fi
  25484. if test x$have_filesystem != xyes; then
  25485. if test x$enable_filesystem = xyes; then
  25486. printf "%s\n" "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  25487. fi
  25488. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  25489. fi
  25490. if test x$have_loadso != xyes; then
  25491. if test x$enable_loadso = xyes; then
  25492. printf "%s\n" "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  25493. fi
  25494. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  25495. fi
  25496. if test x$SDLMAIN_SOURCES = x; then
  25497. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  25498. fi
  25499. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  25500. if test x$video_wayland = xyes; then
  25501. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  25502. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  25503. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  25504. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  25505. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  25506. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  25507. echo ;\
  25508. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25509. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25510. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  25511. echo ;\
  25512. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25513. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25514. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  25515. echo ;\
  25516. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  25517. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  25518. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  25519. done ;\
  25520. echo ;\
  25521. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  25522. fi
  25523. OBJECTS=`echo $SOURCES`
  25524. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  25525. for EXT in asm cc m c S; do
  25526. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  25527. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  25528. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  25529. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25530. done
  25531. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25532. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  25533. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  25534. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  25535. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  25536. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  25537. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  25538. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  25539. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  25540. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25541. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25542. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25543. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25544. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  25545. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  25546. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25547. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25548. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25549. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25550. # Set runtime shared library paths as needed
  25551. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  25552. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  25553. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  25554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  25555. printf %s "checking for linker option --enable-new-dtags... " >&6; }
  25556. have_enable_new_dtags=no
  25557. save_LDFLAGS="$LDFLAGS"
  25558. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  25559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25560. /* end confdefs.h. */
  25561. int
  25562. main (void)
  25563. {
  25564. ;
  25565. return 0;
  25566. }
  25567. _ACEOF
  25568. if ac_fn_c_try_link "$LINENO"
  25569. then :
  25570. have_enable_new_dtags=yes
  25571. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  25572. fi
  25573. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25574. conftest$ac_exeext conftest.$ac_ext
  25575. LDFLAGS="$save_LDFLAGS"
  25576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  25577. printf "%s\n" "$have_enable_new_dtags" >&6; }
  25578. fi
  25579. if test $ARCH = solaris; then
  25580. SDL_RLD_FLAGS="-R\${libdir}"
  25581. fi
  25582. else
  25583. SDL_RLD_FLAGS=""
  25584. fi
  25585. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  25586. pkg_cmakedir='$libdir/cmake/SDL2'
  25587. for _lcl_i in pkg_cmakedir:prefix:cmake_prefix_relpath bindir:prefix:bin_prefix_relpath; do
  25588. _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
  25589. _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
  25590. _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
  25591. _lcl_receval="$_lcl_from"
  25592. _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25593. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25594. _lcl_receval_old=''
  25595. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25596. _lcl_receval_old="$_lcl_receval"
  25597. eval _lcl_receval="\"$_lcl_receval\""
  25598. done
  25599. echo "$_lcl_receval")`
  25600. _lcl_receval="$_lcl_to"
  25601. _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25602. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25603. _lcl_receval_old=''
  25604. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25605. _lcl_receval_old="$_lcl_receval"
  25606. eval _lcl_receval="\"$_lcl_receval\""
  25607. done
  25608. echo "$_lcl_receval")`
  25609. _lcl_notation="$_lcl_from$_lcl_to"
  25610. case ":$_lcl_from:" in
  25611. # change empty paths to '.'
  25612. ::) _lcl_from='.' ;;
  25613. # strip trailing slashes
  25614. :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
  25615. :*:) ;;
  25616. esac
  25617. # squeeze repeated slashes
  25618. case '/' in
  25619. # if the path contains any backslashes, turn slashes into backslashes
  25620. *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25621. # if the path contains slashes, also turn backslashes into slashes
  25622. *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25623. esac
  25624. case ":$_lcl_to:" in
  25625. # change empty paths to '.'
  25626. ::) _lcl_to='.' ;;
  25627. # strip trailing slashes
  25628. :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
  25629. :*:) ;;
  25630. esac
  25631. # squeeze repeated slashes
  25632. case '/' in
  25633. # if the path contains any backslashes, turn slashes into backslashes
  25634. *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25635. # if the path contains slashes, also turn backslashes into slashes
  25636. *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25637. esac
  25638. _lcl_common_prefix=''
  25639. _lcl_second_prefix_match=''
  25640. while test "$_lcl_second_prefix_match" != 0; do
  25641. _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
  25642. _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
  25643. if test "$_lcl_second_prefix_match" != 0; then
  25644. if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
  25645. _lcl_common_prefix="$_lcl_first_prefix"
  25646. else
  25647. _lcl_second_prefix_match=0
  25648. fi
  25649. fi
  25650. done
  25651. _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
  25652. _lcl_first_rel=''
  25653. _lcl_tmp='xxx'
  25654. while test "$_lcl_tmp" != ''; do
  25655. _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
  25656. if test "$_lcl_first_suffix" != ''; then
  25657. _lcl_first_suffix="$_lcl_tmp"
  25658. _lcl_first_rel="../$_lcl_first_rel"
  25659. fi
  25660. done
  25661. _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
  25662. _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
  25663. case ":$_lcl_result_tmp:" in
  25664. # change empty paths to '.'
  25665. ::) _lcl_result_tmp='.' ;;
  25666. # strip trailing slashes
  25667. :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
  25668. :*:) ;;
  25669. esac
  25670. # squeeze repeated slashes
  25671. case "$_lcl_notation" in
  25672. # if the path contains any backslashes, turn slashes into backslashes
  25673. *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25674. # if the path contains slashes, also turn backslashes into slashes
  25675. *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25676. esac
  25677. eval $_lcl_result_var='$_lcl_result_tmp'
  25678. done
  25679. if test x$enable_shared = xyes; then
  25680. PKGCONFIG_LIBS_PRIV="
  25681. Libs.private:"
  25682. ENABLE_SHARED_TRUE=
  25683. ENABLE_SHARED_FALSE="#"
  25684. else
  25685. PKGCONFIG_LIBS_PRIV=
  25686. ENABLE_SHARED_TRUE="#"
  25687. ENABLE_SHARED_FALSE=
  25688. fi
  25689. if test x$enable_static = xyes; then
  25690. ENABLE_STATIC_TRUE=
  25691. ENABLE_STATIC_FALSE="#"
  25692. else
  25693. ENABLE_STATIC_TRUE="#"
  25694. ENABLE_STATIC_FALSE=
  25695. fi
  25696. cat >Makefile.rules <<__EOF__
  25697. # Build rules for objects
  25698. -include \$(OBJECTS:.lo=.d)
  25699. # Special dependency for SDL.c, since it depends on SDL_revision.h
  25700. $srcdir/src/SDL.c: update-revision
  25701. $DEPENDS
  25702. $VERSION_DEPENDS
  25703. $SDLMAIN_DEPENDS
  25704. $SDLTEST_DEPENDS
  25705. $WAYLAND_PROTOCOLS_DEPENDS
  25706. __EOF__
  25707. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  25708. ac_config_commands="$ac_config_commands sdl2_config"
  25709. SUMMARY="SDL2 Configure Summary:\n"
  25710. if test x$enable_shared = xyes; then
  25711. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  25712. fi
  25713. if test x$enable_static = xyes; then
  25714. SUMMARY="${SUMMARY}Building Static Libraries\n"
  25715. fi
  25716. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  25717. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  25718. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  25719. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  25720. if test x$have_x = xyes; then
  25721. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  25722. fi
  25723. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  25724. if test x$have_joystick_virtual = xyes; then
  25725. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  25726. else
  25727. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  25728. fi
  25729. if test x$have_samplerate_h_hdr = xyes; then
  25730. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  25731. else
  25732. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  25733. fi
  25734. if test x$have_libudev_h_hdr = xyes; then
  25735. SUMMARY="${SUMMARY}Using libudev : YES\n"
  25736. else
  25737. SUMMARY="${SUMMARY}Using libudev : NO\n"
  25738. fi
  25739. if test x$have_dbus_dbus_h_hdr = xyes; then
  25740. SUMMARY="${SUMMARY}Using dbus : YES\n"
  25741. else
  25742. SUMMARY="${SUMMARY}Using dbus : NO\n"
  25743. fi
  25744. if test x$enable_ime = xyes; then
  25745. SUMMARY="${SUMMARY}Using ime : YES\n"
  25746. else
  25747. SUMMARY="${SUMMARY}Using ime : NO\n"
  25748. fi
  25749. if test x$have_ibus_ibus_h_hdr = xyes; then
  25750. SUMMARY="${SUMMARY}Using ibus : YES\n"
  25751. else
  25752. SUMMARY="${SUMMARY}Using ibus : NO\n"
  25753. fi
  25754. if test x$have_fcitx = xyes; then
  25755. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  25756. else
  25757. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  25758. fi
  25759. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  25760. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  25761. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25762. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25763. SUMMARY="${SUMMARY}configure script with:\n"
  25764. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  25765. fi
  25766. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  25767. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  25768. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25769. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25770. SUMMARY="${SUMMARY}configure script with:\n"
  25771. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  25772. fi
  25773. ac_config_commands="$ac_config_commands summary"
  25774. cat >confcache <<\_ACEOF
  25775. # This file is a shell script that caches the results of configure
  25776. # tests run on this system so they can be shared between configure
  25777. # scripts and configure runs, see configure's option --config-cache.
  25778. # It is not useful on other systems. If it contains results you don't
  25779. # want to keep, you may remove or edit it.
  25780. #
  25781. # config.status only pays attention to the cache file if you give it
  25782. # the --recheck option to rerun configure.
  25783. #
  25784. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  25785. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  25786. # following values.
  25787. _ACEOF
  25788. # The following way of writing the cache mishandles newlines in values,
  25789. # but we know of no workaround that is simple, portable, and efficient.
  25790. # So, we kill variables containing newlines.
  25791. # Ultrix sh set writes to stderr and can't be redirected directly,
  25792. # and sets the high bit in the cache file unless we assign to the vars.
  25793. (
  25794. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  25795. eval ac_val=\$$ac_var
  25796. case $ac_val in #(
  25797. *${as_nl}*)
  25798. case $ac_var in #(
  25799. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  25800. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  25801. esac
  25802. case $ac_var in #(
  25803. _ | IFS | as_nl) ;; #(
  25804. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  25805. *) { eval $ac_var=; unset $ac_var;} ;;
  25806. esac ;;
  25807. esac
  25808. done
  25809. (set) 2>&1 |
  25810. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  25811. *${as_nl}ac_space=\ *)
  25812. # `set' does not quote correctly, so add quotes: double-quote
  25813. # substitution turns \\\\ into \\, and sed turns \\ into \.
  25814. sed -n \
  25815. "s/'/'\\\\''/g;
  25816. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  25817. ;; #(
  25818. *)
  25819. # `set' quotes correctly as required by POSIX, so do not add quotes.
  25820. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  25821. ;;
  25822. esac |
  25823. sort
  25824. ) |
  25825. sed '
  25826. /^ac_cv_env_/b end
  25827. t clear
  25828. :clear
  25829. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  25830. t end
  25831. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  25832. :end' >>confcache
  25833. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  25834. if test -w "$cache_file"; then
  25835. if test "x$cache_file" != "x/dev/null"; then
  25836. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  25837. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  25838. if test ! -f "$cache_file" || test -h "$cache_file"; then
  25839. cat confcache >"$cache_file"
  25840. else
  25841. case $cache_file in #(
  25842. */* | ?:*)
  25843. mv -f confcache "$cache_file"$$ &&
  25844. mv -f "$cache_file"$$ "$cache_file" ;; #(
  25845. *)
  25846. mv -f confcache "$cache_file" ;;
  25847. esac
  25848. fi
  25849. fi
  25850. else
  25851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  25852. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  25853. fi
  25854. fi
  25855. rm -f confcache
  25856. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  25857. # Let make expand exec_prefix.
  25858. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  25859. DEFS=-DHAVE_CONFIG_H
  25860. ac_libobjs=
  25861. ac_ltlibobjs=
  25862. U=
  25863. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  25864. # 1. Remove the extension, and $U if already installed.
  25865. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  25866. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  25867. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  25868. # will be set to the directory where LIBOBJS objects are built.
  25869. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  25870. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  25871. done
  25872. LIBOBJS=$ac_libobjs
  25873. LTLIBOBJS=$ac_ltlibobjs
  25874. : "${CONFIG_STATUS=./config.status}"
  25875. ac_write_fail=0
  25876. ac_clean_files_save=$ac_clean_files
  25877. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  25878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  25879. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  25880. as_write_fail=0
  25881. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  25882. #! $SHELL
  25883. # Generated by $as_me.
  25884. # Run this file to recreate the current configuration.
  25885. # Compiler output produced by configure, useful for debugging
  25886. # configure, is in config.log if it exists.
  25887. debug=false
  25888. ac_cs_recheck=false
  25889. ac_cs_silent=false
  25890. SHELL=\${CONFIG_SHELL-$SHELL}
  25891. export SHELL
  25892. _ASEOF
  25893. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  25894. ## -------------------- ##
  25895. ## M4sh Initialization. ##
  25896. ## -------------------- ##
  25897. # Be more Bourne compatible
  25898. DUALCASE=1; export DUALCASE # for MKS sh
  25899. as_nop=:
  25900. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  25901. then :
  25902. emulate sh
  25903. NULLCMD=:
  25904. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25905. # is contrary to our usage. Disable this feature.
  25906. alias -g '${1+"$@"}'='"$@"'
  25907. setopt NO_GLOB_SUBST
  25908. else $as_nop
  25909. case `(set -o) 2>/dev/null` in #(
  25910. *posix*) :
  25911. set -o posix ;; #(
  25912. *) :
  25913. ;;
  25914. esac
  25915. fi
  25916. # Reset variables that may have inherited troublesome values from
  25917. # the environment.
  25918. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  25919. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  25920. # side effect of setting IFS to empty, thus disabling word splitting.)
  25921. # Quoting is to prevent editors from complaining about space-tab.
  25922. as_nl='
  25923. '
  25924. export as_nl
  25925. IFS=" "" $as_nl"
  25926. PS1='$ '
  25927. PS2='> '
  25928. PS4='+ '
  25929. # Ensure predictable behavior from utilities with locale-dependent output.
  25930. LC_ALL=C
  25931. export LC_ALL
  25932. LANGUAGE=C
  25933. export LANGUAGE
  25934. # We cannot yet rely on "unset" to work, but we need these variables
  25935. # to be unset--not just set to an empty or harmless value--now, to
  25936. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  25937. # also avoids known problems related to "unset" and subshell syntax
  25938. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  25939. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  25940. do eval test \${$as_var+y} \
  25941. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  25942. done
  25943. # Ensure that fds 0, 1, and 2 are open.
  25944. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  25945. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  25946. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  25947. # The user is always right.
  25948. if ${PATH_SEPARATOR+false} :; then
  25949. PATH_SEPARATOR=:
  25950. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  25951. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  25952. PATH_SEPARATOR=';'
  25953. }
  25954. fi
  25955. # Find who we are. Look in the path if we contain no directory separator.
  25956. as_myself=
  25957. case $0 in #((
  25958. *[\\/]* ) as_myself=$0 ;;
  25959. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25960. for as_dir in $PATH
  25961. do
  25962. IFS=$as_save_IFS
  25963. case $as_dir in #(((
  25964. '') as_dir=./ ;;
  25965. */) ;;
  25966. *) as_dir=$as_dir/ ;;
  25967. esac
  25968. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  25969. done
  25970. IFS=$as_save_IFS
  25971. ;;
  25972. esac
  25973. # We did not find ourselves, most probably we were run as `sh COMMAND'
  25974. # in which case we are not to be found in the path.
  25975. if test "x$as_myself" = x; then
  25976. as_myself=$0
  25977. fi
  25978. if test ! -f "$as_myself"; then
  25979. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  25980. exit 1
  25981. fi
  25982. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  25983. # ----------------------------------------
  25984. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  25985. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  25986. # script with STATUS, using 1 if that was 0.
  25987. as_fn_error ()
  25988. {
  25989. as_status=$1; test $as_status -eq 0 && as_status=1
  25990. if test "$4"; then
  25991. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  25992. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  25993. fi
  25994. printf "%s\n" "$as_me: error: $2" >&2
  25995. as_fn_exit $as_status
  25996. } # as_fn_error
  25997. # as_fn_set_status STATUS
  25998. # -----------------------
  25999. # Set $? to STATUS, without forking.
  26000. as_fn_set_status ()
  26001. {
  26002. return $1
  26003. } # as_fn_set_status
  26004. # as_fn_exit STATUS
  26005. # -----------------
  26006. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  26007. as_fn_exit ()
  26008. {
  26009. set +e
  26010. as_fn_set_status $1
  26011. exit $1
  26012. } # as_fn_exit
  26013. # as_fn_unset VAR
  26014. # ---------------
  26015. # Portably unset VAR.
  26016. as_fn_unset ()
  26017. {
  26018. { eval $1=; unset $1;}
  26019. }
  26020. as_unset=as_fn_unset
  26021. # as_fn_append VAR VALUE
  26022. # ----------------------
  26023. # Append the text in VALUE to the end of the definition contained in VAR. Take
  26024. # advantage of any shell optimizations that allow amortized linear growth over
  26025. # repeated appends, instead of the typical quadratic growth present in naive
  26026. # implementations.
  26027. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  26028. then :
  26029. eval 'as_fn_append ()
  26030. {
  26031. eval $1+=\$2
  26032. }'
  26033. else $as_nop
  26034. as_fn_append ()
  26035. {
  26036. eval $1=\$$1\$2
  26037. }
  26038. fi # as_fn_append
  26039. # as_fn_arith ARG...
  26040. # ------------------
  26041. # Perform arithmetic evaluation on the ARGs, and store the result in the
  26042. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  26043. # must be portable across $(()) and expr.
  26044. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  26045. then :
  26046. eval 'as_fn_arith ()
  26047. {
  26048. as_val=$(( $* ))
  26049. }'
  26050. else $as_nop
  26051. as_fn_arith ()
  26052. {
  26053. as_val=`expr "$@" || test $? -eq 1`
  26054. }
  26055. fi # as_fn_arith
  26056. if expr a : '\(a\)' >/dev/null 2>&1 &&
  26057. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  26058. as_expr=expr
  26059. else
  26060. as_expr=false
  26061. fi
  26062. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  26063. as_basename=basename
  26064. else
  26065. as_basename=false
  26066. fi
  26067. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  26068. as_dirname=dirname
  26069. else
  26070. as_dirname=false
  26071. fi
  26072. as_me=`$as_basename -- "$0" ||
  26073. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  26074. X"$0" : 'X\(//\)$' \| \
  26075. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  26076. printf "%s\n" X/"$0" |
  26077. sed '/^.*\/\([^/][^/]*\)\/*$/{
  26078. s//\1/
  26079. q
  26080. }
  26081. /^X\/\(\/\/\)$/{
  26082. s//\1/
  26083. q
  26084. }
  26085. /^X\/\(\/\).*/{
  26086. s//\1/
  26087. q
  26088. }
  26089. s/.*/./; q'`
  26090. # Avoid depending upon Character Ranges.
  26091. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  26092. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  26093. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  26094. as_cr_digits='0123456789'
  26095. as_cr_alnum=$as_cr_Letters$as_cr_digits
  26096. # Determine whether it's possible to make 'echo' print without a newline.
  26097. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  26098. # for compatibility with existing Makefiles.
  26099. ECHO_C= ECHO_N= ECHO_T=
  26100. case `echo -n x` in #(((((
  26101. -n*)
  26102. case `echo 'xy\c'` in
  26103. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  26104. xy) ECHO_C='\c';;
  26105. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  26106. ECHO_T=' ';;
  26107. esac;;
  26108. *)
  26109. ECHO_N='-n';;
  26110. esac
  26111. # For backward compatibility with old third-party macros, we provide
  26112. # the shell variables $as_echo and $as_echo_n. New code should use
  26113. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  26114. as_echo='printf %s\n'
  26115. as_echo_n='printf %s'
  26116. rm -f conf$$ conf$$.exe conf$$.file
  26117. if test -d conf$$.dir; then
  26118. rm -f conf$$.dir/conf$$.file
  26119. else
  26120. rm -f conf$$.dir
  26121. mkdir conf$$.dir 2>/dev/null
  26122. fi
  26123. if (echo >conf$$.file) 2>/dev/null; then
  26124. if ln -s conf$$.file conf$$ 2>/dev/null; then
  26125. as_ln_s='ln -s'
  26126. # ... but there are two gotchas:
  26127. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  26128. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  26129. # In both cases, we have to default to `cp -pR'.
  26130. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  26131. as_ln_s='cp -pR'
  26132. elif ln conf$$.file conf$$ 2>/dev/null; then
  26133. as_ln_s=ln
  26134. else
  26135. as_ln_s='cp -pR'
  26136. fi
  26137. else
  26138. as_ln_s='cp -pR'
  26139. fi
  26140. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  26141. rmdir conf$$.dir 2>/dev/null
  26142. # as_fn_mkdir_p
  26143. # -------------
  26144. # Create "$as_dir" as a directory, including parents if necessary.
  26145. as_fn_mkdir_p ()
  26146. {
  26147. case $as_dir in #(
  26148. -*) as_dir=./$as_dir;;
  26149. esac
  26150. test -d "$as_dir" || eval $as_mkdir_p || {
  26151. as_dirs=
  26152. while :; do
  26153. case $as_dir in #(
  26154. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  26155. *) as_qdir=$as_dir;;
  26156. esac
  26157. as_dirs="'$as_qdir' $as_dirs"
  26158. as_dir=`$as_dirname -- "$as_dir" ||
  26159. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26160. X"$as_dir" : 'X\(//\)[^/]' \| \
  26161. X"$as_dir" : 'X\(//\)$' \| \
  26162. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  26163. printf "%s\n" X"$as_dir" |
  26164. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26165. s//\1/
  26166. q
  26167. }
  26168. /^X\(\/\/\)[^/].*/{
  26169. s//\1/
  26170. q
  26171. }
  26172. /^X\(\/\/\)$/{
  26173. s//\1/
  26174. q
  26175. }
  26176. /^X\(\/\).*/{
  26177. s//\1/
  26178. q
  26179. }
  26180. s/.*/./; q'`
  26181. test -d "$as_dir" && break
  26182. done
  26183. test -z "$as_dirs" || eval "mkdir $as_dirs"
  26184. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  26185. } # as_fn_mkdir_p
  26186. if mkdir -p . 2>/dev/null; then
  26187. as_mkdir_p='mkdir -p "$as_dir"'
  26188. else
  26189. test -d ./-p && rmdir ./-p
  26190. as_mkdir_p=false
  26191. fi
  26192. # as_fn_executable_p FILE
  26193. # -----------------------
  26194. # Test if FILE is an executable regular file.
  26195. as_fn_executable_p ()
  26196. {
  26197. test -f "$1" && test -x "$1"
  26198. } # as_fn_executable_p
  26199. as_test_x='test -x'
  26200. as_executable_p=as_fn_executable_p
  26201. # Sed expression to map a string onto a valid CPP name.
  26202. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  26203. # Sed expression to map a string onto a valid variable name.
  26204. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  26205. exec 6>&1
  26206. ## ----------------------------------- ##
  26207. ## Main body of $CONFIG_STATUS script. ##
  26208. ## ----------------------------------- ##
  26209. _ASEOF
  26210. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  26211. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26212. # Save the log message, to keep $0 and so on meaningful, and to
  26213. # report actual input values of CONFIG_FILES etc. instead of their
  26214. # values after options handling.
  26215. ac_log="
  26216. This file was extended by $as_me, which was
  26217. generated by GNU Autoconf 2.71. Invocation command line was
  26218. CONFIG_FILES = $CONFIG_FILES
  26219. CONFIG_HEADERS = $CONFIG_HEADERS
  26220. CONFIG_LINKS = $CONFIG_LINKS
  26221. CONFIG_COMMANDS = $CONFIG_COMMANDS
  26222. $ $0 $@
  26223. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  26224. "
  26225. _ACEOF
  26226. case $ac_config_files in *"
  26227. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  26228. esac
  26229. case $ac_config_headers in *"
  26230. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  26231. esac
  26232. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26233. # Files that config.status was made for.
  26234. config_files="$ac_config_files"
  26235. config_headers="$ac_config_headers"
  26236. config_commands="$ac_config_commands"
  26237. _ACEOF
  26238. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26239. ac_cs_usage="\
  26240. \`$as_me' instantiates files and other configuration actions
  26241. from templates according to the current configuration. Unless the files
  26242. and actions are specified as TAGs, all are instantiated by default.
  26243. Usage: $0 [OPTION]... [TAG]...
  26244. -h, --help print this help, then exit
  26245. -V, --version print version number and configuration settings, then exit
  26246. --config print configuration, then exit
  26247. -q, --quiet, --silent
  26248. do not print progress messages
  26249. -d, --debug don't remove temporary files
  26250. --recheck update $as_me by reconfiguring in the same conditions
  26251. --file=FILE[:TEMPLATE]
  26252. instantiate the configuration file FILE
  26253. --header=FILE[:TEMPLATE]
  26254. instantiate the configuration header FILE
  26255. Configuration files:
  26256. $config_files
  26257. Configuration headers:
  26258. $config_headers
  26259. Configuration commands:
  26260. $config_commands
  26261. Report bugs to the package provider."
  26262. _ACEOF
  26263. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  26264. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  26265. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26266. ac_cs_config='$ac_cs_config_escaped'
  26267. ac_cs_version="\\
  26268. config.status
  26269. configured by $0, generated by GNU Autoconf 2.71,
  26270. with options \\"\$ac_cs_config\\"
  26271. Copyright (C) 2021 Free Software Foundation, Inc.
  26272. This config.status script is free software; the Free Software Foundation
  26273. gives unlimited permission to copy, distribute and modify it."
  26274. ac_pwd='$ac_pwd'
  26275. srcdir='$srcdir'
  26276. INSTALL='$INSTALL'
  26277. AWK='$AWK'
  26278. test -n "\$AWK" || AWK=awk
  26279. _ACEOF
  26280. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26281. # The default lists apply if the user does not specify any file.
  26282. ac_need_defaults=:
  26283. while test $# != 0
  26284. do
  26285. case $1 in
  26286. --*=?*)
  26287. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26288. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  26289. ac_shift=:
  26290. ;;
  26291. --*=)
  26292. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26293. ac_optarg=
  26294. ac_shift=:
  26295. ;;
  26296. *)
  26297. ac_option=$1
  26298. ac_optarg=$2
  26299. ac_shift=shift
  26300. ;;
  26301. esac
  26302. case $ac_option in
  26303. # Handling of the options.
  26304. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  26305. ac_cs_recheck=: ;;
  26306. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  26307. printf "%s\n" "$ac_cs_version"; exit ;;
  26308. --config | --confi | --conf | --con | --co | --c )
  26309. printf "%s\n" "$ac_cs_config"; exit ;;
  26310. --debug | --debu | --deb | --de | --d | -d )
  26311. debug=: ;;
  26312. --file | --fil | --fi | --f )
  26313. $ac_shift
  26314. case $ac_optarg in
  26315. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26316. '') as_fn_error $? "missing file argument" ;;
  26317. esac
  26318. as_fn_append CONFIG_FILES " '$ac_optarg'"
  26319. ac_need_defaults=false;;
  26320. --header | --heade | --head | --hea )
  26321. $ac_shift
  26322. case $ac_optarg in
  26323. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26324. esac
  26325. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  26326. ac_need_defaults=false;;
  26327. --he | --h)
  26328. # Conflict between --help and --header
  26329. as_fn_error $? "ambiguous option: \`$1'
  26330. Try \`$0 --help' for more information.";;
  26331. --help | --hel | -h )
  26332. printf "%s\n" "$ac_cs_usage"; exit ;;
  26333. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  26334. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  26335. ac_cs_silent=: ;;
  26336. # This is an error.
  26337. -*) as_fn_error $? "unrecognized option: \`$1'
  26338. Try \`$0 --help' for more information." ;;
  26339. *) as_fn_append ac_config_targets " $1"
  26340. ac_need_defaults=false ;;
  26341. esac
  26342. shift
  26343. done
  26344. ac_configure_extra_args=
  26345. if $ac_cs_silent; then
  26346. exec 6>/dev/null
  26347. ac_configure_extra_args="$ac_configure_extra_args --silent"
  26348. fi
  26349. _ACEOF
  26350. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26351. if \$ac_cs_recheck; then
  26352. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  26353. shift
  26354. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  26355. CONFIG_SHELL='$SHELL'
  26356. export CONFIG_SHELL
  26357. exec "\$@"
  26358. fi
  26359. _ACEOF
  26360. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26361. exec 5>>config.log
  26362. {
  26363. echo
  26364. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  26365. ## Running $as_me. ##
  26366. _ASBOX
  26367. printf "%s\n" "$ac_log"
  26368. } >&5
  26369. _ACEOF
  26370. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26371. #
  26372. # INIT-COMMANDS
  26373. #
  26374. # The HP-UX ksh and POSIX shell print the target directory to stdout
  26375. # if CDPATH is set.
  26376. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  26377. sed_quote_subst='$sed_quote_subst'
  26378. double_quote_subst='$double_quote_subst'
  26379. delay_variable_subst='$delay_variable_subst'
  26380. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  26381. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  26382. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  26383. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  26384. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  26385. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  26386. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  26387. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  26388. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  26389. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  26390. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  26391. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  26392. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  26393. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  26394. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  26395. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  26396. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  26397. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  26398. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  26399. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  26400. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  26401. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  26402. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  26403. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  26404. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  26405. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  26406. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  26407. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  26408. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  26409. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  26410. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  26411. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  26412. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  26413. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  26414. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  26415. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  26416. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  26417. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  26418. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  26419. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  26420. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  26421. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  26422. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  26423. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  26424. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  26425. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  26426. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  26427. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26428. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26429. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  26430. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  26431. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  26432. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  26433. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  26434. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  26435. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  26436. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  26437. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  26438. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  26439. lt_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"`'
  26440. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  26441. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  26442. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  26443. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  26444. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  26445. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  26446. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  26447. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  26448. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  26449. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  26450. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  26451. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  26452. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  26453. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  26454. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  26455. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  26456. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  26457. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  26458. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  26459. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  26460. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26461. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  26462. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  26463. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  26464. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  26465. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  26466. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  26467. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26468. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  26469. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26470. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  26471. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26472. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  26473. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26474. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26475. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  26476. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  26477. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  26478. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  26479. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  26480. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26481. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  26482. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  26483. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  26484. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  26485. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  26486. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  26487. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  26488. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  26489. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  26490. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  26491. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  26492. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  26493. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  26494. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  26495. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  26496. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26497. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  26498. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  26499. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  26500. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  26501. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  26502. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26503. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26504. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  26505. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  26506. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  26507. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  26508. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  26509. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  26510. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  26511. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  26512. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  26513. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  26514. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  26515. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  26516. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  26517. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  26518. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  26519. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  26520. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  26521. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  26522. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  26523. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  26524. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  26525. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26526. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26527. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26528. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26529. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26530. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  26531. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  26532. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  26533. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  26534. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  26535. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26536. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  26537. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  26538. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  26539. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  26540. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  26541. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  26542. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  26543. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  26544. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  26545. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  26546. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  26547. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  26548. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26549. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26550. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26551. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26552. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  26553. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  26554. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26555. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26556. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26557. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26558. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26559. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26560. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26561. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26562. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26563. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26564. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26565. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26566. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  26567. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  26568. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26569. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26570. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26571. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26572. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26573. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26574. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  26575. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  26576. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  26577. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  26578. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  26579. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  26580. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  26581. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  26582. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  26583. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  26584. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  26585. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  26586. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  26587. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  26588. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  26589. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  26590. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  26591. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  26592. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26593. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26594. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26595. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26596. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26597. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26598. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26599. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26600. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26601. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26602. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  26603. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26604. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  26605. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  26606. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  26607. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  26608. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26609. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26610. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26611. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26612. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  26613. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  26614. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  26615. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  26616. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  26617. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  26618. LTCC='$LTCC'
  26619. LTCFLAGS='$LTCFLAGS'
  26620. compiler='$compiler_DEFAULT'
  26621. # A function that is used when there is no print builtin or printf.
  26622. func_fallback_echo ()
  26623. {
  26624. eval 'cat <<_LTECHO_EOF
  26625. \$1
  26626. _LTECHO_EOF'
  26627. }
  26628. # Quote evaled strings.
  26629. for var in AS \
  26630. DLLTOOL \
  26631. OBJDUMP \
  26632. SHELL \
  26633. ECHO \
  26634. PATH_SEPARATOR \
  26635. SED \
  26636. GREP \
  26637. EGREP \
  26638. FGREP \
  26639. LD \
  26640. NM \
  26641. LN_S \
  26642. lt_SP2NL \
  26643. lt_NL2SP \
  26644. reload_flag \
  26645. deplibs_check_method \
  26646. file_magic_cmd \
  26647. file_magic_glob \
  26648. want_nocaseglob \
  26649. sharedlib_from_linklib_cmd \
  26650. AR \
  26651. AR_FLAGS \
  26652. archiver_list_spec \
  26653. STRIP \
  26654. RANLIB \
  26655. CC \
  26656. CFLAGS \
  26657. compiler \
  26658. lt_cv_sys_global_symbol_pipe \
  26659. lt_cv_sys_global_symbol_to_cdecl \
  26660. lt_cv_sys_global_symbol_to_import \
  26661. lt_cv_sys_global_symbol_to_c_name_address \
  26662. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  26663. lt_cv_nm_interface \
  26664. nm_file_list_spec \
  26665. lt_cv_truncate_bin \
  26666. lt_prog_compiler_no_builtin_flag \
  26667. lt_prog_compiler_pic \
  26668. lt_prog_compiler_wl \
  26669. lt_prog_compiler_static \
  26670. lt_cv_prog_compiler_c_o \
  26671. need_locks \
  26672. MANIFEST_TOOL \
  26673. DSYMUTIL \
  26674. NMEDIT \
  26675. LIPO \
  26676. OTOOL \
  26677. OTOOL64 \
  26678. shrext_cmds \
  26679. export_dynamic_flag_spec \
  26680. whole_archive_flag_spec \
  26681. compiler_needs_object \
  26682. with_gnu_ld \
  26683. allow_undefined_flag \
  26684. no_undefined_flag \
  26685. hardcode_libdir_flag_spec \
  26686. hardcode_libdir_separator \
  26687. exclude_expsyms \
  26688. include_expsyms \
  26689. file_list_spec \
  26690. variables_saved_for_relink \
  26691. libname_spec \
  26692. library_names_spec \
  26693. soname_spec \
  26694. install_override_mode \
  26695. finish_eval \
  26696. old_striplib \
  26697. striplib \
  26698. compiler_lib_search_dirs \
  26699. predep_objects \
  26700. postdep_objects \
  26701. predeps \
  26702. postdeps \
  26703. compiler_lib_search_path \
  26704. LD_RC \
  26705. LD_CXX \
  26706. reload_flag_RC \
  26707. reload_flag_CXX \
  26708. compiler_RC \
  26709. compiler_CXX \
  26710. lt_prog_compiler_no_builtin_flag_RC \
  26711. lt_prog_compiler_no_builtin_flag_CXX \
  26712. lt_prog_compiler_pic_RC \
  26713. lt_prog_compiler_pic_CXX \
  26714. lt_prog_compiler_wl_RC \
  26715. lt_prog_compiler_wl_CXX \
  26716. lt_prog_compiler_static_RC \
  26717. lt_prog_compiler_static_CXX \
  26718. lt_cv_prog_compiler_c_o_RC \
  26719. lt_cv_prog_compiler_c_o_CXX \
  26720. export_dynamic_flag_spec_RC \
  26721. export_dynamic_flag_spec_CXX \
  26722. whole_archive_flag_spec_RC \
  26723. whole_archive_flag_spec_CXX \
  26724. compiler_needs_object_RC \
  26725. compiler_needs_object_CXX \
  26726. with_gnu_ld_RC \
  26727. with_gnu_ld_CXX \
  26728. allow_undefined_flag_RC \
  26729. allow_undefined_flag_CXX \
  26730. no_undefined_flag_RC \
  26731. no_undefined_flag_CXX \
  26732. hardcode_libdir_flag_spec_RC \
  26733. hardcode_libdir_flag_spec_CXX \
  26734. hardcode_libdir_separator_RC \
  26735. hardcode_libdir_separator_CXX \
  26736. exclude_expsyms_RC \
  26737. exclude_expsyms_CXX \
  26738. include_expsyms_RC \
  26739. include_expsyms_CXX \
  26740. file_list_spec_RC \
  26741. file_list_spec_CXX \
  26742. compiler_lib_search_dirs_RC \
  26743. compiler_lib_search_dirs_CXX \
  26744. predep_objects_RC \
  26745. predep_objects_CXX \
  26746. postdep_objects_RC \
  26747. postdep_objects_CXX \
  26748. predeps_RC \
  26749. predeps_CXX \
  26750. postdeps_RC \
  26751. postdeps_CXX \
  26752. compiler_lib_search_path_RC \
  26753. compiler_lib_search_path_CXX; do
  26754. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26755. *[\\\\\\\`\\"\\\$]*)
  26756. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26757. ;;
  26758. *)
  26759. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26760. ;;
  26761. esac
  26762. done
  26763. # Double-quote double-evaled strings.
  26764. for var in reload_cmds \
  26765. old_postinstall_cmds \
  26766. old_postuninstall_cmds \
  26767. old_archive_cmds \
  26768. extract_expsyms_cmds \
  26769. old_archive_from_new_cmds \
  26770. old_archive_from_expsyms_cmds \
  26771. archive_cmds \
  26772. archive_expsym_cmds \
  26773. module_cmds \
  26774. module_expsym_cmds \
  26775. export_symbols_cmds \
  26776. prelink_cmds \
  26777. postlink_cmds \
  26778. postinstall_cmds \
  26779. postuninstall_cmds \
  26780. finish_cmds \
  26781. sys_lib_search_path_spec \
  26782. configure_time_dlsearch_path \
  26783. configure_time_lt_sys_library_path \
  26784. reload_cmds_RC \
  26785. reload_cmds_CXX \
  26786. old_archive_cmds_RC \
  26787. old_archive_cmds_CXX \
  26788. old_archive_from_new_cmds_RC \
  26789. old_archive_from_new_cmds_CXX \
  26790. old_archive_from_expsyms_cmds_RC \
  26791. old_archive_from_expsyms_cmds_CXX \
  26792. archive_cmds_RC \
  26793. archive_cmds_CXX \
  26794. archive_expsym_cmds_RC \
  26795. archive_expsym_cmds_CXX \
  26796. module_cmds_RC \
  26797. module_cmds_CXX \
  26798. module_expsym_cmds_RC \
  26799. module_expsym_cmds_CXX \
  26800. export_symbols_cmds_RC \
  26801. export_symbols_cmds_CXX \
  26802. prelink_cmds_RC \
  26803. prelink_cmds_CXX \
  26804. postlink_cmds_RC \
  26805. postlink_cmds_CXX; do
  26806. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26807. *[\\\\\\\`\\"\\\$]*)
  26808. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26809. ;;
  26810. *)
  26811. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26812. ;;
  26813. esac
  26814. done
  26815. ac_aux_dir='$ac_aux_dir'
  26816. # See if we are running on zsh, and set the options that allow our
  26817. # commands through without removal of \ escapes INIT.
  26818. if test -n "\${ZSH_VERSION+set}"; then
  26819. setopt NO_GLOB_SUBST
  26820. fi
  26821. PACKAGE='$PACKAGE'
  26822. VERSION='$VERSION'
  26823. RM='$RM'
  26824. ofile='$ofile'
  26825. SUMMARY="$SUMMARY"
  26826. _ACEOF
  26827. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26828. # Handling of arguments.
  26829. for ac_config_target in $ac_config_targets
  26830. do
  26831. case $ac_config_target in
  26832. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  26833. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  26834. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  26835. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  26836. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  26837. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  26838. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  26839. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  26840. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  26841. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  26842. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  26843. esac
  26844. done
  26845. # If the user did not use the arguments to specify the items to instantiate,
  26846. # then the envvar interface is used. Set only those that are not.
  26847. # We use the long form for the default assignment because of an extremely
  26848. # bizarre bug on SunOS 4.1.3.
  26849. if $ac_need_defaults; then
  26850. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  26851. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  26852. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  26853. fi
  26854. # Have a temporary directory for convenience. Make it in the build tree
  26855. # simply because there is no reason against having it here, and in addition,
  26856. # creating and moving files from /tmp can sometimes cause problems.
  26857. # Hook for its removal unless debugging.
  26858. # Note that there is a small window in which the directory will not be cleaned:
  26859. # after its creation but before its name has been assigned to `$tmp'.
  26860. $debug ||
  26861. {
  26862. tmp= ac_tmp=
  26863. trap 'exit_status=$?
  26864. : "${ac_tmp:=$tmp}"
  26865. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  26866. ' 0
  26867. trap 'as_fn_exit 1' 1 2 13 15
  26868. }
  26869. # Create a (secure) tmp directory for tmp files.
  26870. {
  26871. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  26872. test -d "$tmp"
  26873. } ||
  26874. {
  26875. tmp=./conf$$-$RANDOM
  26876. (umask 077 && mkdir "$tmp")
  26877. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  26878. ac_tmp=$tmp
  26879. # Set up the scripts for CONFIG_FILES section.
  26880. # No need to generate them if there are no CONFIG_FILES.
  26881. # This happens for instance with `./config.status config.h'.
  26882. if test -n "$CONFIG_FILES"; then
  26883. ac_cr=`echo X | tr X '\015'`
  26884. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  26885. # But we know of no other shell where ac_cr would be empty at this
  26886. # point, so we can use a bashism as a fallback.
  26887. if test "x$ac_cr" = x; then
  26888. eval ac_cr=\$\'\\r\'
  26889. fi
  26890. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  26891. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  26892. ac_cs_awk_cr='\\r'
  26893. else
  26894. ac_cs_awk_cr=$ac_cr
  26895. fi
  26896. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  26897. _ACEOF
  26898. {
  26899. echo "cat >conf$$subs.awk <<_ACEOF" &&
  26900. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  26901. echo "_ACEOF"
  26902. } >conf$$subs.sh ||
  26903. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26904. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  26905. ac_delim='%!_!# '
  26906. for ac_last_try in false false false false false :; do
  26907. . ./conf$$subs.sh ||
  26908. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26909. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  26910. if test $ac_delim_n = $ac_delim_num; then
  26911. break
  26912. elif $ac_last_try; then
  26913. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26914. else
  26915. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  26916. fi
  26917. done
  26918. rm -f conf$$subs.sh
  26919. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26920. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  26921. _ACEOF
  26922. sed -n '
  26923. h
  26924. s/^/S["/; s/!.*/"]=/
  26925. p
  26926. g
  26927. s/^[^!]*!//
  26928. :repl
  26929. t repl
  26930. s/'"$ac_delim"'$//
  26931. t delim
  26932. :nl
  26933. h
  26934. s/\(.\{148\}\)..*/\1/
  26935. t more1
  26936. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  26937. p
  26938. n
  26939. b repl
  26940. :more1
  26941. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  26942. p
  26943. g
  26944. s/.\{148\}//
  26945. t nl
  26946. :delim
  26947. h
  26948. s/\(.\{148\}\)..*/\1/
  26949. t more2
  26950. s/["\\]/\\&/g; s/^/"/; s/$/"/
  26951. p
  26952. b
  26953. :more2
  26954. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  26955. p
  26956. g
  26957. s/.\{148\}//
  26958. t delim
  26959. ' <conf$$subs.awk | sed '
  26960. /^[^""]/{
  26961. N
  26962. s/\n//
  26963. }
  26964. ' >>$CONFIG_STATUS || ac_write_fail=1
  26965. rm -f conf$$subs.awk
  26966. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26967. _ACAWK
  26968. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  26969. for (key in S) S_is_set[key] = 1
  26970. FS = ""
  26971. }
  26972. {
  26973. line = $ 0
  26974. nfields = split(line, field, "@")
  26975. substed = 0
  26976. len = length(field[1])
  26977. for (i = 2; i < nfields; i++) {
  26978. key = field[i]
  26979. keylen = length(key)
  26980. if (S_is_set[key]) {
  26981. value = S[key]
  26982. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  26983. len += length(value) + length(field[++i])
  26984. substed = 1
  26985. } else
  26986. len += 1 + keylen
  26987. }
  26988. print line
  26989. }
  26990. _ACAWK
  26991. _ACEOF
  26992. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26993. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  26994. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  26995. else
  26996. cat
  26997. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  26998. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  26999. _ACEOF
  27000. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  27001. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  27002. # trailing colons and then remove the whole line if VPATH becomes empty
  27003. # (actually we leave an empty line to preserve line numbers).
  27004. if test "x$srcdir" = x.; then
  27005. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  27006. h
  27007. s///
  27008. s/^/:/
  27009. s/[ ]*$/:/
  27010. s/:\$(srcdir):/:/g
  27011. s/:\${srcdir}:/:/g
  27012. s/:@srcdir@:/:/g
  27013. s/^:*//
  27014. s/:*$//
  27015. x
  27016. s/\(=[ ]*\).*/\1/
  27017. G
  27018. s/\n//
  27019. s/^[^=]*=[ ]*$//
  27020. }'
  27021. fi
  27022. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27023. fi # test -n "$CONFIG_FILES"
  27024. # Set up the scripts for CONFIG_HEADERS section.
  27025. # No need to generate them if there are no CONFIG_HEADERS.
  27026. # This happens for instance with `./config.status Makefile'.
  27027. if test -n "$CONFIG_HEADERS"; then
  27028. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  27029. BEGIN {
  27030. _ACEOF
  27031. # Transform confdefs.h into an awk script `defines.awk', embedded as
  27032. # here-document in config.status, that substitutes the proper values into
  27033. # config.h.in to produce config.h.
  27034. # Create a delimiter string that does not exist in confdefs.h, to ease
  27035. # handling of long lines.
  27036. ac_delim='%!_!# '
  27037. for ac_last_try in false false :; do
  27038. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  27039. if test -z "$ac_tt"; then
  27040. break
  27041. elif $ac_last_try; then
  27042. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  27043. else
  27044. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  27045. fi
  27046. done
  27047. # For the awk script, D is an array of macro values keyed by name,
  27048. # likewise P contains macro parameters if any. Preserve backslash
  27049. # newline sequences.
  27050. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  27051. sed -n '
  27052. s/.\{148\}/&'"$ac_delim"'/g
  27053. t rset
  27054. :rset
  27055. s/^[ ]*#[ ]*define[ ][ ]*/ /
  27056. t def
  27057. d
  27058. :def
  27059. s/\\$//
  27060. t bsnl
  27061. s/["\\]/\\&/g
  27062. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27063. D["\1"]=" \3"/p
  27064. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  27065. d
  27066. :bsnl
  27067. s/["\\]/\\&/g
  27068. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27069. D["\1"]=" \3\\\\\\n"\\/p
  27070. t cont
  27071. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  27072. t cont
  27073. d
  27074. :cont
  27075. n
  27076. s/.\{148\}/&'"$ac_delim"'/g
  27077. t clear
  27078. :clear
  27079. s/\\$//
  27080. t bsnlc
  27081. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  27082. d
  27083. :bsnlc
  27084. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  27085. b cont
  27086. ' <confdefs.h | sed '
  27087. s/'"$ac_delim"'/"\\\
  27088. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  27089. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27090. for (key in D) D_is_set[key] = 1
  27091. FS = ""
  27092. }
  27093. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  27094. line = \$ 0
  27095. split(line, arg, " ")
  27096. if (arg[1] == "#") {
  27097. defundef = arg[2]
  27098. mac1 = arg[3]
  27099. } else {
  27100. defundef = substr(arg[1], 2)
  27101. mac1 = arg[2]
  27102. }
  27103. split(mac1, mac2, "(") #)
  27104. macro = mac2[1]
  27105. prefix = substr(line, 1, index(line, defundef) - 1)
  27106. if (D_is_set[macro]) {
  27107. # Preserve the white space surrounding the "#".
  27108. print prefix "define", macro P[macro] D[macro]
  27109. next
  27110. } else {
  27111. # Replace #undef with comments. This is necessary, for example,
  27112. # in the case of _POSIX_SOURCE, which is predefined and required
  27113. # on some systems where configure will not decide to define it.
  27114. if (defundef == "undef") {
  27115. print "/*", prefix defundef, macro, "*/"
  27116. next
  27117. }
  27118. }
  27119. }
  27120. { print }
  27121. _ACAWK
  27122. _ACEOF
  27123. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27124. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  27125. fi # test -n "$CONFIG_HEADERS"
  27126. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  27127. shift
  27128. for ac_tag
  27129. do
  27130. case $ac_tag in
  27131. :[FHLC]) ac_mode=$ac_tag; continue;;
  27132. esac
  27133. case $ac_mode$ac_tag in
  27134. :[FHL]*:*);;
  27135. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  27136. :[FH]-) ac_tag=-:-;;
  27137. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  27138. esac
  27139. ac_save_IFS=$IFS
  27140. IFS=:
  27141. set x $ac_tag
  27142. IFS=$ac_save_IFS
  27143. shift
  27144. ac_file=$1
  27145. shift
  27146. case $ac_mode in
  27147. :L) ac_source=$1;;
  27148. :[FH])
  27149. ac_file_inputs=
  27150. for ac_f
  27151. do
  27152. case $ac_f in
  27153. -) ac_f="$ac_tmp/stdin";;
  27154. *) # Look for the file first in the build tree, then in the source tree
  27155. # (if the path is not absolute). The absolute path cannot be DOS-style,
  27156. # because $ac_f cannot contain `:'.
  27157. test -f "$ac_f" ||
  27158. case $ac_f in
  27159. [\\/$]*) false;;
  27160. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  27161. esac ||
  27162. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  27163. esac
  27164. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  27165. as_fn_append ac_file_inputs " '$ac_f'"
  27166. done
  27167. # Let's still pretend it is `configure' which instantiates (i.e., don't
  27168. # use $as_me), people would be surprised to read:
  27169. # /* config.h. Generated by config.status. */
  27170. configure_input='Generated from '`
  27171. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  27172. `' by configure.'
  27173. if test x"$ac_file" != x-; then
  27174. configure_input="$ac_file. $configure_input"
  27175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  27176. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  27177. fi
  27178. # Neutralize special characters interpreted by sed in replacement strings.
  27179. case $configure_input in #(
  27180. *\&* | *\|* | *\\* )
  27181. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  27182. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  27183. *) ac_sed_conf_input=$configure_input;;
  27184. esac
  27185. case $ac_tag in
  27186. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  27187. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  27188. esac
  27189. ;;
  27190. esac
  27191. ac_dir=`$as_dirname -- "$ac_file" ||
  27192. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27193. X"$ac_file" : 'X\(//\)[^/]' \| \
  27194. X"$ac_file" : 'X\(//\)$' \| \
  27195. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  27196. printf "%s\n" X"$ac_file" |
  27197. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27198. s//\1/
  27199. q
  27200. }
  27201. /^X\(\/\/\)[^/].*/{
  27202. s//\1/
  27203. q
  27204. }
  27205. /^X\(\/\/\)$/{
  27206. s//\1/
  27207. q
  27208. }
  27209. /^X\(\/\).*/{
  27210. s//\1/
  27211. q
  27212. }
  27213. s/.*/./; q'`
  27214. as_dir="$ac_dir"; as_fn_mkdir_p
  27215. ac_builddir=.
  27216. case "$ac_dir" in
  27217. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27218. *)
  27219. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  27220. # A ".." for each directory in $ac_dir_suffix.
  27221. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  27222. case $ac_top_builddir_sub in
  27223. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27224. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  27225. esac ;;
  27226. esac
  27227. ac_abs_top_builddir=$ac_pwd
  27228. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  27229. # for backward compatibility:
  27230. ac_top_builddir=$ac_top_build_prefix
  27231. case $srcdir in
  27232. .) # We are building in place.
  27233. ac_srcdir=.
  27234. ac_top_srcdir=$ac_top_builddir_sub
  27235. ac_abs_top_srcdir=$ac_pwd ;;
  27236. [\\/]* | ?:[\\/]* ) # Absolute name.
  27237. ac_srcdir=$srcdir$ac_dir_suffix;
  27238. ac_top_srcdir=$srcdir
  27239. ac_abs_top_srcdir=$srcdir ;;
  27240. *) # Relative name.
  27241. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  27242. ac_top_srcdir=$ac_top_build_prefix$srcdir
  27243. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  27244. esac
  27245. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  27246. case $ac_mode in
  27247. :F)
  27248. #
  27249. # CONFIG_FILE
  27250. #
  27251. case $INSTALL in
  27252. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  27253. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  27254. esac
  27255. _ACEOF
  27256. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27257. # If the template does not know about datarootdir, expand it.
  27258. # FIXME: This hack should be removed a few years after 2.60.
  27259. ac_datarootdir_hack=; ac_datarootdir_seen=
  27260. ac_sed_dataroot='
  27261. /datarootdir/ {
  27262. p
  27263. q
  27264. }
  27265. /@datadir@/p
  27266. /@docdir@/p
  27267. /@infodir@/p
  27268. /@localedir@/p
  27269. /@mandir@/p'
  27270. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  27271. *datarootdir*) ac_datarootdir_seen=yes;;
  27272. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  27273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  27274. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  27275. _ACEOF
  27276. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27277. ac_datarootdir_hack='
  27278. s&@datadir@&$datadir&g
  27279. s&@docdir@&$docdir&g
  27280. s&@infodir@&$infodir&g
  27281. s&@localedir@&$localedir&g
  27282. s&@mandir@&$mandir&g
  27283. s&\\\${datarootdir}&$datarootdir&g' ;;
  27284. esac
  27285. _ACEOF
  27286. # Neutralize VPATH when `$srcdir' = `.'.
  27287. # Shell code in configure.ac might set extrasub.
  27288. # FIXME: do we really want to maintain this feature?
  27289. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27290. ac_sed_extra="$ac_vpsub
  27291. $extrasub
  27292. _ACEOF
  27293. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27294. :t
  27295. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  27296. s|@configure_input@|$ac_sed_conf_input|;t t
  27297. s&@top_builddir@&$ac_top_builddir_sub&;t t
  27298. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  27299. s&@srcdir@&$ac_srcdir&;t t
  27300. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  27301. s&@top_srcdir@&$ac_top_srcdir&;t t
  27302. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  27303. s&@builddir@&$ac_builddir&;t t
  27304. s&@abs_builddir@&$ac_abs_builddir&;t t
  27305. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  27306. s&@INSTALL@&$ac_INSTALL&;t t
  27307. $ac_datarootdir_hack
  27308. "
  27309. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  27310. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27311. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  27312. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  27313. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  27314. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  27315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27316. which seems to be undefined. Please make sure it is defined" >&5
  27317. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27318. which seems to be undefined. Please make sure it is defined" >&2;}
  27319. rm -f "$ac_tmp/stdin"
  27320. case $ac_file in
  27321. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  27322. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  27323. esac \
  27324. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27325. ;;
  27326. :H)
  27327. #
  27328. # CONFIG_HEADER
  27329. #
  27330. if test x"$ac_file" != x-; then
  27331. {
  27332. printf "%s\n" "/* $configure_input */" >&1 \
  27333. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  27334. } >"$ac_tmp/config.h" \
  27335. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27336. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  27337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  27338. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  27339. else
  27340. rm -f "$ac_file"
  27341. mv "$ac_tmp/config.h" "$ac_file" \
  27342. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27343. fi
  27344. else
  27345. printf "%s\n" "/* $configure_input */" >&1 \
  27346. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  27347. || as_fn_error $? "could not create -" "$LINENO" 5
  27348. fi
  27349. ;;
  27350. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  27351. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  27352. ;;
  27353. esac
  27354. case $ac_file$ac_mode in
  27355. "libtool":C)
  27356. # See if we are running on zsh, and set the options that allow our
  27357. # commands through without removal of \ escapes.
  27358. if test -n "${ZSH_VERSION+set}"; then
  27359. setopt NO_GLOB_SUBST
  27360. fi
  27361. cfgfile=${ofile}T
  27362. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  27363. $RM "$cfgfile"
  27364. cat <<_LT_EOF >> "$cfgfile"
  27365. #! $SHELL
  27366. # Generated automatically by $as_me ($PACKAGE) $VERSION
  27367. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  27368. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  27369. # Provide generalized library-building support services.
  27370. # Written by Gordon Matzigkeit, 1996
  27371. # Copyright (C) 2014 Free Software Foundation, Inc.
  27372. # This is free software; see the source for copying conditions. There is NO
  27373. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  27374. # GNU Libtool is free software; you can redistribute it and/or modify
  27375. # it under the terms of the GNU General Public License as published by
  27376. # the Free Software Foundation; either version 2 of of the License, or
  27377. # (at your option) any later version.
  27378. #
  27379. # As a special exception to the GNU General Public License, if you
  27380. # distribute this file as part of a program or library that is built
  27381. # using GNU Libtool, you may include this file under the same
  27382. # distribution terms that you use for the rest of that program.
  27383. #
  27384. # GNU Libtool is distributed in the hope that it will be useful, but
  27385. # WITHOUT ANY WARRANTY; without even the implied warranty of
  27386. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  27387. # GNU General Public License for more details.
  27388. #
  27389. # You should have received a copy of the GNU General Public License
  27390. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  27391. # The names of the tagged configurations supported by this script.
  27392. available_tags='RC CXX '
  27393. # Configured defaults for sys_lib_dlsearch_path munging.
  27394. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  27395. # ### BEGIN LIBTOOL CONFIG
  27396. # Which release of libtool.m4 was used?
  27397. macro_version=$macro_version
  27398. macro_revision=$macro_revision
  27399. # Assembler program.
  27400. AS=$lt_AS
  27401. # DLL creation program.
  27402. DLLTOOL=$lt_DLLTOOL
  27403. # Object dumper program.
  27404. OBJDUMP=$lt_OBJDUMP
  27405. # Whether or not to build shared libraries.
  27406. build_libtool_libs=$enable_shared
  27407. # Whether or not to build static libraries.
  27408. build_old_libs=$enable_static
  27409. # What type of objects to build.
  27410. pic_mode=$pic_mode
  27411. # Whether or not to optimize for fast installation.
  27412. fast_install=$enable_fast_install
  27413. # Shared archive member basename,for filename based shared library versioning on AIX.
  27414. shared_archive_member_spec=$shared_archive_member_spec
  27415. # Shell to use when invoking shell scripts.
  27416. SHELL=$lt_SHELL
  27417. # An echo program that protects backslashes.
  27418. ECHO=$lt_ECHO
  27419. # The PATH separator for the build system.
  27420. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  27421. # The host system.
  27422. host_alias=$host_alias
  27423. host=$host
  27424. host_os=$host_os
  27425. # The build system.
  27426. build_alias=$build_alias
  27427. build=$build
  27428. build_os=$build_os
  27429. # A sed program that does not truncate output.
  27430. SED=$lt_SED
  27431. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  27432. Xsed="\$SED -e 1s/^X//"
  27433. # A grep program that handles long lines.
  27434. GREP=$lt_GREP
  27435. # An ERE matcher.
  27436. EGREP=$lt_EGREP
  27437. # A literal string matcher.
  27438. FGREP=$lt_FGREP
  27439. # A BSD- or MS-compatible name lister.
  27440. NM=$lt_NM
  27441. # Whether we need soft or hard links.
  27442. LN_S=$lt_LN_S
  27443. # What is the maximum length of a command?
  27444. max_cmd_len=$max_cmd_len
  27445. # Object file suffix (normally "o").
  27446. objext=$ac_objext
  27447. # Executable file suffix (normally "").
  27448. exeext=$exeext
  27449. # whether the shell understands "unset".
  27450. lt_unset=$lt_unset
  27451. # turn spaces into newlines.
  27452. SP2NL=$lt_lt_SP2NL
  27453. # turn newlines into spaces.
  27454. NL2SP=$lt_lt_NL2SP
  27455. # convert \$build file names to \$host format.
  27456. to_host_file_cmd=$lt_cv_to_host_file_cmd
  27457. # convert \$build files to toolchain format.
  27458. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  27459. # Method to check whether dependent libraries are shared objects.
  27460. deplibs_check_method=$lt_deplibs_check_method
  27461. # Command to use when deplibs_check_method = "file_magic".
  27462. file_magic_cmd=$lt_file_magic_cmd
  27463. # How to find potential files when deplibs_check_method = "file_magic".
  27464. file_magic_glob=$lt_file_magic_glob
  27465. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  27466. want_nocaseglob=$lt_want_nocaseglob
  27467. # Command to associate shared and link libraries.
  27468. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  27469. # The archiver.
  27470. AR=$lt_AR
  27471. # Flags to create an archive.
  27472. AR_FLAGS=$lt_AR_FLAGS
  27473. # How to feed a file listing to the archiver.
  27474. archiver_list_spec=$lt_archiver_list_spec
  27475. # A symbol stripping program.
  27476. STRIP=$lt_STRIP
  27477. # Commands used to install an old-style archive.
  27478. RANLIB=$lt_RANLIB
  27479. old_postinstall_cmds=$lt_old_postinstall_cmds
  27480. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  27481. # Whether to use a lock for old archive extraction.
  27482. lock_old_archive_extraction=$lock_old_archive_extraction
  27483. # A C compiler.
  27484. LTCC=$lt_CC
  27485. # LTCC compiler flags.
  27486. LTCFLAGS=$lt_CFLAGS
  27487. # Take the output of nm and produce a listing of raw symbols and C names.
  27488. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  27489. # Transform the output of nm in a proper C declaration.
  27490. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  27491. # Transform the output of nm into a list of symbols to manually relocate.
  27492. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  27493. # Transform the output of nm in a C name address pair.
  27494. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  27495. # Transform the output of nm in a C name address pair when lib prefix is needed.
  27496. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  27497. # The name lister interface.
  27498. nm_interface=$lt_lt_cv_nm_interface
  27499. # Specify filename containing input files for \$NM.
  27500. nm_file_list_spec=$lt_nm_file_list_spec
  27501. # The root where to search for dependent libraries,and where our libraries should be installed.
  27502. lt_sysroot=$lt_sysroot
  27503. # Command to truncate a binary pipe.
  27504. lt_truncate_bin=$lt_lt_cv_truncate_bin
  27505. # The name of the directory that contains temporary libtool files.
  27506. objdir=$objdir
  27507. # Used to examine libraries when file_magic_cmd begins with "file".
  27508. MAGIC_CMD=$MAGIC_CMD
  27509. # Must we lock files when doing compilation?
  27510. need_locks=$lt_need_locks
  27511. # Manifest tool.
  27512. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  27513. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  27514. DSYMUTIL=$lt_DSYMUTIL
  27515. # Tool to change global to local symbols on Mac OS X.
  27516. NMEDIT=$lt_NMEDIT
  27517. # Tool to manipulate fat objects and archives on Mac OS X.
  27518. LIPO=$lt_LIPO
  27519. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  27520. OTOOL=$lt_OTOOL
  27521. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  27522. OTOOL64=$lt_OTOOL64
  27523. # Old archive suffix (normally "a").
  27524. libext=$libext
  27525. # Shared library suffix (normally ".so").
  27526. shrext_cmds=$lt_shrext_cmds
  27527. # The commands to extract the exported symbol list from a shared archive.
  27528. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  27529. # Variables whose values should be saved in libtool wrapper scripts and
  27530. # restored at link time.
  27531. variables_saved_for_relink=$lt_variables_saved_for_relink
  27532. # Do we need the "lib" prefix for modules?
  27533. need_lib_prefix=$need_lib_prefix
  27534. # Do we need a version for libraries?
  27535. need_version=$need_version
  27536. # Library versioning type.
  27537. version_type=$version_type
  27538. # Shared library runtime path variable.
  27539. runpath_var=$runpath_var
  27540. # Shared library path variable.
  27541. shlibpath_var=$shlibpath_var
  27542. # Is shlibpath searched before the hard-coded library search path?
  27543. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  27544. # Format of library name prefix.
  27545. libname_spec=$lt_libname_spec
  27546. # List of archive names. First name is the real one, the rest are links.
  27547. # The last name is the one that the linker finds with -lNAME
  27548. library_names_spec=$lt_library_names_spec
  27549. # The coded name of the library, if different from the real name.
  27550. soname_spec=$lt_soname_spec
  27551. # Permission mode override for installation of shared libraries.
  27552. install_override_mode=$lt_install_override_mode
  27553. # Command to use after installation of a shared archive.
  27554. postinstall_cmds=$lt_postinstall_cmds
  27555. # Command to use after uninstallation of a shared archive.
  27556. postuninstall_cmds=$lt_postuninstall_cmds
  27557. # Commands used to finish a libtool library installation in a directory.
  27558. finish_cmds=$lt_finish_cmds
  27559. # As "finish_cmds", except a single script fragment to be evaled but
  27560. # not shown.
  27561. finish_eval=$lt_finish_eval
  27562. # Whether we should hardcode library paths into libraries.
  27563. hardcode_into_libs=$hardcode_into_libs
  27564. # Compile-time system search path for libraries.
  27565. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  27566. # Detected run-time system search path for libraries.
  27567. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  27568. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  27569. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  27570. # Whether dlopen is supported.
  27571. dlopen_support=$enable_dlopen
  27572. # Whether dlopen of programs is supported.
  27573. dlopen_self=$enable_dlopen_self
  27574. # Whether dlopen of statically linked programs is supported.
  27575. dlopen_self_static=$enable_dlopen_self_static
  27576. # Commands to strip libraries.
  27577. old_striplib=$lt_old_striplib
  27578. striplib=$lt_striplib
  27579. # The linker used to build libraries.
  27580. LD=$lt_LD
  27581. # How to create reloadable object files.
  27582. reload_flag=$lt_reload_flag
  27583. reload_cmds=$lt_reload_cmds
  27584. # Commands used to build an old-style archive.
  27585. old_archive_cmds=$lt_old_archive_cmds
  27586. # A language specific compiler.
  27587. CC=$lt_compiler
  27588. # Is the compiler the GNU compiler?
  27589. with_gcc=$GCC
  27590. # Compiler flag to turn off builtin functions.
  27591. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  27592. # Additional compiler flags for building library objects.
  27593. pic_flag=$lt_lt_prog_compiler_pic
  27594. # How to pass a linker flag through the compiler.
  27595. wl=$lt_lt_prog_compiler_wl
  27596. # Compiler flag to prevent dynamic linking.
  27597. link_static_flag=$lt_lt_prog_compiler_static
  27598. # Does compiler simultaneously support -c and -o options?
  27599. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  27600. # Whether or not to add -lc for building shared libraries.
  27601. build_libtool_need_lc=$archive_cmds_need_lc
  27602. # Whether or not to disallow shared libs when runtime libs are static.
  27603. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  27604. # Compiler flag to allow reflexive dlopens.
  27605. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  27606. # Compiler flag to generate shared objects directly from archives.
  27607. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  27608. # Whether the compiler copes with passing no objects directly.
  27609. compiler_needs_object=$lt_compiler_needs_object
  27610. # Create an old-style archive from a shared archive.
  27611. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  27612. # Create a temporary old-style archive to link instead of a shared archive.
  27613. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  27614. # Commands used to build a shared archive.
  27615. archive_cmds=$lt_archive_cmds
  27616. archive_expsym_cmds=$lt_archive_expsym_cmds
  27617. # Commands used to build a loadable module if different from building
  27618. # a shared archive.
  27619. module_cmds=$lt_module_cmds
  27620. module_expsym_cmds=$lt_module_expsym_cmds
  27621. # Whether we are building with GNU ld or not.
  27622. with_gnu_ld=$lt_with_gnu_ld
  27623. # Flag that allows shared libraries with undefined symbols to be built.
  27624. allow_undefined_flag=$lt_allow_undefined_flag
  27625. # Flag that enforces no undefined symbols.
  27626. no_undefined_flag=$lt_no_undefined_flag
  27627. # Flag to hardcode \$libdir into a binary during linking.
  27628. # This must work even if \$libdir does not exist
  27629. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  27630. # Whether we need a single "-rpath" flag with a separated argument.
  27631. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  27632. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27633. # DIR into the resulting binary.
  27634. hardcode_direct=$hardcode_direct
  27635. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27636. # DIR into the resulting binary and the resulting library dependency is
  27637. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27638. # library is relocated.
  27639. hardcode_direct_absolute=$hardcode_direct_absolute
  27640. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27641. # into the resulting binary.
  27642. hardcode_minus_L=$hardcode_minus_L
  27643. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27644. # into the resulting binary.
  27645. hardcode_shlibpath_var=$hardcode_shlibpath_var
  27646. # Set to "yes" if building a shared library automatically hardcodes DIR
  27647. # into the library and all subsequent libraries and executables linked
  27648. # against it.
  27649. hardcode_automatic=$hardcode_automatic
  27650. # Set to yes if linker adds runtime paths of dependent libraries
  27651. # to runtime path list.
  27652. inherit_rpath=$inherit_rpath
  27653. # Whether libtool must link a program against all its dependency libraries.
  27654. link_all_deplibs=$link_all_deplibs
  27655. # Set to "yes" if exported symbols are required.
  27656. always_export_symbols=$always_export_symbols
  27657. # The commands to list exported symbols.
  27658. export_symbols_cmds=$lt_export_symbols_cmds
  27659. # Symbols that should not be listed in the preloaded symbols.
  27660. exclude_expsyms=$lt_exclude_expsyms
  27661. # Symbols that must always be exported.
  27662. include_expsyms=$lt_include_expsyms
  27663. # Commands necessary for linking programs (against libraries) with templates.
  27664. prelink_cmds=$lt_prelink_cmds
  27665. # Commands necessary for finishing linking programs.
  27666. postlink_cmds=$lt_postlink_cmds
  27667. # Specify filename containing input files.
  27668. file_list_spec=$lt_file_list_spec
  27669. # How to hardcode a shared library path into an executable.
  27670. hardcode_action=$hardcode_action
  27671. # The directories searched by this compiler when creating a shared library.
  27672. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  27673. # Dependencies to place before and after the objects being linked to
  27674. # create a shared library.
  27675. predep_objects=$lt_predep_objects
  27676. postdep_objects=$lt_postdep_objects
  27677. predeps=$lt_predeps
  27678. postdeps=$lt_postdeps
  27679. # The library search path used internally by the compiler when linking
  27680. # a shared library.
  27681. compiler_lib_search_path=$lt_compiler_lib_search_path
  27682. # ### END LIBTOOL CONFIG
  27683. _LT_EOF
  27684. cat <<'_LT_EOF' >> "$cfgfile"
  27685. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  27686. # func_munge_path_list VARIABLE PATH
  27687. # -----------------------------------
  27688. # VARIABLE is name of variable containing _space_ separated list of
  27689. # directories to be munged by the contents of PATH, which is string
  27690. # having a format:
  27691. # "DIR[:DIR]:"
  27692. # string "DIR[ DIR]" will be prepended to VARIABLE
  27693. # ":DIR[:DIR]"
  27694. # string "DIR[ DIR]" will be appended to VARIABLE
  27695. # "DIRP[:DIRP]::[DIRA:]DIRA"
  27696. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  27697. # "DIRA[ DIRA]" will be appended to VARIABLE
  27698. # "DIR[:DIR]"
  27699. # VARIABLE will be replaced by "DIR[ DIR]"
  27700. func_munge_path_list ()
  27701. {
  27702. case x$2 in
  27703. x)
  27704. ;;
  27705. *:)
  27706. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  27707. ;;
  27708. x:*)
  27709. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  27710. ;;
  27711. *::*)
  27712. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  27713. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  27714. ;;
  27715. *)
  27716. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  27717. ;;
  27718. esac
  27719. }
  27720. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  27721. func_cc_basename ()
  27722. {
  27723. for cc_temp in $*""; do
  27724. case $cc_temp in
  27725. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  27726. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  27727. \-*) ;;
  27728. *) break;;
  27729. esac
  27730. done
  27731. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  27732. }
  27733. # ### END FUNCTIONS SHARED WITH CONFIGURE
  27734. _LT_EOF
  27735. case $host_os in
  27736. aix3*)
  27737. cat <<\_LT_EOF >> "$cfgfile"
  27738. # AIX sometimes has problems with the GCC collect2 program. For some
  27739. # reason, if we set the COLLECT_NAMES environment variable, the problems
  27740. # vanish in a puff of smoke.
  27741. if test set != "${COLLECT_NAMES+set}"; then
  27742. COLLECT_NAMES=
  27743. export COLLECT_NAMES
  27744. fi
  27745. _LT_EOF
  27746. ;;
  27747. esac
  27748. ltmain=$ac_aux_dir/ltmain.sh
  27749. # We use sed instead of cat because bash on DJGPP gets confused if
  27750. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  27751. # text mode, it properly converts lines to CR/LF. This bash problem
  27752. # is reportedly fixed, but why not run on old versions too?
  27753. sed '$q' "$ltmain" >> "$cfgfile" \
  27754. || (rm -f "$cfgfile"; exit 1)
  27755. mv -f "$cfgfile" "$ofile" ||
  27756. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  27757. chmod +x "$ofile"
  27758. cat <<_LT_EOF >> "$ofile"
  27759. # ### BEGIN LIBTOOL TAG CONFIG: RC
  27760. # The linker used to build libraries.
  27761. LD=$lt_LD_RC
  27762. # How to create reloadable object files.
  27763. reload_flag=$lt_reload_flag_RC
  27764. reload_cmds=$lt_reload_cmds_RC
  27765. # Commands used to build an old-style archive.
  27766. old_archive_cmds=$lt_old_archive_cmds_RC
  27767. # A language specific compiler.
  27768. CC=$lt_compiler_RC
  27769. # Is the compiler the GNU compiler?
  27770. with_gcc=$GCC_RC
  27771. # Compiler flag to turn off builtin functions.
  27772. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  27773. # Additional compiler flags for building library objects.
  27774. pic_flag=$lt_lt_prog_compiler_pic_RC
  27775. # How to pass a linker flag through the compiler.
  27776. wl=$lt_lt_prog_compiler_wl_RC
  27777. # Compiler flag to prevent dynamic linking.
  27778. link_static_flag=$lt_lt_prog_compiler_static_RC
  27779. # Does compiler simultaneously support -c and -o options?
  27780. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  27781. # Whether or not to add -lc for building shared libraries.
  27782. build_libtool_need_lc=$archive_cmds_need_lc_RC
  27783. # Whether or not to disallow shared libs when runtime libs are static.
  27784. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  27785. # Compiler flag to allow reflexive dlopens.
  27786. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  27787. # Compiler flag to generate shared objects directly from archives.
  27788. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  27789. # Whether the compiler copes with passing no objects directly.
  27790. compiler_needs_object=$lt_compiler_needs_object_RC
  27791. # Create an old-style archive from a shared archive.
  27792. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  27793. # Create a temporary old-style archive to link instead of a shared archive.
  27794. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  27795. # Commands used to build a shared archive.
  27796. archive_cmds=$lt_archive_cmds_RC
  27797. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  27798. # Commands used to build a loadable module if different from building
  27799. # a shared archive.
  27800. module_cmds=$lt_module_cmds_RC
  27801. module_expsym_cmds=$lt_module_expsym_cmds_RC
  27802. # Whether we are building with GNU ld or not.
  27803. with_gnu_ld=$lt_with_gnu_ld_RC
  27804. # Flag that allows shared libraries with undefined symbols to be built.
  27805. allow_undefined_flag=$lt_allow_undefined_flag_RC
  27806. # Flag that enforces no undefined symbols.
  27807. no_undefined_flag=$lt_no_undefined_flag_RC
  27808. # Flag to hardcode \$libdir into a binary during linking.
  27809. # This must work even if \$libdir does not exist
  27810. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  27811. # Whether we need a single "-rpath" flag with a separated argument.
  27812. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  27813. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27814. # DIR into the resulting binary.
  27815. hardcode_direct=$hardcode_direct_RC
  27816. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27817. # DIR into the resulting binary and the resulting library dependency is
  27818. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27819. # library is relocated.
  27820. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  27821. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27822. # into the resulting binary.
  27823. hardcode_minus_L=$hardcode_minus_L_RC
  27824. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27825. # into the resulting binary.
  27826. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  27827. # Set to "yes" if building a shared library automatically hardcodes DIR
  27828. # into the library and all subsequent libraries and executables linked
  27829. # against it.
  27830. hardcode_automatic=$hardcode_automatic_RC
  27831. # Set to yes if linker adds runtime paths of dependent libraries
  27832. # to runtime path list.
  27833. inherit_rpath=$inherit_rpath_RC
  27834. # Whether libtool must link a program against all its dependency libraries.
  27835. link_all_deplibs=$link_all_deplibs_RC
  27836. # Set to "yes" if exported symbols are required.
  27837. always_export_symbols=$always_export_symbols_RC
  27838. # The commands to list exported symbols.
  27839. export_symbols_cmds=$lt_export_symbols_cmds_RC
  27840. # Symbols that should not be listed in the preloaded symbols.
  27841. exclude_expsyms=$lt_exclude_expsyms_RC
  27842. # Symbols that must always be exported.
  27843. include_expsyms=$lt_include_expsyms_RC
  27844. # Commands necessary for linking programs (against libraries) with templates.
  27845. prelink_cmds=$lt_prelink_cmds_RC
  27846. # Commands necessary for finishing linking programs.
  27847. postlink_cmds=$lt_postlink_cmds_RC
  27848. # Specify filename containing input files.
  27849. file_list_spec=$lt_file_list_spec_RC
  27850. # How to hardcode a shared library path into an executable.
  27851. hardcode_action=$hardcode_action_RC
  27852. # The directories searched by this compiler when creating a shared library.
  27853. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  27854. # Dependencies to place before and after the objects being linked to
  27855. # create a shared library.
  27856. predep_objects=$lt_predep_objects_RC
  27857. postdep_objects=$lt_postdep_objects_RC
  27858. predeps=$lt_predeps_RC
  27859. postdeps=$lt_postdeps_RC
  27860. # The library search path used internally by the compiler when linking
  27861. # a shared library.
  27862. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  27863. # ### END LIBTOOL TAG CONFIG: RC
  27864. _LT_EOF
  27865. cat <<_LT_EOF >> "$ofile"
  27866. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  27867. # The linker used to build libraries.
  27868. LD=$lt_LD_CXX
  27869. # How to create reloadable object files.
  27870. reload_flag=$lt_reload_flag_CXX
  27871. reload_cmds=$lt_reload_cmds_CXX
  27872. # Commands used to build an old-style archive.
  27873. old_archive_cmds=$lt_old_archive_cmds_CXX
  27874. # A language specific compiler.
  27875. CC=$lt_compiler_CXX
  27876. # Is the compiler the GNU compiler?
  27877. with_gcc=$GCC_CXX
  27878. # Compiler flag to turn off builtin functions.
  27879. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  27880. # Additional compiler flags for building library objects.
  27881. pic_flag=$lt_lt_prog_compiler_pic_CXX
  27882. # How to pass a linker flag through the compiler.
  27883. wl=$lt_lt_prog_compiler_wl_CXX
  27884. # Compiler flag to prevent dynamic linking.
  27885. link_static_flag=$lt_lt_prog_compiler_static_CXX
  27886. # Does compiler simultaneously support -c and -o options?
  27887. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  27888. # Whether or not to add -lc for building shared libraries.
  27889. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  27890. # Whether or not to disallow shared libs when runtime libs are static.
  27891. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  27892. # Compiler flag to allow reflexive dlopens.
  27893. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  27894. # Compiler flag to generate shared objects directly from archives.
  27895. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  27896. # Whether the compiler copes with passing no objects directly.
  27897. compiler_needs_object=$lt_compiler_needs_object_CXX
  27898. # Create an old-style archive from a shared archive.
  27899. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  27900. # Create a temporary old-style archive to link instead of a shared archive.
  27901. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  27902. # Commands used to build a shared archive.
  27903. archive_cmds=$lt_archive_cmds_CXX
  27904. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  27905. # Commands used to build a loadable module if different from building
  27906. # a shared archive.
  27907. module_cmds=$lt_module_cmds_CXX
  27908. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  27909. # Whether we are building with GNU ld or not.
  27910. with_gnu_ld=$lt_with_gnu_ld_CXX
  27911. # Flag that allows shared libraries with undefined symbols to be built.
  27912. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  27913. # Flag that enforces no undefined symbols.
  27914. no_undefined_flag=$lt_no_undefined_flag_CXX
  27915. # Flag to hardcode \$libdir into a binary during linking.
  27916. # This must work even if \$libdir does not exist
  27917. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  27918. # Whether we need a single "-rpath" flag with a separated argument.
  27919. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  27920. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27921. # DIR into the resulting binary.
  27922. hardcode_direct=$hardcode_direct_CXX
  27923. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27924. # DIR into the resulting binary and the resulting library dependency is
  27925. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27926. # library is relocated.
  27927. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  27928. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27929. # into the resulting binary.
  27930. hardcode_minus_L=$hardcode_minus_L_CXX
  27931. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27932. # into the resulting binary.
  27933. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  27934. # Set to "yes" if building a shared library automatically hardcodes DIR
  27935. # into the library and all subsequent libraries and executables linked
  27936. # against it.
  27937. hardcode_automatic=$hardcode_automatic_CXX
  27938. # Set to yes if linker adds runtime paths of dependent libraries
  27939. # to runtime path list.
  27940. inherit_rpath=$inherit_rpath_CXX
  27941. # Whether libtool must link a program against all its dependency libraries.
  27942. link_all_deplibs=$link_all_deplibs_CXX
  27943. # Set to "yes" if exported symbols are required.
  27944. always_export_symbols=$always_export_symbols_CXX
  27945. # The commands to list exported symbols.
  27946. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  27947. # Symbols that should not be listed in the preloaded symbols.
  27948. exclude_expsyms=$lt_exclude_expsyms_CXX
  27949. # Symbols that must always be exported.
  27950. include_expsyms=$lt_include_expsyms_CXX
  27951. # Commands necessary for linking programs (against libraries) with templates.
  27952. prelink_cmds=$lt_prelink_cmds_CXX
  27953. # Commands necessary for finishing linking programs.
  27954. postlink_cmds=$lt_postlink_cmds_CXX
  27955. # Specify filename containing input files.
  27956. file_list_spec=$lt_file_list_spec_CXX
  27957. # How to hardcode a shared library path into an executable.
  27958. hardcode_action=$hardcode_action_CXX
  27959. # The directories searched by this compiler when creating a shared library.
  27960. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  27961. # Dependencies to place before and after the objects being linked to
  27962. # create a shared library.
  27963. predep_objects=$lt_predep_objects_CXX
  27964. postdep_objects=$lt_postdep_objects_CXX
  27965. predeps=$lt_predeps_CXX
  27966. postdeps=$lt_postdeps_CXX
  27967. # The library search path used internally by the compiler when linking
  27968. # a shared library.
  27969. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  27970. # ### END LIBTOOL TAG CONFIG: CXX
  27971. _LT_EOF
  27972. ;;
  27973. "sdl2_config":C) chmod a+x sdl2-config ;;
  27974. "summary":C) printf "$SUMMARY" ;;
  27975. esac
  27976. done # for ac_tag
  27977. as_fn_exit 0
  27978. _ACEOF
  27979. ac_clean_files=$ac_clean_files_save
  27980. test $ac_write_fail = 0 ||
  27981. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  27982. # configure is writing to config.log, and then calls config.status.
  27983. # config.status does its own redirection, appending to config.log.
  27984. # Unfortunately, on DOS this fails, as config.log is still kept open
  27985. # by configure, so config.status won't be able to write to it; its
  27986. # output is simply discarded. So we exec the FD to /dev/null,
  27987. # effectively closing config.log, so it can be properly (re)opened and
  27988. # appended to by config.status. When coming back to configure, we
  27989. # need to make the FD available again.
  27990. if test "$no_create" != yes; then
  27991. ac_cs_success=:
  27992. ac_config_status_args=
  27993. test "$silent" = yes &&
  27994. ac_config_status_args="$ac_config_status_args --quiet"
  27995. exec 5>/dev/null
  27996. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  27997. exec 5>>config.log
  27998. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  27999. # would make configure fail if this is the last instruction.
  28000. $ac_cs_success || as_fn_exit 1
  28001. fi
  28002. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  28003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  28004. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  28005. fi