🛠️🐜 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.

29945 lines
889 KiB

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME=
  539. PACKAGE_TARNAME=
  540. PACKAGE_VERSION=
  541. PACKAGE_STRING=
  542. PACKAGE_BUGREPORT=
  543. PACKAGE_URL=
  544. ac_unique_file="src/SDL.c"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='LTLIBOBJS
  581. WAYLAND_SCANNER_CODE_MODE
  582. WAYLAND_SCANNER
  583. EXTRA_LDFLAGS
  584. BUILD_LDFLAGS
  585. EXTRA_CFLAGS
  586. BUILD_CFLAGS
  587. SDLTEST_OBJECTS
  588. SDLMAIN_OBJECTS
  589. VERSION_OBJECTS
  590. GEN_OBJECTS
  591. GEN_HEADERS
  592. OBJECTS
  593. INCLUDE
  594. ac_aux_dir
  595. ENABLE_STATIC_FALSE
  596. ENABLE_STATIC_TRUE
  597. ENABLE_SHARED_FALSE
  598. ENABLE_SHARED_TRUE
  599. PKGCONFIG_LIBS_PRIV
  600. SDL_RLD_FLAGS
  601. SDL_STATIC_LIBS
  602. SDL_LIBS
  603. SDL_CFLAGS
  604. INSTALL_SDL2_CONFIG
  605. LIBUSB_LIBS
  606. LIBUSB_CFLAGS
  607. IBUS_LIBS
  608. IBUS_CFLAGS
  609. DBUS_LIBS
  610. DBUS_CFLAGS
  611. LIBGBM_LIBS
  612. LIBGBM_CFLAGS
  613. LIBDRM_LIBS
  614. LIBDRM_CFLAGS
  615. DIRECTFB_LIBS
  616. DIRECTFB_CFLAGS
  617. X_EXTRA_LIBS
  618. X_LIBS
  619. X_PRE_LIBS
  620. X_CFLAGS
  621. XMKMF
  622. RPI_LIBS
  623. RPI_CFLAGS
  624. DECOR_LIBS
  625. DECOR_CFLAGS
  626. FUSIONSOUND_LIBS
  627. FUSIONSOUND_CFLAGS
  628. ARTSCONFIG
  629. PULSEAUDIO_LIBS
  630. PULSEAUDIO_CFLAGS
  631. PIPEWIRE_LIBS
  632. PIPEWIRE_CFLAGS
  633. ESD_LIBS
  634. ESD_CFLAGS
  635. ESD_CONFIG
  636. JACK_LIBS
  637. JACK_CFLAGS
  638. ALSA_LIBS
  639. ALSA_CFLAGS
  640. POW_LIB
  641. LIBOBJS
  642. ALLOCA
  643. LIBTOOLLINKERTAG
  644. LINKER
  645. PKG_CONFIG_LIBDIR
  646. PKG_CONFIG_PATH
  647. PKG_CONFIG
  648. SET_MAKE
  649. INSTALL_DATA
  650. INSTALL_SCRIPT
  651. INSTALL_PROGRAM
  652. CXXCPP
  653. ac_ct_CXX
  654. CXXFLAGS
  655. CXX
  656. LT_AGE
  657. LT_REVISION
  658. LT_CURRENT
  659. LT_RELEASE
  660. RC
  661. CPP
  662. LT_SYS_LIBRARY_PATH
  663. OTOOL64
  664. OTOOL
  665. LIPO
  666. NMEDIT
  667. DSYMUTIL
  668. MANIFEST_TOOL
  669. AWK
  670. RANLIB
  671. STRIP
  672. ac_ct_AR
  673. AR
  674. LN_S
  675. NM
  676. ac_ct_DUMPBIN
  677. DUMPBIN
  678. LD
  679. FGREP
  680. EGREP
  681. GREP
  682. SED
  683. OBJEXT
  684. EXEEXT
  685. ac_ct_CC
  686. CPPFLAGS
  687. LDFLAGS
  688. CFLAGS
  689. CC
  690. host_os
  691. host_vendor
  692. host_cpu
  693. host
  694. build_os
  695. build_vendor
  696. build_cpu
  697. build
  698. LIBTOOL
  699. OBJDUMP
  700. DLLTOOL
  701. AS
  702. SDL_VERSION
  703. SDL_BINARY_AGE
  704. SDL_INTERFACE_AGE
  705. SDL_MICRO_VERSION
  706. SDL_MINOR_VERSION
  707. SDL_MAJOR_VERSION
  708. target_alias
  709. host_alias
  710. build_alias
  711. LIBS
  712. ECHO_T
  713. ECHO_N
  714. ECHO_C
  715. DEFS
  716. mandir
  717. localedir
  718. libdir
  719. psdir
  720. pdfdir
  721. dvidir
  722. htmldir
  723. infodir
  724. docdir
  725. oldincludedir
  726. includedir
  727. localstatedir
  728. sharedstatedir
  729. sysconfdir
  730. datadir
  731. datarootdir
  732. libexecdir
  733. sbindir
  734. bindir
  735. program_transform_name
  736. prefix
  737. exec_prefix
  738. PACKAGE_URL
  739. PACKAGE_BUGREPORT
  740. PACKAGE_STRING
  741. PACKAGE_VERSION
  742. PACKAGE_TARNAME
  743. PACKAGE_NAME
  744. PATH_SEPARATOR
  745. SHELL'
  746. ac_subst_files=''
  747. ac_user_opts='
  748. enable_option_checking
  749. enable_shared
  750. enable_static
  751. with_pic
  752. enable_fast_install
  753. with_aix_soname
  754. with_gnu_ld
  755. with_sysroot
  756. enable_libtool_lock
  757. enable_assertions
  758. enable_dependency_tracking
  759. enable_libc
  760. enable_gcc_atomics
  761. enable_atomic
  762. enable_audio
  763. enable_video
  764. enable_render
  765. enable_events
  766. enable_joystick
  767. enable_haptic
  768. enable_hidapi
  769. enable_sensor
  770. enable_power
  771. enable_filesystem
  772. enable_threads
  773. enable_timers
  774. enable_file
  775. enable_misc
  776. enable_locale
  777. enable_loadso
  778. enable_cpuinfo
  779. enable_assembly
  780. enable_ssemath
  781. enable_mmx
  782. enable_3dnow
  783. enable_sse
  784. enable_sse2
  785. enable_sse3
  786. enable_altivec
  787. enable_oss
  788. enable_alsa
  789. with_alsa_prefix
  790. with_alsa_inc_prefix
  791. enable_alsatest
  792. enable_alsa_shared
  793. enable_jack
  794. enable_jack_shared
  795. enable_esd
  796. with_esd_prefix
  797. with_esd_exec_prefix
  798. enable_esdtest
  799. enable_esd_shared
  800. enable_pipewire
  801. enable_pipewire_shared
  802. enable_pulseaudio
  803. enable_pulseaudio_shared
  804. enable_arts
  805. enable_arts_shared
  806. enable_nas
  807. enable_nas_shared
  808. enable_sndio
  809. enable_sndio_shared
  810. enable_fusionsound
  811. enable_fusionsound_shared
  812. enable_diskaudio
  813. enable_dummyaudio
  814. enable_libsamplerate
  815. enable_libsamplerate_shared
  816. enable_arm_simd
  817. enable_arm_neon
  818. enable_video_wayland
  819. enable_video_wayland_qt_touch
  820. enable_wayland_shared
  821. enable_libdecor
  822. enable_libdecor_shared
  823. enable_video_rpi
  824. enable_video_x11
  825. with_x
  826. enable_x11_shared
  827. enable_video_x11_xcursor
  828. enable_video_x11_xdbe
  829. enable_video_x11_xinerama
  830. enable_video_x11_xinput
  831. enable_video_x11_xfixes
  832. enable_video_x11_xrandr
  833. enable_video_x11_scrnsaver
  834. enable_video_x11_xshape
  835. enable_video_x11_vm
  836. enable_video_vivante
  837. enable_video_cocoa
  838. enable_video_metal
  839. enable_render_metal
  840. enable_video_directfb
  841. enable_directfb_shared
  842. enable_video_kmsdrm
  843. enable_kmsdrm_shared
  844. enable_video_dummy
  845. enable_video_offscreen
  846. enable_video_opengl
  847. enable_video_opengles
  848. enable_video_opengles1
  849. enable_video_opengles2
  850. enable_video_vulkan
  851. enable_libudev
  852. enable_dbus
  853. enable_ime
  854. enable_ibus
  855. enable_fcitx
  856. enable_joystick_mfi
  857. enable_pthreads
  858. enable_pthread_sem
  859. enable_directx
  860. enable_xinput
  861. enable_wasapi
  862. enable_hidapi_joystick
  863. enable_hidapi_libusb
  864. enable_clock_gettime
  865. enable_rpath
  866. enable_backgrounding_signal
  867. enable_foregrounding_signal
  868. enable_joystick_virtual
  869. enable_render_d3d
  870. enable_sdl2_config
  871. '
  872. ac_precious_vars='build_alias
  873. host_alias
  874. target_alias
  875. CC
  876. CFLAGS
  877. LDFLAGS
  878. LIBS
  879. CPPFLAGS
  880. LT_SYS_LIBRARY_PATH
  881. CPP
  882. CXX
  883. CXXFLAGS
  884. CCC
  885. CXXCPP
  886. PKG_CONFIG
  887. PKG_CONFIG_PATH
  888. PKG_CONFIG_LIBDIR
  889. JACK_CFLAGS
  890. JACK_LIBS
  891. PIPEWIRE_CFLAGS
  892. PIPEWIRE_LIBS
  893. PULSEAUDIO_CFLAGS
  894. PULSEAUDIO_LIBS
  895. FUSIONSOUND_CFLAGS
  896. FUSIONSOUND_LIBS
  897. DECOR_CFLAGS
  898. DECOR_LIBS
  899. RPI_CFLAGS
  900. RPI_LIBS
  901. XMKMF
  902. DIRECTFB_CFLAGS
  903. DIRECTFB_LIBS
  904. LIBDRM_CFLAGS
  905. LIBDRM_LIBS
  906. LIBGBM_CFLAGS
  907. LIBGBM_LIBS
  908. DBUS_CFLAGS
  909. DBUS_LIBS
  910. IBUS_CFLAGS
  911. IBUS_LIBS
  912. LIBUSB_CFLAGS
  913. LIBUSB_LIBS'
  914. # Initialize some variables set by options.
  915. ac_init_help=
  916. ac_init_version=false
  917. ac_unrecognized_opts=
  918. ac_unrecognized_sep=
  919. # The variables have the same names as the options, with
  920. # dashes changed to underlines.
  921. cache_file=/dev/null
  922. exec_prefix=NONE
  923. no_create=
  924. no_recursion=
  925. prefix=NONE
  926. program_prefix=NONE
  927. program_suffix=NONE
  928. program_transform_name=s,x,x,
  929. silent=
  930. site=
  931. srcdir=
  932. verbose=
  933. x_includes=NONE
  934. x_libraries=NONE
  935. # Installation directory options.
  936. # These are left unexpanded so users can "make install exec_prefix=/foo"
  937. # and all the variables that are supposed to be based on exec_prefix
  938. # by default will actually change.
  939. # Use braces instead of parens because sh, perl, etc. also accept them.
  940. # (The list follows the same order as the GNU Coding Standards.)
  941. bindir='${exec_prefix}/bin'
  942. sbindir='${exec_prefix}/sbin'
  943. libexecdir='${exec_prefix}/libexec'
  944. datarootdir='${prefix}/share'
  945. datadir='${datarootdir}'
  946. sysconfdir='${prefix}/etc'
  947. sharedstatedir='${prefix}/com'
  948. localstatedir='${prefix}/var'
  949. includedir='${prefix}/include'
  950. oldincludedir='/usr/include'
  951. docdir='${datarootdir}/doc/${PACKAGE}'
  952. infodir='${datarootdir}/info'
  953. htmldir='${docdir}'
  954. dvidir='${docdir}'
  955. pdfdir='${docdir}'
  956. psdir='${docdir}'
  957. libdir='${exec_prefix}/lib'
  958. localedir='${datarootdir}/locale'
  959. mandir='${datarootdir}/man'
  960. ac_prev=
  961. ac_dashdash=
  962. for ac_option
  963. do
  964. # If the previous option needs an argument, assign it.
  965. if test -n "$ac_prev"; then
  966. eval $ac_prev=\$ac_option
  967. ac_prev=
  968. continue
  969. fi
  970. case $ac_option in
  971. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  972. *=) ac_optarg= ;;
  973. *) ac_optarg=yes ;;
  974. esac
  975. # Accept the important Cygnus configure options, so we can diagnose typos.
  976. case $ac_dashdash$ac_option in
  977. --)
  978. ac_dashdash=yes ;;
  979. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  980. ac_prev=bindir ;;
  981. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  982. bindir=$ac_optarg ;;
  983. -build | --build | --buil | --bui | --bu)
  984. ac_prev=build_alias ;;
  985. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  986. build_alias=$ac_optarg ;;
  987. -cache-file | --cache-file | --cache-fil | --cache-fi \
  988. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  989. ac_prev=cache_file ;;
  990. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  991. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  992. cache_file=$ac_optarg ;;
  993. --config-cache | -C)
  994. cache_file=config.cache ;;
  995. -datadir | --datadir | --datadi | --datad)
  996. ac_prev=datadir ;;
  997. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  998. datadir=$ac_optarg ;;
  999. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1000. | --dataroo | --dataro | --datar)
  1001. ac_prev=datarootdir ;;
  1002. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1003. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1004. datarootdir=$ac_optarg ;;
  1005. -disable-* | --disable-*)
  1006. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1007. # Reject names that are not valid shell variable names.
  1008. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1009. as_fn_error $? "invalid feature name: $ac_useropt"
  1010. ac_useropt_orig=$ac_useropt
  1011. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1012. case $ac_user_opts in
  1013. *"
  1014. "enable_$ac_useropt"
  1015. "*) ;;
  1016. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1017. ac_unrecognized_sep=', ';;
  1018. esac
  1019. eval enable_$ac_useropt=no ;;
  1020. -docdir | --docdir | --docdi | --doc | --do)
  1021. ac_prev=docdir ;;
  1022. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1023. docdir=$ac_optarg ;;
  1024. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1025. ac_prev=dvidir ;;
  1026. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1027. dvidir=$ac_optarg ;;
  1028. -enable-* | --enable-*)
  1029. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1030. # Reject names that are not valid shell variable names.
  1031. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1032. as_fn_error $? "invalid feature name: $ac_useropt"
  1033. ac_useropt_orig=$ac_useropt
  1034. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1035. case $ac_user_opts in
  1036. *"
  1037. "enable_$ac_useropt"
  1038. "*) ;;
  1039. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1040. ac_unrecognized_sep=', ';;
  1041. esac
  1042. eval enable_$ac_useropt=\$ac_optarg ;;
  1043. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1044. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1045. | --exec | --exe | --ex)
  1046. ac_prev=exec_prefix ;;
  1047. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1048. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1049. | --exec=* | --exe=* | --ex=*)
  1050. exec_prefix=$ac_optarg ;;
  1051. -gas | --gas | --ga | --g)
  1052. # Obsolete; use --with-gas.
  1053. with_gas=yes ;;
  1054. -help | --help | --hel | --he | -h)
  1055. ac_init_help=long ;;
  1056. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1057. ac_init_help=recursive ;;
  1058. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1059. ac_init_help=short ;;
  1060. -host | --host | --hos | --ho)
  1061. ac_prev=host_alias ;;
  1062. -host=* | --host=* | --hos=* | --ho=*)
  1063. host_alias=$ac_optarg ;;
  1064. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1065. ac_prev=htmldir ;;
  1066. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1067. | --ht=*)
  1068. htmldir=$ac_optarg ;;
  1069. -includedir | --includedir | --includedi | --included | --include \
  1070. | --includ | --inclu | --incl | --inc)
  1071. ac_prev=includedir ;;
  1072. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1073. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1074. includedir=$ac_optarg ;;
  1075. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1076. ac_prev=infodir ;;
  1077. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1078. infodir=$ac_optarg ;;
  1079. -libdir | --libdir | --libdi | --libd)
  1080. ac_prev=libdir ;;
  1081. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1082. libdir=$ac_optarg ;;
  1083. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1084. | --libexe | --libex | --libe)
  1085. ac_prev=libexecdir ;;
  1086. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1087. | --libexe=* | --libex=* | --libe=*)
  1088. libexecdir=$ac_optarg ;;
  1089. -localedir | --localedir | --localedi | --localed | --locale)
  1090. ac_prev=localedir ;;
  1091. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1092. localedir=$ac_optarg ;;
  1093. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1094. | --localstate | --localstat | --localsta | --localst | --locals)
  1095. ac_prev=localstatedir ;;
  1096. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1097. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1098. localstatedir=$ac_optarg ;;
  1099. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1100. ac_prev=mandir ;;
  1101. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1102. mandir=$ac_optarg ;;
  1103. -nfp | --nfp | --nf)
  1104. # Obsolete; use --without-fp.
  1105. with_fp=no ;;
  1106. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1107. | --no-cr | --no-c | -n)
  1108. no_create=yes ;;
  1109. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1110. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1111. no_recursion=yes ;;
  1112. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1113. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1114. | --oldin | --oldi | --old | --ol | --o)
  1115. ac_prev=oldincludedir ;;
  1116. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1117. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1118. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1119. oldincludedir=$ac_optarg ;;
  1120. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1121. ac_prev=prefix ;;
  1122. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1123. prefix=$ac_optarg ;;
  1124. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1125. | --program-pre | --program-pr | --program-p)
  1126. ac_prev=program_prefix ;;
  1127. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1128. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1129. program_prefix=$ac_optarg ;;
  1130. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1131. | --program-suf | --program-su | --program-s)
  1132. ac_prev=program_suffix ;;
  1133. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1134. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1135. program_suffix=$ac_optarg ;;
  1136. -program-transform-name | --program-transform-name \
  1137. | --program-transform-nam | --program-transform-na \
  1138. | --program-transform-n | --program-transform- \
  1139. | --program-transform | --program-transfor \
  1140. | --program-transfo | --program-transf \
  1141. | --program-trans | --program-tran \
  1142. | --progr-tra | --program-tr | --program-t)
  1143. ac_prev=program_transform_name ;;
  1144. -program-transform-name=* | --program-transform-name=* \
  1145. | --program-transform-nam=* | --program-transform-na=* \
  1146. | --program-transform-n=* | --program-transform-=* \
  1147. | --program-transform=* | --program-transfor=* \
  1148. | --program-transfo=* | --program-transf=* \
  1149. | --program-trans=* | --program-tran=* \
  1150. | --progr-tra=* | --program-tr=* | --program-t=*)
  1151. program_transform_name=$ac_optarg ;;
  1152. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1153. ac_prev=pdfdir ;;
  1154. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1155. pdfdir=$ac_optarg ;;
  1156. -psdir | --psdir | --psdi | --psd | --ps)
  1157. ac_prev=psdir ;;
  1158. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1159. psdir=$ac_optarg ;;
  1160. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1161. | -silent | --silent | --silen | --sile | --sil)
  1162. silent=yes ;;
  1163. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1164. ac_prev=sbindir ;;
  1165. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1166. | --sbi=* | --sb=*)
  1167. sbindir=$ac_optarg ;;
  1168. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1169. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1170. | --sharedst | --shareds | --shared | --share | --shar \
  1171. | --sha | --sh)
  1172. ac_prev=sharedstatedir ;;
  1173. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1174. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1175. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1176. | --sha=* | --sh=*)
  1177. sharedstatedir=$ac_optarg ;;
  1178. -site | --site | --sit)
  1179. ac_prev=site ;;
  1180. -site=* | --site=* | --sit=*)
  1181. site=$ac_optarg ;;
  1182. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1183. ac_prev=srcdir ;;
  1184. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1185. srcdir=$ac_optarg ;;
  1186. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1187. | --syscon | --sysco | --sysc | --sys | --sy)
  1188. ac_prev=sysconfdir ;;
  1189. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1190. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1191. sysconfdir=$ac_optarg ;;
  1192. -target | --target | --targe | --targ | --tar | --ta | --t)
  1193. ac_prev=target_alias ;;
  1194. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1195. target_alias=$ac_optarg ;;
  1196. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1197. verbose=yes ;;
  1198. -version | --version | --versio | --versi | --vers | -V)
  1199. ac_init_version=: ;;
  1200. -with-* | --with-*)
  1201. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1202. # Reject names that are not valid shell variable names.
  1203. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1204. as_fn_error $? "invalid package name: $ac_useropt"
  1205. ac_useropt_orig=$ac_useropt
  1206. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1207. case $ac_user_opts in
  1208. *"
  1209. "with_$ac_useropt"
  1210. "*) ;;
  1211. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1212. ac_unrecognized_sep=', ';;
  1213. esac
  1214. eval with_$ac_useropt=\$ac_optarg ;;
  1215. -without-* | --without-*)
  1216. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1217. # Reject names that are not valid shell variable names.
  1218. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1219. as_fn_error $? "invalid package name: $ac_useropt"
  1220. ac_useropt_orig=$ac_useropt
  1221. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1222. case $ac_user_opts in
  1223. *"
  1224. "with_$ac_useropt"
  1225. "*) ;;
  1226. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1227. ac_unrecognized_sep=', ';;
  1228. esac
  1229. eval with_$ac_useropt=no ;;
  1230. --x)
  1231. # Obsolete; use --with-x.
  1232. with_x=yes ;;
  1233. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1234. | --x-incl | --x-inc | --x-in | --x-i)
  1235. ac_prev=x_includes ;;
  1236. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1237. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1238. x_includes=$ac_optarg ;;
  1239. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1240. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1241. ac_prev=x_libraries ;;
  1242. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1243. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1244. x_libraries=$ac_optarg ;;
  1245. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1246. Try \`$0 --help' for more information"
  1247. ;;
  1248. *=*)
  1249. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1250. # Reject names that are not valid shell variable names.
  1251. case $ac_envvar in #(
  1252. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1253. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1254. esac
  1255. eval $ac_envvar=\$ac_optarg
  1256. export $ac_envvar ;;
  1257. *)
  1258. # FIXME: should be removed in autoconf 3.0.
  1259. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1260. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1261. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1262. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1263. ;;
  1264. esac
  1265. done
  1266. if test -n "$ac_prev"; then
  1267. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1268. as_fn_error $? "missing argument to $ac_option"
  1269. fi
  1270. if test -n "$ac_unrecognized_opts"; then
  1271. case $enable_option_checking in
  1272. no) ;;
  1273. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1274. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1275. esac
  1276. fi
  1277. # Check all directory arguments for consistency.
  1278. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1279. datadir sysconfdir sharedstatedir localstatedir includedir \
  1280. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1281. libdir localedir mandir
  1282. do
  1283. eval ac_val=\$$ac_var
  1284. # Remove trailing slashes.
  1285. case $ac_val in
  1286. */ )
  1287. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1288. eval $ac_var=\$ac_val;;
  1289. esac
  1290. # Be sure to have absolute directory names.
  1291. case $ac_val in
  1292. [\\/$]* | ?:[\\/]* ) continue;;
  1293. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1294. esac
  1295. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1296. done
  1297. # There might be people who depend on the old broken behavior: `$host'
  1298. # used to hold the argument of --host etc.
  1299. # FIXME: To remove some day.
  1300. build=$build_alias
  1301. host=$host_alias
  1302. target=$target_alias
  1303. # FIXME: To remove some day.
  1304. if test "x$host_alias" != x; then
  1305. if test "x$build_alias" = x; then
  1306. cross_compiling=maybe
  1307. elif test "x$build_alias" != "x$host_alias"; then
  1308. cross_compiling=yes
  1309. fi
  1310. fi
  1311. ac_tool_prefix=
  1312. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1313. test "$silent" = yes && exec 6>/dev/null
  1314. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1315. ac_ls_di=`ls -di .` &&
  1316. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1317. as_fn_error $? "working directory cannot be determined"
  1318. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1319. as_fn_error $? "pwd does not report name of working directory"
  1320. # Find the source files, if location was not specified.
  1321. if test -z "$srcdir"; then
  1322. ac_srcdir_defaulted=yes
  1323. # Try the directory containing this script, then the parent directory.
  1324. ac_confdir=`$as_dirname -- "$as_myself" ||
  1325. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1326. X"$as_myself" : 'X\(//\)[^/]' \| \
  1327. X"$as_myself" : 'X\(//\)$' \| \
  1328. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1329. $as_echo X"$as_myself" |
  1330. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1331. s//\1/
  1332. q
  1333. }
  1334. /^X\(\/\/\)[^/].*/{
  1335. s//\1/
  1336. q
  1337. }
  1338. /^X\(\/\/\)$/{
  1339. s//\1/
  1340. q
  1341. }
  1342. /^X\(\/\).*/{
  1343. s//\1/
  1344. q
  1345. }
  1346. s/.*/./; q'`
  1347. srcdir=$ac_confdir
  1348. if test ! -r "$srcdir/$ac_unique_file"; then
  1349. srcdir=..
  1350. fi
  1351. else
  1352. ac_srcdir_defaulted=no
  1353. fi
  1354. if test ! -r "$srcdir/$ac_unique_file"; then
  1355. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1356. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1357. fi
  1358. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1359. ac_abs_confdir=`(
  1360. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1361. pwd)`
  1362. # When building in place, set srcdir=.
  1363. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1364. srcdir=.
  1365. fi
  1366. # Remove unnecessary trailing slashes from srcdir.
  1367. # Double slashes in file names in object file debugging info
  1368. # mess up M-x gdb in Emacs.
  1369. case $srcdir in
  1370. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1371. esac
  1372. for ac_var in $ac_precious_vars; do
  1373. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1374. eval ac_env_${ac_var}_value=\$${ac_var}
  1375. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1376. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1377. done
  1378. #
  1379. # Report the --help message.
  1380. #
  1381. if test "$ac_init_help" = "long"; then
  1382. # Omit some internal or obsolete options to make the list less imposing.
  1383. # This message is too long to be a string in the A/UX 3.1 sh.
  1384. cat <<_ACEOF
  1385. \`configure' configures this package to adapt to many kinds of systems.
  1386. Usage: $0 [OPTION]... [VAR=VALUE]...
  1387. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1388. VAR=VALUE. See below for descriptions of some of the useful variables.
  1389. Defaults for the options are specified in brackets.
  1390. Configuration:
  1391. -h, --help display this help and exit
  1392. --help=short display options specific to this package
  1393. --help=recursive display the short help of all the included packages
  1394. -V, --version display version information and exit
  1395. -q, --quiet, --silent do not print \`checking ...' messages
  1396. --cache-file=FILE cache test results in FILE [disabled]
  1397. -C, --config-cache alias for \`--cache-file=config.cache'
  1398. -n, --no-create do not create output files
  1399. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1400. Installation directories:
  1401. --prefix=PREFIX install architecture-independent files in PREFIX
  1402. [$ac_default_prefix]
  1403. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1404. [PREFIX]
  1405. By default, \`make install' will install all the files in
  1406. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1407. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1408. for instance \`--prefix=\$HOME'.
  1409. For better control, use the options below.
  1410. Fine tuning of the installation directories:
  1411. --bindir=DIR user executables [EPREFIX/bin]
  1412. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1413. --libexecdir=DIR program executables [EPREFIX/libexec]
  1414. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1415. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1416. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1417. --libdir=DIR object code libraries [EPREFIX/lib]
  1418. --includedir=DIR C header files [PREFIX/include]
  1419. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1420. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1421. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1422. --infodir=DIR info documentation [DATAROOTDIR/info]
  1423. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1424. --mandir=DIR man documentation [DATAROOTDIR/man]
  1425. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1426. --htmldir=DIR html documentation [DOCDIR]
  1427. --dvidir=DIR dvi documentation [DOCDIR]
  1428. --pdfdir=DIR pdf documentation [DOCDIR]
  1429. --psdir=DIR ps documentation [DOCDIR]
  1430. _ACEOF
  1431. cat <<\_ACEOF
  1432. X features:
  1433. --x-includes=DIR X include files are in DIR
  1434. --x-libraries=DIR X library files are in DIR
  1435. System types:
  1436. --build=BUILD configure for building on BUILD [guessed]
  1437. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1438. _ACEOF
  1439. fi
  1440. if test -n "$ac_init_help"; then
  1441. cat <<\_ACEOF
  1442. Optional Features:
  1443. --disable-option-checking ignore unrecognized --enable/--with options
  1444. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1445. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1446. --enable-shared[=PKGS] build shared libraries [default=yes]
  1447. --enable-static[=PKGS] build static libraries [default=yes]
  1448. --enable-fast-install[=PKGS]
  1449. optimize for fast installation [default=yes]
  1450. --disable-libtool-lock avoid locking (might break parallel builds)
  1451. --enable-assertions Enable internal sanity checks
  1452. (auto/disabled/release/enabled/paranoid)
  1453. [default=auto]
  1454. --enable-dependency-tracking
  1455. Use gcc -MMD -MT dependency tracking [default=yes]
  1456. --enable-libc Use the system C library [default=yes]
  1457. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1458. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1459. --enable-audio Enable the audio subsystem [default=yes]
  1460. --enable-video Enable the video subsystem [default=yes]
  1461. --enable-render Enable the render subsystem [default=yes]
  1462. --enable-events Enable the events subsystem [default=yes]
  1463. --enable-joystick Enable the joystick subsystem [default=yes]
  1464. --enable-haptic Enable the haptic (force feedback) subsystem
  1465. [default=yes]
  1466. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1467. --enable-sensor Enable the sensor subsystem [default=yes]
  1468. --enable-power Enable the power subsystem [default=yes]
  1469. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1470. --enable-threads Enable the threading subsystem [default=yes]
  1471. --enable-timers Enable the timer subsystem [default=yes]
  1472. --enable-file Enable the file subsystem [default=yes]
  1473. --enable-misc Enable the misc subsystem [default=yes]
  1474. --enable-locale Enable the locale subsystem [default=yes]
  1475. --enable-loadso Enable the shared object loading subsystem
  1476. [default=yes]
  1477. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1478. --enable-assembly Enable assembly routines [default=yes]
  1479. --enable-ssemath Allow GCC to use SSE floating point math
  1480. [default=maybe]
  1481. --enable-mmx use MMX assembly routines [default=yes]
  1482. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1483. --enable-sse use SSE assembly routines [default=yes]
  1484. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1485. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1486. --enable-altivec use Altivec assembly routines [default=yes]
  1487. --enable-oss support the OSS audio API [default=maybe]
  1488. --enable-alsa support the ALSA audio API [default=yes]
  1489. --disable-alsatest Do not try to compile and run a test Alsa program
  1490. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1491. --enable-jack use JACK audio [default=yes]
  1492. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1493. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1494. --disable-esdtest Do not try to compile and run a test ESD program
  1495. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1496. --enable-pipewire use Pipewire audio [default=yes]
  1497. --enable-pipewire-shared
  1498. dynamically load Pipewire support [default=yes]
  1499. --enable-pulseaudio use PulseAudio [default=yes]
  1500. --enable-pulseaudio-shared
  1501. dynamically load PulseAudio support [default=yes]
  1502. --enable-arts support the Analog Real Time Synthesizer
  1503. [default=yes]
  1504. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1505. --enable-nas support the NAS audio API [default=yes]
  1506. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1507. --enable-sndio support the sndio audio API [default=yes]
  1508. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1509. --enable-fusionsound use FusionSound audio driver [default=no]
  1510. --enable-fusionsound-shared
  1511. dynamically load fusionsound audio support
  1512. [default=yes]
  1513. --enable-diskaudio support the disk writer audio driver [default=yes]
  1514. --enable-dummyaudio support the dummy audio driver [default=yes]
  1515. --enable-libsamplerate use libsamplerate for audio rate conversion
  1516. [default=yes]
  1517. --enable-libsamplerate-shared
  1518. dynamically load libsamplerate [default=yes]
  1519. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1520. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1521. --enable-video-wayland use Wayland video driver [default=yes]
  1522. --enable-video-wayland-qt-touch
  1523. QtWayland server support for Wayland video driver
  1524. [default=yes]
  1525. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1526. --enable-libdecor use libdecor for Wayland client-side decorations
  1527. [default=yes]
  1528. --enable-libdecor-shared
  1529. dynamically load libdecor [default=yes]
  1530. --enable-video-rpi use Raspberry Pi 2/3 video driver [default=yes]
  1531. --enable-video-x11 use X11 video driver [default=yes]
  1532. --enable-x11-shared dynamically load X11 support [default=maybe]
  1533. --enable-video-x11-xcursor
  1534. enable X11 Xcursor support [default=yes]
  1535. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1536. --enable-video-x11-xinerama
  1537. enable X11 Xinerama support [default=yes]
  1538. --enable-video-x11-xinput
  1539. enable X11 XInput extension for manymouse, tablets,
  1540. etc [default=yes]
  1541. --enable-video-x11-xfixes
  1542. enable X11 Xfixes support [default=yes]
  1543. --enable-video-x11-xrandr
  1544. enable X11 Xrandr extension for fullscreen
  1545. [default=yes]
  1546. --enable-video-x11-scrnsaver
  1547. enable X11 screensaver extension [default=yes]
  1548. --enable-video-x11-xshape
  1549. enable X11 XShape support [default=yes]
  1550. --enable-video-x11-vm use X11 VM extension for fullscreen [default=yes]
  1551. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1552. --enable-video-cocoa use Cocoa video driver [default=yes]
  1553. --enable-video-metal include Metal support [default=yes]
  1554. --enable-render-metal enable the Metal render driver [default=yes]
  1555. --enable-video-directfb use DirectFB video driver [default=no]
  1556. --enable-directfb-shared
  1557. dynamically load directfb support [default=yes]
  1558. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1559. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1560. --enable-video-dummy use dummy video driver [default=yes]
  1561. --enable-video-offscreen
  1562. use offscreen video driver [default=no]
  1563. --enable-video-opengl include OpenGL support [default=yes]
  1564. --enable-video-opengles include OpenGL ES support [default=yes]
  1565. --enable-video-opengles1
  1566. include OpenGL ES 1.1 support [default=yes]
  1567. --enable-video-opengles2
  1568. include OpenGL ES 2.0 support [default=yes]
  1569. --enable-video-vulkan include Vulkan support [default=yes]
  1570. --enable-libudev enable libudev support [default=yes]
  1571. --enable-dbus enable D-Bus support [default=yes]
  1572. --enable-ime enable IME support [default=yes]
  1573. --enable-ibus enable IBus support [default=yes]
  1574. --enable-fcitx enable fcitx support [default=yes]
  1575. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1576. --enable-pthreads use POSIX threads for multi-threading
  1577. [default=maybe]
  1578. --enable-pthread-sem use pthread semaphores [default=maybe]
  1579. --enable-directx use DirectX for Windows audio/video [default=yes]
  1580. --enable-xinput use Xinput for Windows [default=yes]
  1581. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1582. --enable-hidapi-joystick
  1583. use HIDAPI for low level joystick drivers
  1584. [default=yes]
  1585. --enable-hidapi-libusb use libusb for low level joystick drivers
  1586. [default=maybe]
  1587. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1588. UNIX [default=yes]
  1589. --enable-rpath use an rpath when linking SDL [default=yes]
  1590. --enable-backgrounding-signal
  1591. number to use for magic backgrounding signal or 'no'
  1592. [default=no]
  1593. --enable-foregrounding-signal
  1594. number to use for magic foregrounding signal or 'no'
  1595. [default=no]
  1596. --enable-joystick-virtual
  1597. enable virtual joystick APIs [default=yes]
  1598. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1599. --enable-sdl2-config Install sdl2-config [default=yes]
  1600. Optional Packages:
  1601. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1602. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1603. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1604. both]
  1605. --with-aix-soname=aix|svr4|both
  1606. shared library versioning (aka "SONAME") variant to
  1607. provide on AIX, [default=aix].
  1608. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1609. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1610. compiler's sysroot if not specified).
  1611. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1612. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1613. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1614. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1615. --with-x use the X Window System
  1616. Some influential environment variables:
  1617. CC C compiler command
  1618. CFLAGS C compiler flags
  1619. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1620. nonstandard directory <lib dir>
  1621. LIBS libraries to pass to the linker, e.g. -l<library>
  1622. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1623. you have headers in a nonstandard directory <include dir>
  1624. LT_SYS_LIBRARY_PATH
  1625. User-defined run-time library search path.
  1626. CPP C preprocessor
  1627. CXX C++ compiler command
  1628. CXXFLAGS C++ compiler flags
  1629. CXXCPP C++ preprocessor
  1630. PKG_CONFIG path to pkg-config utility
  1631. PKG_CONFIG_PATH
  1632. directories to add to pkg-config's search path
  1633. PKG_CONFIG_LIBDIR
  1634. path overriding pkg-config's built-in search path
  1635. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1636. JACK_LIBS linker flags for JACK, overriding pkg-config
  1637. PIPEWIRE_CFLAGS
  1638. C compiler flags for PIPEWIRE, overriding pkg-config
  1639. PIPEWIRE_LIBS
  1640. linker flags for PIPEWIRE, overriding pkg-config
  1641. PULSEAUDIO_CFLAGS
  1642. C compiler flags for PULSEAUDIO, overriding pkg-config
  1643. PULSEAUDIO_LIBS
  1644. linker flags for PULSEAUDIO, overriding pkg-config
  1645. FUSIONSOUND_CFLAGS
  1646. C compiler flags for FUSIONSOUND, overriding pkg-config
  1647. FUSIONSOUND_LIBS
  1648. linker flags for FUSIONSOUND, overriding pkg-config
  1649. DECOR_CFLAGS
  1650. C compiler flags for DECOR, overriding pkg-config
  1651. DECOR_LIBS linker flags for DECOR, overriding pkg-config
  1652. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1653. RPI_LIBS linker flags for RPI, overriding pkg-config
  1654. XMKMF Path to xmkmf, Makefile generator for X Window System
  1655. DIRECTFB_CFLAGS
  1656. C compiler flags for DIRECTFB, overriding pkg-config
  1657. DIRECTFB_LIBS
  1658. linker flags for DIRECTFB, overriding pkg-config
  1659. LIBDRM_CFLAGS
  1660. C compiler flags for LIBDRM, overriding pkg-config
  1661. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1662. LIBGBM_CFLAGS
  1663. C compiler flags for LIBGBM, overriding pkg-config
  1664. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1665. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1666. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1667. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1668. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1669. LIBUSB_CFLAGS
  1670. C compiler flags for LIBUSB, overriding pkg-config
  1671. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1672. Use these variables to override the choices made by `configure' or to help
  1673. it to find libraries and programs with nonstandard names/locations.
  1674. Report bugs to the package provider.
  1675. _ACEOF
  1676. ac_status=$?
  1677. fi
  1678. if test "$ac_init_help" = "recursive"; then
  1679. # If there are subdirs, report their specific --help.
  1680. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1681. test -d "$ac_dir" ||
  1682. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1683. continue
  1684. ac_builddir=.
  1685. case "$ac_dir" in
  1686. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1687. *)
  1688. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1689. # A ".." for each directory in $ac_dir_suffix.
  1690. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1691. case $ac_top_builddir_sub in
  1692. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1693. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1694. esac ;;
  1695. esac
  1696. ac_abs_top_builddir=$ac_pwd
  1697. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1698. # for backward compatibility:
  1699. ac_top_builddir=$ac_top_build_prefix
  1700. case $srcdir in
  1701. .) # We are building in place.
  1702. ac_srcdir=.
  1703. ac_top_srcdir=$ac_top_builddir_sub
  1704. ac_abs_top_srcdir=$ac_pwd ;;
  1705. [\\/]* | ?:[\\/]* ) # Absolute name.
  1706. ac_srcdir=$srcdir$ac_dir_suffix;
  1707. ac_top_srcdir=$srcdir
  1708. ac_abs_top_srcdir=$srcdir ;;
  1709. *) # Relative name.
  1710. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1711. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1712. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1713. esac
  1714. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1715. cd "$ac_dir" || { ac_status=$?; continue; }
  1716. # Check for guested configure.
  1717. if test -f "$ac_srcdir/configure.gnu"; then
  1718. echo &&
  1719. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1720. elif test -f "$ac_srcdir/configure"; then
  1721. echo &&
  1722. $SHELL "$ac_srcdir/configure" --help=recursive
  1723. else
  1724. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1725. fi || ac_status=$?
  1726. cd "$ac_pwd" || { ac_status=$?; break; }
  1727. done
  1728. fi
  1729. test -n "$ac_init_help" && exit $ac_status
  1730. if $ac_init_version; then
  1731. cat <<\_ACEOF
  1732. configure
  1733. generated by GNU Autoconf 2.69
  1734. Copyright (C) 2012 Free Software Foundation, Inc.
  1735. This configure script is free software; the Free Software Foundation
  1736. gives unlimited permission to copy, distribute and modify it.
  1737. _ACEOF
  1738. exit
  1739. fi
  1740. ## ------------------------ ##
  1741. ## Autoconf initialization. ##
  1742. ## ------------------------ ##
  1743. # ac_fn_c_try_compile LINENO
  1744. # --------------------------
  1745. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1746. ac_fn_c_try_compile ()
  1747. {
  1748. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1749. rm -f conftest.$ac_objext
  1750. if { { ac_try="$ac_compile"
  1751. case "(($ac_try" in
  1752. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1753. *) ac_try_echo=$ac_try;;
  1754. esac
  1755. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1756. $as_echo "$ac_try_echo"; } >&5
  1757. (eval "$ac_compile") 2>conftest.err
  1758. ac_status=$?
  1759. if test -s conftest.err; then
  1760. grep -v '^ *+' conftest.err >conftest.er1
  1761. cat conftest.er1 >&5
  1762. mv -f conftest.er1 conftest.err
  1763. fi
  1764. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1765. test $ac_status = 0; } && {
  1766. test -z "$ac_c_werror_flag" ||
  1767. test ! -s conftest.err
  1768. } && test -s conftest.$ac_objext; then :
  1769. ac_retval=0
  1770. else
  1771. $as_echo "$as_me: failed program was:" >&5
  1772. sed 's/^/| /' conftest.$ac_ext >&5
  1773. ac_retval=1
  1774. fi
  1775. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1776. as_fn_set_status $ac_retval
  1777. } # ac_fn_c_try_compile
  1778. # ac_fn_c_try_link LINENO
  1779. # -----------------------
  1780. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1781. ac_fn_c_try_link ()
  1782. {
  1783. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1784. rm -f conftest.$ac_objext conftest$ac_exeext
  1785. if { { ac_try="$ac_link"
  1786. case "(($ac_try" in
  1787. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1788. *) ac_try_echo=$ac_try;;
  1789. esac
  1790. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1791. $as_echo "$ac_try_echo"; } >&5
  1792. (eval "$ac_link") 2>conftest.err
  1793. ac_status=$?
  1794. if test -s conftest.err; then
  1795. grep -v '^ *+' conftest.err >conftest.er1
  1796. cat conftest.er1 >&5
  1797. mv -f conftest.er1 conftest.err
  1798. fi
  1799. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1800. test $ac_status = 0; } && {
  1801. test -z "$ac_c_werror_flag" ||
  1802. test ! -s conftest.err
  1803. } && test -s conftest$ac_exeext && {
  1804. test "$cross_compiling" = yes ||
  1805. test -x conftest$ac_exeext
  1806. }; then :
  1807. ac_retval=0
  1808. else
  1809. $as_echo "$as_me: failed program was:" >&5
  1810. sed 's/^/| /' conftest.$ac_ext >&5
  1811. ac_retval=1
  1812. fi
  1813. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1814. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1815. # interfere with the next link command; also delete a directory that is
  1816. # left behind by Apple's compiler. We do this before executing the actions.
  1817. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1818. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1819. as_fn_set_status $ac_retval
  1820. } # ac_fn_c_try_link
  1821. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1822. # -------------------------------------------------------
  1823. # Tests whether HEADER exists and can be compiled using the include files in
  1824. # INCLUDES, setting the cache variable VAR accordingly.
  1825. ac_fn_c_check_header_compile ()
  1826. {
  1827. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1829. $as_echo_n "checking for $2... " >&6; }
  1830. if eval \${$3+:} false; then :
  1831. $as_echo_n "(cached) " >&6
  1832. else
  1833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1834. /* end confdefs.h. */
  1835. $4
  1836. #include <$2>
  1837. _ACEOF
  1838. if ac_fn_c_try_compile "$LINENO"; then :
  1839. eval "$3=yes"
  1840. else
  1841. eval "$3=no"
  1842. fi
  1843. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1844. fi
  1845. eval ac_res=\$$3
  1846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1847. $as_echo "$ac_res" >&6; }
  1848. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1849. } # ac_fn_c_check_header_compile
  1850. # ac_fn_c_try_cpp LINENO
  1851. # ----------------------
  1852. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1853. ac_fn_c_try_cpp ()
  1854. {
  1855. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1856. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1857. case "(($ac_try" in
  1858. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1859. *) ac_try_echo=$ac_try;;
  1860. esac
  1861. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1862. $as_echo "$ac_try_echo"; } >&5
  1863. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1864. ac_status=$?
  1865. if test -s conftest.err; then
  1866. grep -v '^ *+' conftest.err >conftest.er1
  1867. cat conftest.er1 >&5
  1868. mv -f conftest.er1 conftest.err
  1869. fi
  1870. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1871. test $ac_status = 0; } > conftest.i && {
  1872. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1873. test ! -s conftest.err
  1874. }; then :
  1875. ac_retval=0
  1876. else
  1877. $as_echo "$as_me: failed program was:" >&5
  1878. sed 's/^/| /' conftest.$ac_ext >&5
  1879. ac_retval=1
  1880. fi
  1881. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1882. as_fn_set_status $ac_retval
  1883. } # ac_fn_c_try_cpp
  1884. # ac_fn_c_try_run LINENO
  1885. # ----------------------
  1886. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1887. # that executables *can* be run.
  1888. ac_fn_c_try_run ()
  1889. {
  1890. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1891. if { { ac_try="$ac_link"
  1892. case "(($ac_try" in
  1893. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1894. *) ac_try_echo=$ac_try;;
  1895. esac
  1896. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1897. $as_echo "$ac_try_echo"; } >&5
  1898. (eval "$ac_link") 2>&5
  1899. ac_status=$?
  1900. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1901. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1902. { { case "(($ac_try" in
  1903. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1904. *) ac_try_echo=$ac_try;;
  1905. esac
  1906. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1907. $as_echo "$ac_try_echo"; } >&5
  1908. (eval "$ac_try") 2>&5
  1909. ac_status=$?
  1910. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1911. test $ac_status = 0; }; }; then :
  1912. ac_retval=0
  1913. else
  1914. $as_echo "$as_me: program exited with status $ac_status" >&5
  1915. $as_echo "$as_me: failed program was:" >&5
  1916. sed 's/^/| /' conftest.$ac_ext >&5
  1917. ac_retval=$ac_status
  1918. fi
  1919. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1920. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1921. as_fn_set_status $ac_retval
  1922. } # ac_fn_c_try_run
  1923. # ac_fn_c_check_func LINENO FUNC VAR
  1924. # ----------------------------------
  1925. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1926. ac_fn_c_check_func ()
  1927. {
  1928. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1930. $as_echo_n "checking for $2... " >&6; }
  1931. if eval \${$3+:} false; then :
  1932. $as_echo_n "(cached) " >&6
  1933. else
  1934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1935. /* end confdefs.h. */
  1936. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1937. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1938. #define $2 innocuous_$2
  1939. /* System header to define __stub macros and hopefully few prototypes,
  1940. which can conflict with char $2 (); below.
  1941. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1942. <limits.h> exists even on freestanding compilers. */
  1943. #ifdef __STDC__
  1944. # include <limits.h>
  1945. #else
  1946. # include <assert.h>
  1947. #endif
  1948. #undef $2
  1949. /* Override any GCC internal prototype to avoid an error.
  1950. Use char because int might match the return type of a GCC
  1951. builtin and then its argument prototype would still apply. */
  1952. #ifdef __cplusplus
  1953. extern "C"
  1954. #endif
  1955. char $2 ();
  1956. /* The GNU C library defines this for functions which it implements
  1957. to always fail with ENOSYS. Some functions are actually named
  1958. something starting with __ and the normal name is an alias. */
  1959. #if defined __stub_$2 || defined __stub___$2
  1960. choke me
  1961. #endif
  1962. int
  1963. main ()
  1964. {
  1965. return $2 ();
  1966. ;
  1967. return 0;
  1968. }
  1969. _ACEOF
  1970. if ac_fn_c_try_link "$LINENO"; then :
  1971. eval "$3=yes"
  1972. else
  1973. eval "$3=no"
  1974. fi
  1975. rm -f core conftest.err conftest.$ac_objext \
  1976. conftest$ac_exeext conftest.$ac_ext
  1977. fi
  1978. eval ac_res=\$$3
  1979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1980. $as_echo "$ac_res" >&6; }
  1981. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1982. } # ac_fn_c_check_func
  1983. # ac_fn_cxx_try_compile LINENO
  1984. # ----------------------------
  1985. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1986. ac_fn_cxx_try_compile ()
  1987. {
  1988. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1989. rm -f conftest.$ac_objext
  1990. if { { ac_try="$ac_compile"
  1991. case "(($ac_try" in
  1992. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1993. *) ac_try_echo=$ac_try;;
  1994. esac
  1995. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1996. $as_echo "$ac_try_echo"; } >&5
  1997. (eval "$ac_compile") 2>conftest.err
  1998. ac_status=$?
  1999. if test -s conftest.err; then
  2000. grep -v '^ *+' conftest.err >conftest.er1
  2001. cat conftest.er1 >&5
  2002. mv -f conftest.er1 conftest.err
  2003. fi
  2004. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2005. test $ac_status = 0; } && {
  2006. test -z "$ac_cxx_werror_flag" ||
  2007. test ! -s conftest.err
  2008. } && test -s conftest.$ac_objext; then :
  2009. ac_retval=0
  2010. else
  2011. $as_echo "$as_me: failed program was:" >&5
  2012. sed 's/^/| /' conftest.$ac_ext >&5
  2013. ac_retval=1
  2014. fi
  2015. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2016. as_fn_set_status $ac_retval
  2017. } # ac_fn_cxx_try_compile
  2018. # ac_fn_cxx_try_cpp LINENO
  2019. # ------------------------
  2020. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2021. ac_fn_cxx_try_cpp ()
  2022. {
  2023. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2024. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2025. case "(($ac_try" in
  2026. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2027. *) ac_try_echo=$ac_try;;
  2028. esac
  2029. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2030. $as_echo "$ac_try_echo"; } >&5
  2031. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2032. ac_status=$?
  2033. if test -s conftest.err; then
  2034. grep -v '^ *+' conftest.err >conftest.er1
  2035. cat conftest.er1 >&5
  2036. mv -f conftest.er1 conftest.err
  2037. fi
  2038. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2039. test $ac_status = 0; } > conftest.i && {
  2040. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2041. test ! -s conftest.err
  2042. }; then :
  2043. ac_retval=0
  2044. else
  2045. $as_echo "$as_me: failed program was:" >&5
  2046. sed 's/^/| /' conftest.$ac_ext >&5
  2047. ac_retval=1
  2048. fi
  2049. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2050. as_fn_set_status $ac_retval
  2051. } # ac_fn_cxx_try_cpp
  2052. # ac_fn_cxx_try_link LINENO
  2053. # -------------------------
  2054. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2055. ac_fn_cxx_try_link ()
  2056. {
  2057. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2058. rm -f conftest.$ac_objext conftest$ac_exeext
  2059. if { { ac_try="$ac_link"
  2060. case "(($ac_try" in
  2061. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2062. *) ac_try_echo=$ac_try;;
  2063. esac
  2064. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2065. $as_echo "$ac_try_echo"; } >&5
  2066. (eval "$ac_link") 2>conftest.err
  2067. ac_status=$?
  2068. if test -s conftest.err; then
  2069. grep -v '^ *+' conftest.err >conftest.er1
  2070. cat conftest.er1 >&5
  2071. mv -f conftest.er1 conftest.err
  2072. fi
  2073. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2074. test $ac_status = 0; } && {
  2075. test -z "$ac_cxx_werror_flag" ||
  2076. test ! -s conftest.err
  2077. } && test -s conftest$ac_exeext && {
  2078. test "$cross_compiling" = yes ||
  2079. test -x conftest$ac_exeext
  2080. }; then :
  2081. ac_retval=0
  2082. else
  2083. $as_echo "$as_me: failed program was:" >&5
  2084. sed 's/^/| /' conftest.$ac_ext >&5
  2085. ac_retval=1
  2086. fi
  2087. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2088. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2089. # interfere with the next link command; also delete a directory that is
  2090. # left behind by Apple's compiler. We do this before executing the actions.
  2091. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2092. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2093. as_fn_set_status $ac_retval
  2094. } # ac_fn_cxx_try_link
  2095. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2096. # -------------------------------------------------------
  2097. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2098. # the include files in INCLUDES and setting the cache variable VAR
  2099. # accordingly.
  2100. ac_fn_c_check_header_mongrel ()
  2101. {
  2102. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2103. if eval \${$3+:} false; then :
  2104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2105. $as_echo_n "checking for $2... " >&6; }
  2106. if eval \${$3+:} false; then :
  2107. $as_echo_n "(cached) " >&6
  2108. fi
  2109. eval ac_res=\$$3
  2110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2111. $as_echo "$ac_res" >&6; }
  2112. else
  2113. # Is the header compilable?
  2114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2115. $as_echo_n "checking $2 usability... " >&6; }
  2116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2117. /* end confdefs.h. */
  2118. $4
  2119. #include <$2>
  2120. _ACEOF
  2121. if ac_fn_c_try_compile "$LINENO"; then :
  2122. ac_header_compiler=yes
  2123. else
  2124. ac_header_compiler=no
  2125. fi
  2126. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2128. $as_echo "$ac_header_compiler" >&6; }
  2129. # Is the header present?
  2130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2131. $as_echo_n "checking $2 presence... " >&6; }
  2132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2133. /* end confdefs.h. */
  2134. #include <$2>
  2135. _ACEOF
  2136. if ac_fn_c_try_cpp "$LINENO"; then :
  2137. ac_header_preproc=yes
  2138. else
  2139. ac_header_preproc=no
  2140. fi
  2141. rm -f conftest.err conftest.i conftest.$ac_ext
  2142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2143. $as_echo "$ac_header_preproc" >&6; }
  2144. # So? What about this header?
  2145. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2146. yes:no: )
  2147. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2148. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2149. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2150. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2151. ;;
  2152. no:yes:* )
  2153. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2154. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2155. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2156. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2157. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2158. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2159. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2160. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2161. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2162. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2163. ;;
  2164. esac
  2165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2166. $as_echo_n "checking for $2... " >&6; }
  2167. if eval \${$3+:} false; then :
  2168. $as_echo_n "(cached) " >&6
  2169. else
  2170. eval "$3=\$ac_header_compiler"
  2171. fi
  2172. eval ac_res=\$$3
  2173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2174. $as_echo "$ac_res" >&6; }
  2175. fi
  2176. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2177. } # ac_fn_c_check_header_mongrel
  2178. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2179. # -------------------------------------------
  2180. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2181. # variable VAR accordingly.
  2182. ac_fn_c_check_type ()
  2183. {
  2184. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2186. $as_echo_n "checking for $2... " >&6; }
  2187. if eval \${$3+:} false; then :
  2188. $as_echo_n "(cached) " >&6
  2189. else
  2190. eval "$3=no"
  2191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2192. /* end confdefs.h. */
  2193. $4
  2194. int
  2195. main ()
  2196. {
  2197. if (sizeof ($2))
  2198. return 0;
  2199. ;
  2200. return 0;
  2201. }
  2202. _ACEOF
  2203. if ac_fn_c_try_compile "$LINENO"; then :
  2204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2205. /* end confdefs.h. */
  2206. $4
  2207. int
  2208. main ()
  2209. {
  2210. if (sizeof (($2)))
  2211. return 0;
  2212. ;
  2213. return 0;
  2214. }
  2215. _ACEOF
  2216. if ac_fn_c_try_compile "$LINENO"; then :
  2217. else
  2218. eval "$3=yes"
  2219. fi
  2220. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2221. fi
  2222. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2223. fi
  2224. eval ac_res=\$$3
  2225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2226. $as_echo "$ac_res" >&6; }
  2227. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2228. } # ac_fn_c_check_type
  2229. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2230. # ----------------------------------------------------
  2231. # Tries to find if the field MEMBER exists in type AGGR, after including
  2232. # INCLUDES, setting cache variable VAR accordingly.
  2233. ac_fn_c_check_member ()
  2234. {
  2235. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2237. $as_echo_n "checking for $2.$3... " >&6; }
  2238. if eval \${$4+:} false; then :
  2239. $as_echo_n "(cached) " >&6
  2240. else
  2241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2242. /* end confdefs.h. */
  2243. $5
  2244. int
  2245. main ()
  2246. {
  2247. static $2 ac_aggr;
  2248. if (ac_aggr.$3)
  2249. return 0;
  2250. ;
  2251. return 0;
  2252. }
  2253. _ACEOF
  2254. if ac_fn_c_try_compile "$LINENO"; then :
  2255. eval "$4=yes"
  2256. else
  2257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2258. /* end confdefs.h. */
  2259. $5
  2260. int
  2261. main ()
  2262. {
  2263. static $2 ac_aggr;
  2264. if (sizeof ac_aggr.$3)
  2265. return 0;
  2266. ;
  2267. return 0;
  2268. }
  2269. _ACEOF
  2270. if ac_fn_c_try_compile "$LINENO"; then :
  2271. eval "$4=yes"
  2272. else
  2273. eval "$4=no"
  2274. fi
  2275. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2276. fi
  2277. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2278. fi
  2279. eval ac_res=\$$4
  2280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2281. $as_echo "$ac_res" >&6; }
  2282. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2283. } # ac_fn_c_check_member
  2284. cat >config.log <<_ACEOF
  2285. This file contains any messages produced by compilers while
  2286. running configure, to aid debugging if configure makes a mistake.
  2287. It was created by $as_me, which was
  2288. generated by GNU Autoconf 2.69. Invocation command line was
  2289. $ $0 $@
  2290. _ACEOF
  2291. exec 5>>config.log
  2292. {
  2293. cat <<_ASUNAME
  2294. ## --------- ##
  2295. ## Platform. ##
  2296. ## --------- ##
  2297. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2298. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2299. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2300. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2301. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2302. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2303. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2304. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2305. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2306. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2307. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2308. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2309. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2310. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2311. _ASUNAME
  2312. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2313. for as_dir in $PATH
  2314. do
  2315. IFS=$as_save_IFS
  2316. test -z "$as_dir" && as_dir=.
  2317. $as_echo "PATH: $as_dir"
  2318. done
  2319. IFS=$as_save_IFS
  2320. } >&5
  2321. cat >&5 <<_ACEOF
  2322. ## ----------- ##
  2323. ## Core tests. ##
  2324. ## ----------- ##
  2325. _ACEOF
  2326. # Keep a trace of the command line.
  2327. # Strip out --no-create and --no-recursion so they do not pile up.
  2328. # Strip out --silent because we don't want to record it for future runs.
  2329. # Also quote any args containing shell meta-characters.
  2330. # Make two passes to allow for proper duplicate-argument suppression.
  2331. ac_configure_args=
  2332. ac_configure_args0=
  2333. ac_configure_args1=
  2334. ac_must_keep_next=false
  2335. for ac_pass in 1 2
  2336. do
  2337. for ac_arg
  2338. do
  2339. case $ac_arg in
  2340. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2341. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2342. | -silent | --silent | --silen | --sile | --sil)
  2343. continue ;;
  2344. *\'*)
  2345. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2346. esac
  2347. case $ac_pass in
  2348. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2349. 2)
  2350. as_fn_append ac_configure_args1 " '$ac_arg'"
  2351. if test $ac_must_keep_next = true; then
  2352. ac_must_keep_next=false # Got value, back to normal.
  2353. else
  2354. case $ac_arg in
  2355. *=* | --config-cache | -C | -disable-* | --disable-* \
  2356. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2357. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2358. | -with-* | --with-* | -without-* | --without-* | --x)
  2359. case "$ac_configure_args0 " in
  2360. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2361. esac
  2362. ;;
  2363. -* ) ac_must_keep_next=true ;;
  2364. esac
  2365. fi
  2366. as_fn_append ac_configure_args " '$ac_arg'"
  2367. ;;
  2368. esac
  2369. done
  2370. done
  2371. { ac_configure_args0=; unset ac_configure_args0;}
  2372. { ac_configure_args1=; unset ac_configure_args1;}
  2373. # When interrupted or exit'd, cleanup temporary files, and complete
  2374. # config.log. We remove comments because anyway the quotes in there
  2375. # would cause problems or look ugly.
  2376. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2377. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2378. trap 'exit_status=$?
  2379. # Save into config.log some information that might help in debugging.
  2380. {
  2381. echo
  2382. $as_echo "## ---------------- ##
  2383. ## Cache variables. ##
  2384. ## ---------------- ##"
  2385. echo
  2386. # The following way of writing the cache mishandles newlines in values,
  2387. (
  2388. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2389. eval ac_val=\$$ac_var
  2390. case $ac_val in #(
  2391. *${as_nl}*)
  2392. case $ac_var in #(
  2393. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2394. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2395. esac
  2396. case $ac_var in #(
  2397. _ | IFS | as_nl) ;; #(
  2398. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2399. *) { eval $ac_var=; unset $ac_var;} ;;
  2400. esac ;;
  2401. esac
  2402. done
  2403. (set) 2>&1 |
  2404. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2405. *${as_nl}ac_space=\ *)
  2406. sed -n \
  2407. "s/'\''/'\''\\\\'\'''\''/g;
  2408. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2409. ;; #(
  2410. *)
  2411. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2412. ;;
  2413. esac |
  2414. sort
  2415. )
  2416. echo
  2417. $as_echo "## ----------------- ##
  2418. ## Output variables. ##
  2419. ## ----------------- ##"
  2420. echo
  2421. for ac_var in $ac_subst_vars
  2422. do
  2423. eval ac_val=\$$ac_var
  2424. case $ac_val in
  2425. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2426. esac
  2427. $as_echo "$ac_var='\''$ac_val'\''"
  2428. done | sort
  2429. echo
  2430. if test -n "$ac_subst_files"; then
  2431. $as_echo "## ------------------- ##
  2432. ## File substitutions. ##
  2433. ## ------------------- ##"
  2434. echo
  2435. for ac_var in $ac_subst_files
  2436. do
  2437. eval ac_val=\$$ac_var
  2438. case $ac_val in
  2439. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2440. esac
  2441. $as_echo "$ac_var='\''$ac_val'\''"
  2442. done | sort
  2443. echo
  2444. fi
  2445. if test -s confdefs.h; then
  2446. $as_echo "## ----------- ##
  2447. ## confdefs.h. ##
  2448. ## ----------- ##"
  2449. echo
  2450. cat confdefs.h
  2451. echo
  2452. fi
  2453. test "$ac_signal" != 0 &&
  2454. $as_echo "$as_me: caught signal $ac_signal"
  2455. $as_echo "$as_me: exit $exit_status"
  2456. } >&5
  2457. rm -f core *.core core.conftest.* &&
  2458. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2459. exit $exit_status
  2460. ' 0
  2461. for ac_signal in 1 2 13 15; do
  2462. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2463. done
  2464. ac_signal=0
  2465. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2466. rm -f -r conftest* confdefs.h
  2467. $as_echo "/* confdefs.h */" > confdefs.h
  2468. # Predefined preprocessor variables.
  2469. cat >>confdefs.h <<_ACEOF
  2470. #define PACKAGE_NAME "$PACKAGE_NAME"
  2471. _ACEOF
  2472. cat >>confdefs.h <<_ACEOF
  2473. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2474. _ACEOF
  2475. cat >>confdefs.h <<_ACEOF
  2476. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2477. _ACEOF
  2478. cat >>confdefs.h <<_ACEOF
  2479. #define PACKAGE_STRING "$PACKAGE_STRING"
  2480. _ACEOF
  2481. cat >>confdefs.h <<_ACEOF
  2482. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2483. _ACEOF
  2484. cat >>confdefs.h <<_ACEOF
  2485. #define PACKAGE_URL "$PACKAGE_URL"
  2486. _ACEOF
  2487. # Let the site file select an alternate cache file if it wants to.
  2488. # Prefer an explicitly selected file to automatically selected ones.
  2489. ac_site_file1=NONE
  2490. ac_site_file2=NONE
  2491. if test -n "$CONFIG_SITE"; then
  2492. # We do not want a PATH search for config.site.
  2493. case $CONFIG_SITE in #((
  2494. -*) ac_site_file1=./$CONFIG_SITE;;
  2495. */*) ac_site_file1=$CONFIG_SITE;;
  2496. *) ac_site_file1=./$CONFIG_SITE;;
  2497. esac
  2498. elif test "x$prefix" != xNONE; then
  2499. ac_site_file1=$prefix/share/config.site
  2500. ac_site_file2=$prefix/etc/config.site
  2501. else
  2502. ac_site_file1=$ac_default_prefix/share/config.site
  2503. ac_site_file2=$ac_default_prefix/etc/config.site
  2504. fi
  2505. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2506. do
  2507. test "x$ac_site_file" = xNONE && continue
  2508. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2509. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2510. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2511. sed 's/^/| /' "$ac_site_file" >&5
  2512. . "$ac_site_file" \
  2513. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2514. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2515. as_fn_error $? "failed to load site script $ac_site_file
  2516. See \`config.log' for more details" "$LINENO" 5; }
  2517. fi
  2518. done
  2519. if test -r "$cache_file"; then
  2520. # Some versions of bash will fail to source /dev/null (special files
  2521. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2522. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2523. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2524. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2525. case $cache_file in
  2526. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2527. *) . "./$cache_file";;
  2528. esac
  2529. fi
  2530. else
  2531. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2532. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2533. >$cache_file
  2534. fi
  2535. # Check that the precious variables saved in the cache have kept the same
  2536. # value.
  2537. ac_cache_corrupted=false
  2538. for ac_var in $ac_precious_vars; do
  2539. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2540. eval ac_new_set=\$ac_env_${ac_var}_set
  2541. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2542. eval ac_new_val=\$ac_env_${ac_var}_value
  2543. case $ac_old_set,$ac_new_set in
  2544. set,)
  2545. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2546. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2547. ac_cache_corrupted=: ;;
  2548. ,set)
  2549. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2550. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2551. ac_cache_corrupted=: ;;
  2552. ,);;
  2553. *)
  2554. if test "x$ac_old_val" != "x$ac_new_val"; then
  2555. # differences in whitespace do not lead to failure.
  2556. ac_old_val_w=`echo x $ac_old_val`
  2557. ac_new_val_w=`echo x $ac_new_val`
  2558. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2559. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2560. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2561. ac_cache_corrupted=:
  2562. else
  2563. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2564. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2565. eval $ac_var=\$ac_old_val
  2566. fi
  2567. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2568. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2569. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2570. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2571. fi;;
  2572. esac
  2573. # Pass precious variables to config.status.
  2574. if test "$ac_new_set" = set; then
  2575. case $ac_new_val in
  2576. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2577. *) ac_arg=$ac_var=$ac_new_val ;;
  2578. esac
  2579. case " $ac_configure_args " in
  2580. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2581. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2582. esac
  2583. fi
  2584. done
  2585. if $ac_cache_corrupted; then
  2586. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2587. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2588. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2589. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2590. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2591. fi
  2592. ## -------------------- ##
  2593. ## Main body of script. ##
  2594. ## -------------------- ##
  2595. ac_ext=c
  2596. ac_cpp='$CPP $CPPFLAGS'
  2597. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2598. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2599. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2600. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2601. ac_aux_dir=
  2602. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2603. if test -f "$ac_dir/install-sh"; then
  2604. ac_aux_dir=$ac_dir
  2605. ac_install_sh="$ac_aux_dir/install-sh -c"
  2606. break
  2607. elif test -f "$ac_dir/install.sh"; then
  2608. ac_aux_dir=$ac_dir
  2609. ac_install_sh="$ac_aux_dir/install.sh -c"
  2610. break
  2611. elif test -f "$ac_dir/shtool"; then
  2612. ac_aux_dir=$ac_dir
  2613. ac_install_sh="$ac_aux_dir/shtool install -c"
  2614. break
  2615. fi
  2616. done
  2617. if test -z "$ac_aux_dir"; then
  2618. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2619. fi
  2620. # These three variables are undocumented and unsupported,
  2621. # and are intended to be withdrawn in a future Autoconf release.
  2622. # They can cause serious problems if a builder's source tree is in a directory
  2623. # whose full name contains unusual characters.
  2624. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2625. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2626. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2627. orig_CFLAGS="$CFLAGS"
  2628. #
  2629. # Making releases:
  2630. # Edit include/SDL_version.h and change the version, then:
  2631. # SDL_MICRO_VERSION += 1;
  2632. # SDL_INTERFACE_AGE += 1;
  2633. # SDL_BINARY_AGE += 1;
  2634. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2635. # if backwards compatibility has been broken,
  2636. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2637. #
  2638. SDL_MAJOR_VERSION=2
  2639. SDL_MINOR_VERSION=0
  2640. SDL_MICRO_VERSION=22
  2641. SDL_INTERFACE_AGE=0
  2642. SDL_BINARY_AGE=22
  2643. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2644. # libtool versioning
  2645. case `pwd` in
  2646. *\ * | *\ *)
  2647. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2648. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2649. esac
  2650. macro_version='2.4.6'
  2651. macro_revision='2.4.6'
  2652. ltmain=$ac_aux_dir/ltmain.sh
  2653. # Make sure we can run config.sub.
  2654. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2655. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2657. $as_echo_n "checking build system type... " >&6; }
  2658. if ${ac_cv_build+:} false; then :
  2659. $as_echo_n "(cached) " >&6
  2660. else
  2661. ac_build_alias=$build_alias
  2662. test "x$ac_build_alias" = x &&
  2663. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2664. test "x$ac_build_alias" = x &&
  2665. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2666. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2667. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2668. fi
  2669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2670. $as_echo "$ac_cv_build" >&6; }
  2671. case $ac_cv_build in
  2672. *-*-*) ;;
  2673. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2674. esac
  2675. build=$ac_cv_build
  2676. ac_save_IFS=$IFS; IFS='-'
  2677. set x $ac_cv_build
  2678. shift
  2679. build_cpu=$1
  2680. build_vendor=$2
  2681. shift; shift
  2682. # Remember, the first character of IFS is used to create $*,
  2683. # except with old shells:
  2684. build_os=$*
  2685. IFS=$ac_save_IFS
  2686. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2688. $as_echo_n "checking host system type... " >&6; }
  2689. if ${ac_cv_host+:} false; then :
  2690. $as_echo_n "(cached) " >&6
  2691. else
  2692. if test "x$host_alias" = x; then
  2693. ac_cv_host=$ac_cv_build
  2694. else
  2695. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2696. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2697. fi
  2698. fi
  2699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2700. $as_echo "$ac_cv_host" >&6; }
  2701. case $ac_cv_host in
  2702. *-*-*) ;;
  2703. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2704. esac
  2705. host=$ac_cv_host
  2706. ac_save_IFS=$IFS; IFS='-'
  2707. set x $ac_cv_host
  2708. shift
  2709. host_cpu=$1
  2710. host_vendor=$2
  2711. shift; shift
  2712. # Remember, the first character of IFS is used to create $*,
  2713. # except with old shells:
  2714. host_os=$*
  2715. IFS=$ac_save_IFS
  2716. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2717. # Backslashify metacharacters that are still active within
  2718. # double-quoted strings.
  2719. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2720. # Same as above, but do not quote variable references.
  2721. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2722. # Sed substitution to delay expansion of an escaped shell variable in a
  2723. # double_quote_subst'ed string.
  2724. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2725. # Sed substitution to delay expansion of an escaped single quote.
  2726. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2727. # Sed substitution to avoid accidental globbing in evaled expressions
  2728. no_glob_subst='s/\*/\\\*/g'
  2729. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2730. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2731. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2733. $as_echo_n "checking how to print strings... " >&6; }
  2734. # Test print first, because it will be a builtin if present.
  2735. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2736. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2737. ECHO='print -r --'
  2738. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2739. ECHO='printf %s\n'
  2740. else
  2741. # Use this function as a fallback that always works.
  2742. func_fallback_echo ()
  2743. {
  2744. eval 'cat <<_LTECHO_EOF
  2745. $1
  2746. _LTECHO_EOF'
  2747. }
  2748. ECHO='func_fallback_echo'
  2749. fi
  2750. # func_echo_all arg...
  2751. # Invoke $ECHO with all args, space-separated.
  2752. func_echo_all ()
  2753. {
  2754. $ECHO ""
  2755. }
  2756. case $ECHO in
  2757. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2758. $as_echo "printf" >&6; } ;;
  2759. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2760. $as_echo "print -r" >&6; } ;;
  2761. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2762. $as_echo "cat" >&6; } ;;
  2763. esac
  2764. ac_ext=c
  2765. ac_cpp='$CPP $CPPFLAGS'
  2766. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2767. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2768. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2769. if test -n "$ac_tool_prefix"; then
  2770. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2771. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2773. $as_echo_n "checking for $ac_word... " >&6; }
  2774. if ${ac_cv_prog_CC+:} false; then :
  2775. $as_echo_n "(cached) " >&6
  2776. else
  2777. if test -n "$CC"; then
  2778. ac_cv_prog_CC="$CC" # Let the user override the test.
  2779. else
  2780. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2781. for as_dir in $PATH
  2782. do
  2783. IFS=$as_save_IFS
  2784. test -z "$as_dir" && as_dir=.
  2785. for ac_exec_ext in '' $ac_executable_extensions; do
  2786. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2787. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2788. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2789. break 2
  2790. fi
  2791. done
  2792. done
  2793. IFS=$as_save_IFS
  2794. fi
  2795. fi
  2796. CC=$ac_cv_prog_CC
  2797. if test -n "$CC"; then
  2798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2799. $as_echo "$CC" >&6; }
  2800. else
  2801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2802. $as_echo "no" >&6; }
  2803. fi
  2804. fi
  2805. if test -z "$ac_cv_prog_CC"; then
  2806. ac_ct_CC=$CC
  2807. # Extract the first word of "gcc", so it can be a program name with args.
  2808. set dummy gcc; ac_word=$2
  2809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2810. $as_echo_n "checking for $ac_word... " >&6; }
  2811. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2812. $as_echo_n "(cached) " >&6
  2813. else
  2814. if test -n "$ac_ct_CC"; then
  2815. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2816. else
  2817. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2818. for as_dir in $PATH
  2819. do
  2820. IFS=$as_save_IFS
  2821. test -z "$as_dir" && as_dir=.
  2822. for ac_exec_ext in '' $ac_executable_extensions; do
  2823. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2824. ac_cv_prog_ac_ct_CC="gcc"
  2825. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2826. break 2
  2827. fi
  2828. done
  2829. done
  2830. IFS=$as_save_IFS
  2831. fi
  2832. fi
  2833. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2834. if test -n "$ac_ct_CC"; then
  2835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2836. $as_echo "$ac_ct_CC" >&6; }
  2837. else
  2838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2839. $as_echo "no" >&6; }
  2840. fi
  2841. if test "x$ac_ct_CC" = x; then
  2842. CC=""
  2843. else
  2844. case $cross_compiling:$ac_tool_warned in
  2845. yes:)
  2846. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2847. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2848. ac_tool_warned=yes ;;
  2849. esac
  2850. CC=$ac_ct_CC
  2851. fi
  2852. else
  2853. CC="$ac_cv_prog_CC"
  2854. fi
  2855. if test -z "$CC"; then
  2856. if test -n "$ac_tool_prefix"; then
  2857. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2858. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2860. $as_echo_n "checking for $ac_word... " >&6; }
  2861. if ${ac_cv_prog_CC+:} false; then :
  2862. $as_echo_n "(cached) " >&6
  2863. else
  2864. if test -n "$CC"; then
  2865. ac_cv_prog_CC="$CC" # Let the user override the test.
  2866. else
  2867. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2868. for as_dir in $PATH
  2869. do
  2870. IFS=$as_save_IFS
  2871. test -z "$as_dir" && as_dir=.
  2872. for ac_exec_ext in '' $ac_executable_extensions; do
  2873. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2874. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2875. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2876. break 2
  2877. fi
  2878. done
  2879. done
  2880. IFS=$as_save_IFS
  2881. fi
  2882. fi
  2883. CC=$ac_cv_prog_CC
  2884. if test -n "$CC"; then
  2885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2886. $as_echo "$CC" >&6; }
  2887. else
  2888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2889. $as_echo "no" >&6; }
  2890. fi
  2891. fi
  2892. fi
  2893. if test -z "$CC"; then
  2894. # Extract the first word of "cc", so it can be a program name with args.
  2895. set dummy cc; ac_word=$2
  2896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2897. $as_echo_n "checking for $ac_word... " >&6; }
  2898. if ${ac_cv_prog_CC+:} false; then :
  2899. $as_echo_n "(cached) " >&6
  2900. else
  2901. if test -n "$CC"; then
  2902. ac_cv_prog_CC="$CC" # Let the user override the test.
  2903. else
  2904. ac_prog_rejected=no
  2905. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2906. for as_dir in $PATH
  2907. do
  2908. IFS=$as_save_IFS
  2909. test -z "$as_dir" && as_dir=.
  2910. for ac_exec_ext in '' $ac_executable_extensions; do
  2911. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2912. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2913. ac_prog_rejected=yes
  2914. continue
  2915. fi
  2916. ac_cv_prog_CC="cc"
  2917. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2918. break 2
  2919. fi
  2920. done
  2921. done
  2922. IFS=$as_save_IFS
  2923. if test $ac_prog_rejected = yes; then
  2924. # We found a bogon in the path, so make sure we never use it.
  2925. set dummy $ac_cv_prog_CC
  2926. shift
  2927. if test $# != 0; then
  2928. # We chose a different compiler from the bogus one.
  2929. # However, it has the same basename, so the bogon will be chosen
  2930. # first if we set CC to just the basename; use the full file name.
  2931. shift
  2932. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2933. fi
  2934. fi
  2935. fi
  2936. fi
  2937. CC=$ac_cv_prog_CC
  2938. if test -n "$CC"; then
  2939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2940. $as_echo "$CC" >&6; }
  2941. else
  2942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2943. $as_echo "no" >&6; }
  2944. fi
  2945. fi
  2946. if test -z "$CC"; then
  2947. if test -n "$ac_tool_prefix"; then
  2948. for ac_prog in cl.exe
  2949. do
  2950. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2951. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2953. $as_echo_n "checking for $ac_word... " >&6; }
  2954. if ${ac_cv_prog_CC+:} false; then :
  2955. $as_echo_n "(cached) " >&6
  2956. else
  2957. if test -n "$CC"; then
  2958. ac_cv_prog_CC="$CC" # Let the user override the test.
  2959. else
  2960. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2961. for as_dir in $PATH
  2962. do
  2963. IFS=$as_save_IFS
  2964. test -z "$as_dir" && as_dir=.
  2965. for ac_exec_ext in '' $ac_executable_extensions; do
  2966. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2967. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2968. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2969. break 2
  2970. fi
  2971. done
  2972. done
  2973. IFS=$as_save_IFS
  2974. fi
  2975. fi
  2976. CC=$ac_cv_prog_CC
  2977. if test -n "$CC"; then
  2978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2979. $as_echo "$CC" >&6; }
  2980. else
  2981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2982. $as_echo "no" >&6; }
  2983. fi
  2984. test -n "$CC" && break
  2985. done
  2986. fi
  2987. if test -z "$CC"; then
  2988. ac_ct_CC=$CC
  2989. for ac_prog in cl.exe
  2990. do
  2991. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2992. set dummy $ac_prog; ac_word=$2
  2993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2994. $as_echo_n "checking for $ac_word... " >&6; }
  2995. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2996. $as_echo_n "(cached) " >&6
  2997. else
  2998. if test -n "$ac_ct_CC"; then
  2999. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3000. else
  3001. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3002. for as_dir in $PATH
  3003. do
  3004. IFS=$as_save_IFS
  3005. test -z "$as_dir" && as_dir=.
  3006. for ac_exec_ext in '' $ac_executable_extensions; do
  3007. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3008. ac_cv_prog_ac_ct_CC="$ac_prog"
  3009. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3010. break 2
  3011. fi
  3012. done
  3013. done
  3014. IFS=$as_save_IFS
  3015. fi
  3016. fi
  3017. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3018. if test -n "$ac_ct_CC"; then
  3019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3020. $as_echo "$ac_ct_CC" >&6; }
  3021. else
  3022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3023. $as_echo "no" >&6; }
  3024. fi
  3025. test -n "$ac_ct_CC" && break
  3026. done
  3027. if test "x$ac_ct_CC" = x; then
  3028. CC=""
  3029. else
  3030. case $cross_compiling:$ac_tool_warned in
  3031. yes:)
  3032. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3033. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3034. ac_tool_warned=yes ;;
  3035. esac
  3036. CC=$ac_ct_CC
  3037. fi
  3038. fi
  3039. fi
  3040. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3041. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3042. as_fn_error $? "no acceptable C compiler found in \$PATH
  3043. See \`config.log' for more details" "$LINENO" 5; }
  3044. # Provide some information about the compiler.
  3045. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3046. set X $ac_compile
  3047. ac_compiler=$2
  3048. for ac_option in --version -v -V -qversion; do
  3049. { { ac_try="$ac_compiler $ac_option >&5"
  3050. case "(($ac_try" in
  3051. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3052. *) ac_try_echo=$ac_try;;
  3053. esac
  3054. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3055. $as_echo "$ac_try_echo"; } >&5
  3056. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3057. ac_status=$?
  3058. if test -s conftest.err; then
  3059. sed '10a\
  3060. ... rest of stderr output deleted ...
  3061. 10q' conftest.err >conftest.er1
  3062. cat conftest.er1 >&5
  3063. fi
  3064. rm -f conftest.er1 conftest.err
  3065. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3066. test $ac_status = 0; }
  3067. done
  3068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3069. /* end confdefs.h. */
  3070. int
  3071. main ()
  3072. {
  3073. ;
  3074. return 0;
  3075. }
  3076. _ACEOF
  3077. ac_clean_files_save=$ac_clean_files
  3078. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3079. # Try to create an executable without -o first, disregard a.out.
  3080. # It will help us diagnose broken compilers, and finding out an intuition
  3081. # of exeext.
  3082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3083. $as_echo_n "checking whether the C compiler works... " >&6; }
  3084. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3085. # The possible output files:
  3086. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3087. ac_rmfiles=
  3088. for ac_file in $ac_files
  3089. do
  3090. case $ac_file in
  3091. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3092. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3093. esac
  3094. done
  3095. rm -f $ac_rmfiles
  3096. if { { ac_try="$ac_link_default"
  3097. case "(($ac_try" in
  3098. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3099. *) ac_try_echo=$ac_try;;
  3100. esac
  3101. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3102. $as_echo "$ac_try_echo"; } >&5
  3103. (eval "$ac_link_default") 2>&5
  3104. ac_status=$?
  3105. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3106. test $ac_status = 0; }; then :
  3107. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3108. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3109. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3110. # so that the user can short-circuit this test for compilers unknown to
  3111. # Autoconf.
  3112. for ac_file in $ac_files ''
  3113. do
  3114. test -f "$ac_file" || continue
  3115. case $ac_file in
  3116. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3117. ;;
  3118. [ab].out )
  3119. # We found the default executable, but exeext='' is most
  3120. # certainly right.
  3121. break;;
  3122. *.* )
  3123. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3124. then :; else
  3125. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3126. fi
  3127. # We set ac_cv_exeext here because the later test for it is not
  3128. # safe: cross compilers may not add the suffix if given an `-o'
  3129. # argument, so we may need to know it at that point already.
  3130. # Even if this section looks crufty: it has the advantage of
  3131. # actually working.
  3132. break;;
  3133. * )
  3134. break;;
  3135. esac
  3136. done
  3137. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3138. else
  3139. ac_file=''
  3140. fi
  3141. if test -z "$ac_file"; then :
  3142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3143. $as_echo "no" >&6; }
  3144. $as_echo "$as_me: failed program was:" >&5
  3145. sed 's/^/| /' conftest.$ac_ext >&5
  3146. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3147. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3148. as_fn_error 77 "C compiler cannot create executables
  3149. See \`config.log' for more details" "$LINENO" 5; }
  3150. else
  3151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3152. $as_echo "yes" >&6; }
  3153. fi
  3154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3155. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3157. $as_echo "$ac_file" >&6; }
  3158. ac_exeext=$ac_cv_exeext
  3159. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3160. ac_clean_files=$ac_clean_files_save
  3161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3162. $as_echo_n "checking for suffix of executables... " >&6; }
  3163. if { { ac_try="$ac_link"
  3164. case "(($ac_try" in
  3165. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3166. *) ac_try_echo=$ac_try;;
  3167. esac
  3168. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3169. $as_echo "$ac_try_echo"; } >&5
  3170. (eval "$ac_link") 2>&5
  3171. ac_status=$?
  3172. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3173. test $ac_status = 0; }; then :
  3174. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3175. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3176. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3177. # `rm'.
  3178. for ac_file in conftest.exe conftest conftest.*; do
  3179. test -f "$ac_file" || continue
  3180. case $ac_file in
  3181. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3182. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3183. break;;
  3184. * ) break;;
  3185. esac
  3186. done
  3187. else
  3188. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3189. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3190. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3191. See \`config.log' for more details" "$LINENO" 5; }
  3192. fi
  3193. rm -f conftest conftest$ac_cv_exeext
  3194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3195. $as_echo "$ac_cv_exeext" >&6; }
  3196. rm -f conftest.$ac_ext
  3197. EXEEXT=$ac_cv_exeext
  3198. ac_exeext=$EXEEXT
  3199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3200. /* end confdefs.h. */
  3201. #include <stdio.h>
  3202. int
  3203. main ()
  3204. {
  3205. FILE *f = fopen ("conftest.out", "w");
  3206. return ferror (f) || fclose (f) != 0;
  3207. ;
  3208. return 0;
  3209. }
  3210. _ACEOF
  3211. ac_clean_files="$ac_clean_files conftest.out"
  3212. # Check that the compiler produces executables we can run. If not, either
  3213. # the compiler is broken, or we cross compile.
  3214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3215. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3216. if test "$cross_compiling" != yes; then
  3217. { { ac_try="$ac_link"
  3218. case "(($ac_try" in
  3219. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3220. *) ac_try_echo=$ac_try;;
  3221. esac
  3222. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3223. $as_echo "$ac_try_echo"; } >&5
  3224. (eval "$ac_link") 2>&5
  3225. ac_status=$?
  3226. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3227. test $ac_status = 0; }
  3228. if { ac_try='./conftest$ac_cv_exeext'
  3229. { { case "(($ac_try" in
  3230. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3231. *) ac_try_echo=$ac_try;;
  3232. esac
  3233. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3234. $as_echo "$ac_try_echo"; } >&5
  3235. (eval "$ac_try") 2>&5
  3236. ac_status=$?
  3237. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3238. test $ac_status = 0; }; }; then
  3239. cross_compiling=no
  3240. else
  3241. if test "$cross_compiling" = maybe; then
  3242. cross_compiling=yes
  3243. else
  3244. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3245. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3246. as_fn_error $? "cannot run C compiled programs.
  3247. If you meant to cross compile, use \`--host'.
  3248. See \`config.log' for more details" "$LINENO" 5; }
  3249. fi
  3250. fi
  3251. fi
  3252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3253. $as_echo "$cross_compiling" >&6; }
  3254. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3255. ac_clean_files=$ac_clean_files_save
  3256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3257. $as_echo_n "checking for suffix of object files... " >&6; }
  3258. if ${ac_cv_objext+:} false; then :
  3259. $as_echo_n "(cached) " >&6
  3260. else
  3261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3262. /* end confdefs.h. */
  3263. int
  3264. main ()
  3265. {
  3266. ;
  3267. return 0;
  3268. }
  3269. _ACEOF
  3270. rm -f conftest.o conftest.obj
  3271. if { { ac_try="$ac_compile"
  3272. case "(($ac_try" in
  3273. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3274. *) ac_try_echo=$ac_try;;
  3275. esac
  3276. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3277. $as_echo "$ac_try_echo"; } >&5
  3278. (eval "$ac_compile") 2>&5
  3279. ac_status=$?
  3280. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3281. test $ac_status = 0; }; then :
  3282. for ac_file in conftest.o conftest.obj conftest.*; do
  3283. test -f "$ac_file" || continue;
  3284. case $ac_file in
  3285. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3286. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3287. break;;
  3288. esac
  3289. done
  3290. else
  3291. $as_echo "$as_me: failed program was:" >&5
  3292. sed 's/^/| /' conftest.$ac_ext >&5
  3293. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3294. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3295. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3296. See \`config.log' for more details" "$LINENO" 5; }
  3297. fi
  3298. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3299. fi
  3300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3301. $as_echo "$ac_cv_objext" >&6; }
  3302. OBJEXT=$ac_cv_objext
  3303. ac_objext=$OBJEXT
  3304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3305. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3306. if ${ac_cv_c_compiler_gnu+:} false; then :
  3307. $as_echo_n "(cached) " >&6
  3308. else
  3309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3310. /* end confdefs.h. */
  3311. int
  3312. main ()
  3313. {
  3314. #ifndef __GNUC__
  3315. choke me
  3316. #endif
  3317. ;
  3318. return 0;
  3319. }
  3320. _ACEOF
  3321. if ac_fn_c_try_compile "$LINENO"; then :
  3322. ac_compiler_gnu=yes
  3323. else
  3324. ac_compiler_gnu=no
  3325. fi
  3326. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3327. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3328. fi
  3329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3330. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3331. if test $ac_compiler_gnu = yes; then
  3332. GCC=yes
  3333. else
  3334. GCC=
  3335. fi
  3336. ac_test_CFLAGS=${CFLAGS+set}
  3337. ac_save_CFLAGS=$CFLAGS
  3338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3339. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3340. if ${ac_cv_prog_cc_g+:} false; then :
  3341. $as_echo_n "(cached) " >&6
  3342. else
  3343. ac_save_c_werror_flag=$ac_c_werror_flag
  3344. ac_c_werror_flag=yes
  3345. ac_cv_prog_cc_g=no
  3346. CFLAGS="-g"
  3347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3348. /* end confdefs.h. */
  3349. int
  3350. main ()
  3351. {
  3352. ;
  3353. return 0;
  3354. }
  3355. _ACEOF
  3356. if ac_fn_c_try_compile "$LINENO"; then :
  3357. ac_cv_prog_cc_g=yes
  3358. else
  3359. CFLAGS=""
  3360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3361. /* end confdefs.h. */
  3362. int
  3363. main ()
  3364. {
  3365. ;
  3366. return 0;
  3367. }
  3368. _ACEOF
  3369. if ac_fn_c_try_compile "$LINENO"; then :
  3370. else
  3371. ac_c_werror_flag=$ac_save_c_werror_flag
  3372. CFLAGS="-g"
  3373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3374. /* end confdefs.h. */
  3375. int
  3376. main ()
  3377. {
  3378. ;
  3379. return 0;
  3380. }
  3381. _ACEOF
  3382. if ac_fn_c_try_compile "$LINENO"; then :
  3383. ac_cv_prog_cc_g=yes
  3384. fi
  3385. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3386. fi
  3387. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3388. fi
  3389. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3390. ac_c_werror_flag=$ac_save_c_werror_flag
  3391. fi
  3392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3393. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3394. if test "$ac_test_CFLAGS" = set; then
  3395. CFLAGS=$ac_save_CFLAGS
  3396. elif test $ac_cv_prog_cc_g = yes; then
  3397. if test "$GCC" = yes; then
  3398. CFLAGS="-g -O2"
  3399. else
  3400. CFLAGS="-g"
  3401. fi
  3402. else
  3403. if test "$GCC" = yes; then
  3404. CFLAGS="-O2"
  3405. else
  3406. CFLAGS=
  3407. fi
  3408. fi
  3409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3410. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3411. if ${ac_cv_prog_cc_c89+:} false; then :
  3412. $as_echo_n "(cached) " >&6
  3413. else
  3414. ac_cv_prog_cc_c89=no
  3415. ac_save_CC=$CC
  3416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3417. /* end confdefs.h. */
  3418. #include <stdarg.h>
  3419. #include <stdio.h>
  3420. struct stat;
  3421. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3422. struct buf { int x; };
  3423. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3424. static char *e (p, i)
  3425. char **p;
  3426. int i;
  3427. {
  3428. return p[i];
  3429. }
  3430. static char *f (char * (*g) (char **, int), char **p, ...)
  3431. {
  3432. char *s;
  3433. va_list v;
  3434. va_start (v,p);
  3435. s = g (p, va_arg (v,int));
  3436. va_end (v);
  3437. return s;
  3438. }
  3439. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3440. function prototypes and stuff, but not '\xHH' hex character constants.
  3441. These don't provoke an error unfortunately, instead are silently treated
  3442. as 'x'. The following induces an error, until -std is added to get
  3443. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3444. array size at least. It's necessary to write '\x00'==0 to get something
  3445. that's true only with -std. */
  3446. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3447. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3448. inside strings and character constants. */
  3449. #define FOO(x) 'x'
  3450. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3451. int test (int i, double x);
  3452. struct s1 {int (*f) (int a);};
  3453. struct s2 {int (*f) (double a);};
  3454. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3455. int argc;
  3456. char **argv;
  3457. int
  3458. main ()
  3459. {
  3460. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3461. ;
  3462. return 0;
  3463. }
  3464. _ACEOF
  3465. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3466. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3467. do
  3468. CC="$ac_save_CC $ac_arg"
  3469. if ac_fn_c_try_compile "$LINENO"; then :
  3470. ac_cv_prog_cc_c89=$ac_arg
  3471. fi
  3472. rm -f core conftest.err conftest.$ac_objext
  3473. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3474. done
  3475. rm -f conftest.$ac_ext
  3476. CC=$ac_save_CC
  3477. fi
  3478. # AC_CACHE_VAL
  3479. case "x$ac_cv_prog_cc_c89" in
  3480. x)
  3481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3482. $as_echo "none needed" >&6; } ;;
  3483. xno)
  3484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3485. $as_echo "unsupported" >&6; } ;;
  3486. *)
  3487. CC="$CC $ac_cv_prog_cc_c89"
  3488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3489. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3490. esac
  3491. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3492. fi
  3493. ac_ext=c
  3494. ac_cpp='$CPP $CPPFLAGS'
  3495. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3496. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3497. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3499. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3500. if ${ac_cv_path_SED+:} false; then :
  3501. $as_echo_n "(cached) " >&6
  3502. else
  3503. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3504. for ac_i in 1 2 3 4 5 6 7; do
  3505. ac_script="$ac_script$as_nl$ac_script"
  3506. done
  3507. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3508. { ac_script=; unset ac_script;}
  3509. if test -z "$SED"; then
  3510. ac_path_SED_found=false
  3511. # Loop through the user's path and test for each of PROGNAME-LIST
  3512. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3513. for as_dir in $PATH
  3514. do
  3515. IFS=$as_save_IFS
  3516. test -z "$as_dir" && as_dir=.
  3517. for ac_prog in sed gsed; do
  3518. for ac_exec_ext in '' $ac_executable_extensions; do
  3519. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3520. as_fn_executable_p "$ac_path_SED" || continue
  3521. # Check for GNU ac_path_SED and select it if it is found.
  3522. # Check for GNU $ac_path_SED
  3523. case `"$ac_path_SED" --version 2>&1` in
  3524. *GNU*)
  3525. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3526. *)
  3527. ac_count=0
  3528. $as_echo_n 0123456789 >"conftest.in"
  3529. while :
  3530. do
  3531. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3532. mv "conftest.tmp" "conftest.in"
  3533. cp "conftest.in" "conftest.nl"
  3534. $as_echo '' >> "conftest.nl"
  3535. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3536. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3537. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3538. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3539. # Best one so far, save it but keep looking for a better one
  3540. ac_cv_path_SED="$ac_path_SED"
  3541. ac_path_SED_max=$ac_count
  3542. fi
  3543. # 10*(2^10) chars as input seems more than enough
  3544. test $ac_count -gt 10 && break
  3545. done
  3546. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3547. esac
  3548. $ac_path_SED_found && break 3
  3549. done
  3550. done
  3551. done
  3552. IFS=$as_save_IFS
  3553. if test -z "$ac_cv_path_SED"; then
  3554. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3555. fi
  3556. else
  3557. ac_cv_path_SED=$SED
  3558. fi
  3559. fi
  3560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3561. $as_echo "$ac_cv_path_SED" >&6; }
  3562. SED="$ac_cv_path_SED"
  3563. rm -f conftest.sed
  3564. test -z "$SED" && SED=sed
  3565. Xsed="$SED -e 1s/^X//"
  3566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3567. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3568. if ${ac_cv_path_GREP+:} false; then :
  3569. $as_echo_n "(cached) " >&6
  3570. else
  3571. if test -z "$GREP"; then
  3572. ac_path_GREP_found=false
  3573. # Loop through the user's path and test for each of PROGNAME-LIST
  3574. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3575. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3576. do
  3577. IFS=$as_save_IFS
  3578. test -z "$as_dir" && as_dir=.
  3579. for ac_prog in grep ggrep; do
  3580. for ac_exec_ext in '' $ac_executable_extensions; do
  3581. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3582. as_fn_executable_p "$ac_path_GREP" || continue
  3583. # Check for GNU ac_path_GREP and select it if it is found.
  3584. # Check for GNU $ac_path_GREP
  3585. case `"$ac_path_GREP" --version 2>&1` in
  3586. *GNU*)
  3587. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3588. *)
  3589. ac_count=0
  3590. $as_echo_n 0123456789 >"conftest.in"
  3591. while :
  3592. do
  3593. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3594. mv "conftest.tmp" "conftest.in"
  3595. cp "conftest.in" "conftest.nl"
  3596. $as_echo 'GREP' >> "conftest.nl"
  3597. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3598. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3599. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3600. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3601. # Best one so far, save it but keep looking for a better one
  3602. ac_cv_path_GREP="$ac_path_GREP"
  3603. ac_path_GREP_max=$ac_count
  3604. fi
  3605. # 10*(2^10) chars as input seems more than enough
  3606. test $ac_count -gt 10 && break
  3607. done
  3608. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3609. esac
  3610. $ac_path_GREP_found && break 3
  3611. done
  3612. done
  3613. done
  3614. IFS=$as_save_IFS
  3615. if test -z "$ac_cv_path_GREP"; then
  3616. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3617. fi
  3618. else
  3619. ac_cv_path_GREP=$GREP
  3620. fi
  3621. fi
  3622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3623. $as_echo "$ac_cv_path_GREP" >&6; }
  3624. GREP="$ac_cv_path_GREP"
  3625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3626. $as_echo_n "checking for egrep... " >&6; }
  3627. if ${ac_cv_path_EGREP+:} false; then :
  3628. $as_echo_n "(cached) " >&6
  3629. else
  3630. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3631. then ac_cv_path_EGREP="$GREP -E"
  3632. else
  3633. if test -z "$EGREP"; then
  3634. ac_path_EGREP_found=false
  3635. # Loop through the user's path and test for each of PROGNAME-LIST
  3636. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3637. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3638. do
  3639. IFS=$as_save_IFS
  3640. test -z "$as_dir" && as_dir=.
  3641. for ac_prog in egrep; do
  3642. for ac_exec_ext in '' $ac_executable_extensions; do
  3643. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3644. as_fn_executable_p "$ac_path_EGREP" || continue
  3645. # Check for GNU ac_path_EGREP and select it if it is found.
  3646. # Check for GNU $ac_path_EGREP
  3647. case `"$ac_path_EGREP" --version 2>&1` in
  3648. *GNU*)
  3649. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3650. *)
  3651. ac_count=0
  3652. $as_echo_n 0123456789 >"conftest.in"
  3653. while :
  3654. do
  3655. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3656. mv "conftest.tmp" "conftest.in"
  3657. cp "conftest.in" "conftest.nl"
  3658. $as_echo 'EGREP' >> "conftest.nl"
  3659. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3660. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3661. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3662. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3663. # Best one so far, save it but keep looking for a better one
  3664. ac_cv_path_EGREP="$ac_path_EGREP"
  3665. ac_path_EGREP_max=$ac_count
  3666. fi
  3667. # 10*(2^10) chars as input seems more than enough
  3668. test $ac_count -gt 10 && break
  3669. done
  3670. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3671. esac
  3672. $ac_path_EGREP_found && break 3
  3673. done
  3674. done
  3675. done
  3676. IFS=$as_save_IFS
  3677. if test -z "$ac_cv_path_EGREP"; then
  3678. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3679. fi
  3680. else
  3681. ac_cv_path_EGREP=$EGREP
  3682. fi
  3683. fi
  3684. fi
  3685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3686. $as_echo "$ac_cv_path_EGREP" >&6; }
  3687. EGREP="$ac_cv_path_EGREP"
  3688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3689. $as_echo_n "checking for fgrep... " >&6; }
  3690. if ${ac_cv_path_FGREP+:} false; then :
  3691. $as_echo_n "(cached) " >&6
  3692. else
  3693. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3694. then ac_cv_path_FGREP="$GREP -F"
  3695. else
  3696. if test -z "$FGREP"; then
  3697. ac_path_FGREP_found=false
  3698. # Loop through the user's path and test for each of PROGNAME-LIST
  3699. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3700. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3701. do
  3702. IFS=$as_save_IFS
  3703. test -z "$as_dir" && as_dir=.
  3704. for ac_prog in fgrep; do
  3705. for ac_exec_ext in '' $ac_executable_extensions; do
  3706. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3707. as_fn_executable_p "$ac_path_FGREP" || continue
  3708. # Check for GNU ac_path_FGREP and select it if it is found.
  3709. # Check for GNU $ac_path_FGREP
  3710. case `"$ac_path_FGREP" --version 2>&1` in
  3711. *GNU*)
  3712. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3713. *)
  3714. ac_count=0
  3715. $as_echo_n 0123456789 >"conftest.in"
  3716. while :
  3717. do
  3718. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3719. mv "conftest.tmp" "conftest.in"
  3720. cp "conftest.in" "conftest.nl"
  3721. $as_echo 'FGREP' >> "conftest.nl"
  3722. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3723. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3724. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3725. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3726. # Best one so far, save it but keep looking for a better one
  3727. ac_cv_path_FGREP="$ac_path_FGREP"
  3728. ac_path_FGREP_max=$ac_count
  3729. fi
  3730. # 10*(2^10) chars as input seems more than enough
  3731. test $ac_count -gt 10 && break
  3732. done
  3733. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3734. esac
  3735. $ac_path_FGREP_found && break 3
  3736. done
  3737. done
  3738. done
  3739. IFS=$as_save_IFS
  3740. if test -z "$ac_cv_path_FGREP"; then
  3741. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3742. fi
  3743. else
  3744. ac_cv_path_FGREP=$FGREP
  3745. fi
  3746. fi
  3747. fi
  3748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3749. $as_echo "$ac_cv_path_FGREP" >&6; }
  3750. FGREP="$ac_cv_path_FGREP"
  3751. test -z "$GREP" && GREP=grep
  3752. # Check whether --with-gnu-ld was given.
  3753. if test "${with_gnu_ld+set}" = set; then :
  3754. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  3755. else
  3756. with_gnu_ld=no
  3757. fi
  3758. ac_prog=ld
  3759. if test yes = "$GCC"; then
  3760. # Check if gcc -print-prog-name=ld gives a path.
  3761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3762. $as_echo_n "checking for ld used by $CC... " >&6; }
  3763. case $host in
  3764. *-*-mingw*)
  3765. # gcc leaves a trailing carriage return, which upsets mingw
  3766. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3767. *)
  3768. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3769. esac
  3770. case $ac_prog in
  3771. # Accept absolute paths.
  3772. [\\/]* | ?:[\\/]*)
  3773. re_direlt='/[^/][^/]*/\.\./'
  3774. # Canonicalize the pathname of ld
  3775. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3776. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3777. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3778. done
  3779. test -z "$LD" && LD=$ac_prog
  3780. ;;
  3781. "")
  3782. # If it fails, then pretend we aren't using GCC.
  3783. ac_prog=ld
  3784. ;;
  3785. *)
  3786. # If it is relative, then search for the first ld in PATH.
  3787. with_gnu_ld=unknown
  3788. ;;
  3789. esac
  3790. elif test yes = "$with_gnu_ld"; then
  3791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3792. $as_echo_n "checking for GNU ld... " >&6; }
  3793. else
  3794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3795. $as_echo_n "checking for non-GNU ld... " >&6; }
  3796. fi
  3797. if ${lt_cv_path_LD+:} false; then :
  3798. $as_echo_n "(cached) " >&6
  3799. else
  3800. if test -z "$LD"; then
  3801. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3802. for ac_dir in $PATH; do
  3803. IFS=$lt_save_ifs
  3804. test -z "$ac_dir" && ac_dir=.
  3805. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3806. lt_cv_path_LD=$ac_dir/$ac_prog
  3807. # Check to see if the program is GNU ld. I'd rather use --version,
  3808. # but apparently some variants of GNU ld only accept -v.
  3809. # Break only if it was the GNU/non-GNU ld that we prefer.
  3810. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3811. *GNU* | *'with BFD'*)
  3812. test no != "$with_gnu_ld" && break
  3813. ;;
  3814. *)
  3815. test yes != "$with_gnu_ld" && break
  3816. ;;
  3817. esac
  3818. fi
  3819. done
  3820. IFS=$lt_save_ifs
  3821. else
  3822. lt_cv_path_LD=$LD # Let the user override the test with a path.
  3823. fi
  3824. fi
  3825. LD=$lt_cv_path_LD
  3826. if test -n "$LD"; then
  3827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3828. $as_echo "$LD" >&6; }
  3829. else
  3830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3831. $as_echo "no" >&6; }
  3832. fi
  3833. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3835. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3836. if ${lt_cv_prog_gnu_ld+:} false; then :
  3837. $as_echo_n "(cached) " >&6
  3838. else
  3839. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3840. case `$LD -v 2>&1 </dev/null` in
  3841. *GNU* | *'with BFD'*)
  3842. lt_cv_prog_gnu_ld=yes
  3843. ;;
  3844. *)
  3845. lt_cv_prog_gnu_ld=no
  3846. ;;
  3847. esac
  3848. fi
  3849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3850. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3851. with_gnu_ld=$lt_cv_prog_gnu_ld
  3852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3853. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3854. if ${lt_cv_path_NM+:} false; then :
  3855. $as_echo_n "(cached) " >&6
  3856. else
  3857. if test -n "$NM"; then
  3858. # Let the user override the test.
  3859. lt_cv_path_NM=$NM
  3860. else
  3861. lt_nm_to_check=${ac_tool_prefix}nm
  3862. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3863. lt_nm_to_check="$lt_nm_to_check nm"
  3864. fi
  3865. for lt_tmp_nm in $lt_nm_to_check; do
  3866. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3867. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3868. IFS=$lt_save_ifs
  3869. test -z "$ac_dir" && ac_dir=.
  3870. tmp_nm=$ac_dir/$lt_tmp_nm
  3871. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  3872. # Check to see if the nm accepts a BSD-compat flag.
  3873. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  3874. # nm: unknown option "B" ignored
  3875. # Tru64's nm complains that /dev/null is an invalid object file
  3876. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  3877. case $build_os in
  3878. mingw*) lt_bad_file=conftest.nm/nofile ;;
  3879. *) lt_bad_file=/dev/null ;;
  3880. esac
  3881. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  3882. *$lt_bad_file* | *'Invalid file or object type'*)
  3883. lt_cv_path_NM="$tmp_nm -B"
  3884. break 2
  3885. ;;
  3886. *)
  3887. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3888. */dev/null*)
  3889. lt_cv_path_NM="$tmp_nm -p"
  3890. break 2
  3891. ;;
  3892. *)
  3893. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3894. continue # so that we can try to find one that supports BSD flags
  3895. ;;
  3896. esac
  3897. ;;
  3898. esac
  3899. fi
  3900. done
  3901. IFS=$lt_save_ifs
  3902. done
  3903. : ${lt_cv_path_NM=no}
  3904. fi
  3905. fi
  3906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3907. $as_echo "$lt_cv_path_NM" >&6; }
  3908. if test no != "$lt_cv_path_NM"; then
  3909. NM=$lt_cv_path_NM
  3910. else
  3911. # Didn't find any BSD compatible name lister, look for dumpbin.
  3912. if test -n "$DUMPBIN"; then :
  3913. # Let the user override the test.
  3914. else
  3915. if test -n "$ac_tool_prefix"; then
  3916. for ac_prog in dumpbin "link -dump"
  3917. do
  3918. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3919. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3921. $as_echo_n "checking for $ac_word... " >&6; }
  3922. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3923. $as_echo_n "(cached) " >&6
  3924. else
  3925. if test -n "$DUMPBIN"; then
  3926. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3927. else
  3928. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3929. for as_dir in $PATH
  3930. do
  3931. IFS=$as_save_IFS
  3932. test -z "$as_dir" && as_dir=.
  3933. for ac_exec_ext in '' $ac_executable_extensions; do
  3934. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3935. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3936. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3937. break 2
  3938. fi
  3939. done
  3940. done
  3941. IFS=$as_save_IFS
  3942. fi
  3943. fi
  3944. DUMPBIN=$ac_cv_prog_DUMPBIN
  3945. if test -n "$DUMPBIN"; then
  3946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3947. $as_echo "$DUMPBIN" >&6; }
  3948. else
  3949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3950. $as_echo "no" >&6; }
  3951. fi
  3952. test -n "$DUMPBIN" && break
  3953. done
  3954. fi
  3955. if test -z "$DUMPBIN"; then
  3956. ac_ct_DUMPBIN=$DUMPBIN
  3957. for ac_prog in dumpbin "link -dump"
  3958. do
  3959. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3960. set dummy $ac_prog; ac_word=$2
  3961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3962. $as_echo_n "checking for $ac_word... " >&6; }
  3963. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3964. $as_echo_n "(cached) " >&6
  3965. else
  3966. if test -n "$ac_ct_DUMPBIN"; then
  3967. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3968. else
  3969. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3970. for as_dir in $PATH
  3971. do
  3972. IFS=$as_save_IFS
  3973. test -z "$as_dir" && as_dir=.
  3974. for ac_exec_ext in '' $ac_executable_extensions; do
  3975. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3976. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3977. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3978. break 2
  3979. fi
  3980. done
  3981. done
  3982. IFS=$as_save_IFS
  3983. fi
  3984. fi
  3985. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3986. if test -n "$ac_ct_DUMPBIN"; then
  3987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3988. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3989. else
  3990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3991. $as_echo "no" >&6; }
  3992. fi
  3993. test -n "$ac_ct_DUMPBIN" && break
  3994. done
  3995. if test "x$ac_ct_DUMPBIN" = x; then
  3996. DUMPBIN=":"
  3997. else
  3998. case $cross_compiling:$ac_tool_warned in
  3999. yes:)
  4000. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4001. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4002. ac_tool_warned=yes ;;
  4003. esac
  4004. DUMPBIN=$ac_ct_DUMPBIN
  4005. fi
  4006. fi
  4007. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4008. *COFF*)
  4009. DUMPBIN="$DUMPBIN -symbols -headers"
  4010. ;;
  4011. *)
  4012. DUMPBIN=:
  4013. ;;
  4014. esac
  4015. fi
  4016. if test : != "$DUMPBIN"; then
  4017. NM=$DUMPBIN
  4018. fi
  4019. fi
  4020. test -z "$NM" && NM=nm
  4021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4022. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4023. if ${lt_cv_nm_interface+:} false; then :
  4024. $as_echo_n "(cached) " >&6
  4025. else
  4026. lt_cv_nm_interface="BSD nm"
  4027. echo "int some_variable = 0;" > conftest.$ac_ext
  4028. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4029. (eval "$ac_compile" 2>conftest.err)
  4030. cat conftest.err >&5
  4031. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4032. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4033. cat conftest.err >&5
  4034. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4035. cat conftest.out >&5
  4036. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4037. lt_cv_nm_interface="MS dumpbin"
  4038. fi
  4039. rm -f conftest*
  4040. fi
  4041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4042. $as_echo "$lt_cv_nm_interface" >&6; }
  4043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4044. $as_echo_n "checking whether ln -s works... " >&6; }
  4045. LN_S=$as_ln_s
  4046. if test "$LN_S" = "ln -s"; then
  4047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4048. $as_echo "yes" >&6; }
  4049. else
  4050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4051. $as_echo "no, using $LN_S" >&6; }
  4052. fi
  4053. # find the maximum length of command line arguments
  4054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4055. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4056. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4057. $as_echo_n "(cached) " >&6
  4058. else
  4059. i=0
  4060. teststring=ABCD
  4061. case $build_os in
  4062. msdosdjgpp*)
  4063. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4064. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4065. # during glob expansion). Even if it were fixed, the result of this
  4066. # check would be larger than it should be.
  4067. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4068. ;;
  4069. gnu*)
  4070. # Under GNU Hurd, this test is not required because there is
  4071. # no limit to the length of command line arguments.
  4072. # Libtool will interpret -1 as no limit whatsoever
  4073. lt_cv_sys_max_cmd_len=-1;
  4074. ;;
  4075. cygwin* | mingw* | cegcc*)
  4076. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4077. # about 5 minutes as the teststring grows exponentially.
  4078. # Worse, since 9x/ME are not pre-emptively multitasking,
  4079. # you end up with a "frozen" computer, even though with patience
  4080. # the test eventually succeeds (with a max line length of 256k).
  4081. # Instead, let's just punt: use the minimum linelength reported by
  4082. # all of the supported platforms: 8192 (on NT/2K/XP).
  4083. lt_cv_sys_max_cmd_len=8192;
  4084. ;;
  4085. mint*)
  4086. # On MiNT this can take a long time and run out of memory.
  4087. lt_cv_sys_max_cmd_len=8192;
  4088. ;;
  4089. amigaos*)
  4090. # On AmigaOS with pdksh, this test takes hours, literally.
  4091. # So we just punt and use a minimum line length of 8192.
  4092. lt_cv_sys_max_cmd_len=8192;
  4093. ;;
  4094. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4095. # This has been around since 386BSD, at least. Likely further.
  4096. if test -x /sbin/sysctl; then
  4097. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4098. elif test -x /usr/sbin/sysctl; then
  4099. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4100. else
  4101. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4102. fi
  4103. # And add a safety zone
  4104. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4105. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4106. ;;
  4107. interix*)
  4108. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4109. lt_cv_sys_max_cmd_len=196608
  4110. ;;
  4111. os2*)
  4112. # The test takes a long time on OS/2.
  4113. lt_cv_sys_max_cmd_len=8192
  4114. ;;
  4115. osf*)
  4116. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4117. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4118. # nice to cause kernel panics so lets avoid the loop below.
  4119. # First set a reasonable default.
  4120. lt_cv_sys_max_cmd_len=16384
  4121. #
  4122. if test -x /sbin/sysconfig; then
  4123. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4124. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4125. esac
  4126. fi
  4127. ;;
  4128. sco3.2v5*)
  4129. lt_cv_sys_max_cmd_len=102400
  4130. ;;
  4131. sysv5* | sco5v6* | sysv4.2uw2*)
  4132. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4133. if test -n "$kargmax"; then
  4134. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4135. else
  4136. lt_cv_sys_max_cmd_len=32768
  4137. fi
  4138. ;;
  4139. *)
  4140. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4141. if test -n "$lt_cv_sys_max_cmd_len" && \
  4142. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4143. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4144. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4145. else
  4146. # Make teststring a little bigger before we do anything with it.
  4147. # a 1K string should be a reasonable start.
  4148. for i in 1 2 3 4 5 6 7 8; do
  4149. teststring=$teststring$teststring
  4150. done
  4151. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4152. # If test is not a shell built-in, we'll probably end up computing a
  4153. # maximum length that is only half of the actual maximum length, but
  4154. # we can't tell.
  4155. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4156. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4157. test 17 != "$i" # 1/2 MB should be enough
  4158. do
  4159. i=`expr $i + 1`
  4160. teststring=$teststring$teststring
  4161. done
  4162. # Only check the string length outside the loop.
  4163. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4164. teststring=
  4165. # Add a significant safety factor because C++ compilers can tack on
  4166. # massive amounts of additional arguments before passing them to the
  4167. # linker. It appears as though 1/2 is a usable value.
  4168. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4169. fi
  4170. ;;
  4171. esac
  4172. fi
  4173. if test -n "$lt_cv_sys_max_cmd_len"; then
  4174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4175. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4176. else
  4177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4178. $as_echo "none" >&6; }
  4179. fi
  4180. max_cmd_len=$lt_cv_sys_max_cmd_len
  4181. : ${CP="cp -f"}
  4182. : ${MV="mv -f"}
  4183. : ${RM="rm -f"}
  4184. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4185. lt_unset=unset
  4186. else
  4187. lt_unset=false
  4188. fi
  4189. # test EBCDIC or ASCII
  4190. case `echo X|tr X '\101'` in
  4191. A) # ASCII based system
  4192. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4193. lt_SP2NL='tr \040 \012'
  4194. lt_NL2SP='tr \015\012 \040\040'
  4195. ;;
  4196. *) # EBCDIC based system
  4197. lt_SP2NL='tr \100 \n'
  4198. lt_NL2SP='tr \r\n \100\100'
  4199. ;;
  4200. esac
  4201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4202. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4203. if ${lt_cv_to_host_file_cmd+:} false; then :
  4204. $as_echo_n "(cached) " >&6
  4205. else
  4206. case $host in
  4207. *-*-mingw* )
  4208. case $build in
  4209. *-*-mingw* ) # actually msys
  4210. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4211. ;;
  4212. *-*-cygwin* )
  4213. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4214. ;;
  4215. * ) # otherwise, assume *nix
  4216. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4217. ;;
  4218. esac
  4219. ;;
  4220. *-*-cygwin* )
  4221. case $build in
  4222. *-*-mingw* ) # actually msys
  4223. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4224. ;;
  4225. *-*-cygwin* )
  4226. lt_cv_to_host_file_cmd=func_convert_file_noop
  4227. ;;
  4228. * ) # otherwise, assume *nix
  4229. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4230. ;;
  4231. esac
  4232. ;;
  4233. * ) # unhandled hosts (and "normal" native builds)
  4234. lt_cv_to_host_file_cmd=func_convert_file_noop
  4235. ;;
  4236. esac
  4237. fi
  4238. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4240. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4242. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4243. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4244. $as_echo_n "(cached) " >&6
  4245. else
  4246. #assume ordinary cross tools, or native build.
  4247. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4248. case $host in
  4249. *-*-mingw* )
  4250. case $build in
  4251. *-*-mingw* ) # actually msys
  4252. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4253. ;;
  4254. esac
  4255. ;;
  4256. esac
  4257. fi
  4258. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4260. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4262. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4263. if ${lt_cv_ld_reload_flag+:} false; then :
  4264. $as_echo_n "(cached) " >&6
  4265. else
  4266. lt_cv_ld_reload_flag='-r'
  4267. fi
  4268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4269. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4270. reload_flag=$lt_cv_ld_reload_flag
  4271. case $reload_flag in
  4272. "" | " "*) ;;
  4273. *) reload_flag=" $reload_flag" ;;
  4274. esac
  4275. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4276. case $host_os in
  4277. cygwin* | mingw* | pw32* | cegcc*)
  4278. if test yes != "$GCC"; then
  4279. reload_cmds=false
  4280. fi
  4281. ;;
  4282. darwin*)
  4283. if test yes = "$GCC"; then
  4284. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  4285. else
  4286. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4287. fi
  4288. ;;
  4289. esac
  4290. if test -n "$ac_tool_prefix"; then
  4291. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4292. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4294. $as_echo_n "checking for $ac_word... " >&6; }
  4295. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4296. $as_echo_n "(cached) " >&6
  4297. else
  4298. if test -n "$OBJDUMP"; then
  4299. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4300. else
  4301. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4302. for as_dir in $PATH
  4303. do
  4304. IFS=$as_save_IFS
  4305. test -z "$as_dir" && as_dir=.
  4306. for ac_exec_ext in '' $ac_executable_extensions; do
  4307. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4308. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4309. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4310. break 2
  4311. fi
  4312. done
  4313. done
  4314. IFS=$as_save_IFS
  4315. fi
  4316. fi
  4317. OBJDUMP=$ac_cv_prog_OBJDUMP
  4318. if test -n "$OBJDUMP"; then
  4319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4320. $as_echo "$OBJDUMP" >&6; }
  4321. else
  4322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4323. $as_echo "no" >&6; }
  4324. fi
  4325. fi
  4326. if test -z "$ac_cv_prog_OBJDUMP"; then
  4327. ac_ct_OBJDUMP=$OBJDUMP
  4328. # Extract the first word of "objdump", so it can be a program name with args.
  4329. set dummy objdump; ac_word=$2
  4330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4331. $as_echo_n "checking for $ac_word... " >&6; }
  4332. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4333. $as_echo_n "(cached) " >&6
  4334. else
  4335. if test -n "$ac_ct_OBJDUMP"; then
  4336. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4337. else
  4338. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4339. for as_dir in $PATH
  4340. do
  4341. IFS=$as_save_IFS
  4342. test -z "$as_dir" && as_dir=.
  4343. for ac_exec_ext in '' $ac_executable_extensions; do
  4344. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4345. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4346. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4347. break 2
  4348. fi
  4349. done
  4350. done
  4351. IFS=$as_save_IFS
  4352. fi
  4353. fi
  4354. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4355. if test -n "$ac_ct_OBJDUMP"; then
  4356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4357. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4358. else
  4359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4360. $as_echo "no" >&6; }
  4361. fi
  4362. if test "x$ac_ct_OBJDUMP" = x; then
  4363. OBJDUMP="false"
  4364. else
  4365. case $cross_compiling:$ac_tool_warned in
  4366. yes:)
  4367. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4368. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4369. ac_tool_warned=yes ;;
  4370. esac
  4371. OBJDUMP=$ac_ct_OBJDUMP
  4372. fi
  4373. else
  4374. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4375. fi
  4376. test -z "$OBJDUMP" && OBJDUMP=objdump
  4377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4378. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4379. if ${lt_cv_deplibs_check_method+:} false; then :
  4380. $as_echo_n "(cached) " >&6
  4381. else
  4382. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4383. lt_cv_file_magic_test_file=
  4384. lt_cv_deplibs_check_method='unknown'
  4385. # Need to set the preceding variable on all platforms that support
  4386. # interlibrary dependencies.
  4387. # 'none' -- dependencies not supported.
  4388. # 'unknown' -- same as none, but documents that we really don't know.
  4389. # 'pass_all' -- all dependencies passed with no checks.
  4390. # 'test_compile' -- check by making test program.
  4391. # 'file_magic [[regex]]' -- check by looking for files in library path
  4392. # that responds to the $file_magic_cmd with a given extended regex.
  4393. # If you have 'file' or equivalent on your system and you're not sure
  4394. # whether 'pass_all' will *always* work, you probably want this one.
  4395. case $host_os in
  4396. aix[4-9]*)
  4397. lt_cv_deplibs_check_method=pass_all
  4398. ;;
  4399. beos*)
  4400. lt_cv_deplibs_check_method=pass_all
  4401. ;;
  4402. bsdi[45]*)
  4403. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4404. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4405. lt_cv_file_magic_test_file=/shlib/libc.so
  4406. ;;
  4407. cygwin*)
  4408. # func_win32_libid is a shell function defined in ltmain.sh
  4409. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4410. lt_cv_file_magic_cmd='func_win32_libid'
  4411. lt_cv_deplibs_check_method=pass_all # SDL customization
  4412. ;;
  4413. mingw* | pw32*)
  4414. # Base MSYS/MinGW do not provide the 'file' command needed by
  4415. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4416. # unless we find 'file', for example because we are cross-compiling.
  4417. if ( file / ) >/dev/null 2>&1; then
  4418. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4419. lt_cv_file_magic_cmd='func_win32_libid'
  4420. else
  4421. # Keep this pattern in sync with the one in func_win32_libid.
  4422. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4423. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4424. fi
  4425. lt_cv_deplibs_check_method=pass_all # SDL customization
  4426. ;;
  4427. cegcc*)
  4428. # use the weaker test based on 'objdump'. See mingw*.
  4429. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4430. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4431. ;;
  4432. darwin* | rhapsody*)
  4433. lt_cv_deplibs_check_method=pass_all
  4434. ;;
  4435. freebsd* | dragonfly* | midnightbsd*)
  4436. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4437. case $host_cpu in
  4438. i*86 )
  4439. # Not sure whether the presence of OpenBSD here was a mistake.
  4440. # Let's accept both of them until this is cleared up.
  4441. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4442. lt_cv_file_magic_cmd=/usr/bin/file
  4443. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4444. ;;
  4445. esac
  4446. else
  4447. lt_cv_deplibs_check_method=pass_all
  4448. fi
  4449. ;;
  4450. haiku*)
  4451. lt_cv_deplibs_check_method=pass_all
  4452. ;;
  4453. hpux10.20* | hpux11*)
  4454. lt_cv_file_magic_cmd=/usr/bin/file
  4455. case $host_cpu in
  4456. ia64*)
  4457. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4458. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4459. ;;
  4460. hppa*64*)
  4461. 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]'
  4462. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4463. ;;
  4464. *)
  4465. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4466. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4467. ;;
  4468. esac
  4469. ;;
  4470. interix[3-9]*)
  4471. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4472. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4473. ;;
  4474. irix5* | irix6* | nonstopux*)
  4475. case $LD in
  4476. *-32|*"-32 ") libmagic=32-bit;;
  4477. *-n32|*"-n32 ") libmagic=N32;;
  4478. *-64|*"-64 ") libmagic=64-bit;;
  4479. *) libmagic=never-match;;
  4480. esac
  4481. lt_cv_deplibs_check_method=pass_all
  4482. ;;
  4483. # This must be glibc/ELF.
  4484. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  4485. lt_cv_deplibs_check_method=pass_all
  4486. ;;
  4487. netbsd*)
  4488. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4489. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4490. else
  4491. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4492. fi
  4493. ;;
  4494. newos6*)
  4495. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4496. lt_cv_file_magic_cmd=/usr/bin/file
  4497. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4498. ;;
  4499. *nto* | *qnx*)
  4500. lt_cv_deplibs_check_method=pass_all
  4501. ;;
  4502. openbsd* | bitrig*)
  4503. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  4504. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4505. else
  4506. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4507. fi
  4508. ;;
  4509. osf3* | osf4* | osf5*)
  4510. lt_cv_deplibs_check_method=pass_all
  4511. ;;
  4512. rdos*)
  4513. lt_cv_deplibs_check_method=pass_all
  4514. ;;
  4515. solaris*)
  4516. lt_cv_deplibs_check_method=pass_all
  4517. ;;
  4518. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4519. lt_cv_deplibs_check_method=pass_all
  4520. ;;
  4521. sysv4 | sysv4.3*)
  4522. case $host_vendor in
  4523. motorola)
  4524. 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]'
  4525. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4526. ;;
  4527. ncr)
  4528. lt_cv_deplibs_check_method=pass_all
  4529. ;;
  4530. sequent)
  4531. lt_cv_file_magic_cmd='/bin/file'
  4532. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4533. ;;
  4534. sni)
  4535. lt_cv_file_magic_cmd='/bin/file'
  4536. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4537. lt_cv_file_magic_test_file=/lib/libc.so
  4538. ;;
  4539. siemens)
  4540. lt_cv_deplibs_check_method=pass_all
  4541. ;;
  4542. pc)
  4543. lt_cv_deplibs_check_method=pass_all
  4544. ;;
  4545. esac
  4546. ;;
  4547. tpf*)
  4548. lt_cv_deplibs_check_method=pass_all
  4549. ;;
  4550. os2*)
  4551. lt_cv_deplibs_check_method=pass_all
  4552. ;;
  4553. esac
  4554. fi
  4555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4556. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4557. file_magic_glob=
  4558. want_nocaseglob=no
  4559. if test "$build" = "$host"; then
  4560. case $host_os in
  4561. mingw* | pw32*)
  4562. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4563. want_nocaseglob=yes
  4564. else
  4565. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4566. fi
  4567. ;;
  4568. esac
  4569. fi
  4570. file_magic_cmd=$lt_cv_file_magic_cmd
  4571. deplibs_check_method=$lt_cv_deplibs_check_method
  4572. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4573. if test -n "$ac_tool_prefix"; then
  4574. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4575. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4577. $as_echo_n "checking for $ac_word... " >&6; }
  4578. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4579. $as_echo_n "(cached) " >&6
  4580. else
  4581. if test -n "$DLLTOOL"; then
  4582. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4583. else
  4584. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4585. for as_dir in $PATH
  4586. do
  4587. IFS=$as_save_IFS
  4588. test -z "$as_dir" && as_dir=.
  4589. for ac_exec_ext in '' $ac_executable_extensions; do
  4590. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4591. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4592. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4593. break 2
  4594. fi
  4595. done
  4596. done
  4597. IFS=$as_save_IFS
  4598. fi
  4599. fi
  4600. DLLTOOL=$ac_cv_prog_DLLTOOL
  4601. if test -n "$DLLTOOL"; then
  4602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4603. $as_echo "$DLLTOOL" >&6; }
  4604. else
  4605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4606. $as_echo "no" >&6; }
  4607. fi
  4608. fi
  4609. if test -z "$ac_cv_prog_DLLTOOL"; then
  4610. ac_ct_DLLTOOL=$DLLTOOL
  4611. # Extract the first word of "dlltool", so it can be a program name with args.
  4612. set dummy dlltool; ac_word=$2
  4613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4614. $as_echo_n "checking for $ac_word... " >&6; }
  4615. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4616. $as_echo_n "(cached) " >&6
  4617. else
  4618. if test -n "$ac_ct_DLLTOOL"; then
  4619. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4620. else
  4621. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4622. for as_dir in $PATH
  4623. do
  4624. IFS=$as_save_IFS
  4625. test -z "$as_dir" && as_dir=.
  4626. for ac_exec_ext in '' $ac_executable_extensions; do
  4627. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4628. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4629. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4630. break 2
  4631. fi
  4632. done
  4633. done
  4634. IFS=$as_save_IFS
  4635. fi
  4636. fi
  4637. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4638. if test -n "$ac_ct_DLLTOOL"; then
  4639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4640. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4641. else
  4642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4643. $as_echo "no" >&6; }
  4644. fi
  4645. if test "x$ac_ct_DLLTOOL" = x; then
  4646. DLLTOOL="false"
  4647. else
  4648. case $cross_compiling:$ac_tool_warned in
  4649. yes:)
  4650. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4651. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4652. ac_tool_warned=yes ;;
  4653. esac
  4654. DLLTOOL=$ac_ct_DLLTOOL
  4655. fi
  4656. else
  4657. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4658. fi
  4659. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4661. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4662. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4663. $as_echo_n "(cached) " >&6
  4664. else
  4665. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4666. case $host_os in
  4667. cygwin* | mingw* | pw32* | cegcc*)
  4668. # two different shell functions defined in ltmain.sh;
  4669. # decide which one to use based on capabilities of $DLLTOOL
  4670. case `$DLLTOOL --help 2>&1` in
  4671. *--identify-strict*)
  4672. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4673. ;;
  4674. *)
  4675. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4676. ;;
  4677. esac
  4678. ;;
  4679. *)
  4680. # fallback: assume linklib IS sharedlib
  4681. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  4682. ;;
  4683. esac
  4684. fi
  4685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4686. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4687. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4688. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4689. if test -n "$ac_tool_prefix"; then
  4690. for ac_prog in ar
  4691. do
  4692. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4693. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4695. $as_echo_n "checking for $ac_word... " >&6; }
  4696. if ${ac_cv_prog_AR+:} false; then :
  4697. $as_echo_n "(cached) " >&6
  4698. else
  4699. if test -n "$AR"; then
  4700. ac_cv_prog_AR="$AR" # Let the user override the test.
  4701. else
  4702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4703. for as_dir in $PATH
  4704. do
  4705. IFS=$as_save_IFS
  4706. test -z "$as_dir" && as_dir=.
  4707. for ac_exec_ext in '' $ac_executable_extensions; do
  4708. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4709. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4710. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4711. break 2
  4712. fi
  4713. done
  4714. done
  4715. IFS=$as_save_IFS
  4716. fi
  4717. fi
  4718. AR=$ac_cv_prog_AR
  4719. if test -n "$AR"; then
  4720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4721. $as_echo "$AR" >&6; }
  4722. else
  4723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4724. $as_echo "no" >&6; }
  4725. fi
  4726. test -n "$AR" && break
  4727. done
  4728. fi
  4729. if test -z "$AR"; then
  4730. ac_ct_AR=$AR
  4731. for ac_prog in ar
  4732. do
  4733. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4734. set dummy $ac_prog; ac_word=$2
  4735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4736. $as_echo_n "checking for $ac_word... " >&6; }
  4737. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4738. $as_echo_n "(cached) " >&6
  4739. else
  4740. if test -n "$ac_ct_AR"; then
  4741. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4742. else
  4743. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4744. for as_dir in $PATH
  4745. do
  4746. IFS=$as_save_IFS
  4747. test -z "$as_dir" && as_dir=.
  4748. for ac_exec_ext in '' $ac_executable_extensions; do
  4749. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4750. ac_cv_prog_ac_ct_AR="$ac_prog"
  4751. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4752. break 2
  4753. fi
  4754. done
  4755. done
  4756. IFS=$as_save_IFS
  4757. fi
  4758. fi
  4759. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4760. if test -n "$ac_ct_AR"; then
  4761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4762. $as_echo "$ac_ct_AR" >&6; }
  4763. else
  4764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4765. $as_echo "no" >&6; }
  4766. fi
  4767. test -n "$ac_ct_AR" && break
  4768. done
  4769. if test "x$ac_ct_AR" = x; then
  4770. AR="false"
  4771. else
  4772. case $cross_compiling:$ac_tool_warned in
  4773. yes:)
  4774. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4775. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4776. ac_tool_warned=yes ;;
  4777. esac
  4778. AR=$ac_ct_AR
  4779. fi
  4780. fi
  4781. : ${AR=ar}
  4782. : ${AR_FLAGS=cru}
  4783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4784. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4785. if ${lt_cv_ar_at_file+:} false; then :
  4786. $as_echo_n "(cached) " >&6
  4787. else
  4788. lt_cv_ar_at_file=no
  4789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4790. /* end confdefs.h. */
  4791. int
  4792. main ()
  4793. {
  4794. ;
  4795. return 0;
  4796. }
  4797. _ACEOF
  4798. if ac_fn_c_try_compile "$LINENO"; then :
  4799. echo conftest.$ac_objext > conftest.lst
  4800. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4801. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4802. (eval $lt_ar_try) 2>&5
  4803. ac_status=$?
  4804. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4805. test $ac_status = 0; }
  4806. if test 0 -eq "$ac_status"; then
  4807. # Ensure the archiver fails upon bogus file names.
  4808. rm -f conftest.$ac_objext libconftest.a
  4809. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4810. (eval $lt_ar_try) 2>&5
  4811. ac_status=$?
  4812. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4813. test $ac_status = 0; }
  4814. if test 0 -ne "$ac_status"; then
  4815. lt_cv_ar_at_file=@
  4816. fi
  4817. fi
  4818. rm -f conftest.* libconftest.a
  4819. fi
  4820. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4821. fi
  4822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4823. $as_echo "$lt_cv_ar_at_file" >&6; }
  4824. if test no = "$lt_cv_ar_at_file"; then
  4825. archiver_list_spec=
  4826. else
  4827. archiver_list_spec=$lt_cv_ar_at_file
  4828. fi
  4829. if test -n "$ac_tool_prefix"; then
  4830. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4831. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4833. $as_echo_n "checking for $ac_word... " >&6; }
  4834. if ${ac_cv_prog_STRIP+:} false; then :
  4835. $as_echo_n "(cached) " >&6
  4836. else
  4837. if test -n "$STRIP"; then
  4838. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4839. else
  4840. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4841. for as_dir in $PATH
  4842. do
  4843. IFS=$as_save_IFS
  4844. test -z "$as_dir" && as_dir=.
  4845. for ac_exec_ext in '' $ac_executable_extensions; do
  4846. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4847. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4848. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4849. break 2
  4850. fi
  4851. done
  4852. done
  4853. IFS=$as_save_IFS
  4854. fi
  4855. fi
  4856. STRIP=$ac_cv_prog_STRIP
  4857. if test -n "$STRIP"; then
  4858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4859. $as_echo "$STRIP" >&6; }
  4860. else
  4861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4862. $as_echo "no" >&6; }
  4863. fi
  4864. fi
  4865. if test -z "$ac_cv_prog_STRIP"; then
  4866. ac_ct_STRIP=$STRIP
  4867. # Extract the first word of "strip", so it can be a program name with args.
  4868. set dummy strip; ac_word=$2
  4869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4870. $as_echo_n "checking for $ac_word... " >&6; }
  4871. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4872. $as_echo_n "(cached) " >&6
  4873. else
  4874. if test -n "$ac_ct_STRIP"; then
  4875. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4876. else
  4877. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4878. for as_dir in $PATH
  4879. do
  4880. IFS=$as_save_IFS
  4881. test -z "$as_dir" && as_dir=.
  4882. for ac_exec_ext in '' $ac_executable_extensions; do
  4883. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4884. ac_cv_prog_ac_ct_STRIP="strip"
  4885. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4886. break 2
  4887. fi
  4888. done
  4889. done
  4890. IFS=$as_save_IFS
  4891. fi
  4892. fi
  4893. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4894. if test -n "$ac_ct_STRIP"; then
  4895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4896. $as_echo "$ac_ct_STRIP" >&6; }
  4897. else
  4898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4899. $as_echo "no" >&6; }
  4900. fi
  4901. if test "x$ac_ct_STRIP" = x; then
  4902. STRIP=":"
  4903. else
  4904. case $cross_compiling:$ac_tool_warned in
  4905. yes:)
  4906. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4907. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4908. ac_tool_warned=yes ;;
  4909. esac
  4910. STRIP=$ac_ct_STRIP
  4911. fi
  4912. else
  4913. STRIP="$ac_cv_prog_STRIP"
  4914. fi
  4915. test -z "$STRIP" && STRIP=:
  4916. if test -n "$ac_tool_prefix"; then
  4917. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4918. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4920. $as_echo_n "checking for $ac_word... " >&6; }
  4921. if ${ac_cv_prog_RANLIB+:} false; then :
  4922. $as_echo_n "(cached) " >&6
  4923. else
  4924. if test -n "$RANLIB"; then
  4925. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4926. else
  4927. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4928. for as_dir in $PATH
  4929. do
  4930. IFS=$as_save_IFS
  4931. test -z "$as_dir" && as_dir=.
  4932. for ac_exec_ext in '' $ac_executable_extensions; do
  4933. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4934. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4935. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4936. break 2
  4937. fi
  4938. done
  4939. done
  4940. IFS=$as_save_IFS
  4941. fi
  4942. fi
  4943. RANLIB=$ac_cv_prog_RANLIB
  4944. if test -n "$RANLIB"; then
  4945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4946. $as_echo "$RANLIB" >&6; }
  4947. else
  4948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4949. $as_echo "no" >&6; }
  4950. fi
  4951. fi
  4952. if test -z "$ac_cv_prog_RANLIB"; then
  4953. ac_ct_RANLIB=$RANLIB
  4954. # Extract the first word of "ranlib", so it can be a program name with args.
  4955. set dummy ranlib; ac_word=$2
  4956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4957. $as_echo_n "checking for $ac_word... " >&6; }
  4958. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4959. $as_echo_n "(cached) " >&6
  4960. else
  4961. if test -n "$ac_ct_RANLIB"; then
  4962. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4963. else
  4964. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4965. for as_dir in $PATH
  4966. do
  4967. IFS=$as_save_IFS
  4968. test -z "$as_dir" && as_dir=.
  4969. for ac_exec_ext in '' $ac_executable_extensions; do
  4970. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4971. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4972. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4973. break 2
  4974. fi
  4975. done
  4976. done
  4977. IFS=$as_save_IFS
  4978. fi
  4979. fi
  4980. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4981. if test -n "$ac_ct_RANLIB"; then
  4982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4983. $as_echo "$ac_ct_RANLIB" >&6; }
  4984. else
  4985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4986. $as_echo "no" >&6; }
  4987. fi
  4988. if test "x$ac_ct_RANLIB" = x; then
  4989. RANLIB=":"
  4990. else
  4991. case $cross_compiling:$ac_tool_warned in
  4992. yes:)
  4993. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4994. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4995. ac_tool_warned=yes ;;
  4996. esac
  4997. RANLIB=$ac_ct_RANLIB
  4998. fi
  4999. else
  5000. RANLIB="$ac_cv_prog_RANLIB"
  5001. fi
  5002. test -z "$RANLIB" && RANLIB=:
  5003. # Determine commands to create old-style static archives.
  5004. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5005. old_postinstall_cmds='chmod 644 $oldlib'
  5006. old_postuninstall_cmds=
  5007. if test -n "$RANLIB"; then
  5008. case $host_os in
  5009. bitrig* | openbsd*)
  5010. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5011. ;;
  5012. *)
  5013. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5014. ;;
  5015. esac
  5016. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5017. fi
  5018. case $host_os in
  5019. darwin*)
  5020. lock_old_archive_extraction=yes ;;
  5021. *)
  5022. lock_old_archive_extraction=no ;;
  5023. esac
  5024. for ac_prog in gawk mawk nawk awk
  5025. do
  5026. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5027. set dummy $ac_prog; ac_word=$2
  5028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5029. $as_echo_n "checking for $ac_word... " >&6; }
  5030. if ${ac_cv_prog_AWK+:} false; then :
  5031. $as_echo_n "(cached) " >&6
  5032. else
  5033. if test -n "$AWK"; then
  5034. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5035. else
  5036. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5037. for as_dir in $PATH
  5038. do
  5039. IFS=$as_save_IFS
  5040. test -z "$as_dir" && as_dir=.
  5041. for ac_exec_ext in '' $ac_executable_extensions; do
  5042. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5043. ac_cv_prog_AWK="$ac_prog"
  5044. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5045. break 2
  5046. fi
  5047. done
  5048. done
  5049. IFS=$as_save_IFS
  5050. fi
  5051. fi
  5052. AWK=$ac_cv_prog_AWK
  5053. if test -n "$AWK"; then
  5054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5055. $as_echo "$AWK" >&6; }
  5056. else
  5057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5058. $as_echo "no" >&6; }
  5059. fi
  5060. test -n "$AWK" && break
  5061. done
  5062. # If no C compiler was specified, use CC.
  5063. LTCC=${LTCC-"$CC"}
  5064. # If no C compiler flags were specified, use CFLAGS.
  5065. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5066. # Allow CC to be a program name with arguments.
  5067. compiler=$CC
  5068. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5070. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5071. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5072. $as_echo_n "(cached) " >&6
  5073. else
  5074. # These are sane defaults that work on at least a few old systems.
  5075. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5076. # Character class describing NM global symbol codes.
  5077. symcode='[BCDEGRST]'
  5078. # Regexp to match symbols that can be accessed directly from C.
  5079. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5080. # Define system-specific variables.
  5081. case $host_os in
  5082. aix*)
  5083. symcode='[BCDT]'
  5084. ;;
  5085. cygwin* | mingw* | pw32* | cegcc*)
  5086. symcode='[ABCDGISTW]'
  5087. ;;
  5088. hpux*)
  5089. if test ia64 = "$host_cpu"; then
  5090. symcode='[ABCDEGRST]'
  5091. fi
  5092. ;;
  5093. irix* | nonstopux*)
  5094. symcode='[BCDEGRST]'
  5095. ;;
  5096. osf*)
  5097. symcode='[BCDEGQRST]'
  5098. ;;
  5099. solaris*)
  5100. symcode='[BCDRT]'
  5101. ;;
  5102. sco3.2v5*)
  5103. symcode='[DT]'
  5104. ;;
  5105. sysv4.2uw2*)
  5106. symcode='[DT]'
  5107. ;;
  5108. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5109. symcode='[ABDT]'
  5110. ;;
  5111. sysv4)
  5112. symcode='[DFNSTU]'
  5113. ;;
  5114. esac
  5115. # If we're using GNU nm, then use its standard symbol codes.
  5116. case `$NM -V 2>&1` in
  5117. *GNU* | *'with BFD'*)
  5118. symcode='[ABCDGIRSTW]' ;;
  5119. esac
  5120. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5121. # Gets list of data symbols to import.
  5122. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5123. # Adjust the below global symbol transforms to fixup imported variables.
  5124. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5125. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5126. lt_c_name_lib_hook="\
  5127. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5128. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5129. else
  5130. # Disable hooks by default.
  5131. lt_cv_sys_global_symbol_to_import=
  5132. lt_cdecl_hook=
  5133. lt_c_name_hook=
  5134. lt_c_name_lib_hook=
  5135. fi
  5136. # Transform an extracted symbol line into a proper C declaration.
  5137. # Some systems (esp. on ia64) link data and code symbols differently,
  5138. # so use this general approach.
  5139. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5140. $lt_cdecl_hook\
  5141. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5142. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5143. # Transform an extracted symbol line into symbol name and symbol address
  5144. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5145. $lt_c_name_hook\
  5146. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5147. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5148. # Transform an extracted symbol line into symbol name with lib prefix and
  5149. # symbol address.
  5150. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5151. $lt_c_name_lib_hook\
  5152. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5153. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5154. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5155. # Handle CRLF in mingw tool chain
  5156. opt_cr=
  5157. case $build_os in
  5158. mingw*)
  5159. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5160. ;;
  5161. esac
  5162. # Try without a prefix underscore, then with it.
  5163. for ac_symprfx in "" "_"; do
  5164. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5165. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5166. # Write the raw and C identifiers.
  5167. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5168. # Fake it for dumpbin and say T for any non-static function,
  5169. # D for any global variable and I for any imported variable.
  5170. # Also find C++ and __fastcall symbols from MSVC++,
  5171. # which start with @ or ?.
  5172. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5173. " {last_section=section; section=\$ 3};"\
  5174. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5175. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5176. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5177. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5178. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5179. " \$ 0!~/External *\|/{next};"\
  5180. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5181. " {if(hide[section]) next};"\
  5182. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5183. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5184. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5185. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5186. " ' prfx=^$ac_symprfx"
  5187. else
  5188. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5189. fi
  5190. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5191. # Check to see that the pipe works correctly.
  5192. pipe_works=no
  5193. rm -f conftest*
  5194. cat > conftest.$ac_ext <<_LT_EOF
  5195. #ifdef __cplusplus
  5196. extern "C" {
  5197. #endif
  5198. char nm_test_var;
  5199. void nm_test_func(void);
  5200. void nm_test_func(void){}
  5201. #ifdef __cplusplus
  5202. }
  5203. #endif
  5204. int main(){nm_test_var='a';nm_test_func();return(0);}
  5205. _LT_EOF
  5206. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5207. (eval $ac_compile) 2>&5
  5208. ac_status=$?
  5209. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5210. test $ac_status = 0; }; then
  5211. # Now try to grab the symbols.
  5212. nlist=conftest.nm
  5213. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5214. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5215. ac_status=$?
  5216. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5217. test $ac_status = 0; } && test -s "$nlist"; then
  5218. # Try sorting and uniquifying the output.
  5219. if sort "$nlist" | uniq > "$nlist"T; then
  5220. mv -f "$nlist"T "$nlist"
  5221. else
  5222. rm -f "$nlist"T
  5223. fi
  5224. # Make sure that we snagged all the symbols we need.
  5225. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5226. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5227. cat <<_LT_EOF > conftest.$ac_ext
  5228. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5229. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  5230. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  5231. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5232. # define LT_DLSYM_CONST
  5233. #elif defined __osf__
  5234. /* This system does not cope well with relocations in const data. */
  5235. # define LT_DLSYM_CONST
  5236. #else
  5237. # define LT_DLSYM_CONST const
  5238. #endif
  5239. #ifdef __cplusplus
  5240. extern "C" {
  5241. #endif
  5242. _LT_EOF
  5243. # Now generate the symbol file.
  5244. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5245. cat <<_LT_EOF >> conftest.$ac_ext
  5246. /* The mapping between symbol names and symbols. */
  5247. LT_DLSYM_CONST struct {
  5248. const char *name;
  5249. void *address;
  5250. }
  5251. lt__PROGRAM__LTX_preloaded_symbols[] =
  5252. {
  5253. { "@PROGRAM@", (void *) 0 },
  5254. _LT_EOF
  5255. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5256. cat <<\_LT_EOF >> conftest.$ac_ext
  5257. {0, (void *) 0}
  5258. };
  5259. /* This works around a problem in FreeBSD linker */
  5260. #ifdef FREEBSD_WORKAROUND
  5261. static const void *lt_preloaded_setup() {
  5262. return lt__PROGRAM__LTX_preloaded_symbols;
  5263. }
  5264. #endif
  5265. #ifdef __cplusplus
  5266. }
  5267. #endif
  5268. _LT_EOF
  5269. # Now try linking the two files.
  5270. mv conftest.$ac_objext conftstm.$ac_objext
  5271. lt_globsym_save_LIBS=$LIBS
  5272. lt_globsym_save_CFLAGS=$CFLAGS
  5273. LIBS=conftstm.$ac_objext
  5274. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5275. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5276. (eval $ac_link) 2>&5
  5277. ac_status=$?
  5278. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5279. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  5280. pipe_works=yes
  5281. fi
  5282. LIBS=$lt_globsym_save_LIBS
  5283. CFLAGS=$lt_globsym_save_CFLAGS
  5284. else
  5285. echo "cannot find nm_test_func in $nlist" >&5
  5286. fi
  5287. else
  5288. echo "cannot find nm_test_var in $nlist" >&5
  5289. fi
  5290. else
  5291. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5292. fi
  5293. else
  5294. echo "$progname: failed program was:" >&5
  5295. cat conftest.$ac_ext >&5
  5296. fi
  5297. rm -rf conftest* conftst*
  5298. # Do not use the global_symbol_pipe unless it works.
  5299. if test yes = "$pipe_works"; then
  5300. break
  5301. else
  5302. lt_cv_sys_global_symbol_pipe=
  5303. fi
  5304. done
  5305. fi
  5306. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5307. lt_cv_sys_global_symbol_to_cdecl=
  5308. fi
  5309. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5311. $as_echo "failed" >&6; }
  5312. else
  5313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5314. $as_echo "ok" >&6; }
  5315. fi
  5316. # Response file support.
  5317. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5318. nm_file_list_spec='@'
  5319. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5320. nm_file_list_spec='@'
  5321. fi
  5322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5323. $as_echo_n "checking for sysroot... " >&6; }
  5324. # Check whether --with-sysroot was given.
  5325. if test "${with_sysroot+set}" = set; then :
  5326. withval=$with_sysroot;
  5327. else
  5328. with_sysroot=no
  5329. fi
  5330. lt_sysroot=
  5331. case $with_sysroot in #(
  5332. yes)
  5333. if test yes = "$GCC"; then
  5334. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5335. fi
  5336. ;; #(
  5337. /*)
  5338. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5339. ;; #(
  5340. no|'')
  5341. ;; #(
  5342. *)
  5343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  5344. $as_echo "$with_sysroot" >&6; }
  5345. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5346. ;;
  5347. esac
  5348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5349. $as_echo "${lt_sysroot:-no}" >&6; }
  5350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  5351. $as_echo_n "checking for a working dd... " >&6; }
  5352. if ${ac_cv_path_lt_DD+:} false; then :
  5353. $as_echo_n "(cached) " >&6
  5354. else
  5355. printf 0123456789abcdef0123456789abcdef >conftest.i
  5356. cat conftest.i conftest.i >conftest2.i
  5357. : ${lt_DD:=$DD}
  5358. if test -z "$lt_DD"; then
  5359. ac_path_lt_DD_found=false
  5360. # Loop through the user's path and test for each of PROGNAME-LIST
  5361. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5362. for as_dir in $PATH
  5363. do
  5364. IFS=$as_save_IFS
  5365. test -z "$as_dir" && as_dir=.
  5366. for ac_prog in dd; do
  5367. for ac_exec_ext in '' $ac_executable_extensions; do
  5368. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  5369. as_fn_executable_p "$ac_path_lt_DD" || continue
  5370. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5371. cmp -s conftest.i conftest.out \
  5372. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  5373. fi
  5374. $ac_path_lt_DD_found && break 3
  5375. done
  5376. done
  5377. done
  5378. IFS=$as_save_IFS
  5379. if test -z "$ac_cv_path_lt_DD"; then
  5380. :
  5381. fi
  5382. else
  5383. ac_cv_path_lt_DD=$lt_DD
  5384. fi
  5385. rm -f conftest.i conftest2.i conftest.out
  5386. fi
  5387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  5388. $as_echo "$ac_cv_path_lt_DD" >&6; }
  5389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  5390. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  5391. if ${lt_cv_truncate_bin+:} false; then :
  5392. $as_echo_n "(cached) " >&6
  5393. else
  5394. printf 0123456789abcdef0123456789abcdef >conftest.i
  5395. cat conftest.i conftest.i >conftest2.i
  5396. lt_cv_truncate_bin=
  5397. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5398. cmp -s conftest.i conftest.out \
  5399. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  5400. fi
  5401. rm -f conftest.i conftest2.i conftest.out
  5402. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  5403. fi
  5404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  5405. $as_echo "$lt_cv_truncate_bin" >&6; }
  5406. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  5407. func_cc_basename ()
  5408. {
  5409. for cc_temp in $*""; do
  5410. case $cc_temp in
  5411. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5412. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5413. \-*) ;;
  5414. *) break;;
  5415. esac
  5416. done
  5417. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  5418. }
  5419. # Check whether --enable-libtool-lock was given.
  5420. if test "${enable_libtool_lock+set}" = set; then :
  5421. enableval=$enable_libtool_lock;
  5422. fi
  5423. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  5424. # Some flags need to be propagated to the compiler or linker for good
  5425. # libtool support.
  5426. case $host in
  5427. ia64-*-hpux*)
  5428. # Find out what ABI is being produced by ac_compile, and set mode
  5429. # options accordingly.
  5430. echo 'int i;' > conftest.$ac_ext
  5431. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5432. (eval $ac_compile) 2>&5
  5433. ac_status=$?
  5434. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5435. test $ac_status = 0; }; then
  5436. case `/usr/bin/file conftest.$ac_objext` in
  5437. *ELF-32*)
  5438. HPUX_IA64_MODE=32
  5439. ;;
  5440. *ELF-64*)
  5441. HPUX_IA64_MODE=64
  5442. ;;
  5443. esac
  5444. fi
  5445. rm -rf conftest*
  5446. ;;
  5447. *-*-irix6*)
  5448. # Find out what ABI is being produced by ac_compile, and set linker
  5449. # options accordingly.
  5450. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5451. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5452. (eval $ac_compile) 2>&5
  5453. ac_status=$?
  5454. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5455. test $ac_status = 0; }; then
  5456. if test yes = "$lt_cv_prog_gnu_ld"; then
  5457. case `/usr/bin/file conftest.$ac_objext` in
  5458. *32-bit*)
  5459. LD="${LD-ld} -melf32bsmip"
  5460. ;;
  5461. *N32*)
  5462. LD="${LD-ld} -melf32bmipn32"
  5463. ;;
  5464. *64-bit*)
  5465. LD="${LD-ld} -melf64bmip"
  5466. ;;
  5467. esac
  5468. else
  5469. case `/usr/bin/file conftest.$ac_objext` in
  5470. *32-bit*)
  5471. LD="${LD-ld} -32"
  5472. ;;
  5473. *N32*)
  5474. LD="${LD-ld} -n32"
  5475. ;;
  5476. *64-bit*)
  5477. LD="${LD-ld} -64"
  5478. ;;
  5479. esac
  5480. fi
  5481. fi
  5482. rm -rf conftest*
  5483. ;;
  5484. mips64*-*linux*)
  5485. # Find out what ABI is being produced by ac_compile, and set linker
  5486. # options accordingly.
  5487. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5488. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5489. (eval $ac_compile) 2>&5
  5490. ac_status=$?
  5491. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5492. test $ac_status = 0; }; then
  5493. emul=elf
  5494. case `/usr/bin/file conftest.$ac_objext` in
  5495. *32-bit*)
  5496. emul="${emul}32"
  5497. ;;
  5498. *64-bit*)
  5499. emul="${emul}64"
  5500. ;;
  5501. esac
  5502. case `/usr/bin/file conftest.$ac_objext` in
  5503. *MSB*)
  5504. emul="${emul}btsmip"
  5505. ;;
  5506. *LSB*)
  5507. emul="${emul}ltsmip"
  5508. ;;
  5509. esac
  5510. case `/usr/bin/file conftest.$ac_objext` in
  5511. *N32*)
  5512. emul="${emul}n32"
  5513. ;;
  5514. esac
  5515. LD="${LD-ld} -m $emul"
  5516. fi
  5517. rm -rf conftest*
  5518. ;;
  5519. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5520. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5521. # Find out what ABI is being produced by ac_compile, and set linker
  5522. # options accordingly. Note that the listed cases only cover the
  5523. # situations where additional linker options are needed (such as when
  5524. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  5525. # vice versa); the common cases where no linker options are needed do
  5526. # not appear in the list.
  5527. echo 'int i;' > conftest.$ac_ext
  5528. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5529. (eval $ac_compile) 2>&5
  5530. ac_status=$?
  5531. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5532. test $ac_status = 0; }; then
  5533. case `/usr/bin/file conftest.o` in
  5534. *32-bit*)
  5535. case $host in
  5536. x86_64-*kfreebsd*-gnu)
  5537. LD="${LD-ld} -m elf_i386_fbsd"
  5538. ;;
  5539. x86_64-*linux*)
  5540. case `/usr/bin/file conftest.o` in
  5541. *x86-64*)
  5542. LD="${LD-ld} -m elf32_x86_64"
  5543. ;;
  5544. *)
  5545. LD="${LD-ld} -m elf_i386"
  5546. ;;
  5547. esac
  5548. ;;
  5549. powerpc64le-*linux*)
  5550. LD="${LD-ld} -m elf32lppclinux"
  5551. ;;
  5552. powerpc64-*linux*)
  5553. LD="${LD-ld} -m elf32ppclinux"
  5554. ;;
  5555. s390x-*linux*)
  5556. LD="${LD-ld} -m elf_s390"
  5557. ;;
  5558. sparc64-*linux*)
  5559. LD="${LD-ld} -m elf32_sparc"
  5560. ;;
  5561. esac
  5562. ;;
  5563. *64-bit*)
  5564. case $host in
  5565. x86_64-*kfreebsd*-gnu)
  5566. LD="${LD-ld} -m elf_x86_64_fbsd"
  5567. ;;
  5568. x86_64-*linux*)
  5569. LD="${LD-ld} -m elf_x86_64"
  5570. ;;
  5571. powerpcle-*linux*|powerpc64le-*linux*)
  5572. LD="${LD-ld} -m elf64lppc"
  5573. ;;
  5574. powerpc-*linux*|powerpc64-*linux*)
  5575. LD="${LD-ld} -m elf64ppc"
  5576. ;;
  5577. s390*-*linux*|s390*-*tpf*)
  5578. LD="${LD-ld} -m elf64_s390"
  5579. ;;
  5580. sparc*-*linux*)
  5581. LD="${LD-ld} -m elf64_sparc"
  5582. ;;
  5583. esac
  5584. ;;
  5585. esac
  5586. fi
  5587. rm -rf conftest*
  5588. ;;
  5589. *-*-sco3.2v5*)
  5590. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5591. SAVE_CFLAGS=$CFLAGS
  5592. CFLAGS="$CFLAGS -belf"
  5593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5594. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5595. if ${lt_cv_cc_needs_belf+:} false; then :
  5596. $as_echo_n "(cached) " >&6
  5597. else
  5598. ac_ext=c
  5599. ac_cpp='$CPP $CPPFLAGS'
  5600. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5601. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5602. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5604. /* end confdefs.h. */
  5605. int
  5606. main ()
  5607. {
  5608. ;
  5609. return 0;
  5610. }
  5611. _ACEOF
  5612. if ac_fn_c_try_link "$LINENO"; then :
  5613. lt_cv_cc_needs_belf=yes
  5614. else
  5615. lt_cv_cc_needs_belf=no
  5616. fi
  5617. rm -f core conftest.err conftest.$ac_objext \
  5618. conftest$ac_exeext conftest.$ac_ext
  5619. ac_ext=c
  5620. ac_cpp='$CPP $CPPFLAGS'
  5621. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5622. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5623. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5624. fi
  5625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5626. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5627. if test yes != "$lt_cv_cc_needs_belf"; then
  5628. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5629. CFLAGS=$SAVE_CFLAGS
  5630. fi
  5631. ;;
  5632. *-*solaris*)
  5633. # Find out what ABI is being produced by ac_compile, and set linker
  5634. # options accordingly.
  5635. echo 'int i;' > conftest.$ac_ext
  5636. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5637. (eval $ac_compile) 2>&5
  5638. ac_status=$?
  5639. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5640. test $ac_status = 0; }; then
  5641. case `/usr/bin/file conftest.o` in
  5642. *64-bit*)
  5643. case $lt_cv_prog_gnu_ld in
  5644. yes*)
  5645. case $host in
  5646. i?86-*-solaris*|x86_64-*-solaris*)
  5647. LD="${LD-ld} -m elf_x86_64"
  5648. ;;
  5649. sparc*-*-solaris*)
  5650. LD="${LD-ld} -m elf64_sparc"
  5651. ;;
  5652. esac
  5653. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5654. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5655. LD=${LD-ld}_sol2
  5656. fi
  5657. ;;
  5658. *)
  5659. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5660. LD="${LD-ld} -64"
  5661. fi
  5662. ;;
  5663. esac
  5664. ;;
  5665. esac
  5666. fi
  5667. rm -rf conftest*
  5668. ;;
  5669. esac
  5670. need_locks=$enable_libtool_lock
  5671. if test -n "$ac_tool_prefix"; then
  5672. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5673. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5675. $as_echo_n "checking for $ac_word... " >&6; }
  5676. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5677. $as_echo_n "(cached) " >&6
  5678. else
  5679. if test -n "$MANIFEST_TOOL"; then
  5680. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5681. else
  5682. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5683. for as_dir in $PATH
  5684. do
  5685. IFS=$as_save_IFS
  5686. test -z "$as_dir" && as_dir=.
  5687. for ac_exec_ext in '' $ac_executable_extensions; do
  5688. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5689. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5690. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5691. break 2
  5692. fi
  5693. done
  5694. done
  5695. IFS=$as_save_IFS
  5696. fi
  5697. fi
  5698. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5699. if test -n "$MANIFEST_TOOL"; then
  5700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5701. $as_echo "$MANIFEST_TOOL" >&6; }
  5702. else
  5703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5704. $as_echo "no" >&6; }
  5705. fi
  5706. fi
  5707. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5708. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5709. # Extract the first word of "mt", so it can be a program name with args.
  5710. set dummy mt; ac_word=$2
  5711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5712. $as_echo_n "checking for $ac_word... " >&6; }
  5713. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5714. $as_echo_n "(cached) " >&6
  5715. else
  5716. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5717. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5718. else
  5719. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5720. for as_dir in $PATH
  5721. do
  5722. IFS=$as_save_IFS
  5723. test -z "$as_dir" && as_dir=.
  5724. for ac_exec_ext in '' $ac_executable_extensions; do
  5725. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5726. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5727. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5728. break 2
  5729. fi
  5730. done
  5731. done
  5732. IFS=$as_save_IFS
  5733. fi
  5734. fi
  5735. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5736. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5738. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5739. else
  5740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5741. $as_echo "no" >&6; }
  5742. fi
  5743. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5744. MANIFEST_TOOL=":"
  5745. else
  5746. case $cross_compiling:$ac_tool_warned in
  5747. yes:)
  5748. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5749. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5750. ac_tool_warned=yes ;;
  5751. esac
  5752. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5753. fi
  5754. else
  5755. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5756. fi
  5757. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5759. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5760. if ${lt_cv_path_mainfest_tool+:} false; then :
  5761. $as_echo_n "(cached) " >&6
  5762. else
  5763. lt_cv_path_mainfest_tool=no
  5764. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5765. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5766. cat conftest.err >&5
  5767. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5768. lt_cv_path_mainfest_tool=yes
  5769. fi
  5770. rm -f conftest*
  5771. fi
  5772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5773. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5774. if test yes != "$lt_cv_path_mainfest_tool"; then
  5775. MANIFEST_TOOL=:
  5776. fi
  5777. case $host_os in
  5778. rhapsody* | darwin*)
  5779. if test -n "$ac_tool_prefix"; then
  5780. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5781. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5783. $as_echo_n "checking for $ac_word... " >&6; }
  5784. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5785. $as_echo_n "(cached) " >&6
  5786. else
  5787. if test -n "$DSYMUTIL"; then
  5788. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5789. else
  5790. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5791. for as_dir in $PATH
  5792. do
  5793. IFS=$as_save_IFS
  5794. test -z "$as_dir" && as_dir=.
  5795. for ac_exec_ext in '' $ac_executable_extensions; do
  5796. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5797. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5798. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5799. break 2
  5800. fi
  5801. done
  5802. done
  5803. IFS=$as_save_IFS
  5804. fi
  5805. fi
  5806. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5807. if test -n "$DSYMUTIL"; then
  5808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5809. $as_echo "$DSYMUTIL" >&6; }
  5810. else
  5811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5812. $as_echo "no" >&6; }
  5813. fi
  5814. fi
  5815. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5816. ac_ct_DSYMUTIL=$DSYMUTIL
  5817. # Extract the first word of "dsymutil", so it can be a program name with args.
  5818. set dummy dsymutil; ac_word=$2
  5819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5820. $as_echo_n "checking for $ac_word... " >&6; }
  5821. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5822. $as_echo_n "(cached) " >&6
  5823. else
  5824. if test -n "$ac_ct_DSYMUTIL"; then
  5825. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5826. else
  5827. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5828. for as_dir in $PATH
  5829. do
  5830. IFS=$as_save_IFS
  5831. test -z "$as_dir" && as_dir=.
  5832. for ac_exec_ext in '' $ac_executable_extensions; do
  5833. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5834. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5835. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5836. break 2
  5837. fi
  5838. done
  5839. done
  5840. IFS=$as_save_IFS
  5841. fi
  5842. fi
  5843. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5844. if test -n "$ac_ct_DSYMUTIL"; then
  5845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5846. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5847. else
  5848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5849. $as_echo "no" >&6; }
  5850. fi
  5851. if test "x$ac_ct_DSYMUTIL" = x; then
  5852. DSYMUTIL=":"
  5853. else
  5854. case $cross_compiling:$ac_tool_warned in
  5855. yes:)
  5856. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5857. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5858. ac_tool_warned=yes ;;
  5859. esac
  5860. DSYMUTIL=$ac_ct_DSYMUTIL
  5861. fi
  5862. else
  5863. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5864. fi
  5865. if test -n "$ac_tool_prefix"; then
  5866. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5867. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5869. $as_echo_n "checking for $ac_word... " >&6; }
  5870. if ${ac_cv_prog_NMEDIT+:} false; then :
  5871. $as_echo_n "(cached) " >&6
  5872. else
  5873. if test -n "$NMEDIT"; then
  5874. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5875. else
  5876. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5877. for as_dir in $PATH
  5878. do
  5879. IFS=$as_save_IFS
  5880. test -z "$as_dir" && as_dir=.
  5881. for ac_exec_ext in '' $ac_executable_extensions; do
  5882. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5883. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5884. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5885. break 2
  5886. fi
  5887. done
  5888. done
  5889. IFS=$as_save_IFS
  5890. fi
  5891. fi
  5892. NMEDIT=$ac_cv_prog_NMEDIT
  5893. if test -n "$NMEDIT"; then
  5894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5895. $as_echo "$NMEDIT" >&6; }
  5896. else
  5897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5898. $as_echo "no" >&6; }
  5899. fi
  5900. fi
  5901. if test -z "$ac_cv_prog_NMEDIT"; then
  5902. ac_ct_NMEDIT=$NMEDIT
  5903. # Extract the first word of "nmedit", so it can be a program name with args.
  5904. set dummy nmedit; ac_word=$2
  5905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5906. $as_echo_n "checking for $ac_word... " >&6; }
  5907. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5908. $as_echo_n "(cached) " >&6
  5909. else
  5910. if test -n "$ac_ct_NMEDIT"; then
  5911. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5912. else
  5913. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5914. for as_dir in $PATH
  5915. do
  5916. IFS=$as_save_IFS
  5917. test -z "$as_dir" && as_dir=.
  5918. for ac_exec_ext in '' $ac_executable_extensions; do
  5919. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5920. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5921. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5922. break 2
  5923. fi
  5924. done
  5925. done
  5926. IFS=$as_save_IFS
  5927. fi
  5928. fi
  5929. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5930. if test -n "$ac_ct_NMEDIT"; then
  5931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5932. $as_echo "$ac_ct_NMEDIT" >&6; }
  5933. else
  5934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5935. $as_echo "no" >&6; }
  5936. fi
  5937. if test "x$ac_ct_NMEDIT" = x; then
  5938. NMEDIT=":"
  5939. else
  5940. case $cross_compiling:$ac_tool_warned in
  5941. yes:)
  5942. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5943. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5944. ac_tool_warned=yes ;;
  5945. esac
  5946. NMEDIT=$ac_ct_NMEDIT
  5947. fi
  5948. else
  5949. NMEDIT="$ac_cv_prog_NMEDIT"
  5950. fi
  5951. if test -n "$ac_tool_prefix"; then
  5952. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5953. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5955. $as_echo_n "checking for $ac_word... " >&6; }
  5956. if ${ac_cv_prog_LIPO+:} false; then :
  5957. $as_echo_n "(cached) " >&6
  5958. else
  5959. if test -n "$LIPO"; then
  5960. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5961. else
  5962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5963. for as_dir in $PATH
  5964. do
  5965. IFS=$as_save_IFS
  5966. test -z "$as_dir" && as_dir=.
  5967. for ac_exec_ext in '' $ac_executable_extensions; do
  5968. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5969. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5970. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5971. break 2
  5972. fi
  5973. done
  5974. done
  5975. IFS=$as_save_IFS
  5976. fi
  5977. fi
  5978. LIPO=$ac_cv_prog_LIPO
  5979. if test -n "$LIPO"; then
  5980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5981. $as_echo "$LIPO" >&6; }
  5982. else
  5983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5984. $as_echo "no" >&6; }
  5985. fi
  5986. fi
  5987. if test -z "$ac_cv_prog_LIPO"; then
  5988. ac_ct_LIPO=$LIPO
  5989. # Extract the first word of "lipo", so it can be a program name with args.
  5990. set dummy lipo; ac_word=$2
  5991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5992. $as_echo_n "checking for $ac_word... " >&6; }
  5993. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5994. $as_echo_n "(cached) " >&6
  5995. else
  5996. if test -n "$ac_ct_LIPO"; then
  5997. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5998. else
  5999. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6000. for as_dir in $PATH
  6001. do
  6002. IFS=$as_save_IFS
  6003. test -z "$as_dir" && as_dir=.
  6004. for ac_exec_ext in '' $ac_executable_extensions; do
  6005. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6006. ac_cv_prog_ac_ct_LIPO="lipo"
  6007. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6008. break 2
  6009. fi
  6010. done
  6011. done
  6012. IFS=$as_save_IFS
  6013. fi
  6014. fi
  6015. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6016. if test -n "$ac_ct_LIPO"; then
  6017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6018. $as_echo "$ac_ct_LIPO" >&6; }
  6019. else
  6020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6021. $as_echo "no" >&6; }
  6022. fi
  6023. if test "x$ac_ct_LIPO" = x; then
  6024. LIPO=":"
  6025. else
  6026. case $cross_compiling:$ac_tool_warned in
  6027. yes:)
  6028. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6029. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6030. ac_tool_warned=yes ;;
  6031. esac
  6032. LIPO=$ac_ct_LIPO
  6033. fi
  6034. else
  6035. LIPO="$ac_cv_prog_LIPO"
  6036. fi
  6037. if test -n "$ac_tool_prefix"; then
  6038. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6039. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6041. $as_echo_n "checking for $ac_word... " >&6; }
  6042. if ${ac_cv_prog_OTOOL+:} false; then :
  6043. $as_echo_n "(cached) " >&6
  6044. else
  6045. if test -n "$OTOOL"; then
  6046. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6047. else
  6048. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6049. for as_dir in $PATH
  6050. do
  6051. IFS=$as_save_IFS
  6052. test -z "$as_dir" && as_dir=.
  6053. for ac_exec_ext in '' $ac_executable_extensions; do
  6054. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6055. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6056. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6057. break 2
  6058. fi
  6059. done
  6060. done
  6061. IFS=$as_save_IFS
  6062. fi
  6063. fi
  6064. OTOOL=$ac_cv_prog_OTOOL
  6065. if test -n "$OTOOL"; then
  6066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6067. $as_echo "$OTOOL" >&6; }
  6068. else
  6069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6070. $as_echo "no" >&6; }
  6071. fi
  6072. fi
  6073. if test -z "$ac_cv_prog_OTOOL"; then
  6074. ac_ct_OTOOL=$OTOOL
  6075. # Extract the first word of "otool", so it can be a program name with args.
  6076. set dummy otool; ac_word=$2
  6077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6078. $as_echo_n "checking for $ac_word... " >&6; }
  6079. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6080. $as_echo_n "(cached) " >&6
  6081. else
  6082. if test -n "$ac_ct_OTOOL"; then
  6083. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6084. else
  6085. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6086. for as_dir in $PATH
  6087. do
  6088. IFS=$as_save_IFS
  6089. test -z "$as_dir" && as_dir=.
  6090. for ac_exec_ext in '' $ac_executable_extensions; do
  6091. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6092. ac_cv_prog_ac_ct_OTOOL="otool"
  6093. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6094. break 2
  6095. fi
  6096. done
  6097. done
  6098. IFS=$as_save_IFS
  6099. fi
  6100. fi
  6101. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6102. if test -n "$ac_ct_OTOOL"; then
  6103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6104. $as_echo "$ac_ct_OTOOL" >&6; }
  6105. else
  6106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6107. $as_echo "no" >&6; }
  6108. fi
  6109. if test "x$ac_ct_OTOOL" = x; then
  6110. OTOOL=":"
  6111. else
  6112. case $cross_compiling:$ac_tool_warned in
  6113. yes:)
  6114. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6115. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6116. ac_tool_warned=yes ;;
  6117. esac
  6118. OTOOL=$ac_ct_OTOOL
  6119. fi
  6120. else
  6121. OTOOL="$ac_cv_prog_OTOOL"
  6122. fi
  6123. if test -n "$ac_tool_prefix"; then
  6124. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6125. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6127. $as_echo_n "checking for $ac_word... " >&6; }
  6128. if ${ac_cv_prog_OTOOL64+:} false; then :
  6129. $as_echo_n "(cached) " >&6
  6130. else
  6131. if test -n "$OTOOL64"; then
  6132. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6133. else
  6134. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6135. for as_dir in $PATH
  6136. do
  6137. IFS=$as_save_IFS
  6138. test -z "$as_dir" && as_dir=.
  6139. for ac_exec_ext in '' $ac_executable_extensions; do
  6140. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6141. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6142. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6143. break 2
  6144. fi
  6145. done
  6146. done
  6147. IFS=$as_save_IFS
  6148. fi
  6149. fi
  6150. OTOOL64=$ac_cv_prog_OTOOL64
  6151. if test -n "$OTOOL64"; then
  6152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6153. $as_echo "$OTOOL64" >&6; }
  6154. else
  6155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6156. $as_echo "no" >&6; }
  6157. fi
  6158. fi
  6159. if test -z "$ac_cv_prog_OTOOL64"; then
  6160. ac_ct_OTOOL64=$OTOOL64
  6161. # Extract the first word of "otool64", so it can be a program name with args.
  6162. set dummy otool64; ac_word=$2
  6163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6164. $as_echo_n "checking for $ac_word... " >&6; }
  6165. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6166. $as_echo_n "(cached) " >&6
  6167. else
  6168. if test -n "$ac_ct_OTOOL64"; then
  6169. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6170. else
  6171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6172. for as_dir in $PATH
  6173. do
  6174. IFS=$as_save_IFS
  6175. test -z "$as_dir" && as_dir=.
  6176. for ac_exec_ext in '' $ac_executable_extensions; do
  6177. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6178. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6179. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6180. break 2
  6181. fi
  6182. done
  6183. done
  6184. IFS=$as_save_IFS
  6185. fi
  6186. fi
  6187. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6188. if test -n "$ac_ct_OTOOL64"; then
  6189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6190. $as_echo "$ac_ct_OTOOL64" >&6; }
  6191. else
  6192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6193. $as_echo "no" >&6; }
  6194. fi
  6195. if test "x$ac_ct_OTOOL64" = x; then
  6196. OTOOL64=":"
  6197. else
  6198. case $cross_compiling:$ac_tool_warned in
  6199. yes:)
  6200. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6201. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6202. ac_tool_warned=yes ;;
  6203. esac
  6204. OTOOL64=$ac_ct_OTOOL64
  6205. fi
  6206. else
  6207. OTOOL64="$ac_cv_prog_OTOOL64"
  6208. fi
  6209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6210. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6211. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6212. $as_echo_n "(cached) " >&6
  6213. else
  6214. lt_cv_apple_cc_single_mod=no
  6215. if test -z "$LT_MULTI_MODULE"; then
  6216. # By default we will add the -single_module flag. You can override
  6217. # by either setting the environment variable LT_MULTI_MODULE
  6218. # non-empty at configure time, or by adding -multi_module to the
  6219. # link flags.
  6220. rm -rf libconftest.dylib*
  6221. echo "int foo(void){return 1;}" > conftest.c
  6222. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6223. -dynamiclib -Wl,-single_module conftest.c" >&5
  6224. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6225. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6226. _lt_result=$?
  6227. # If there is a non-empty error log, and "single_module"
  6228. # appears in it, assume the flag caused a linker warning
  6229. if test -s conftest.err && $GREP single_module conftest.err; then
  6230. cat conftest.err >&5
  6231. # Otherwise, if the output was created with a 0 exit code from
  6232. # the compiler, it worked.
  6233. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  6234. lt_cv_apple_cc_single_mod=yes
  6235. else
  6236. cat conftest.err >&5
  6237. fi
  6238. rm -rf libconftest.dylib*
  6239. rm -f conftest.*
  6240. fi
  6241. fi
  6242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6243. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6245. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6246. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6247. $as_echo_n "(cached) " >&6
  6248. else
  6249. lt_cv_ld_exported_symbols_list=no
  6250. save_LDFLAGS=$LDFLAGS
  6251. echo "_main" > conftest.sym
  6252. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6254. /* end confdefs.h. */
  6255. int
  6256. main ()
  6257. {
  6258. ;
  6259. return 0;
  6260. }
  6261. _ACEOF
  6262. if ac_fn_c_try_link "$LINENO"; then :
  6263. lt_cv_ld_exported_symbols_list=yes
  6264. else
  6265. lt_cv_ld_exported_symbols_list=no
  6266. fi
  6267. rm -f core conftest.err conftest.$ac_objext \
  6268. conftest$ac_exeext conftest.$ac_ext
  6269. LDFLAGS=$save_LDFLAGS
  6270. fi
  6271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6272. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6274. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6275. if ${lt_cv_ld_force_load+:} false; then :
  6276. $as_echo_n "(cached) " >&6
  6277. else
  6278. lt_cv_ld_force_load=no
  6279. cat > conftest.c << _LT_EOF
  6280. int forced_loaded() { return 2;}
  6281. _LT_EOF
  6282. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6283. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6284. echo "$AR cru libconftest.a conftest.o" >&5
  6285. $AR cru libconftest.a conftest.o 2>&5
  6286. echo "$RANLIB libconftest.a" >&5
  6287. $RANLIB libconftest.a 2>&5
  6288. cat > conftest.c << _LT_EOF
  6289. int main() { return 0;}
  6290. _LT_EOF
  6291. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6292. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6293. _lt_result=$?
  6294. if test -s conftest.err && $GREP force_load conftest.err; then
  6295. cat conftest.err >&5
  6296. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  6297. lt_cv_ld_force_load=yes
  6298. else
  6299. cat conftest.err >&5
  6300. fi
  6301. rm -f conftest.err libconftest.a conftest conftest.c
  6302. rm -rf conftest.dSYM
  6303. fi
  6304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6305. $as_echo "$lt_cv_ld_force_load" >&6; }
  6306. case $host_os in
  6307. rhapsody* | darwin1.[012])
  6308. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  6309. darwin1.*)
  6310. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6311. darwin*)
  6312. case $MACOSX_DEPLOYMENT_TARGET,$host in
  6313. 10.[012],*|,*powerpc*-darwin[5-8]*)
  6314. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6315. *)
  6316. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6317. esac
  6318. ;;
  6319. esac
  6320. if test yes = "$lt_cv_apple_cc_single_mod"; then
  6321. _lt_dar_single_mod='$single_module'
  6322. fi
  6323. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  6324. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  6325. else
  6326. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  6327. fi
  6328. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  6329. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6330. else
  6331. _lt_dsymutil=
  6332. fi
  6333. ;;
  6334. esac
  6335. # func_munge_path_list VARIABLE PATH
  6336. # -----------------------------------
  6337. # VARIABLE is name of variable containing _space_ separated list of
  6338. # directories to be munged by the contents of PATH, which is string
  6339. # having a format:
  6340. # "DIR[:DIR]:"
  6341. # string "DIR[ DIR]" will be prepended to VARIABLE
  6342. # ":DIR[:DIR]"
  6343. # string "DIR[ DIR]" will be appended to VARIABLE
  6344. # "DIRP[:DIRP]::[DIRA:]DIRA"
  6345. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  6346. # "DIRA[ DIRA]" will be appended to VARIABLE
  6347. # "DIR[:DIR]"
  6348. # VARIABLE will be replaced by "DIR[ DIR]"
  6349. func_munge_path_list ()
  6350. {
  6351. case x$2 in
  6352. x)
  6353. ;;
  6354. *:)
  6355. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  6356. ;;
  6357. x:*)
  6358. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  6359. ;;
  6360. *::*)
  6361. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  6362. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  6363. ;;
  6364. *)
  6365. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  6366. ;;
  6367. esac
  6368. }
  6369. ac_ext=c
  6370. ac_cpp='$CPP $CPPFLAGS'
  6371. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6372. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6373. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6375. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6376. # On Suns, sometimes $CPP names a directory.
  6377. if test -n "$CPP" && test -d "$CPP"; then
  6378. CPP=
  6379. fi
  6380. if test -z "$CPP"; then
  6381. if ${ac_cv_prog_CPP+:} false; then :
  6382. $as_echo_n "(cached) " >&6
  6383. else
  6384. # Double quotes because CPP needs to be expanded
  6385. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6386. do
  6387. ac_preproc_ok=false
  6388. for ac_c_preproc_warn_flag in '' yes
  6389. do
  6390. # Use a header file that comes with gcc, so configuring glibc
  6391. # with a fresh cross-compiler works.
  6392. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6393. # <limits.h> exists even on freestanding compilers.
  6394. # On the NeXT, cc -E runs the code through the compiler's parser,
  6395. # not just through cpp. "Syntax error" is here to catch this case.
  6396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6397. /* end confdefs.h. */
  6398. #ifdef __STDC__
  6399. # include <limits.h>
  6400. #else
  6401. # include <assert.h>
  6402. #endif
  6403. Syntax error
  6404. _ACEOF
  6405. if ac_fn_c_try_cpp "$LINENO"; then :
  6406. else
  6407. # Broken: fails on valid input.
  6408. continue
  6409. fi
  6410. rm -f conftest.err conftest.i conftest.$ac_ext
  6411. # OK, works on sane cases. Now check whether nonexistent headers
  6412. # can be detected and how.
  6413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6414. /* end confdefs.h. */
  6415. #include <ac_nonexistent.h>
  6416. _ACEOF
  6417. if ac_fn_c_try_cpp "$LINENO"; then :
  6418. # Broken: success on invalid input.
  6419. continue
  6420. else
  6421. # Passes both tests.
  6422. ac_preproc_ok=:
  6423. break
  6424. fi
  6425. rm -f conftest.err conftest.i conftest.$ac_ext
  6426. done
  6427. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6428. rm -f conftest.i conftest.err conftest.$ac_ext
  6429. if $ac_preproc_ok; then :
  6430. break
  6431. fi
  6432. done
  6433. ac_cv_prog_CPP=$CPP
  6434. fi
  6435. CPP=$ac_cv_prog_CPP
  6436. else
  6437. ac_cv_prog_CPP=$CPP
  6438. fi
  6439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6440. $as_echo "$CPP" >&6; }
  6441. ac_preproc_ok=false
  6442. for ac_c_preproc_warn_flag in '' yes
  6443. do
  6444. # Use a header file that comes with gcc, so configuring glibc
  6445. # with a fresh cross-compiler works.
  6446. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6447. # <limits.h> exists even on freestanding compilers.
  6448. # On the NeXT, cc -E runs the code through the compiler's parser,
  6449. # not just through cpp. "Syntax error" is here to catch this case.
  6450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6451. /* end confdefs.h. */
  6452. #ifdef __STDC__
  6453. # include <limits.h>
  6454. #else
  6455. # include <assert.h>
  6456. #endif
  6457. Syntax error
  6458. _ACEOF
  6459. if ac_fn_c_try_cpp "$LINENO"; then :
  6460. else
  6461. # Broken: fails on valid input.
  6462. continue
  6463. fi
  6464. rm -f conftest.err conftest.i conftest.$ac_ext
  6465. # OK, works on sane cases. Now check whether nonexistent headers
  6466. # can be detected and how.
  6467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6468. /* end confdefs.h. */
  6469. #include <ac_nonexistent.h>
  6470. _ACEOF
  6471. if ac_fn_c_try_cpp "$LINENO"; then :
  6472. # Broken: success on invalid input.
  6473. continue
  6474. else
  6475. # Passes both tests.
  6476. ac_preproc_ok=:
  6477. break
  6478. fi
  6479. rm -f conftest.err conftest.i conftest.$ac_ext
  6480. done
  6481. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6482. rm -f conftest.i conftest.err conftest.$ac_ext
  6483. if $ac_preproc_ok; then :
  6484. else
  6485. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6486. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6487. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6488. See \`config.log' for more details" "$LINENO" 5; }
  6489. fi
  6490. ac_ext=c
  6491. ac_cpp='$CPP $CPPFLAGS'
  6492. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6493. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6494. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6496. $as_echo_n "checking for ANSI C header files... " >&6; }
  6497. if ${ac_cv_header_stdc+:} false; then :
  6498. $as_echo_n "(cached) " >&6
  6499. else
  6500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6501. /* end confdefs.h. */
  6502. #include <stdlib.h>
  6503. #include <stdarg.h>
  6504. #include <string.h>
  6505. #include <float.h>
  6506. int
  6507. main ()
  6508. {
  6509. ;
  6510. return 0;
  6511. }
  6512. _ACEOF
  6513. if ac_fn_c_try_compile "$LINENO"; then :
  6514. ac_cv_header_stdc=yes
  6515. else
  6516. ac_cv_header_stdc=no
  6517. fi
  6518. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6519. if test $ac_cv_header_stdc = yes; then
  6520. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6521. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6522. /* end confdefs.h. */
  6523. #include <string.h>
  6524. _ACEOF
  6525. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6526. $EGREP "memchr" >/dev/null 2>&1; then :
  6527. else
  6528. ac_cv_header_stdc=no
  6529. fi
  6530. rm -f conftest*
  6531. fi
  6532. if test $ac_cv_header_stdc = yes; then
  6533. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6535. /* end confdefs.h. */
  6536. #include <stdlib.h>
  6537. _ACEOF
  6538. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6539. $EGREP "free" >/dev/null 2>&1; then :
  6540. else
  6541. ac_cv_header_stdc=no
  6542. fi
  6543. rm -f conftest*
  6544. fi
  6545. if test $ac_cv_header_stdc = yes; then
  6546. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6547. if test "$cross_compiling" = yes; then :
  6548. :
  6549. else
  6550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6551. /* end confdefs.h. */
  6552. #include <ctype.h>
  6553. #include <stdlib.h>
  6554. #if ((' ' & 0x0FF) == 0x020)
  6555. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6556. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6557. #else
  6558. # define ISLOWER(c) \
  6559. (('a' <= (c) && (c) <= 'i') \
  6560. || ('j' <= (c) && (c) <= 'r') \
  6561. || ('s' <= (c) && (c) <= 'z'))
  6562. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6563. #endif
  6564. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6565. int
  6566. main ()
  6567. {
  6568. int i;
  6569. for (i = 0; i < 256; i++)
  6570. if (XOR (islower (i), ISLOWER (i))
  6571. || toupper (i) != TOUPPER (i))
  6572. return 2;
  6573. return 0;
  6574. }
  6575. _ACEOF
  6576. if ac_fn_c_try_run "$LINENO"; then :
  6577. else
  6578. ac_cv_header_stdc=no
  6579. fi
  6580. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6581. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6582. fi
  6583. fi
  6584. fi
  6585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6586. $as_echo "$ac_cv_header_stdc" >&6; }
  6587. if test $ac_cv_header_stdc = yes; then
  6588. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6589. fi
  6590. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6591. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6592. inttypes.h stdint.h unistd.h
  6593. do :
  6594. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6595. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6596. "
  6597. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6598. cat >>confdefs.h <<_ACEOF
  6599. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6600. _ACEOF
  6601. fi
  6602. done
  6603. for ac_header in dlfcn.h
  6604. do :
  6605. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6606. "
  6607. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6608. cat >>confdefs.h <<_ACEOF
  6609. #define HAVE_DLFCN_H 1
  6610. _ACEOF
  6611. fi
  6612. done
  6613. # Set options
  6614. enable_win32_dll=yes
  6615. case $host in
  6616. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6617. if test -n "$ac_tool_prefix"; then
  6618. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6619. set dummy ${ac_tool_prefix}as; ac_word=$2
  6620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6621. $as_echo_n "checking for $ac_word... " >&6; }
  6622. if ${ac_cv_prog_AS+:} false; then :
  6623. $as_echo_n "(cached) " >&6
  6624. else
  6625. if test -n "$AS"; then
  6626. ac_cv_prog_AS="$AS" # Let the user override the test.
  6627. else
  6628. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6629. for as_dir in $PATH
  6630. do
  6631. IFS=$as_save_IFS
  6632. test -z "$as_dir" && as_dir=.
  6633. for ac_exec_ext in '' $ac_executable_extensions; do
  6634. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6635. ac_cv_prog_AS="${ac_tool_prefix}as"
  6636. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6637. break 2
  6638. fi
  6639. done
  6640. done
  6641. IFS=$as_save_IFS
  6642. fi
  6643. fi
  6644. AS=$ac_cv_prog_AS
  6645. if test -n "$AS"; then
  6646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6647. $as_echo "$AS" >&6; }
  6648. else
  6649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6650. $as_echo "no" >&6; }
  6651. fi
  6652. fi
  6653. if test -z "$ac_cv_prog_AS"; then
  6654. ac_ct_AS=$AS
  6655. # Extract the first word of "as", so it can be a program name with args.
  6656. set dummy as; ac_word=$2
  6657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6658. $as_echo_n "checking for $ac_word... " >&6; }
  6659. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6660. $as_echo_n "(cached) " >&6
  6661. else
  6662. if test -n "$ac_ct_AS"; then
  6663. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6664. else
  6665. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6666. for as_dir in $PATH
  6667. do
  6668. IFS=$as_save_IFS
  6669. test -z "$as_dir" && as_dir=.
  6670. for ac_exec_ext in '' $ac_executable_extensions; do
  6671. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6672. ac_cv_prog_ac_ct_AS="as"
  6673. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6674. break 2
  6675. fi
  6676. done
  6677. done
  6678. IFS=$as_save_IFS
  6679. fi
  6680. fi
  6681. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6682. if test -n "$ac_ct_AS"; then
  6683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6684. $as_echo "$ac_ct_AS" >&6; }
  6685. else
  6686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6687. $as_echo "no" >&6; }
  6688. fi
  6689. if test "x$ac_ct_AS" = x; then
  6690. AS="false"
  6691. else
  6692. case $cross_compiling:$ac_tool_warned in
  6693. yes:)
  6694. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6695. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6696. ac_tool_warned=yes ;;
  6697. esac
  6698. AS=$ac_ct_AS
  6699. fi
  6700. else
  6701. AS="$ac_cv_prog_AS"
  6702. fi
  6703. if test -n "$ac_tool_prefix"; then
  6704. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6705. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6707. $as_echo_n "checking for $ac_word... " >&6; }
  6708. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6709. $as_echo_n "(cached) " >&6
  6710. else
  6711. if test -n "$DLLTOOL"; then
  6712. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6713. else
  6714. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6715. for as_dir in $PATH
  6716. do
  6717. IFS=$as_save_IFS
  6718. test -z "$as_dir" && as_dir=.
  6719. for ac_exec_ext in '' $ac_executable_extensions; do
  6720. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6721. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6722. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6723. break 2
  6724. fi
  6725. done
  6726. done
  6727. IFS=$as_save_IFS
  6728. fi
  6729. fi
  6730. DLLTOOL=$ac_cv_prog_DLLTOOL
  6731. if test -n "$DLLTOOL"; then
  6732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6733. $as_echo "$DLLTOOL" >&6; }
  6734. else
  6735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6736. $as_echo "no" >&6; }
  6737. fi
  6738. fi
  6739. if test -z "$ac_cv_prog_DLLTOOL"; then
  6740. ac_ct_DLLTOOL=$DLLTOOL
  6741. # Extract the first word of "dlltool", so it can be a program name with args.
  6742. set dummy dlltool; ac_word=$2
  6743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6744. $as_echo_n "checking for $ac_word... " >&6; }
  6745. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6746. $as_echo_n "(cached) " >&6
  6747. else
  6748. if test -n "$ac_ct_DLLTOOL"; then
  6749. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6750. else
  6751. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6752. for as_dir in $PATH
  6753. do
  6754. IFS=$as_save_IFS
  6755. test -z "$as_dir" && as_dir=.
  6756. for ac_exec_ext in '' $ac_executable_extensions; do
  6757. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6758. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6759. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6760. break 2
  6761. fi
  6762. done
  6763. done
  6764. IFS=$as_save_IFS
  6765. fi
  6766. fi
  6767. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6768. if test -n "$ac_ct_DLLTOOL"; then
  6769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6770. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6771. else
  6772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6773. $as_echo "no" >&6; }
  6774. fi
  6775. if test "x$ac_ct_DLLTOOL" = x; then
  6776. DLLTOOL="false"
  6777. else
  6778. case $cross_compiling:$ac_tool_warned in
  6779. yes:)
  6780. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6781. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6782. ac_tool_warned=yes ;;
  6783. esac
  6784. DLLTOOL=$ac_ct_DLLTOOL
  6785. fi
  6786. else
  6787. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6788. fi
  6789. if test -n "$ac_tool_prefix"; then
  6790. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6791. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6793. $as_echo_n "checking for $ac_word... " >&6; }
  6794. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6795. $as_echo_n "(cached) " >&6
  6796. else
  6797. if test -n "$OBJDUMP"; then
  6798. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6799. else
  6800. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6801. for as_dir in $PATH
  6802. do
  6803. IFS=$as_save_IFS
  6804. test -z "$as_dir" && as_dir=.
  6805. for ac_exec_ext in '' $ac_executable_extensions; do
  6806. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6807. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6808. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6809. break 2
  6810. fi
  6811. done
  6812. done
  6813. IFS=$as_save_IFS
  6814. fi
  6815. fi
  6816. OBJDUMP=$ac_cv_prog_OBJDUMP
  6817. if test -n "$OBJDUMP"; then
  6818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6819. $as_echo "$OBJDUMP" >&6; }
  6820. else
  6821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6822. $as_echo "no" >&6; }
  6823. fi
  6824. fi
  6825. if test -z "$ac_cv_prog_OBJDUMP"; then
  6826. ac_ct_OBJDUMP=$OBJDUMP
  6827. # Extract the first word of "objdump", so it can be a program name with args.
  6828. set dummy objdump; ac_word=$2
  6829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6830. $as_echo_n "checking for $ac_word... " >&6; }
  6831. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6832. $as_echo_n "(cached) " >&6
  6833. else
  6834. if test -n "$ac_ct_OBJDUMP"; then
  6835. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6836. else
  6837. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6838. for as_dir in $PATH
  6839. do
  6840. IFS=$as_save_IFS
  6841. test -z "$as_dir" && as_dir=.
  6842. for ac_exec_ext in '' $ac_executable_extensions; do
  6843. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6844. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6845. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6846. break 2
  6847. fi
  6848. done
  6849. done
  6850. IFS=$as_save_IFS
  6851. fi
  6852. fi
  6853. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6854. if test -n "$ac_ct_OBJDUMP"; then
  6855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6856. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6857. else
  6858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6859. $as_echo "no" >&6; }
  6860. fi
  6861. if test "x$ac_ct_OBJDUMP" = x; then
  6862. OBJDUMP="false"
  6863. else
  6864. case $cross_compiling:$ac_tool_warned in
  6865. yes:)
  6866. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6867. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6868. ac_tool_warned=yes ;;
  6869. esac
  6870. OBJDUMP=$ac_ct_OBJDUMP
  6871. fi
  6872. else
  6873. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6874. fi
  6875. ;;
  6876. esac
  6877. test -z "$AS" && AS=as
  6878. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6879. test -z "$OBJDUMP" && OBJDUMP=objdump
  6880. enable_dlopen=no
  6881. # Check whether --enable-shared was given.
  6882. if test "${enable_shared+set}" = set; then :
  6883. enableval=$enable_shared; p=${PACKAGE-default}
  6884. case $enableval in
  6885. yes) enable_shared=yes ;;
  6886. no) enable_shared=no ;;
  6887. *)
  6888. enable_shared=no
  6889. # Look at the argument we got. We use all the common list separators.
  6890. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6891. for pkg in $enableval; do
  6892. IFS=$lt_save_ifs
  6893. if test "X$pkg" = "X$p"; then
  6894. enable_shared=yes
  6895. fi
  6896. done
  6897. IFS=$lt_save_ifs
  6898. ;;
  6899. esac
  6900. else
  6901. enable_shared=yes
  6902. fi
  6903. # Check whether --enable-static was given.
  6904. if test "${enable_static+set}" = set; then :
  6905. enableval=$enable_static; p=${PACKAGE-default}
  6906. case $enableval in
  6907. yes) enable_static=yes ;;
  6908. no) enable_static=no ;;
  6909. *)
  6910. enable_static=no
  6911. # Look at the argument we got. We use all the common list separators.
  6912. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6913. for pkg in $enableval; do
  6914. IFS=$lt_save_ifs
  6915. if test "X$pkg" = "X$p"; then
  6916. enable_static=yes
  6917. fi
  6918. done
  6919. IFS=$lt_save_ifs
  6920. ;;
  6921. esac
  6922. else
  6923. enable_static=yes
  6924. fi
  6925. # Check whether --with-pic was given.
  6926. if test "${with_pic+set}" = set; then :
  6927. withval=$with_pic; lt_p=${PACKAGE-default}
  6928. case $withval in
  6929. yes|no) pic_mode=$withval ;;
  6930. *)
  6931. pic_mode=default
  6932. # Look at the argument we got. We use all the common list separators.
  6933. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6934. for lt_pkg in $withval; do
  6935. IFS=$lt_save_ifs
  6936. if test "X$lt_pkg" = "X$lt_p"; then
  6937. pic_mode=yes
  6938. fi
  6939. done
  6940. IFS=$lt_save_ifs
  6941. ;;
  6942. esac
  6943. else
  6944. pic_mode=default
  6945. fi
  6946. # Check whether --enable-fast-install was given.
  6947. if test "${enable_fast_install+set}" = set; then :
  6948. enableval=$enable_fast_install; p=${PACKAGE-default}
  6949. case $enableval in
  6950. yes) enable_fast_install=yes ;;
  6951. no) enable_fast_install=no ;;
  6952. *)
  6953. enable_fast_install=no
  6954. # Look at the argument we got. We use all the common list separators.
  6955. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6956. for pkg in $enableval; do
  6957. IFS=$lt_save_ifs
  6958. if test "X$pkg" = "X$p"; then
  6959. enable_fast_install=yes
  6960. fi
  6961. done
  6962. IFS=$lt_save_ifs
  6963. ;;
  6964. esac
  6965. else
  6966. enable_fast_install=yes
  6967. fi
  6968. shared_archive_member_spec=
  6969. case $host,$enable_shared in
  6970. power*-*-aix[5-9]*,yes)
  6971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  6972. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  6973. # Check whether --with-aix-soname was given.
  6974. if test "${with_aix_soname+set}" = set; then :
  6975. withval=$with_aix_soname; case $withval in
  6976. aix|svr4|both)
  6977. ;;
  6978. *)
  6979. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  6980. ;;
  6981. esac
  6982. lt_cv_with_aix_soname=$with_aix_soname
  6983. else
  6984. if ${lt_cv_with_aix_soname+:} false; then :
  6985. $as_echo_n "(cached) " >&6
  6986. else
  6987. lt_cv_with_aix_soname=aix
  6988. fi
  6989. with_aix_soname=$lt_cv_with_aix_soname
  6990. fi
  6991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  6992. $as_echo "$with_aix_soname" >&6; }
  6993. if test aix != "$with_aix_soname"; then
  6994. # For the AIX way of multilib, we name the shared archive member
  6995. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  6996. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  6997. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  6998. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  6999. if test 64 = "${OBJECT_MODE-32}"; then
  7000. shared_archive_member_spec=shr_64
  7001. else
  7002. shared_archive_member_spec=shr
  7003. fi
  7004. fi
  7005. ;;
  7006. *)
  7007. with_aix_soname=aix
  7008. ;;
  7009. esac
  7010. # This can be used to rebuild libtool when needed
  7011. LIBTOOL_DEPS=$ltmain
  7012. # Always use our own libtool.
  7013. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7014. test -z "$LN_S" && LN_S="ln -s"
  7015. if test -n "${ZSH_VERSION+set}"; then
  7016. setopt NO_GLOB_SUBST
  7017. fi
  7018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7019. $as_echo_n "checking for objdir... " >&6; }
  7020. if ${lt_cv_objdir+:} false; then :
  7021. $as_echo_n "(cached) " >&6
  7022. else
  7023. rm -f .libs 2>/dev/null
  7024. mkdir .libs 2>/dev/null
  7025. if test -d .libs; then
  7026. lt_cv_objdir=.libs
  7027. else
  7028. # MS-DOS does not allow filenames that begin with a dot.
  7029. lt_cv_objdir=_libs
  7030. fi
  7031. rmdir .libs 2>/dev/null
  7032. fi
  7033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7034. $as_echo "$lt_cv_objdir" >&6; }
  7035. objdir=$lt_cv_objdir
  7036. cat >>confdefs.h <<_ACEOF
  7037. #define LT_OBJDIR "$lt_cv_objdir/"
  7038. _ACEOF
  7039. case $host_os in
  7040. aix3*)
  7041. # AIX sometimes has problems with the GCC collect2 program. For some
  7042. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7043. # vanish in a puff of smoke.
  7044. if test set != "${COLLECT_NAMES+set}"; then
  7045. COLLECT_NAMES=
  7046. export COLLECT_NAMES
  7047. fi
  7048. ;;
  7049. esac
  7050. # Global variables:
  7051. ofile=libtool
  7052. can_build_shared=yes
  7053. # All known linkers require a '.a' archive for static linking (except MSVC,
  7054. # which needs '.lib').
  7055. libext=a
  7056. with_gnu_ld=$lt_cv_prog_gnu_ld
  7057. old_CC=$CC
  7058. old_CFLAGS=$CFLAGS
  7059. # Set sane defaults for various variables
  7060. test -z "$CC" && CC=cc
  7061. test -z "$LTCC" && LTCC=$CC
  7062. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7063. test -z "$LD" && LD=ld
  7064. test -z "$ac_objext" && ac_objext=o
  7065. func_cc_basename $compiler
  7066. cc_basename=$func_cc_basename_result
  7067. # Only perform the check for file, if the check method requires it
  7068. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7069. case $deplibs_check_method in
  7070. file_magic*)
  7071. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7073. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7074. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7075. $as_echo_n "(cached) " >&6
  7076. else
  7077. case $MAGIC_CMD in
  7078. [\\/*] | ?:[\\/]*)
  7079. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7080. ;;
  7081. *)
  7082. lt_save_MAGIC_CMD=$MAGIC_CMD
  7083. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7084. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7085. for ac_dir in $ac_dummy; do
  7086. IFS=$lt_save_ifs
  7087. test -z "$ac_dir" && ac_dir=.
  7088. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7089. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7090. if test -n "$file_magic_test_file"; then
  7091. case $deplibs_check_method in
  7092. "file_magic "*)
  7093. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7094. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7095. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7096. $EGREP "$file_magic_regex" > /dev/null; then
  7097. :
  7098. else
  7099. cat <<_LT_EOF 1>&2
  7100. *** Warning: the command libtool uses to detect shared libraries,
  7101. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7102. *** The result is that libtool may fail to recognize shared libraries
  7103. *** as such. This will affect the creation of libtool libraries that
  7104. *** depend on shared libraries, but programs linked with such libtool
  7105. *** libraries will work regardless of this problem. Nevertheless, you
  7106. *** may want to report the problem to your system manager and/or to
  7107. *** bug-libtool@gnu.org
  7108. _LT_EOF
  7109. fi ;;
  7110. esac
  7111. fi
  7112. break
  7113. fi
  7114. done
  7115. IFS=$lt_save_ifs
  7116. MAGIC_CMD=$lt_save_MAGIC_CMD
  7117. ;;
  7118. esac
  7119. fi
  7120. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7121. if test -n "$MAGIC_CMD"; then
  7122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7123. $as_echo "$MAGIC_CMD" >&6; }
  7124. else
  7125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7126. $as_echo "no" >&6; }
  7127. fi
  7128. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7129. if test -n "$ac_tool_prefix"; then
  7130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7131. $as_echo_n "checking for file... " >&6; }
  7132. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7133. $as_echo_n "(cached) " >&6
  7134. else
  7135. case $MAGIC_CMD in
  7136. [\\/*] | ?:[\\/]*)
  7137. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7138. ;;
  7139. *)
  7140. lt_save_MAGIC_CMD=$MAGIC_CMD
  7141. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7142. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7143. for ac_dir in $ac_dummy; do
  7144. IFS=$lt_save_ifs
  7145. test -z "$ac_dir" && ac_dir=.
  7146. if test -f "$ac_dir/file"; then
  7147. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7148. if test -n "$file_magic_test_file"; then
  7149. case $deplibs_check_method in
  7150. "file_magic "*)
  7151. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7152. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7153. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7154. $EGREP "$file_magic_regex" > /dev/null; then
  7155. :
  7156. else
  7157. cat <<_LT_EOF 1>&2
  7158. *** Warning: the command libtool uses to detect shared libraries,
  7159. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7160. *** The result is that libtool may fail to recognize shared libraries
  7161. *** as such. This will affect the creation of libtool libraries that
  7162. *** depend on shared libraries, but programs linked with such libtool
  7163. *** libraries will work regardless of this problem. Nevertheless, you
  7164. *** may want to report the problem to your system manager and/or to
  7165. *** bug-libtool@gnu.org
  7166. _LT_EOF
  7167. fi ;;
  7168. esac
  7169. fi
  7170. break
  7171. fi
  7172. done
  7173. IFS=$lt_save_ifs
  7174. MAGIC_CMD=$lt_save_MAGIC_CMD
  7175. ;;
  7176. esac
  7177. fi
  7178. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7179. if test -n "$MAGIC_CMD"; then
  7180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7181. $as_echo "$MAGIC_CMD" >&6; }
  7182. else
  7183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7184. $as_echo "no" >&6; }
  7185. fi
  7186. else
  7187. MAGIC_CMD=:
  7188. fi
  7189. fi
  7190. fi
  7191. ;;
  7192. esac
  7193. # Use C for the default configuration in the libtool script
  7194. lt_save_CC=$CC
  7195. ac_ext=c
  7196. ac_cpp='$CPP $CPPFLAGS'
  7197. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7198. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7199. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7200. # Source file extension for C test sources.
  7201. ac_ext=c
  7202. # Object file extension for compiled C test sources.
  7203. objext=o
  7204. objext=$objext
  7205. # Code to be used in simple compile tests
  7206. lt_simple_compile_test_code="int some_variable = 0;"
  7207. # Code to be used in simple link tests
  7208. lt_simple_link_test_code='int main(){return(0);}'
  7209. # If no C compiler was specified, use CC.
  7210. LTCC=${LTCC-"$CC"}
  7211. # If no C compiler flags were specified, use CFLAGS.
  7212. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7213. # Allow CC to be a program name with arguments.
  7214. compiler=$CC
  7215. # Save the default compiler, since it gets overwritten when the other
  7216. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7217. compiler_DEFAULT=$CC
  7218. # save warnings/boilerplate of simple test code
  7219. ac_outfile=conftest.$ac_objext
  7220. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7221. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7222. _lt_compiler_boilerplate=`cat conftest.err`
  7223. $RM conftest*
  7224. ac_outfile=conftest.$ac_objext
  7225. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7226. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7227. _lt_linker_boilerplate=`cat conftest.err`
  7228. $RM -r conftest*
  7229. ## CAVEAT EMPTOR:
  7230. ## There is no encapsulation within the following macros, do not change
  7231. ## the running order or otherwise move them around unless you know exactly
  7232. ## what you are doing...
  7233. if test -n "$compiler"; then
  7234. lt_prog_compiler_no_builtin_flag=
  7235. if test yes = "$GCC"; then
  7236. case $cc_basename in
  7237. nvcc*)
  7238. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7239. *)
  7240. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7241. esac
  7242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7243. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7244. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7245. $as_echo_n "(cached) " >&6
  7246. else
  7247. lt_cv_prog_compiler_rtti_exceptions=no
  7248. ac_outfile=conftest.$ac_objext
  7249. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7250. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7251. # Insert the option either (1) after the last *FLAGS variable, or
  7252. # (2) before a word containing "conftest.", or (3) at the end.
  7253. # Note that $ac_compile itself does not contain backslashes and begins
  7254. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7255. # The option is referenced via a variable to avoid confusing sed.
  7256. lt_compile=`echo "$ac_compile" | $SED \
  7257. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7258. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7259. -e 's:$: $lt_compiler_flag:'`
  7260. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7261. (eval "$lt_compile" 2>conftest.err)
  7262. ac_status=$?
  7263. cat conftest.err >&5
  7264. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7265. if (exit $ac_status) && test -s "$ac_outfile"; then
  7266. # The compiler can only warn and ignore the option if not recognized
  7267. # So say no if there are warnings other than the usual output.
  7268. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7269. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7270. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7271. lt_cv_prog_compiler_rtti_exceptions=yes
  7272. fi
  7273. fi
  7274. $RM conftest*
  7275. fi
  7276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7277. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7278. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7279. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7280. else
  7281. :
  7282. fi
  7283. fi
  7284. lt_prog_compiler_wl=
  7285. lt_prog_compiler_pic=
  7286. lt_prog_compiler_static=
  7287. if test yes = "$GCC"; then
  7288. lt_prog_compiler_wl='-Wl,'
  7289. lt_prog_compiler_static='-static'
  7290. case $host_os in
  7291. aix*)
  7292. # All AIX code is PIC.
  7293. if test ia64 = "$host_cpu"; then
  7294. # AIX 5 now supports IA64 processor
  7295. lt_prog_compiler_static='-Bstatic'
  7296. fi
  7297. lt_prog_compiler_pic='-fPIC'
  7298. ;;
  7299. amigaos*)
  7300. case $host_cpu in
  7301. powerpc)
  7302. # see comment about AmigaOS4 .so support
  7303. lt_prog_compiler_pic='-fPIC'
  7304. ;;
  7305. m68k)
  7306. # FIXME: we need at least 68020 code to build shared libraries, but
  7307. # adding the '-m68020' flag to GCC prevents building anything better,
  7308. # like '-m68040'.
  7309. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7310. ;;
  7311. esac
  7312. ;;
  7313. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7314. # PIC is the default for these OSes.
  7315. ;;
  7316. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7317. # This hack is so that the source file can tell whether it is being
  7318. # built for inclusion in a dll (and should export symbols for example).
  7319. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7320. # (--disable-auto-import) libraries
  7321. lt_prog_compiler_pic='-DDLL_EXPORT'
  7322. case $host_os in
  7323. os2*)
  7324. lt_prog_compiler_static='$wl-static'
  7325. ;;
  7326. esac
  7327. ;;
  7328. darwin* | rhapsody*)
  7329. # PIC is the default on this platform
  7330. # Common symbols not allowed in MH_DYLIB files
  7331. lt_prog_compiler_pic='-fno-common'
  7332. ;;
  7333. haiku*)
  7334. # PIC is the default for Haiku.
  7335. # The "-static" flag exists, but is broken.
  7336. lt_prog_compiler_static=
  7337. ;;
  7338. hpux*)
  7339. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7340. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7341. # sets the default TLS model and affects inlining.
  7342. case $host_cpu in
  7343. hppa*64*)
  7344. # +Z the default
  7345. ;;
  7346. *)
  7347. lt_prog_compiler_pic='-fPIC'
  7348. ;;
  7349. esac
  7350. ;;
  7351. interix[3-9]*)
  7352. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7353. # Instead, we relocate shared libraries at runtime.
  7354. ;;
  7355. msdosdjgpp*)
  7356. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7357. # on systems that don't support them.
  7358. lt_prog_compiler_can_build_shared=no
  7359. enable_shared=no
  7360. ;;
  7361. *nto* | *qnx*)
  7362. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7363. # it will coredump.
  7364. lt_prog_compiler_pic='-fPIC -shared'
  7365. ;;
  7366. sysv4*MP*)
  7367. if test -d /usr/nec; then
  7368. lt_prog_compiler_pic=-Kconform_pic
  7369. fi
  7370. ;;
  7371. *)
  7372. lt_prog_compiler_pic='-fPIC'
  7373. ;;
  7374. esac
  7375. case $cc_basename in
  7376. nvcc*) # Cuda Compiler Driver 2.2
  7377. lt_prog_compiler_wl='-Xlinker '
  7378. if test -n "$lt_prog_compiler_pic"; then
  7379. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7380. fi
  7381. ;;
  7382. esac
  7383. else
  7384. # PORTME Check for flag to pass linker flags through the system compiler.
  7385. case $host_os in
  7386. aix*)
  7387. lt_prog_compiler_wl='-Wl,'
  7388. if test ia64 = "$host_cpu"; then
  7389. # AIX 5 now supports IA64 processor
  7390. lt_prog_compiler_static='-Bstatic'
  7391. else
  7392. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7393. fi
  7394. ;;
  7395. darwin* | rhapsody*)
  7396. # PIC is the default on this platform
  7397. # Common symbols not allowed in MH_DYLIB files
  7398. lt_prog_compiler_pic='-fno-common'
  7399. case $cc_basename in
  7400. nagfor*)
  7401. # NAG Fortran compiler
  7402. lt_prog_compiler_wl='-Wl,-Wl,,'
  7403. lt_prog_compiler_pic='-PIC'
  7404. lt_prog_compiler_static='-Bstatic'
  7405. ;;
  7406. esac
  7407. ;;
  7408. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7409. # This hack is so that the source file can tell whether it is being
  7410. # built for inclusion in a dll (and should export symbols for example).
  7411. lt_prog_compiler_pic='-DDLL_EXPORT'
  7412. case $host_os in
  7413. os2*)
  7414. lt_prog_compiler_static='$wl-static'
  7415. ;;
  7416. esac
  7417. ;;
  7418. hpux9* | hpux10* | hpux11*)
  7419. lt_prog_compiler_wl='-Wl,'
  7420. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7421. # not for PA HP-UX.
  7422. case $host_cpu in
  7423. hppa*64*|ia64*)
  7424. # +Z the default
  7425. ;;
  7426. *)
  7427. lt_prog_compiler_pic='+Z'
  7428. ;;
  7429. esac
  7430. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7431. lt_prog_compiler_static='$wl-a ${wl}archive'
  7432. ;;
  7433. irix5* | irix6* | nonstopux*)
  7434. lt_prog_compiler_wl='-Wl,'
  7435. # PIC (with -KPIC) is the default.
  7436. lt_prog_compiler_static='-non_shared'
  7437. ;;
  7438. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7439. case $cc_basename in
  7440. # old Intel for x86_64, which still supported -KPIC.
  7441. ecc*)
  7442. lt_prog_compiler_wl='-Wl,'
  7443. lt_prog_compiler_pic='-KPIC'
  7444. lt_prog_compiler_static='-static'
  7445. ;;
  7446. # icc used to be incompatible with GCC.
  7447. # ICC 10 doesn't accept -KPIC any more.
  7448. icc* | ifort*)
  7449. lt_prog_compiler_wl='-Wl,'
  7450. lt_prog_compiler_pic='-fPIC'
  7451. lt_prog_compiler_static='-static'
  7452. ;;
  7453. # Lahey Fortran 8.1.
  7454. lf95*)
  7455. lt_prog_compiler_wl='-Wl,'
  7456. lt_prog_compiler_pic='--shared'
  7457. lt_prog_compiler_static='--static'
  7458. ;;
  7459. nagfor*)
  7460. # NAG Fortran compiler
  7461. lt_prog_compiler_wl='-Wl,-Wl,,'
  7462. lt_prog_compiler_pic='-PIC'
  7463. lt_prog_compiler_static='-Bstatic'
  7464. ;;
  7465. tcc*)
  7466. # Fabrice Bellard et al's Tiny C Compiler
  7467. lt_prog_compiler_wl='-Wl,'
  7468. lt_prog_compiler_pic='-fPIC'
  7469. lt_prog_compiler_static='-static'
  7470. ;;
  7471. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7472. # Portland Group compilers (*not* the Pentium gcc compiler,
  7473. # which looks to be a dead project)
  7474. lt_prog_compiler_wl='-Wl,'
  7475. lt_prog_compiler_pic='-fpic'
  7476. lt_prog_compiler_static='-Bstatic'
  7477. ;;
  7478. ccc*)
  7479. lt_prog_compiler_wl='-Wl,'
  7480. # All Alpha code is PIC.
  7481. lt_prog_compiler_static='-non_shared'
  7482. ;;
  7483. xl* | bgxl* | bgf* | mpixl*)
  7484. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7485. lt_prog_compiler_wl='-Wl,'
  7486. lt_prog_compiler_pic='-qpic'
  7487. lt_prog_compiler_static='-qstaticlink'
  7488. ;;
  7489. *)
  7490. case `$CC -V 2>&1 | sed 5q` in
  7491. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7492. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7493. lt_prog_compiler_pic='-KPIC'
  7494. lt_prog_compiler_static='-Bstatic'
  7495. lt_prog_compiler_wl=''
  7496. ;;
  7497. *Sun\ F* | *Sun*Fortran*)
  7498. lt_prog_compiler_pic='-KPIC'
  7499. lt_prog_compiler_static='-Bstatic'
  7500. lt_prog_compiler_wl='-Qoption ld '
  7501. ;;
  7502. *Sun\ C*)
  7503. # Sun C 5.9
  7504. lt_prog_compiler_pic='-KPIC'
  7505. lt_prog_compiler_static='-Bstatic'
  7506. lt_prog_compiler_wl='-Wl,'
  7507. ;;
  7508. *Intel*\ [CF]*Compiler*)
  7509. lt_prog_compiler_wl='-Wl,'
  7510. lt_prog_compiler_pic='-fPIC'
  7511. lt_prog_compiler_static='-static'
  7512. ;;
  7513. *Portland\ Group*)
  7514. lt_prog_compiler_wl='-Wl,'
  7515. lt_prog_compiler_pic='-fpic'
  7516. lt_prog_compiler_static='-Bstatic'
  7517. ;;
  7518. esac
  7519. ;;
  7520. esac
  7521. ;;
  7522. newsos6)
  7523. lt_prog_compiler_pic='-KPIC'
  7524. lt_prog_compiler_static='-Bstatic'
  7525. ;;
  7526. *nto* | *qnx*)
  7527. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7528. # it will coredump.
  7529. lt_prog_compiler_pic='-fPIC -shared'
  7530. ;;
  7531. osf3* | osf4* | osf5*)
  7532. lt_prog_compiler_wl='-Wl,'
  7533. # All OSF/1 code is PIC.
  7534. lt_prog_compiler_static='-non_shared'
  7535. ;;
  7536. rdos*)
  7537. lt_prog_compiler_static='-non_shared'
  7538. ;;
  7539. solaris*)
  7540. lt_prog_compiler_pic='-KPIC'
  7541. lt_prog_compiler_static='-Bstatic'
  7542. case $cc_basename in
  7543. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7544. lt_prog_compiler_wl='-Qoption ld ';;
  7545. *)
  7546. lt_prog_compiler_wl='-Wl,';;
  7547. esac
  7548. ;;
  7549. sunos4*)
  7550. lt_prog_compiler_wl='-Qoption ld '
  7551. lt_prog_compiler_pic='-PIC'
  7552. lt_prog_compiler_static='-Bstatic'
  7553. ;;
  7554. sysv4 | sysv4.2uw2* | sysv4.3*)
  7555. lt_prog_compiler_wl='-Wl,'
  7556. lt_prog_compiler_pic='-KPIC'
  7557. lt_prog_compiler_static='-Bstatic'
  7558. ;;
  7559. sysv4*MP*)
  7560. if test -d /usr/nec; then
  7561. lt_prog_compiler_pic='-Kconform_pic'
  7562. lt_prog_compiler_static='-Bstatic'
  7563. fi
  7564. ;;
  7565. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7566. lt_prog_compiler_wl='-Wl,'
  7567. lt_prog_compiler_pic='-KPIC'
  7568. lt_prog_compiler_static='-Bstatic'
  7569. ;;
  7570. unicos*)
  7571. lt_prog_compiler_wl='-Wl,'
  7572. lt_prog_compiler_can_build_shared=no
  7573. ;;
  7574. uts4*)
  7575. lt_prog_compiler_pic='-pic'
  7576. lt_prog_compiler_static='-Bstatic'
  7577. ;;
  7578. *)
  7579. lt_prog_compiler_can_build_shared=no
  7580. ;;
  7581. esac
  7582. fi
  7583. case $host_os in
  7584. # For platforms that do not support PIC, -DPIC is meaningless:
  7585. *djgpp*)
  7586. lt_prog_compiler_pic=
  7587. ;;
  7588. *)
  7589. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7590. ;;
  7591. esac
  7592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7593. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7594. if ${lt_cv_prog_compiler_pic+:} false; then :
  7595. $as_echo_n "(cached) " >&6
  7596. else
  7597. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7598. fi
  7599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7600. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7601. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7602. #
  7603. # Check to make sure the PIC flag actually works.
  7604. #
  7605. if test -n "$lt_prog_compiler_pic"; then
  7606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7607. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7608. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7609. $as_echo_n "(cached) " >&6
  7610. else
  7611. lt_cv_prog_compiler_pic_works=no
  7612. ac_outfile=conftest.$ac_objext
  7613. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7614. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  7615. # Insert the option either (1) after the last *FLAGS variable, or
  7616. # (2) before a word containing "conftest.", or (3) at the end.
  7617. # Note that $ac_compile itself does not contain backslashes and begins
  7618. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7619. # The option is referenced via a variable to avoid confusing sed.
  7620. lt_compile=`echo "$ac_compile" | $SED \
  7621. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7622. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7623. -e 's:$: $lt_compiler_flag:'`
  7624. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7625. (eval "$lt_compile" 2>conftest.err)
  7626. ac_status=$?
  7627. cat conftest.err >&5
  7628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7629. if (exit $ac_status) && test -s "$ac_outfile"; then
  7630. # The compiler can only warn and ignore the option if not recognized
  7631. # So say no if there are warnings other than the usual output.
  7632. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7633. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7634. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7635. lt_cv_prog_compiler_pic_works=yes
  7636. fi
  7637. fi
  7638. $RM conftest*
  7639. fi
  7640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7641. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7642. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  7643. case $lt_prog_compiler_pic in
  7644. "" | " "*) ;;
  7645. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7646. esac
  7647. else
  7648. lt_prog_compiler_pic=
  7649. lt_prog_compiler_can_build_shared=no
  7650. fi
  7651. fi
  7652. #
  7653. # Check to make sure the static flag actually works.
  7654. #
  7655. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7657. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7658. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7659. $as_echo_n "(cached) " >&6
  7660. else
  7661. lt_cv_prog_compiler_static_works=no
  7662. save_LDFLAGS=$LDFLAGS
  7663. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7664. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7665. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7666. # The linker can only warn and ignore the option if not recognized
  7667. # So say no if there are warnings
  7668. if test -s conftest.err; then
  7669. # Append any errors to the config.log.
  7670. cat conftest.err 1>&5
  7671. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7672. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7673. if diff conftest.exp conftest.er2 >/dev/null; then
  7674. lt_cv_prog_compiler_static_works=yes
  7675. fi
  7676. else
  7677. lt_cv_prog_compiler_static_works=yes
  7678. fi
  7679. fi
  7680. $RM -r conftest*
  7681. LDFLAGS=$save_LDFLAGS
  7682. fi
  7683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7684. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7685. if test yes = "$lt_cv_prog_compiler_static_works"; then
  7686. :
  7687. else
  7688. lt_prog_compiler_static=
  7689. fi
  7690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7691. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7692. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7693. $as_echo_n "(cached) " >&6
  7694. else
  7695. lt_cv_prog_compiler_c_o=no
  7696. $RM -r conftest 2>/dev/null
  7697. mkdir conftest
  7698. cd conftest
  7699. mkdir out
  7700. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7701. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7702. # Insert the option either (1) after the last *FLAGS variable, or
  7703. # (2) before a word containing "conftest.", or (3) at the end.
  7704. # Note that $ac_compile itself does not contain backslashes and begins
  7705. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7706. lt_compile=`echo "$ac_compile" | $SED \
  7707. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7708. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7709. -e 's:$: $lt_compiler_flag:'`
  7710. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7711. (eval "$lt_compile" 2>out/conftest.err)
  7712. ac_status=$?
  7713. cat out/conftest.err >&5
  7714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7715. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7716. then
  7717. # The compiler can only warn and ignore the option if not recognized
  7718. # So say no if there are warnings
  7719. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7720. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7721. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7722. lt_cv_prog_compiler_c_o=yes
  7723. fi
  7724. fi
  7725. chmod u+w . 2>&5
  7726. $RM conftest*
  7727. # SGI C++ compiler will create directory out/ii_files/ for
  7728. # template instantiation
  7729. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7730. $RM out/* && rmdir out
  7731. cd ..
  7732. $RM -r conftest
  7733. $RM conftest*
  7734. fi
  7735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7736. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7738. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7739. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7740. $as_echo_n "(cached) " >&6
  7741. else
  7742. lt_cv_prog_compiler_c_o=no
  7743. $RM -r conftest 2>/dev/null
  7744. mkdir conftest
  7745. cd conftest
  7746. mkdir out
  7747. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7748. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7749. # Insert the option either (1) after the last *FLAGS variable, or
  7750. # (2) before a word containing "conftest.", or (3) at the end.
  7751. # Note that $ac_compile itself does not contain backslashes and begins
  7752. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7753. lt_compile=`echo "$ac_compile" | $SED \
  7754. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7755. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7756. -e 's:$: $lt_compiler_flag:'`
  7757. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7758. (eval "$lt_compile" 2>out/conftest.err)
  7759. ac_status=$?
  7760. cat out/conftest.err >&5
  7761. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7762. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7763. then
  7764. # The compiler can only warn and ignore the option if not recognized
  7765. # So say no if there are warnings
  7766. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7767. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7768. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7769. lt_cv_prog_compiler_c_o=yes
  7770. fi
  7771. fi
  7772. chmod u+w . 2>&5
  7773. $RM conftest*
  7774. # SGI C++ compiler will create directory out/ii_files/ for
  7775. # template instantiation
  7776. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7777. $RM out/* && rmdir out
  7778. cd ..
  7779. $RM -r conftest
  7780. $RM conftest*
  7781. fi
  7782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7783. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7784. hard_links=nottested
  7785. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  7786. # do not overwrite the value of need_locks provided by the user
  7787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7788. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7789. hard_links=yes
  7790. $RM conftest*
  7791. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7792. touch conftest.a
  7793. ln conftest.a conftest.b 2>&5 || hard_links=no
  7794. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7796. $as_echo "$hard_links" >&6; }
  7797. if test no = "$hard_links"; then
  7798. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  7799. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  7800. need_locks=warn
  7801. fi
  7802. else
  7803. need_locks=no
  7804. fi
  7805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7806. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7807. runpath_var=
  7808. allow_undefined_flag=
  7809. always_export_symbols=no
  7810. archive_cmds=
  7811. archive_expsym_cmds=
  7812. compiler_needs_object=no
  7813. enable_shared_with_static_runtimes=no
  7814. export_dynamic_flag_spec=
  7815. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7816. hardcode_automatic=no
  7817. hardcode_direct=no
  7818. hardcode_direct_absolute=no
  7819. hardcode_libdir_flag_spec=
  7820. hardcode_libdir_separator=
  7821. hardcode_minus_L=no
  7822. hardcode_shlibpath_var=unsupported
  7823. inherit_rpath=no
  7824. link_all_deplibs=unknown
  7825. module_cmds=
  7826. module_expsym_cmds=
  7827. old_archive_from_new_cmds=
  7828. old_archive_from_expsyms_cmds=
  7829. thread_safe_flag_spec=
  7830. whole_archive_flag_spec=
  7831. # include_expsyms should be a list of space-separated symbols to be *always*
  7832. # included in the symbol list
  7833. include_expsyms=
  7834. # exclude_expsyms can be an extended regexp of symbols to exclude
  7835. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  7836. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  7837. # as well as any symbol that contains 'd'.
  7838. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7839. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7840. # platforms (ab)use it in PIC code, but their linkers get confused if
  7841. # the symbol is explicitly referenced. Since portable code cannot
  7842. # rely on this symbol name, it's probably fine to never include it in
  7843. # preloaded symbol tables.
  7844. # Exclude shared library initialization/finalization symbols.
  7845. extract_expsyms_cmds=
  7846. case $host_os in
  7847. cygwin* | mingw* | pw32* | cegcc*)
  7848. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7849. # When not using gcc, we currently assume that we are using
  7850. # Microsoft Visual C++.
  7851. if test yes != "$GCC"; then
  7852. with_gnu_ld=no
  7853. fi
  7854. ;;
  7855. interix*)
  7856. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7857. with_gnu_ld=yes
  7858. ;;
  7859. openbsd* | bitrig*)
  7860. with_gnu_ld=no
  7861. ;;
  7862. esac
  7863. ld_shlibs=yes
  7864. # On some targets, GNU ld is compatible enough with the native linker
  7865. # that we're better off using the native interface for both.
  7866. lt_use_gnu_ld_interface=no
  7867. if test yes = "$with_gnu_ld"; then
  7868. case $host_os in
  7869. aix*)
  7870. # The AIX port of GNU ld has always aspired to compatibility
  7871. # with the native linker. However, as the warning in the GNU ld
  7872. # block says, versions before 2.19.5* couldn't really create working
  7873. # shared libraries, regardless of the interface used.
  7874. case `$LD -v 2>&1` in
  7875. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7876. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7877. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7878. *)
  7879. lt_use_gnu_ld_interface=yes
  7880. ;;
  7881. esac
  7882. ;;
  7883. *)
  7884. lt_use_gnu_ld_interface=yes
  7885. ;;
  7886. esac
  7887. fi
  7888. if test yes = "$lt_use_gnu_ld_interface"; then
  7889. # If archive_cmds runs LD, not CC, wlarc should be empty
  7890. wlarc='$wl'
  7891. # Set some defaults for GNU ld with shared library support. These
  7892. # are reset later if shared libraries are not supported. Putting them
  7893. # here allows them to be overridden if necessary.
  7894. runpath_var=LD_RUN_PATH
  7895. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  7896. export_dynamic_flag_spec='$wl--export-dynamic'
  7897. # ancient GNU ld didn't support --whole-archive et. al.
  7898. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7899. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  7900. else
  7901. whole_archive_flag_spec=
  7902. fi
  7903. supports_anon_versioning=no
  7904. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  7905. *GNU\ gold*) supports_anon_versioning=yes ;;
  7906. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7907. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7908. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7909. *\ 2.11.*) ;; # other 2.11 versions
  7910. *) supports_anon_versioning=yes ;;
  7911. esac
  7912. # See if GNU ld supports shared libraries.
  7913. case $host_os in
  7914. aix[3-9]*)
  7915. # On AIX/PPC, the GNU linker is very broken
  7916. if test ia64 != "$host_cpu"; then
  7917. ld_shlibs=no
  7918. cat <<_LT_EOF 1>&2
  7919. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7920. *** to be unable to reliably create shared libraries on AIX.
  7921. *** Therefore, libtool is disabling shared libraries support. If you
  7922. *** really care for shared libraries, you may want to install binutils
  7923. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7924. *** You will then need to restart the configuration process.
  7925. _LT_EOF
  7926. fi
  7927. ;;
  7928. amigaos*)
  7929. case $host_cpu in
  7930. powerpc)
  7931. # see comment about AmigaOS4 .so support
  7932. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7933. archive_expsym_cmds=''
  7934. ;;
  7935. m68k)
  7936. 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)'
  7937. hardcode_libdir_flag_spec='-L$libdir'
  7938. hardcode_minus_L=yes
  7939. ;;
  7940. esac
  7941. ;;
  7942. beos*)
  7943. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7944. allow_undefined_flag=unsupported
  7945. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7946. # support --undefined. This deserves some investigation. FIXME
  7947. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7948. else
  7949. ld_shlibs=no
  7950. fi
  7951. ;;
  7952. cygwin* | mingw* | pw32* | cegcc*)
  7953. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7954. # as there is no search path for DLLs.
  7955. hardcode_libdir_flag_spec='-L$libdir'
  7956. export_dynamic_flag_spec='$wl--export-all-symbols'
  7957. allow_undefined_flag=unsupported
  7958. always_export_symbols=no
  7959. enable_shared_with_static_runtimes=yes
  7960. 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'
  7961. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7962. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7963. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7964. # If the export-symbols file already is a .def file, use it as
  7965. # is; otherwise, prepend EXPORTS...
  7966. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  7967. cp $export_symbols $output_objdir/$soname.def;
  7968. else
  7969. echo EXPORTS > $output_objdir/$soname.def;
  7970. cat $export_symbols >> $output_objdir/$soname.def;
  7971. fi~
  7972. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7973. else
  7974. ld_shlibs=no
  7975. fi
  7976. ;;
  7977. haiku*)
  7978. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7979. link_all_deplibs=yes
  7980. ;;
  7981. os2*)
  7982. hardcode_libdir_flag_spec='-L$libdir'
  7983. hardcode_minus_L=yes
  7984. allow_undefined_flag=unsupported
  7985. shrext_cmds=.dll
  7986. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7987. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7988. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7989. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7990. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  7991. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7992. emximp -o $lib $output_objdir/$libname.def'
  7993. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7994. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7995. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7996. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7997. prefix_cmds="$SED"~
  7998. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  7999. prefix_cmds="$prefix_cmds -e 1d";
  8000. fi~
  8001. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8002. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8003. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8004. emximp -o $lib $output_objdir/$libname.def'
  8005. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8006. enable_shared_with_static_runtimes=yes
  8007. file_list_spec='@'
  8008. ;;
  8009. interix[3-9]*)
  8010. hardcode_direct=no
  8011. hardcode_shlibpath_var=no
  8012. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8013. export_dynamic_flag_spec='$wl-E'
  8014. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8015. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8016. # default) and relocated if they conflict, which is a slow very memory
  8017. # consuming and fragmenting process. To avoid this, we pick a random,
  8018. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8019. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8020. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8021. 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'
  8022. ;;
  8023. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8024. tmp_diet=no
  8025. if test linux-dietlibc = "$host_os"; then
  8026. case $cc_basename in
  8027. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8028. esac
  8029. fi
  8030. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8031. && test no = "$tmp_diet"
  8032. then
  8033. tmp_addflag=' $pic_flag'
  8034. tmp_sharedflag='-shared'
  8035. case $cc_basename,$host_cpu in
  8036. pgcc*) # Portland Group C compiler
  8037. 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'
  8038. tmp_addflag=' $pic_flag'
  8039. ;;
  8040. pgf77* | pgf90* | pgf95* | pgfortran*)
  8041. # Portland Group f77 and f90 compilers
  8042. 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'
  8043. tmp_addflag=' $pic_flag -Mnomain' ;;
  8044. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8045. tmp_addflag=' -i_dynamic' ;;
  8046. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8047. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8048. ifc* | ifort*) # Intel Fortran compiler
  8049. tmp_addflag=' -nofor_main' ;;
  8050. lf95*) # Lahey Fortran 8.1
  8051. whole_archive_flag_spec=
  8052. tmp_sharedflag='--shared' ;;
  8053. nagfor*) # NAGFOR 5.3
  8054. tmp_sharedflag='-Wl,-shared' ;;
  8055. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8056. tmp_sharedflag='-qmkshrobj'
  8057. tmp_addflag= ;;
  8058. nvcc*) # Cuda Compiler Driver 2.2
  8059. 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'
  8060. compiler_needs_object=yes
  8061. ;;
  8062. esac
  8063. case `$CC -V 2>&1 | sed 5q` in
  8064. *Sun\ C*) # Sun C 5.9
  8065. 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'
  8066. compiler_needs_object=yes
  8067. tmp_sharedflag='-G' ;;
  8068. *Sun\ F*) # Sun Fortran 8.3
  8069. tmp_sharedflag='-G' ;;
  8070. esac
  8071. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8072. if test yes = "$supports_anon_versioning"; then
  8073. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8074. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8075. echo "local: *; };" >> $output_objdir/$libname.ver~
  8076. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8077. fi
  8078. case $cc_basename in
  8079. tcc*)
  8080. export_dynamic_flag_spec='-rdynamic'
  8081. ;;
  8082. xlf* | bgf* | bgxlf* | mpixlf*)
  8083. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8084. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8085. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8086. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8087. if test yes = "$supports_anon_versioning"; then
  8088. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8089. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8090. echo "local: *; };" >> $output_objdir/$libname.ver~
  8091. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8092. fi
  8093. ;;
  8094. esac
  8095. else
  8096. ld_shlibs=no
  8097. fi
  8098. ;;
  8099. netbsd*)
  8100. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8101. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8102. wlarc=
  8103. else
  8104. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8105. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8106. fi
  8107. ;;
  8108. solaris*)
  8109. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8110. ld_shlibs=no
  8111. cat <<_LT_EOF 1>&2
  8112. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8113. *** create shared libraries on Solaris systems. Therefore, libtool
  8114. *** is disabling shared libraries support. We urge you to upgrade GNU
  8115. *** binutils to release 2.9.1 or newer. Another option is to modify
  8116. *** your PATH or compiler configuration so that the native linker is
  8117. *** used, and then restart.
  8118. _LT_EOF
  8119. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8120. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8121. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8122. else
  8123. ld_shlibs=no
  8124. fi
  8125. ;;
  8126. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8127. case `$LD -v 2>&1` in
  8128. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8129. ld_shlibs=no
  8130. cat <<_LT_EOF 1>&2
  8131. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8132. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8133. *** is disabling shared libraries support. We urge you to upgrade GNU
  8134. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8135. *** your PATH or compiler configuration so that the native linker is
  8136. *** used, and then restart.
  8137. _LT_EOF
  8138. ;;
  8139. *)
  8140. # For security reasons, it is highly recommended that you always
  8141. # use absolute paths for naming shared libraries, and exclude the
  8142. # DT_RUNPATH tag from executables and libraries. But doing so
  8143. # requires that you compile everything twice, which is a pain.
  8144. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8145. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8146. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8147. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8148. else
  8149. ld_shlibs=no
  8150. fi
  8151. ;;
  8152. esac
  8153. ;;
  8154. sunos4*)
  8155. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8156. wlarc=
  8157. hardcode_direct=yes
  8158. hardcode_shlibpath_var=no
  8159. ;;
  8160. *)
  8161. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8162. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8163. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8164. else
  8165. ld_shlibs=no
  8166. fi
  8167. ;;
  8168. esac
  8169. if test no = "$ld_shlibs"; then
  8170. runpath_var=
  8171. hardcode_libdir_flag_spec=
  8172. export_dynamic_flag_spec=
  8173. whole_archive_flag_spec=
  8174. fi
  8175. else
  8176. # PORTME fill in a description of your system's linker (not GNU ld)
  8177. case $host_os in
  8178. aix3*)
  8179. allow_undefined_flag=unsupported
  8180. always_export_symbols=yes
  8181. 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'
  8182. # Note: this linker hardcodes the directories in LIBPATH if there
  8183. # are no directories specified by -L.
  8184. hardcode_minus_L=yes
  8185. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8186. # Neither direct hardcoding nor static linking is supported with a
  8187. # broken collect2.
  8188. hardcode_direct=unsupported
  8189. fi
  8190. ;;
  8191. aix[4-9]*)
  8192. if test ia64 = "$host_cpu"; then
  8193. # On IA64, the linker does run time linking by default, so we don't
  8194. # have to do anything special.
  8195. aix_use_runtimelinking=no
  8196. exp_sym_flag='-Bexport'
  8197. no_entry_flag=
  8198. else
  8199. # If we're using GNU nm, then we don't want the "-C" option.
  8200. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8201. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8202. # weak defined symbols like other global defined symbols, whereas
  8203. # GNU nm marks them as "W".
  8204. # While the 'weak' keyword is ignored in the Export File, we need
  8205. # it in the Import File for the 'aix-soname' feature, so we have
  8206. # to replace the "-B" option with "-P" for AIX nm.
  8207. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8208. 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'
  8209. else
  8210. 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'
  8211. fi
  8212. aix_use_runtimelinking=no
  8213. # Test if we are trying to use run time linking or normal
  8214. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8215. # have runtime linking enabled, and use it for executables.
  8216. # For shared libraries, we enable/disable runtime linking
  8217. # depending on the kind of the shared library created -
  8218. # when "with_aix_soname,aix_use_runtimelinking" is:
  8219. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8220. # "aix,yes" lib.so shared, rtl:yes, for executables
  8221. # lib.a static archive
  8222. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8223. # lib.a(lib.so.V) shared, rtl:no, for executables
  8224. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8225. # lib.a(lib.so.V) shared, rtl:no
  8226. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8227. # lib.a static archive
  8228. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8229. for ld_flag in $LDFLAGS; do
  8230. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8231. aix_use_runtimelinking=yes
  8232. break
  8233. fi
  8234. done
  8235. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8236. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8237. # so we don't have lib.a shared libs to link our executables.
  8238. # We have to force runtime linking in this case.
  8239. aix_use_runtimelinking=yes
  8240. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8241. fi
  8242. ;;
  8243. esac
  8244. exp_sym_flag='-bexport'
  8245. no_entry_flag='-bnoentry'
  8246. fi
  8247. # When large executables or shared objects are built, AIX ld can
  8248. # have problems creating the table of contents. If linking a library
  8249. # or program results in "error TOC overflow" add -mminimal-toc to
  8250. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8251. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8252. archive_cmds=''
  8253. hardcode_direct=yes
  8254. hardcode_direct_absolute=yes
  8255. hardcode_libdir_separator=':'
  8256. link_all_deplibs=yes
  8257. file_list_spec='$wl-f,'
  8258. case $with_aix_soname,$aix_use_runtimelinking in
  8259. aix,*) ;; # traditional, no import file
  8260. svr4,* | *,yes) # use import file
  8261. # The Import File defines what to hardcode.
  8262. hardcode_direct=no
  8263. hardcode_direct_absolute=no
  8264. ;;
  8265. esac
  8266. if test yes = "$GCC"; then
  8267. case $host_os in aix4.[012]|aix4.[012].*)
  8268. # We only want to do this on AIX 4.2 and lower, the check
  8269. # below for broken collect2 doesn't work under 4.3+
  8270. collect2name=`$CC -print-prog-name=collect2`
  8271. if test -f "$collect2name" &&
  8272. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8273. then
  8274. # We have reworked collect2
  8275. :
  8276. else
  8277. # We have old collect2
  8278. hardcode_direct=unsupported
  8279. # It fails to find uninstalled libraries when the uninstalled
  8280. # path is not listed in the libpath. Setting hardcode_minus_L
  8281. # to unsupported forces relinking
  8282. hardcode_minus_L=yes
  8283. hardcode_libdir_flag_spec='-L$libdir'
  8284. hardcode_libdir_separator=
  8285. fi
  8286. ;;
  8287. esac
  8288. shared_flag='-shared'
  8289. if test yes = "$aix_use_runtimelinking"; then
  8290. shared_flag="$shared_flag "'$wl-G'
  8291. fi
  8292. # Need to ensure runtime linking is disabled for the traditional
  8293. # shared library, or the linker may eventually find shared libraries
  8294. # /with/ Import File - we do not want to mix them.
  8295. shared_flag_aix='-shared'
  8296. shared_flag_svr4='-shared $wl-G'
  8297. else
  8298. # not using gcc
  8299. if test ia64 = "$host_cpu"; then
  8300. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8301. # chokes on -Wl,-G. The following line is correct:
  8302. shared_flag='-G'
  8303. else
  8304. if test yes = "$aix_use_runtimelinking"; then
  8305. shared_flag='$wl-G'
  8306. else
  8307. shared_flag='$wl-bM:SRE'
  8308. fi
  8309. shared_flag_aix='$wl-bM:SRE'
  8310. shared_flag_svr4='$wl-G'
  8311. fi
  8312. fi
  8313. export_dynamic_flag_spec='$wl-bexpall'
  8314. # It seems that -bexpall does not export symbols beginning with
  8315. # underscore (_), so it is better to generate a list of symbols to export.
  8316. always_export_symbols=yes
  8317. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8318. # Warning - without using the other runtime loading flags (-brtl),
  8319. # -berok will link without error, but may produce a broken library.
  8320. allow_undefined_flag='-berok'
  8321. # Determine the default libpath from the value encoded in an
  8322. # empty executable.
  8323. if test set = "${lt_cv_aix_libpath+set}"; then
  8324. aix_libpath=$lt_cv_aix_libpath
  8325. else
  8326. if ${lt_cv_aix_libpath_+:} false; then :
  8327. $as_echo_n "(cached) " >&6
  8328. else
  8329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8330. /* end confdefs.h. */
  8331. int
  8332. main ()
  8333. {
  8334. ;
  8335. return 0;
  8336. }
  8337. _ACEOF
  8338. if ac_fn_c_try_link "$LINENO"; then :
  8339. lt_aix_libpath_sed='
  8340. /Import File Strings/,/^$/ {
  8341. /^0/ {
  8342. s/^0 *\([^ ]*\) *$/\1/
  8343. p
  8344. }
  8345. }'
  8346. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8347. # Check for a 64-bit object if we didn't find anything.
  8348. if test -z "$lt_cv_aix_libpath_"; then
  8349. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8350. fi
  8351. fi
  8352. rm -f core conftest.err conftest.$ac_objext \
  8353. conftest$ac_exeext conftest.$ac_ext
  8354. if test -z "$lt_cv_aix_libpath_"; then
  8355. lt_cv_aix_libpath_=/usr/lib:/lib
  8356. fi
  8357. fi
  8358. aix_libpath=$lt_cv_aix_libpath_
  8359. fi
  8360. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8361. 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
  8362. else
  8363. if test ia64 = "$host_cpu"; then
  8364. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  8365. allow_undefined_flag="-z nodefs"
  8366. 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"
  8367. else
  8368. # Determine the default libpath from the value encoded in an
  8369. # empty executable.
  8370. if test set = "${lt_cv_aix_libpath+set}"; then
  8371. aix_libpath=$lt_cv_aix_libpath
  8372. else
  8373. if ${lt_cv_aix_libpath_+:} false; then :
  8374. $as_echo_n "(cached) " >&6
  8375. else
  8376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8377. /* end confdefs.h. */
  8378. int
  8379. main ()
  8380. {
  8381. ;
  8382. return 0;
  8383. }
  8384. _ACEOF
  8385. if ac_fn_c_try_link "$LINENO"; then :
  8386. lt_aix_libpath_sed='
  8387. /Import File Strings/,/^$/ {
  8388. /^0/ {
  8389. s/^0 *\([^ ]*\) *$/\1/
  8390. p
  8391. }
  8392. }'
  8393. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8394. # Check for a 64-bit object if we didn't find anything.
  8395. if test -z "$lt_cv_aix_libpath_"; then
  8396. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8397. fi
  8398. fi
  8399. rm -f core conftest.err conftest.$ac_objext \
  8400. conftest$ac_exeext conftest.$ac_ext
  8401. if test -z "$lt_cv_aix_libpath_"; then
  8402. lt_cv_aix_libpath_=/usr/lib:/lib
  8403. fi
  8404. fi
  8405. aix_libpath=$lt_cv_aix_libpath_
  8406. fi
  8407. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8408. # Warning - without using the other run time loading flags,
  8409. # -berok will link without error, but may produce a broken library.
  8410. no_undefined_flag=' $wl-bernotok'
  8411. allow_undefined_flag=' $wl-berok'
  8412. if test yes = "$with_gnu_ld"; then
  8413. # We only use this code for GNU lds that support --whole-archive.
  8414. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  8415. else
  8416. # Exported symbols can be pulled into shared objects from archives
  8417. whole_archive_flag_spec='$convenience'
  8418. fi
  8419. archive_cmds_need_lc=yes
  8420. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  8421. # -brtl affects multiple linker settings, -berok does not and is overridden later
  8422. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  8423. if test svr4 != "$with_aix_soname"; then
  8424. # This is similar to how AIX traditionally builds its shared libraries.
  8425. 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'
  8426. fi
  8427. if test aix != "$with_aix_soname"; then
  8428. 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'
  8429. else
  8430. # used by -dlpreopen to get the symbols
  8431. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  8432. fi
  8433. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  8434. fi
  8435. fi
  8436. ;;
  8437. amigaos*)
  8438. case $host_cpu in
  8439. powerpc)
  8440. # see comment about AmigaOS4 .so support
  8441. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8442. archive_expsym_cmds=''
  8443. ;;
  8444. m68k)
  8445. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  8446. hardcode_libdir_flag_spec='-L$libdir'
  8447. hardcode_minus_L=yes
  8448. ;;
  8449. esac
  8450. ;;
  8451. bsdi[45]*)
  8452. export_dynamic_flag_spec=-rdynamic
  8453. ;;
  8454. cygwin* | mingw* | pw32* | cegcc*)
  8455. # When not using gcc, we currently assume that we are using
  8456. # Microsoft Visual C++.
  8457. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8458. # no search path for DLLs.
  8459. case $cc_basename in
  8460. cl*)
  8461. # Native MSVC
  8462. hardcode_libdir_flag_spec=' '
  8463. allow_undefined_flag=unsupported
  8464. always_export_symbols=yes
  8465. file_list_spec='@'
  8466. # Tell ltmain to make .lib files, not .a files.
  8467. libext=lib
  8468. # Tell ltmain to make .dll files, not .so files.
  8469. shrext_cmds=.dll
  8470. # FIXME: Setting linknames here is a bad hack.
  8471. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  8472. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8473. cp "$export_symbols" "$output_objdir/$soname.def";
  8474. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  8475. else
  8476. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  8477. fi~
  8478. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8479. linknames='
  8480. # The linker will not automatically build a static lib if we build a DLL.
  8481. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8482. enable_shared_with_static_runtimes=yes
  8483. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8484. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8485. # Don't use ranlib
  8486. old_postinstall_cmds='chmod 644 $oldlib'
  8487. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8488. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8489. case $lt_outputfile in
  8490. *.exe|*.EXE) ;;
  8491. *)
  8492. lt_outputfile=$lt_outputfile.exe
  8493. lt_tool_outputfile=$lt_tool_outputfile.exe
  8494. ;;
  8495. esac~
  8496. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  8497. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8498. $RM "$lt_outputfile.manifest";
  8499. fi'
  8500. ;;
  8501. *)
  8502. # Assume MSVC wrapper
  8503. hardcode_libdir_flag_spec=' '
  8504. allow_undefined_flag=unsupported
  8505. # Tell ltmain to make .lib files, not .a files.
  8506. libext=lib
  8507. # Tell ltmain to make .dll files, not .so files.
  8508. shrext_cmds=.dll
  8509. # FIXME: Setting linknames here is a bad hack.
  8510. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8511. # The linker will automatically build a .lib file if we build a DLL.
  8512. old_archive_from_new_cmds='true'
  8513. # FIXME: Should let the user specify the lib program.
  8514. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8515. enable_shared_with_static_runtimes=yes
  8516. ;;
  8517. esac
  8518. ;;
  8519. darwin* | rhapsody*)
  8520. archive_cmds_need_lc=no
  8521. hardcode_direct=no
  8522. hardcode_automatic=yes
  8523. hardcode_shlibpath_var=unsupported
  8524. if test yes = "$lt_cv_ld_force_load"; then
  8525. 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\"`'
  8526. else
  8527. whole_archive_flag_spec=''
  8528. fi
  8529. link_all_deplibs=yes
  8530. allow_undefined_flag=$_lt_dar_allow_undefined
  8531. case $cc_basename in
  8532. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  8533. *) _lt_dar_can_shared=$GCC ;;
  8534. esac
  8535. if test yes = "$_lt_dar_can_shared"; then
  8536. output_verbose_link_cmd=func_echo_all
  8537. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  8538. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  8539. 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"
  8540. 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"
  8541. else
  8542. ld_shlibs=no
  8543. fi
  8544. ;;
  8545. dgux*)
  8546. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8547. hardcode_libdir_flag_spec='-L$libdir'
  8548. hardcode_shlibpath_var=no
  8549. ;;
  8550. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8551. # support. Future versions do this automatically, but an explicit c++rt0.o
  8552. # does not break anything, and helps significantly (at the cost of a little
  8553. # extra space).
  8554. freebsd2.2*)
  8555. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8556. hardcode_libdir_flag_spec='-R$libdir'
  8557. hardcode_direct=yes
  8558. hardcode_shlibpath_var=no
  8559. ;;
  8560. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8561. freebsd2.*)
  8562. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8563. hardcode_direct=yes
  8564. hardcode_minus_L=yes
  8565. hardcode_shlibpath_var=no
  8566. ;;
  8567. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8568. freebsd* | dragonfly* | midnightbsd*)
  8569. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8570. hardcode_libdir_flag_spec='-R$libdir'
  8571. hardcode_direct=yes
  8572. hardcode_shlibpath_var=no
  8573. ;;
  8574. hpux9*)
  8575. if test yes = "$GCC"; then
  8576. 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'
  8577. else
  8578. 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'
  8579. fi
  8580. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8581. hardcode_libdir_separator=:
  8582. hardcode_direct=yes
  8583. # hardcode_minus_L: Not really in the search PATH,
  8584. # but as the default location of the library.
  8585. hardcode_minus_L=yes
  8586. export_dynamic_flag_spec='$wl-E'
  8587. ;;
  8588. hpux10*)
  8589. if test yes,no = "$GCC,$with_gnu_ld"; then
  8590. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8591. else
  8592. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8593. fi
  8594. if test no = "$with_gnu_ld"; then
  8595. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8596. hardcode_libdir_separator=:
  8597. hardcode_direct=yes
  8598. hardcode_direct_absolute=yes
  8599. export_dynamic_flag_spec='$wl-E'
  8600. # hardcode_minus_L: Not really in the search PATH,
  8601. # but as the default location of the library.
  8602. hardcode_minus_L=yes
  8603. fi
  8604. ;;
  8605. hpux11*)
  8606. if test yes,no = "$GCC,$with_gnu_ld"; then
  8607. case $host_cpu in
  8608. hppa*64*)
  8609. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8610. ;;
  8611. ia64*)
  8612. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8613. ;;
  8614. *)
  8615. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8616. ;;
  8617. esac
  8618. else
  8619. case $host_cpu in
  8620. hppa*64*)
  8621. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8622. ;;
  8623. ia64*)
  8624. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8625. ;;
  8626. *)
  8627. # Older versions of the 11.00 compiler do not understand -b yet
  8628. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8630. $as_echo_n "checking if $CC understands -b... " >&6; }
  8631. if ${lt_cv_prog_compiler__b+:} false; then :
  8632. $as_echo_n "(cached) " >&6
  8633. else
  8634. lt_cv_prog_compiler__b=no
  8635. save_LDFLAGS=$LDFLAGS
  8636. LDFLAGS="$LDFLAGS -b"
  8637. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8638. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8639. # The linker can only warn and ignore the option if not recognized
  8640. # So say no if there are warnings
  8641. if test -s conftest.err; then
  8642. # Append any errors to the config.log.
  8643. cat conftest.err 1>&5
  8644. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8645. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8646. if diff conftest.exp conftest.er2 >/dev/null; then
  8647. lt_cv_prog_compiler__b=yes
  8648. fi
  8649. else
  8650. lt_cv_prog_compiler__b=yes
  8651. fi
  8652. fi
  8653. $RM -r conftest*
  8654. LDFLAGS=$save_LDFLAGS
  8655. fi
  8656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8657. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8658. if test yes = "$lt_cv_prog_compiler__b"; then
  8659. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8660. else
  8661. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8662. fi
  8663. ;;
  8664. esac
  8665. fi
  8666. if test no = "$with_gnu_ld"; then
  8667. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8668. hardcode_libdir_separator=:
  8669. case $host_cpu in
  8670. hppa*64*|ia64*)
  8671. hardcode_direct=no
  8672. hardcode_shlibpath_var=no
  8673. ;;
  8674. *)
  8675. hardcode_direct=yes
  8676. hardcode_direct_absolute=yes
  8677. export_dynamic_flag_spec='$wl-E'
  8678. # hardcode_minus_L: Not really in the search PATH,
  8679. # but as the default location of the library.
  8680. hardcode_minus_L=yes
  8681. ;;
  8682. esac
  8683. fi
  8684. ;;
  8685. irix5* | irix6* | nonstopux*)
  8686. if test yes = "$GCC"; then
  8687. 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'
  8688. # Try to use the -exported_symbol ld option, if it does not
  8689. # work, assume that -exports_file does not work either and
  8690. # implicitly export all symbols.
  8691. # This should be the same for all languages, so no per-tag cache variable.
  8692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8693. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8694. if ${lt_cv_irix_exported_symbol+:} false; then :
  8695. $as_echo_n "(cached) " >&6
  8696. else
  8697. save_LDFLAGS=$LDFLAGS
  8698. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  8699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8700. /* end confdefs.h. */
  8701. int foo (void) { return 0; }
  8702. _ACEOF
  8703. if ac_fn_c_try_link "$LINENO"; then :
  8704. lt_cv_irix_exported_symbol=yes
  8705. else
  8706. lt_cv_irix_exported_symbol=no
  8707. fi
  8708. rm -f core conftest.err conftest.$ac_objext \
  8709. conftest$ac_exeext conftest.$ac_ext
  8710. LDFLAGS=$save_LDFLAGS
  8711. fi
  8712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8713. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8714. if test yes = "$lt_cv_irix_exported_symbol"; then
  8715. 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'
  8716. fi
  8717. else
  8718. 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'
  8719. 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'
  8720. fi
  8721. archive_cmds_need_lc='no'
  8722. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8723. hardcode_libdir_separator=:
  8724. inherit_rpath=yes
  8725. link_all_deplibs=yes
  8726. ;;
  8727. linux*)
  8728. case $cc_basename in
  8729. tcc*)
  8730. # Fabrice Bellard et al's Tiny C Compiler
  8731. ld_shlibs=yes
  8732. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8733. ;;
  8734. esac
  8735. ;;
  8736. netbsd*)
  8737. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8738. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8739. else
  8740. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8741. fi
  8742. hardcode_libdir_flag_spec='-R$libdir'
  8743. hardcode_direct=yes
  8744. hardcode_shlibpath_var=no
  8745. ;;
  8746. newsos6)
  8747. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8748. hardcode_direct=yes
  8749. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8750. hardcode_libdir_separator=:
  8751. hardcode_shlibpath_var=no
  8752. ;;
  8753. *nto* | *qnx*)
  8754. ;;
  8755. openbsd* | bitrig*)
  8756. if test -f /usr/libexec/ld.so; then
  8757. hardcode_direct=yes
  8758. hardcode_shlibpath_var=no
  8759. hardcode_direct_absolute=yes
  8760. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  8761. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8762. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  8763. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8764. export_dynamic_flag_spec='$wl-E'
  8765. else
  8766. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8767. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8768. fi
  8769. else
  8770. ld_shlibs=no
  8771. fi
  8772. ;;
  8773. os2*)
  8774. hardcode_libdir_flag_spec='-L$libdir'
  8775. hardcode_minus_L=yes
  8776. allow_undefined_flag=unsupported
  8777. shrext_cmds=.dll
  8778. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8779. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8780. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8781. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8782. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8783. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8784. emximp -o $lib $output_objdir/$libname.def'
  8785. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8786. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8787. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8788. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8789. prefix_cmds="$SED"~
  8790. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8791. prefix_cmds="$prefix_cmds -e 1d";
  8792. fi~
  8793. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8794. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8795. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8796. emximp -o $lib $output_objdir/$libname.def'
  8797. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8798. enable_shared_with_static_runtimes=yes
  8799. file_list_spec='@'
  8800. ;;
  8801. osf3*)
  8802. if test yes = "$GCC"; then
  8803. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8804. 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'
  8805. else
  8806. allow_undefined_flag=' -expect_unresolved \*'
  8807. 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'
  8808. fi
  8809. archive_cmds_need_lc='no'
  8810. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8811. hardcode_libdir_separator=:
  8812. ;;
  8813. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8814. if test yes = "$GCC"; then
  8815. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8816. 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'
  8817. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8818. else
  8819. allow_undefined_flag=' -expect_unresolved \*'
  8820. 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'
  8821. 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~
  8822. $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'
  8823. # Both c and cxx compiler support -rpath directly
  8824. hardcode_libdir_flag_spec='-rpath $libdir'
  8825. fi
  8826. archive_cmds_need_lc='no'
  8827. hardcode_libdir_separator=:
  8828. ;;
  8829. solaris*)
  8830. no_undefined_flag=' -z defs'
  8831. if test yes = "$GCC"; then
  8832. wlarc='$wl'
  8833. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8834. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8835. $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'
  8836. else
  8837. case `$CC -V 2>&1` in
  8838. *"Compilers 5.0"*)
  8839. wlarc=''
  8840. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8841. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8842. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8843. ;;
  8844. *)
  8845. wlarc='$wl'
  8846. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8847. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8848. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8849. ;;
  8850. esac
  8851. fi
  8852. hardcode_libdir_flag_spec='-R$libdir'
  8853. hardcode_shlibpath_var=no
  8854. case $host_os in
  8855. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8856. *)
  8857. # The compiler driver will combine and reorder linker options,
  8858. # but understands '-z linker_flag'. GCC discards it without '$wl',
  8859. # but is careful enough not to reorder.
  8860. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8861. if test yes = "$GCC"; then
  8862. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  8863. else
  8864. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8865. fi
  8866. ;;
  8867. esac
  8868. link_all_deplibs=yes
  8869. ;;
  8870. sunos4*)
  8871. if test sequent = "$host_vendor"; then
  8872. # Use $CC to link under sequent, because it throws in some extra .o
  8873. # files that make .init and .fini sections work.
  8874. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8875. else
  8876. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8877. fi
  8878. hardcode_libdir_flag_spec='-L$libdir'
  8879. hardcode_direct=yes
  8880. hardcode_minus_L=yes
  8881. hardcode_shlibpath_var=no
  8882. ;;
  8883. sysv4)
  8884. case $host_vendor in
  8885. sni)
  8886. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8887. hardcode_direct=yes # is this really true???
  8888. ;;
  8889. siemens)
  8890. ## LD is ld it makes a PLAMLIB
  8891. ## CC just makes a GrossModule.
  8892. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8893. reload_cmds='$CC -r -o $output$reload_objs'
  8894. hardcode_direct=no
  8895. ;;
  8896. motorola)
  8897. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8898. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8899. ;;
  8900. esac
  8901. runpath_var='LD_RUN_PATH'
  8902. hardcode_shlibpath_var=no
  8903. ;;
  8904. sysv4.3*)
  8905. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8906. hardcode_shlibpath_var=no
  8907. export_dynamic_flag_spec='-Bexport'
  8908. ;;
  8909. sysv4*MP*)
  8910. if test -d /usr/nec; then
  8911. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8912. hardcode_shlibpath_var=no
  8913. runpath_var=LD_RUN_PATH
  8914. hardcode_runpath_var=yes
  8915. ld_shlibs=yes
  8916. fi
  8917. ;;
  8918. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8919. no_undefined_flag='$wl-z,text'
  8920. archive_cmds_need_lc=no
  8921. hardcode_shlibpath_var=no
  8922. runpath_var='LD_RUN_PATH'
  8923. if test yes = "$GCC"; then
  8924. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8925. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8926. else
  8927. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8928. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8929. fi
  8930. ;;
  8931. sysv5* | sco3.2v5* | sco5v6*)
  8932. # Note: We CANNOT use -z defs as we might desire, because we do not
  8933. # link with -lc, and that would cause any symbols used from libc to
  8934. # always be unresolved, which means just about no library would
  8935. # ever link correctly. If we're not using GNU ld we use -z text
  8936. # though, which does catch some bad symbols but isn't as heavy-handed
  8937. # as -z defs.
  8938. no_undefined_flag='$wl-z,text'
  8939. allow_undefined_flag='$wl-z,nodefs'
  8940. archive_cmds_need_lc=no
  8941. hardcode_shlibpath_var=no
  8942. hardcode_libdir_flag_spec='$wl-R,$libdir'
  8943. hardcode_libdir_separator=':'
  8944. link_all_deplibs=yes
  8945. export_dynamic_flag_spec='$wl-Bexport'
  8946. runpath_var='LD_RUN_PATH'
  8947. if test yes = "$GCC"; then
  8948. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8949. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8950. else
  8951. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8952. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8953. fi
  8954. ;;
  8955. uts4*)
  8956. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8957. hardcode_libdir_flag_spec='-L$libdir'
  8958. hardcode_shlibpath_var=no
  8959. ;;
  8960. *)
  8961. ld_shlibs=no
  8962. ;;
  8963. esac
  8964. if test sni = "$host_vendor"; then
  8965. case $host in
  8966. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8967. export_dynamic_flag_spec='$wl-Blargedynsym'
  8968. ;;
  8969. esac
  8970. fi
  8971. fi
  8972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8973. $as_echo "$ld_shlibs" >&6; }
  8974. test no = "$ld_shlibs" && can_build_shared=no
  8975. with_gnu_ld=$with_gnu_ld
  8976. #
  8977. # Do we need to explicitly link libc?
  8978. #
  8979. case "x$archive_cmds_need_lc" in
  8980. x|xyes)
  8981. # Assume -lc should be added
  8982. archive_cmds_need_lc=yes
  8983. if test yes,yes = "$GCC,$enable_shared"; then
  8984. case $archive_cmds in
  8985. *'~'*)
  8986. # FIXME: we may have to deal with multi-command sequences.
  8987. ;;
  8988. '$CC '*)
  8989. # Test whether the compiler implicitly links with -lc since on some
  8990. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8991. # to ld, don't add -lc before -lgcc.
  8992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8993. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8994. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8995. $as_echo_n "(cached) " >&6
  8996. else
  8997. $RM conftest*
  8998. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8999. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9000. (eval $ac_compile) 2>&5
  9001. ac_status=$?
  9002. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9003. test $ac_status = 0; } 2>conftest.err; then
  9004. soname=conftest
  9005. lib=conftest
  9006. libobjs=conftest.$ac_objext
  9007. deplibs=
  9008. wl=$lt_prog_compiler_wl
  9009. pic_flag=$lt_prog_compiler_pic
  9010. compiler_flags=-v
  9011. linker_flags=-v
  9012. verstring=
  9013. output_objdir=.
  9014. libname=conftest
  9015. lt_save_allow_undefined_flag=$allow_undefined_flag
  9016. allow_undefined_flag=
  9017. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9018. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9019. ac_status=$?
  9020. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9021. test $ac_status = 0; }
  9022. then
  9023. lt_cv_archive_cmds_need_lc=no
  9024. else
  9025. lt_cv_archive_cmds_need_lc=yes
  9026. fi
  9027. allow_undefined_flag=$lt_save_allow_undefined_flag
  9028. else
  9029. cat conftest.err 1>&5
  9030. fi
  9031. $RM conftest*
  9032. fi
  9033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9034. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9035. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9036. ;;
  9037. esac
  9038. fi
  9039. ;;
  9040. esac
  9041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9042. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9043. if test yes = "$GCC"; then
  9044. case $host_os in
  9045. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9046. *) lt_awk_arg='/^libraries:/' ;;
  9047. esac
  9048. case $host_os in
  9049. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9050. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9051. esac
  9052. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9053. case $lt_search_path_spec in
  9054. *\;*)
  9055. # if the path contains ";" then we assume it to be the separator
  9056. # otherwise default to the standard path separator (i.e. ":") - it is
  9057. # assumed that no part of a normal pathname contains ";" but that should
  9058. # okay in the real world where ";" in dirpaths is itself problematic.
  9059. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9060. ;;
  9061. *)
  9062. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9063. ;;
  9064. esac
  9065. # Ok, now we have the path, separated by spaces, we can step through it
  9066. # and add multilib dir if necessary...
  9067. lt_tmp_lt_search_path_spec=
  9068. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9069. # ...but if some path component already ends with the multilib dir we assume
  9070. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9071. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9072. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9073. lt_multi_os_dir=
  9074. ;;
  9075. esac
  9076. for lt_sys_path in $lt_search_path_spec; do
  9077. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9078. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9079. elif test -n "$lt_multi_os_dir"; then
  9080. test -d "$lt_sys_path" && \
  9081. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9082. fi
  9083. done
  9084. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9085. BEGIN {RS = " "; FS = "/|\n";} {
  9086. lt_foo = "";
  9087. lt_count = 0;
  9088. for (lt_i = NF; lt_i > 0; lt_i--) {
  9089. if ($lt_i != "" && $lt_i != ".") {
  9090. if ($lt_i == "..") {
  9091. lt_count++;
  9092. } else {
  9093. if (lt_count == 0) {
  9094. lt_foo = "/" $lt_i lt_foo;
  9095. } else {
  9096. lt_count--;
  9097. }
  9098. }
  9099. }
  9100. }
  9101. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9102. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9103. }'`
  9104. # AWK program above erroneously prepends '/' to C:/dos/paths
  9105. # for these hosts.
  9106. case $host_os in
  9107. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9108. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9109. esac
  9110. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9111. else
  9112. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9113. fi
  9114. library_names_spec=
  9115. libname_spec='lib$name'
  9116. soname_spec=
  9117. shrext_cmds=.so
  9118. postinstall_cmds=
  9119. postuninstall_cmds=
  9120. finish_cmds=
  9121. finish_eval=
  9122. shlibpath_var=
  9123. shlibpath_overrides_runpath=unknown
  9124. version_type=none
  9125. dynamic_linker="$host_os ld.so"
  9126. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9127. need_lib_prefix=unknown
  9128. hardcode_into_libs=no
  9129. # when you set need_version to no, make sure it does not cause -set_version
  9130. # flags to be left without arguments
  9131. need_version=unknown
  9132. case $host_os in
  9133. aix3*)
  9134. version_type=linux # correct to gnu/linux during the next big refactor
  9135. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9136. shlibpath_var=LIBPATH
  9137. # AIX 3 has no versioning support, so we append a major version to the name.
  9138. soname_spec='$libname$release$shared_ext$major'
  9139. ;;
  9140. aix[4-9]*)
  9141. version_type=linux # correct to gnu/linux during the next big refactor
  9142. need_lib_prefix=no
  9143. need_version=no
  9144. hardcode_into_libs=yes
  9145. if test ia64 = "$host_cpu"; then
  9146. # AIX 5 supports IA64
  9147. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9148. shlibpath_var=LD_LIBRARY_PATH
  9149. else
  9150. # With GCC up to 2.95.x, collect2 would create an import file
  9151. # for dependence libraries. The import file would start with
  9152. # the line '#! .'. This would cause the generated library to
  9153. # depend on '.', always an invalid library. This was fixed in
  9154. # development snapshots of GCC prior to 3.0.
  9155. case $host_os in
  9156. aix4 | aix4.[01] | aix4.[01].*)
  9157. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9158. echo ' yes '
  9159. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9160. :
  9161. else
  9162. can_build_shared=no
  9163. fi
  9164. ;;
  9165. esac
  9166. # Using Import Files as archive members, it is possible to support
  9167. # filename-based versioning of shared library archives on AIX. While
  9168. # this would work for both with and without runtime linking, it will
  9169. # prevent static linking of such archives. So we do filename-based
  9170. # shared library versioning with .so extension only, which is used
  9171. # when both runtime linking and shared linking is enabled.
  9172. # Unfortunately, runtime linking may impact performance, so we do
  9173. # not want this to be the default eventually. Also, we use the
  9174. # versioned .so libs for executables only if there is the -brtl
  9175. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9176. # To allow for filename-based versioning support, we need to create
  9177. # libNAME.so.V as an archive file, containing:
  9178. # *) an Import File, referring to the versioned filename of the
  9179. # archive as well as the shared archive member, telling the
  9180. # bitwidth (32 or 64) of that shared object, and providing the
  9181. # list of exported symbols of that shared object, eventually
  9182. # decorated with the 'weak' keyword
  9183. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9184. # it being seen by the linker.
  9185. # At run time we better use the real file rather than another symlink,
  9186. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9187. case $with_aix_soname,$aix_use_runtimelinking in
  9188. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9189. # soname into executable. Probably we can add versioning support to
  9190. # collect2, so additional links can be useful in future.
  9191. aix,yes) # traditional libtool
  9192. dynamic_linker='AIX unversionable lib.so'
  9193. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9194. # instead of lib<name>.a to let people know that these are not
  9195. # typical AIX shared libraries.
  9196. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9197. ;;
  9198. aix,no) # traditional AIX only
  9199. dynamic_linker='AIX lib.a(lib.so.V)'
  9200. # We preserve .a as extension for shared libraries through AIX4.2
  9201. # and later when we are not doing run time linking.
  9202. library_names_spec='$libname$release.a $libname.a'
  9203. soname_spec='$libname$release$shared_ext$major'
  9204. ;;
  9205. svr4,*) # full svr4 only
  9206. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9207. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9208. # We do not specify a path in Import Files, so LIBPATH fires.
  9209. shlibpath_overrides_runpath=yes
  9210. ;;
  9211. *,yes) # both, prefer svr4
  9212. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9213. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9214. # unpreferred sharedlib libNAME.a needs extra handling
  9215. 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"'
  9216. 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"'
  9217. # We do not specify a path in Import Files, so LIBPATH fires.
  9218. shlibpath_overrides_runpath=yes
  9219. ;;
  9220. *,no) # both, prefer aix
  9221. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9222. library_names_spec='$libname$release.a $libname.a'
  9223. soname_spec='$libname$release$shared_ext$major'
  9224. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9225. 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)'
  9226. 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"'
  9227. ;;
  9228. esac
  9229. shlibpath_var=LIBPATH
  9230. fi
  9231. ;;
  9232. amigaos*)
  9233. case $host_cpu in
  9234. powerpc)
  9235. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9236. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9237. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9238. ;;
  9239. m68k)
  9240. library_names_spec='$libname.ixlibrary $libname.a'
  9241. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9242. 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'
  9243. ;;
  9244. esac
  9245. ;;
  9246. beos*)
  9247. library_names_spec='$libname$shared_ext'
  9248. dynamic_linker="$host_os ld.so"
  9249. shlibpath_var=LIBRARY_PATH
  9250. ;;
  9251. bsdi[45]*)
  9252. version_type=linux # correct to gnu/linux during the next big refactor
  9253. need_version=no
  9254. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9255. soname_spec='$libname$release$shared_ext$major'
  9256. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9257. shlibpath_var=LD_LIBRARY_PATH
  9258. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9259. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9260. # the default ld.so.conf also contains /usr/contrib/lib and
  9261. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9262. # libtool to hard-code these into programs
  9263. ;;
  9264. cygwin* | mingw* | pw32* | cegcc*)
  9265. version_type=windows
  9266. shrext_cmds=.dll
  9267. need_version=no
  9268. need_lib_prefix=no
  9269. case $GCC,$cc_basename in
  9270. yes,*)
  9271. # gcc
  9272. library_names_spec='$libname.dll.a'
  9273. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9274. postinstall_cmds='base_file=`basename \$file`~
  9275. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9276. dldir=$destdir/`dirname \$dlpath`~
  9277. test -d \$dldir || mkdir -p \$dldir~
  9278. $install_prog $dir/$dlname \$dldir/$dlname~
  9279. chmod a+x \$dldir/$dlname~
  9280. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9281. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9282. fi'
  9283. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9284. dlpath=$dir/\$dldll~
  9285. $RM \$dlpath'
  9286. shlibpath_overrides_runpath=yes
  9287. case $host_os in
  9288. cygwin*)
  9289. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9290. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9291. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  9292. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9293. ;;
  9294. mingw* | cegcc*)
  9295. # MinGW DLLs use traditional 'lib' prefix
  9296. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9297. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  9298. ;;
  9299. pw32*)
  9300. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9301. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9302. ;;
  9303. esac
  9304. dynamic_linker='Win32 ld.exe'
  9305. ;;
  9306. *,cl*)
  9307. # Native MSVC
  9308. libname_spec='$name'
  9309. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9310. library_names_spec='$libname.dll.lib'
  9311. case $build_os in
  9312. mingw*)
  9313. sys_lib_search_path_spec=
  9314. lt_save_ifs=$IFS
  9315. IFS=';'
  9316. for lt_path in $LIB
  9317. do
  9318. IFS=$lt_save_ifs
  9319. # Let DOS variable expansion print the short 8.3 style file name.
  9320. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9321. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9322. done
  9323. IFS=$lt_save_ifs
  9324. # Convert to MSYS style.
  9325. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9326. ;;
  9327. cygwin*)
  9328. # Convert to unix form, then to dos form, then back to unix form
  9329. # but this time dos style (no spaces!) so that the unix form looks
  9330. # like /cygdrive/c/PROGRA~1:/cygdr...
  9331. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9332. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9333. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9334. ;;
  9335. *)
  9336. sys_lib_search_path_spec=$LIB
  9337. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9338. # It is most probably a Windows format PATH.
  9339. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9340. else
  9341. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9342. fi
  9343. # FIXME: find the short name or the path components, as spaces are
  9344. # common. (e.g. "Program Files" -> "PROGRA~1")
  9345. ;;
  9346. esac
  9347. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9348. postinstall_cmds='base_file=`basename \$file`~
  9349. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9350. dldir=$destdir/`dirname \$dlpath`~
  9351. test -d \$dldir || mkdir -p \$dldir~
  9352. $install_prog $dir/$dlname \$dldir/$dlname'
  9353. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9354. dlpath=$dir/\$dldll~
  9355. $RM \$dlpath'
  9356. shlibpath_overrides_runpath=yes
  9357. dynamic_linker='Win32 link.exe'
  9358. ;;
  9359. *)
  9360. # Assume MSVC wrapper
  9361. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  9362. dynamic_linker='Win32 ld.exe'
  9363. ;;
  9364. esac
  9365. # FIXME: first we should search . and the directory the executable is in
  9366. shlibpath_var=PATH
  9367. ;;
  9368. darwin* | rhapsody*)
  9369. dynamic_linker="$host_os dyld"
  9370. version_type=darwin
  9371. need_lib_prefix=no
  9372. need_version=no
  9373. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  9374. soname_spec='$libname$release$major$shared_ext'
  9375. shlibpath_overrides_runpath=yes
  9376. shlibpath_var=DYLD_LIBRARY_PATH
  9377. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9378. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9379. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9380. ;;
  9381. dgux*)
  9382. version_type=linux # correct to gnu/linux during the next big refactor
  9383. need_lib_prefix=no
  9384. need_version=no
  9385. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9386. soname_spec='$libname$release$shared_ext$major'
  9387. shlibpath_var=LD_LIBRARY_PATH
  9388. ;;
  9389. freebsd* | dragonfly* | midnightbsd*)
  9390. # DragonFly does not have aout. When/if they implement a new
  9391. # versioning mechanism, adjust this.
  9392. if test -x /usr/bin/objformat; then
  9393. objformat=`/usr/bin/objformat`
  9394. else
  9395. case $host_os in
  9396. freebsd[23].*) objformat=aout ;;
  9397. *) objformat=elf ;;
  9398. esac
  9399. fi
  9400. version_type=freebsd-$objformat
  9401. case $version_type in
  9402. freebsd-elf*)
  9403. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9404. soname_spec='$libname$release$shared_ext$major'
  9405. need_version=no
  9406. need_lib_prefix=no
  9407. ;;
  9408. freebsd-*)
  9409. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9410. need_version=yes
  9411. ;;
  9412. esac
  9413. shlibpath_var=LD_LIBRARY_PATH
  9414. case $host_os in
  9415. freebsd2.*)
  9416. shlibpath_overrides_runpath=yes
  9417. ;;
  9418. freebsd3.[01]* | freebsdelf3.[01]*)
  9419. shlibpath_overrides_runpath=yes
  9420. hardcode_into_libs=yes
  9421. ;;
  9422. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9423. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9424. shlibpath_overrides_runpath=no
  9425. hardcode_into_libs=yes
  9426. ;;
  9427. *) # from 4.6 on, and DragonFly
  9428. shlibpath_overrides_runpath=yes
  9429. hardcode_into_libs=yes
  9430. ;;
  9431. esac
  9432. ;;
  9433. haiku*)
  9434. version_type=linux # correct to gnu/linux during the next big refactor
  9435. need_lib_prefix=no
  9436. need_version=no
  9437. dynamic_linker="$host_os runtime_loader"
  9438. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9439. soname_spec='$libname$release$shared_ext$major'
  9440. shlibpath_var=LIBRARY_PATH
  9441. shlibpath_overrides_runpath=no
  9442. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9443. hardcode_into_libs=yes
  9444. ;;
  9445. hpux9* | hpux10* | hpux11*)
  9446. # Give a soname corresponding to the major version so that dld.sl refuses to
  9447. # link against other versions.
  9448. version_type=sunos
  9449. need_lib_prefix=no
  9450. need_version=no
  9451. case $host_cpu in
  9452. ia64*)
  9453. shrext_cmds='.so'
  9454. hardcode_into_libs=yes
  9455. dynamic_linker="$host_os dld.so"
  9456. shlibpath_var=LD_LIBRARY_PATH
  9457. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9458. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9459. soname_spec='$libname$release$shared_ext$major'
  9460. if test 32 = "$HPUX_IA64_MODE"; then
  9461. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9462. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  9463. else
  9464. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9465. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  9466. fi
  9467. ;;
  9468. hppa*64*)
  9469. shrext_cmds='.sl'
  9470. hardcode_into_libs=yes
  9471. dynamic_linker="$host_os dld.sl"
  9472. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9473. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9474. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9475. soname_spec='$libname$release$shared_ext$major'
  9476. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9477. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9478. ;;
  9479. *)
  9480. shrext_cmds='.sl'
  9481. dynamic_linker="$host_os dld.sl"
  9482. shlibpath_var=SHLIB_PATH
  9483. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9484. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9485. soname_spec='$libname$release$shared_ext$major'
  9486. ;;
  9487. esac
  9488. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9489. postinstall_cmds='chmod 555 $lib'
  9490. # or fails outright, so override atomically:
  9491. install_override_mode=555
  9492. ;;
  9493. interix[3-9]*)
  9494. version_type=linux # correct to gnu/linux during the next big refactor
  9495. need_lib_prefix=no
  9496. need_version=no
  9497. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9498. soname_spec='$libname$release$shared_ext$major'
  9499. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9500. shlibpath_var=LD_LIBRARY_PATH
  9501. shlibpath_overrides_runpath=no
  9502. hardcode_into_libs=yes
  9503. ;;
  9504. irix5* | irix6* | nonstopux*)
  9505. case $host_os in
  9506. nonstopux*) version_type=nonstopux ;;
  9507. *)
  9508. if test yes = "$lt_cv_prog_gnu_ld"; then
  9509. version_type=linux # correct to gnu/linux during the next big refactor
  9510. else
  9511. version_type=irix
  9512. fi ;;
  9513. esac
  9514. need_lib_prefix=no
  9515. need_version=no
  9516. soname_spec='$libname$release$shared_ext$major'
  9517. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  9518. case $host_os in
  9519. irix5* | nonstopux*)
  9520. libsuff= shlibsuff=
  9521. ;;
  9522. *)
  9523. case $LD in # libtool.m4 will add one of these switches to LD
  9524. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9525. libsuff= shlibsuff= libmagic=32-bit;;
  9526. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9527. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9528. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9529. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9530. *) libsuff= shlibsuff= libmagic=never-match;;
  9531. esac
  9532. ;;
  9533. esac
  9534. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9535. shlibpath_overrides_runpath=no
  9536. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  9537. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  9538. hardcode_into_libs=yes
  9539. ;;
  9540. # No shared lib support for Linux oldld, aout, or coff.
  9541. linux*oldld* | linux*aout* | linux*coff*)
  9542. dynamic_linker=no
  9543. ;;
  9544. linux*android*)
  9545. version_type=none # Android doesn't support versioned libraries.
  9546. need_lib_prefix=no
  9547. need_version=no
  9548. library_names_spec='$libname$release$shared_ext'
  9549. soname_spec='$libname$release$shared_ext'
  9550. finish_cmds=
  9551. shlibpath_var=LD_LIBRARY_PATH
  9552. shlibpath_overrides_runpath=yes
  9553. # This implies no fast_install, which is unacceptable.
  9554. # Some rework will be needed to allow for fast_install
  9555. # before this can be enabled.
  9556. hardcode_into_libs=yes
  9557. dynamic_linker='Android linker'
  9558. # Don't embed -rpath directories since the linker doesn't support them.
  9559. hardcode_libdir_flag_spec='-L$libdir'
  9560. ;;
  9561. # This must be glibc/ELF.
  9562. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9563. version_type=linux # correct to gnu/linux during the next big refactor
  9564. need_lib_prefix=no
  9565. need_version=no
  9566. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9567. soname_spec='$libname$release$shared_ext$major'
  9568. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9569. shlibpath_var=LD_LIBRARY_PATH
  9570. shlibpath_overrides_runpath=no
  9571. # Some binutils ld are patched to set DT_RUNPATH
  9572. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9573. $as_echo_n "(cached) " >&6
  9574. else
  9575. lt_cv_shlibpath_overrides_runpath=no
  9576. save_LDFLAGS=$LDFLAGS
  9577. save_libdir=$libdir
  9578. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9579. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9581. /* end confdefs.h. */
  9582. int
  9583. main ()
  9584. {
  9585. ;
  9586. return 0;
  9587. }
  9588. _ACEOF
  9589. if ac_fn_c_try_link "$LINENO"; then :
  9590. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9591. lt_cv_shlibpath_overrides_runpath=yes
  9592. fi
  9593. fi
  9594. rm -f core conftest.err conftest.$ac_objext \
  9595. conftest$ac_exeext conftest.$ac_ext
  9596. LDFLAGS=$save_LDFLAGS
  9597. libdir=$save_libdir
  9598. fi
  9599. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9600. # This implies no fast_install, which is unacceptable.
  9601. # Some rework will be needed to allow for fast_install
  9602. # before this can be enabled.
  9603. hardcode_into_libs=yes
  9604. # Add ABI-specific directories to the system library path.
  9605. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  9606. # Ideally, we could use ldconfig to report *all* directores which are
  9607. # searched for libraries, however this is still not possible. Aside from not
  9608. # being certain /sbin/ldconfig is available, command
  9609. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  9610. # even though it is searched at run-time. Try to do the best guess by
  9611. # appending ld.so.conf contents (and includes) to the search path.
  9612. if test -f /etc/ld.so.conf; then
  9613. 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' ' '`
  9614. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  9615. fi
  9616. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9617. # powerpc, because MkLinux only supported shared libraries with the
  9618. # GNU dynamic linker. Since this was broken with cross compilers,
  9619. # most powerpc-linux boxes support dynamic linking these days and
  9620. # people can always --disable-shared, the test was removed, and we
  9621. # assume the GNU/Linux dynamic linker is in use.
  9622. dynamic_linker='GNU/Linux ld.so'
  9623. ;;
  9624. netbsd*)
  9625. version_type=sunos
  9626. need_lib_prefix=no
  9627. need_version=no
  9628. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9629. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9630. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9631. dynamic_linker='NetBSD (a.out) ld.so'
  9632. else
  9633. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9634. soname_spec='$libname$release$shared_ext$major'
  9635. dynamic_linker='NetBSD ld.elf_so'
  9636. fi
  9637. shlibpath_var=LD_LIBRARY_PATH
  9638. shlibpath_overrides_runpath=yes
  9639. hardcode_into_libs=yes
  9640. ;;
  9641. newsos6)
  9642. version_type=linux # correct to gnu/linux during the next big refactor
  9643. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9644. shlibpath_var=LD_LIBRARY_PATH
  9645. shlibpath_overrides_runpath=yes
  9646. ;;
  9647. *nto* | *qnx*)
  9648. version_type=qnx
  9649. need_lib_prefix=no
  9650. need_version=no
  9651. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9652. soname_spec='$libname$release$shared_ext$major'
  9653. shlibpath_var=LD_LIBRARY_PATH
  9654. shlibpath_overrides_runpath=no
  9655. hardcode_into_libs=yes
  9656. dynamic_linker='ldqnx.so'
  9657. ;;
  9658. openbsd* | bitrig*)
  9659. version_type=sunos
  9660. sys_lib_dlsearch_path_spec=/usr/lib
  9661. need_lib_prefix=no
  9662. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9663. need_version=no
  9664. else
  9665. need_version=yes
  9666. fi
  9667. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9668. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9669. shlibpath_var=LD_LIBRARY_PATH
  9670. shlibpath_overrides_runpath=yes
  9671. ;;
  9672. os2*)
  9673. libname_spec='$name'
  9674. shrext_cmds=.dll
  9675. need_lib_prefix=no
  9676. # OS/2 can only load a DLL with a base name of 8 characters or less.
  9677. # SDL customization: removed versioning support.
  9678. # version_type=windows
  9679. # need_version=no
  9680. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  9681. # v=$($ECHO $release$versuffix | tr -d .-);
  9682. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  9683. # $ECHO $n$v`$shared_ext'
  9684. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  9685. library_names_spec='${libname}_dll.$libext'
  9686. dynamic_linker='OS/2 ld.exe'
  9687. shlibpath_var=BEGINLIBPATH
  9688. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9689. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9690. postinstall_cmds='base_file=`basename \$file`~
  9691. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  9692. dldir=$destdir/`dirname \$dlpath`~
  9693. test -d \$dldir || mkdir -p \$dldir~
  9694. $install_prog $dir/$dlname \$dldir/$dlname~
  9695. chmod a+x \$dldir/$dlname~
  9696. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9697. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9698. fi'
  9699. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  9700. dlpath=$dir/\$dldll~
  9701. $RM \$dlpath'
  9702. ;;
  9703. osf3* | osf4* | osf5*)
  9704. version_type=osf
  9705. need_lib_prefix=no
  9706. need_version=no
  9707. soname_spec='$libname$release$shared_ext$major'
  9708. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9709. shlibpath_var=LD_LIBRARY_PATH
  9710. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9711. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9712. ;;
  9713. rdos*)
  9714. dynamic_linker=no
  9715. ;;
  9716. solaris*)
  9717. version_type=linux # correct to gnu/linux during the next big refactor
  9718. need_lib_prefix=no
  9719. need_version=no
  9720. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9721. soname_spec='$libname$release$shared_ext$major'
  9722. shlibpath_var=LD_LIBRARY_PATH
  9723. shlibpath_overrides_runpath=yes
  9724. hardcode_into_libs=yes
  9725. # ldd complains unless libraries are executable
  9726. postinstall_cmds='chmod +x $lib'
  9727. ;;
  9728. sunos4*)
  9729. version_type=sunos
  9730. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9731. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9732. shlibpath_var=LD_LIBRARY_PATH
  9733. shlibpath_overrides_runpath=yes
  9734. if test yes = "$with_gnu_ld"; then
  9735. need_lib_prefix=no
  9736. fi
  9737. need_version=yes
  9738. ;;
  9739. sysv4 | sysv4.3*)
  9740. version_type=linux # correct to gnu/linux during the next big refactor
  9741. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9742. soname_spec='$libname$release$shared_ext$major'
  9743. shlibpath_var=LD_LIBRARY_PATH
  9744. case $host_vendor in
  9745. sni)
  9746. shlibpath_overrides_runpath=no
  9747. need_lib_prefix=no
  9748. runpath_var=LD_RUN_PATH
  9749. ;;
  9750. siemens)
  9751. need_lib_prefix=no
  9752. ;;
  9753. motorola)
  9754. need_lib_prefix=no
  9755. need_version=no
  9756. shlibpath_overrides_runpath=no
  9757. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9758. ;;
  9759. esac
  9760. ;;
  9761. sysv4*MP*)
  9762. if test -d /usr/nec; then
  9763. version_type=linux # correct to gnu/linux during the next big refactor
  9764. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  9765. soname_spec='$libname$shared_ext.$major'
  9766. shlibpath_var=LD_LIBRARY_PATH
  9767. fi
  9768. ;;
  9769. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9770. version_type=sco
  9771. need_lib_prefix=no
  9772. need_version=no
  9773. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  9774. soname_spec='$libname$release$shared_ext$major'
  9775. shlibpath_var=LD_LIBRARY_PATH
  9776. shlibpath_overrides_runpath=yes
  9777. hardcode_into_libs=yes
  9778. if test yes = "$with_gnu_ld"; then
  9779. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9780. else
  9781. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9782. case $host_os in
  9783. sco3.2v5*)
  9784. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9785. ;;
  9786. esac
  9787. fi
  9788. sys_lib_dlsearch_path_spec='/usr/lib'
  9789. ;;
  9790. tpf*)
  9791. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9792. version_type=linux # correct to gnu/linux during the next big refactor
  9793. need_lib_prefix=no
  9794. need_version=no
  9795. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9796. shlibpath_var=LD_LIBRARY_PATH
  9797. shlibpath_overrides_runpath=no
  9798. hardcode_into_libs=yes
  9799. ;;
  9800. uts4*)
  9801. version_type=linux # correct to gnu/linux during the next big refactor
  9802. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9803. soname_spec='$libname$release$shared_ext$major'
  9804. shlibpath_var=LD_LIBRARY_PATH
  9805. ;;
  9806. *)
  9807. dynamic_linker=no
  9808. ;;
  9809. esac
  9810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9811. $as_echo "$dynamic_linker" >&6; }
  9812. test no = "$dynamic_linker" && can_build_shared=no
  9813. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9814. if test yes = "$GCC"; then
  9815. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9816. fi
  9817. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  9818. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  9819. fi
  9820. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  9821. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  9822. fi
  9823. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  9824. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  9825. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  9826. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  9827. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  9828. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  9829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9830. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9831. hardcode_action=
  9832. if test -n "$hardcode_libdir_flag_spec" ||
  9833. test -n "$runpath_var" ||
  9834. test yes = "$hardcode_automatic"; then
  9835. # We can hardcode non-existent directories.
  9836. if test no != "$hardcode_direct" &&
  9837. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9838. # have to relink, otherwise we might link with an installed library
  9839. # when we should be linking with a yet-to-be-installed one
  9840. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  9841. test no != "$hardcode_minus_L"; then
  9842. # Linking always hardcodes the temporary library directory.
  9843. hardcode_action=relink
  9844. else
  9845. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9846. hardcode_action=immediate
  9847. fi
  9848. else
  9849. # We cannot hardcode anything, or else we can only hardcode existing
  9850. # directories.
  9851. hardcode_action=unsupported
  9852. fi
  9853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9854. $as_echo "$hardcode_action" >&6; }
  9855. if test relink = "$hardcode_action" ||
  9856. test yes = "$inherit_rpath"; then
  9857. # Fast installation is not supported
  9858. enable_fast_install=no
  9859. elif test yes = "$shlibpath_overrides_runpath" ||
  9860. test no = "$enable_shared"; then
  9861. # Fast installation is not necessary
  9862. enable_fast_install=needless
  9863. fi
  9864. if test yes != "$enable_dlopen"; then
  9865. enable_dlopen=unknown
  9866. enable_dlopen_self=unknown
  9867. enable_dlopen_self_static=unknown
  9868. else
  9869. lt_cv_dlopen=no
  9870. lt_cv_dlopen_libs=
  9871. case $host_os in
  9872. beos*)
  9873. lt_cv_dlopen=load_add_on
  9874. lt_cv_dlopen_libs=
  9875. lt_cv_dlopen_self=yes
  9876. ;;
  9877. mingw* | pw32* | cegcc*)
  9878. lt_cv_dlopen=LoadLibrary
  9879. lt_cv_dlopen_libs=
  9880. ;;
  9881. cygwin*)
  9882. lt_cv_dlopen=dlopen
  9883. lt_cv_dlopen_libs=
  9884. ;;
  9885. darwin*)
  9886. # if libdl is installed we need to link against it
  9887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9888. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9889. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9890. $as_echo_n "(cached) " >&6
  9891. else
  9892. ac_check_lib_save_LIBS=$LIBS
  9893. LIBS="-ldl $LIBS"
  9894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9895. /* end confdefs.h. */
  9896. /* Override any GCC internal prototype to avoid an error.
  9897. Use char because int might match the return type of a GCC
  9898. builtin and then its argument prototype would still apply. */
  9899. #ifdef __cplusplus
  9900. extern "C"
  9901. #endif
  9902. char dlopen ();
  9903. int
  9904. main ()
  9905. {
  9906. return dlopen ();
  9907. ;
  9908. return 0;
  9909. }
  9910. _ACEOF
  9911. if ac_fn_c_try_link "$LINENO"; then :
  9912. ac_cv_lib_dl_dlopen=yes
  9913. else
  9914. ac_cv_lib_dl_dlopen=no
  9915. fi
  9916. rm -f core conftest.err conftest.$ac_objext \
  9917. conftest$ac_exeext conftest.$ac_ext
  9918. LIBS=$ac_check_lib_save_LIBS
  9919. fi
  9920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9921. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9922. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9923. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  9924. else
  9925. lt_cv_dlopen=dyld
  9926. lt_cv_dlopen_libs=
  9927. lt_cv_dlopen_self=yes
  9928. fi
  9929. ;;
  9930. tpf*)
  9931. # Don't try to run any link tests for TPF. We know it's impossible
  9932. # because TPF is a cross-compiler, and we know how we open DSOs.
  9933. lt_cv_dlopen=dlopen
  9934. lt_cv_dlopen_libs=
  9935. lt_cv_dlopen_self=no
  9936. ;;
  9937. *)
  9938. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9939. if test "x$ac_cv_func_shl_load" = xyes; then :
  9940. lt_cv_dlopen=shl_load
  9941. else
  9942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9943. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9944. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9945. $as_echo_n "(cached) " >&6
  9946. else
  9947. ac_check_lib_save_LIBS=$LIBS
  9948. LIBS="-ldld $LIBS"
  9949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9950. /* end confdefs.h. */
  9951. /* Override any GCC internal prototype to avoid an error.
  9952. Use char because int might match the return type of a GCC
  9953. builtin and then its argument prototype would still apply. */
  9954. #ifdef __cplusplus
  9955. extern "C"
  9956. #endif
  9957. char shl_load ();
  9958. int
  9959. main ()
  9960. {
  9961. return shl_load ();
  9962. ;
  9963. return 0;
  9964. }
  9965. _ACEOF
  9966. if ac_fn_c_try_link "$LINENO"; then :
  9967. ac_cv_lib_dld_shl_load=yes
  9968. else
  9969. ac_cv_lib_dld_shl_load=no
  9970. fi
  9971. rm -f core conftest.err conftest.$ac_objext \
  9972. conftest$ac_exeext conftest.$ac_ext
  9973. LIBS=$ac_check_lib_save_LIBS
  9974. fi
  9975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9976. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9977. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9978. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  9979. else
  9980. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9981. if test "x$ac_cv_func_dlopen" = xyes; then :
  9982. lt_cv_dlopen=dlopen
  9983. else
  9984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9985. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9986. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9987. $as_echo_n "(cached) " >&6
  9988. else
  9989. ac_check_lib_save_LIBS=$LIBS
  9990. LIBS="-ldl $LIBS"
  9991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9992. /* end confdefs.h. */
  9993. /* Override any GCC internal prototype to avoid an error.
  9994. Use char because int might match the return type of a GCC
  9995. builtin and then its argument prototype would still apply. */
  9996. #ifdef __cplusplus
  9997. extern "C"
  9998. #endif
  9999. char dlopen ();
  10000. int
  10001. main ()
  10002. {
  10003. return dlopen ();
  10004. ;
  10005. return 0;
  10006. }
  10007. _ACEOF
  10008. if ac_fn_c_try_link "$LINENO"; then :
  10009. ac_cv_lib_dl_dlopen=yes
  10010. else
  10011. ac_cv_lib_dl_dlopen=no
  10012. fi
  10013. rm -f core conftest.err conftest.$ac_objext \
  10014. conftest$ac_exeext conftest.$ac_ext
  10015. LIBS=$ac_check_lib_save_LIBS
  10016. fi
  10017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10018. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10019. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10020. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10021. else
  10022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10023. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10024. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10025. $as_echo_n "(cached) " >&6
  10026. else
  10027. ac_check_lib_save_LIBS=$LIBS
  10028. LIBS="-lsvld $LIBS"
  10029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10030. /* end confdefs.h. */
  10031. /* Override any GCC internal prototype to avoid an error.
  10032. Use char because int might match the return type of a GCC
  10033. builtin and then its argument prototype would still apply. */
  10034. #ifdef __cplusplus
  10035. extern "C"
  10036. #endif
  10037. char dlopen ();
  10038. int
  10039. main ()
  10040. {
  10041. return dlopen ();
  10042. ;
  10043. return 0;
  10044. }
  10045. _ACEOF
  10046. if ac_fn_c_try_link "$LINENO"; then :
  10047. ac_cv_lib_svld_dlopen=yes
  10048. else
  10049. ac_cv_lib_svld_dlopen=no
  10050. fi
  10051. rm -f core conftest.err conftest.$ac_objext \
  10052. conftest$ac_exeext conftest.$ac_ext
  10053. LIBS=$ac_check_lib_save_LIBS
  10054. fi
  10055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10056. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10057. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10058. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10059. else
  10060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10061. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10062. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10063. $as_echo_n "(cached) " >&6
  10064. else
  10065. ac_check_lib_save_LIBS=$LIBS
  10066. LIBS="-ldld $LIBS"
  10067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10068. /* end confdefs.h. */
  10069. /* Override any GCC internal prototype to avoid an error.
  10070. Use char because int might match the return type of a GCC
  10071. builtin and then its argument prototype would still apply. */
  10072. #ifdef __cplusplus
  10073. extern "C"
  10074. #endif
  10075. char dld_link ();
  10076. int
  10077. main ()
  10078. {
  10079. return dld_link ();
  10080. ;
  10081. return 0;
  10082. }
  10083. _ACEOF
  10084. if ac_fn_c_try_link "$LINENO"; then :
  10085. ac_cv_lib_dld_dld_link=yes
  10086. else
  10087. ac_cv_lib_dld_dld_link=no
  10088. fi
  10089. rm -f core conftest.err conftest.$ac_objext \
  10090. conftest$ac_exeext conftest.$ac_ext
  10091. LIBS=$ac_check_lib_save_LIBS
  10092. fi
  10093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10094. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10095. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10096. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10097. fi
  10098. fi
  10099. fi
  10100. fi
  10101. fi
  10102. fi
  10103. ;;
  10104. esac
  10105. if test no = "$lt_cv_dlopen"; then
  10106. enable_dlopen=no
  10107. else
  10108. enable_dlopen=yes
  10109. fi
  10110. case $lt_cv_dlopen in
  10111. dlopen)
  10112. save_CPPFLAGS=$CPPFLAGS
  10113. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10114. save_LDFLAGS=$LDFLAGS
  10115. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10116. save_LIBS=$LIBS
  10117. LIBS="$lt_cv_dlopen_libs $LIBS"
  10118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10119. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10120. if ${lt_cv_dlopen_self+:} false; then :
  10121. $as_echo_n "(cached) " >&6
  10122. else
  10123. if test yes = "$cross_compiling"; then :
  10124. lt_cv_dlopen_self=cross
  10125. else
  10126. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10127. lt_status=$lt_dlunknown
  10128. cat > conftest.$ac_ext <<_LT_EOF
  10129. #line $LINENO "configure"
  10130. #include "confdefs.h"
  10131. #if HAVE_DLFCN_H
  10132. #include <dlfcn.h>
  10133. #endif
  10134. #include <stdio.h>
  10135. #ifdef RTLD_GLOBAL
  10136. # define LT_DLGLOBAL RTLD_GLOBAL
  10137. #else
  10138. # ifdef DL_GLOBAL
  10139. # define LT_DLGLOBAL DL_GLOBAL
  10140. # else
  10141. # define LT_DLGLOBAL 0
  10142. # endif
  10143. #endif
  10144. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10145. find out it does not work in some platform. */
  10146. #ifndef LT_DLLAZY_OR_NOW
  10147. # ifdef RTLD_LAZY
  10148. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10149. # else
  10150. # ifdef DL_LAZY
  10151. # define LT_DLLAZY_OR_NOW DL_LAZY
  10152. # else
  10153. # ifdef RTLD_NOW
  10154. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10155. # else
  10156. # ifdef DL_NOW
  10157. # define LT_DLLAZY_OR_NOW DL_NOW
  10158. # else
  10159. # define LT_DLLAZY_OR_NOW 0
  10160. # endif
  10161. # endif
  10162. # endif
  10163. # endif
  10164. #endif
  10165. /* When -fvisibility=hidden is used, assume the code has been annotated
  10166. correspondingly for the symbols needed. */
  10167. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10168. int fnord () __attribute__((visibility("default")));
  10169. #endif
  10170. int fnord () { return 42; }
  10171. int main ()
  10172. {
  10173. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10174. int status = $lt_dlunknown;
  10175. if (self)
  10176. {
  10177. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10178. else
  10179. {
  10180. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10181. else puts (dlerror ());
  10182. }
  10183. /* dlclose (self); */
  10184. }
  10185. else
  10186. puts (dlerror ());
  10187. return status;
  10188. }
  10189. _LT_EOF
  10190. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10191. (eval $ac_link) 2>&5
  10192. ac_status=$?
  10193. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10194. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10195. (./conftest; exit; ) >&5 2>/dev/null
  10196. lt_status=$?
  10197. case x$lt_status in
  10198. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10199. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10200. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10201. esac
  10202. else :
  10203. # compilation failed
  10204. lt_cv_dlopen_self=no
  10205. fi
  10206. fi
  10207. rm -fr conftest*
  10208. fi
  10209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10210. $as_echo "$lt_cv_dlopen_self" >&6; }
  10211. if test yes = "$lt_cv_dlopen_self"; then
  10212. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10214. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10215. if ${lt_cv_dlopen_self_static+:} false; then :
  10216. $as_echo_n "(cached) " >&6
  10217. else
  10218. if test yes = "$cross_compiling"; then :
  10219. lt_cv_dlopen_self_static=cross
  10220. else
  10221. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10222. lt_status=$lt_dlunknown
  10223. cat > conftest.$ac_ext <<_LT_EOF
  10224. #line $LINENO "configure"
  10225. #include "confdefs.h"
  10226. #if HAVE_DLFCN_H
  10227. #include <dlfcn.h>
  10228. #endif
  10229. #include <stdio.h>
  10230. #ifdef RTLD_GLOBAL
  10231. # define LT_DLGLOBAL RTLD_GLOBAL
  10232. #else
  10233. # ifdef DL_GLOBAL
  10234. # define LT_DLGLOBAL DL_GLOBAL
  10235. # else
  10236. # define LT_DLGLOBAL 0
  10237. # endif
  10238. #endif
  10239. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10240. find out it does not work in some platform. */
  10241. #ifndef LT_DLLAZY_OR_NOW
  10242. # ifdef RTLD_LAZY
  10243. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10244. # else
  10245. # ifdef DL_LAZY
  10246. # define LT_DLLAZY_OR_NOW DL_LAZY
  10247. # else
  10248. # ifdef RTLD_NOW
  10249. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10250. # else
  10251. # ifdef DL_NOW
  10252. # define LT_DLLAZY_OR_NOW DL_NOW
  10253. # else
  10254. # define LT_DLLAZY_OR_NOW 0
  10255. # endif
  10256. # endif
  10257. # endif
  10258. # endif
  10259. #endif
  10260. /* When -fvisibility=hidden is used, assume the code has been annotated
  10261. correspondingly for the symbols needed. */
  10262. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10263. int fnord () __attribute__((visibility("default")));
  10264. #endif
  10265. int fnord () { return 42; }
  10266. int main ()
  10267. {
  10268. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10269. int status = $lt_dlunknown;
  10270. if (self)
  10271. {
  10272. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10273. else
  10274. {
  10275. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10276. else puts (dlerror ());
  10277. }
  10278. /* dlclose (self); */
  10279. }
  10280. else
  10281. puts (dlerror ());
  10282. return status;
  10283. }
  10284. _LT_EOF
  10285. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10286. (eval $ac_link) 2>&5
  10287. ac_status=$?
  10288. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10289. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10290. (./conftest; exit; ) >&5 2>/dev/null
  10291. lt_status=$?
  10292. case x$lt_status in
  10293. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10294. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10295. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10296. esac
  10297. else :
  10298. # compilation failed
  10299. lt_cv_dlopen_self_static=no
  10300. fi
  10301. fi
  10302. rm -fr conftest*
  10303. fi
  10304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10305. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10306. fi
  10307. CPPFLAGS=$save_CPPFLAGS
  10308. LDFLAGS=$save_LDFLAGS
  10309. LIBS=$save_LIBS
  10310. ;;
  10311. esac
  10312. case $lt_cv_dlopen_self in
  10313. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10314. *) enable_dlopen_self=unknown ;;
  10315. esac
  10316. case $lt_cv_dlopen_self_static in
  10317. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10318. *) enable_dlopen_self_static=unknown ;;
  10319. esac
  10320. fi
  10321. striplib=
  10322. old_striplib=
  10323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10324. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10325. if test -z "$STRIP"; then
  10326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10327. $as_echo "no" >&6; }
  10328. else
  10329. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10330. old_striplib="$STRIP --strip-debug"
  10331. striplib="$STRIP --strip-unneeded"
  10332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10333. $as_echo "yes" >&6; }
  10334. else
  10335. case $host_os in
  10336. darwin*)
  10337. # FIXME - insert some real tests, host_os isn't really good enough
  10338. striplib="$STRIP -x"
  10339. old_striplib="$STRIP -S"
  10340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10341. $as_echo "yes" >&6; }
  10342. ;;
  10343. freebsd*)
  10344. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  10345. old_striplib="$STRIP --strip-debug"
  10346. striplib="$STRIP --strip-unneeded"
  10347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10348. $as_echo "yes" >&6; }
  10349. else
  10350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10351. $as_echo "no" >&6; }
  10352. fi
  10353. ;;
  10354. *)
  10355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10356. $as_echo "no" >&6; }
  10357. ;;
  10358. esac
  10359. fi
  10360. fi
  10361. # Report what library types will actually be built
  10362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10363. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10365. $as_echo "$can_build_shared" >&6; }
  10366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10367. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10368. test no = "$can_build_shared" && enable_shared=no
  10369. # On AIX, shared libraries and static libraries use the same namespace, and
  10370. # are all built from PIC.
  10371. case $host_os in
  10372. aix3*)
  10373. test yes = "$enable_shared" && enable_static=no
  10374. if test -n "$RANLIB"; then
  10375. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10376. postinstall_cmds='$RANLIB $lib'
  10377. fi
  10378. ;;
  10379. aix[4-9]*)
  10380. if test ia64 != "$host_cpu"; then
  10381. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  10382. yes,aix,yes) ;; # shared object as lib.so file only
  10383. yes,svr4,*) ;; # shared object as lib.so archive member only
  10384. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  10385. esac
  10386. fi
  10387. ;;
  10388. esac
  10389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10390. $as_echo "$enable_shared" >&6; }
  10391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10392. $as_echo_n "checking whether to build static libraries... " >&6; }
  10393. # Make sure either enable_shared or enable_static is yes.
  10394. test yes = "$enable_shared" || enable_static=yes
  10395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10396. $as_echo "$enable_static" >&6; }
  10397. fi
  10398. ac_ext=c
  10399. ac_cpp='$CPP $CPPFLAGS'
  10400. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10401. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10402. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10403. CC=$lt_save_CC
  10404. ac_config_commands="$ac_config_commands libtool"
  10405. # Only expand once:
  10406. if test -n "$ac_tool_prefix"; then
  10407. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  10408. set dummy ${ac_tool_prefix}windres; ac_word=$2
  10409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10410. $as_echo_n "checking for $ac_word... " >&6; }
  10411. if ${ac_cv_prog_RC+:} false; then :
  10412. $as_echo_n "(cached) " >&6
  10413. else
  10414. if test -n "$RC"; then
  10415. ac_cv_prog_RC="$RC" # Let the user override the test.
  10416. else
  10417. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10418. for as_dir in $PATH
  10419. do
  10420. IFS=$as_save_IFS
  10421. test -z "$as_dir" && as_dir=.
  10422. for ac_exec_ext in '' $ac_executable_extensions; do
  10423. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10424. ac_cv_prog_RC="${ac_tool_prefix}windres"
  10425. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10426. break 2
  10427. fi
  10428. done
  10429. done
  10430. IFS=$as_save_IFS
  10431. fi
  10432. fi
  10433. RC=$ac_cv_prog_RC
  10434. if test -n "$RC"; then
  10435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  10436. $as_echo "$RC" >&6; }
  10437. else
  10438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10439. $as_echo "no" >&6; }
  10440. fi
  10441. fi
  10442. if test -z "$ac_cv_prog_RC"; then
  10443. ac_ct_RC=$RC
  10444. # Extract the first word of "windres", so it can be a program name with args.
  10445. set dummy windres; ac_word=$2
  10446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10447. $as_echo_n "checking for $ac_word... " >&6; }
  10448. if ${ac_cv_prog_ac_ct_RC+:} false; then :
  10449. $as_echo_n "(cached) " >&6
  10450. else
  10451. if test -n "$ac_ct_RC"; then
  10452. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  10453. else
  10454. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10455. for as_dir in $PATH
  10456. do
  10457. IFS=$as_save_IFS
  10458. test -z "$as_dir" && as_dir=.
  10459. for ac_exec_ext in '' $ac_executable_extensions; do
  10460. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10461. ac_cv_prog_ac_ct_RC="windres"
  10462. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10463. break 2
  10464. fi
  10465. done
  10466. done
  10467. IFS=$as_save_IFS
  10468. fi
  10469. fi
  10470. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  10471. if test -n "$ac_ct_RC"; then
  10472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  10473. $as_echo "$ac_ct_RC" >&6; }
  10474. else
  10475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10476. $as_echo "no" >&6; }
  10477. fi
  10478. if test "x$ac_ct_RC" = x; then
  10479. RC=""
  10480. else
  10481. case $cross_compiling:$ac_tool_warned in
  10482. yes:)
  10483. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10484. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10485. ac_tool_warned=yes ;;
  10486. esac
  10487. RC=$ac_ct_RC
  10488. fi
  10489. else
  10490. RC="$ac_cv_prog_RC"
  10491. fi
  10492. # Source file extension for RC test sources.
  10493. ac_ext=rc
  10494. # Object file extension for compiled RC test sources.
  10495. objext=o
  10496. objext_RC=$objext
  10497. # Code to be used in simple compile tests
  10498. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  10499. # Code to be used in simple link tests
  10500. lt_simple_link_test_code=$lt_simple_compile_test_code
  10501. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10502. # If no C compiler was specified, use CC.
  10503. LTCC=${LTCC-"$CC"}
  10504. # If no C compiler flags were specified, use CFLAGS.
  10505. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10506. # Allow CC to be a program name with arguments.
  10507. compiler=$CC
  10508. # save warnings/boilerplate of simple test code
  10509. ac_outfile=conftest.$ac_objext
  10510. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10511. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10512. _lt_compiler_boilerplate=`cat conftest.err`
  10513. $RM conftest*
  10514. ac_outfile=conftest.$ac_objext
  10515. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10516. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10517. _lt_linker_boilerplate=`cat conftest.err`
  10518. $RM -r conftest*
  10519. # Allow CC to be a program name with arguments.
  10520. lt_save_CC=$CC
  10521. lt_save_CFLAGS=$CFLAGS
  10522. lt_save_GCC=$GCC
  10523. GCC=
  10524. CC=${RC-"windres"}
  10525. CFLAGS=
  10526. compiler=$CC
  10527. compiler_RC=$CC
  10528. func_cc_basename $compiler
  10529. cc_basename=$func_cc_basename_result
  10530. lt_cv_prog_compiler_c_o_RC=yes
  10531. if test -n "$compiler"; then
  10532. :
  10533. fi
  10534. GCC=$lt_save_GCC
  10535. ac_ext=c
  10536. ac_cpp='$CPP $CPPFLAGS'
  10537. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10538. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10539. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10540. CC=$lt_save_CC
  10541. CFLAGS=$lt_save_CFLAGS
  10542. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  10543. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  10544. LT_REVISION=$SDL_INTERFACE_AGE
  10545. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  10546. ac_ext=c
  10547. ac_cpp='$CPP $CPPFLAGS'
  10548. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10549. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10550. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10551. if test -n "$ac_tool_prefix"; then
  10552. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  10553. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  10554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10555. $as_echo_n "checking for $ac_word... " >&6; }
  10556. if ${ac_cv_prog_CC+:} false; then :
  10557. $as_echo_n "(cached) " >&6
  10558. else
  10559. if test -n "$CC"; then
  10560. ac_cv_prog_CC="$CC" # Let the user override the test.
  10561. else
  10562. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10563. for as_dir in $PATH
  10564. do
  10565. IFS=$as_save_IFS
  10566. test -z "$as_dir" && as_dir=.
  10567. for ac_exec_ext in '' $ac_executable_extensions; do
  10568. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10569. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  10570. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10571. break 2
  10572. fi
  10573. done
  10574. done
  10575. IFS=$as_save_IFS
  10576. fi
  10577. fi
  10578. CC=$ac_cv_prog_CC
  10579. if test -n "$CC"; then
  10580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10581. $as_echo "$CC" >&6; }
  10582. else
  10583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10584. $as_echo "no" >&6; }
  10585. fi
  10586. fi
  10587. if test -z "$ac_cv_prog_CC"; then
  10588. ac_ct_CC=$CC
  10589. # Extract the first word of "gcc", so it can be a program name with args.
  10590. set dummy gcc; ac_word=$2
  10591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10592. $as_echo_n "checking for $ac_word... " >&6; }
  10593. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10594. $as_echo_n "(cached) " >&6
  10595. else
  10596. if test -n "$ac_ct_CC"; then
  10597. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10598. else
  10599. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10600. for as_dir in $PATH
  10601. do
  10602. IFS=$as_save_IFS
  10603. test -z "$as_dir" && as_dir=.
  10604. for ac_exec_ext in '' $ac_executable_extensions; do
  10605. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10606. ac_cv_prog_ac_ct_CC="gcc"
  10607. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10608. break 2
  10609. fi
  10610. done
  10611. done
  10612. IFS=$as_save_IFS
  10613. fi
  10614. fi
  10615. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10616. if test -n "$ac_ct_CC"; then
  10617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10618. $as_echo "$ac_ct_CC" >&6; }
  10619. else
  10620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10621. $as_echo "no" >&6; }
  10622. fi
  10623. if test "x$ac_ct_CC" = x; then
  10624. CC=""
  10625. else
  10626. case $cross_compiling:$ac_tool_warned in
  10627. yes:)
  10628. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10629. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10630. ac_tool_warned=yes ;;
  10631. esac
  10632. CC=$ac_ct_CC
  10633. fi
  10634. else
  10635. CC="$ac_cv_prog_CC"
  10636. fi
  10637. if test -z "$CC"; then
  10638. if test -n "$ac_tool_prefix"; then
  10639. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10640. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10642. $as_echo_n "checking for $ac_word... " >&6; }
  10643. if ${ac_cv_prog_CC+:} false; then :
  10644. $as_echo_n "(cached) " >&6
  10645. else
  10646. if test -n "$CC"; then
  10647. ac_cv_prog_CC="$CC" # Let the user override the test.
  10648. else
  10649. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10650. for as_dir in $PATH
  10651. do
  10652. IFS=$as_save_IFS
  10653. test -z "$as_dir" && as_dir=.
  10654. for ac_exec_ext in '' $ac_executable_extensions; do
  10655. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10656. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10657. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10658. break 2
  10659. fi
  10660. done
  10661. done
  10662. IFS=$as_save_IFS
  10663. fi
  10664. fi
  10665. CC=$ac_cv_prog_CC
  10666. if test -n "$CC"; then
  10667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10668. $as_echo "$CC" >&6; }
  10669. else
  10670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10671. $as_echo "no" >&6; }
  10672. fi
  10673. fi
  10674. fi
  10675. if test -z "$CC"; then
  10676. # Extract the first word of "cc", so it can be a program name with args.
  10677. set dummy cc; ac_word=$2
  10678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10679. $as_echo_n "checking for $ac_word... " >&6; }
  10680. if ${ac_cv_prog_CC+:} false; then :
  10681. $as_echo_n "(cached) " >&6
  10682. else
  10683. if test -n "$CC"; then
  10684. ac_cv_prog_CC="$CC" # Let the user override the test.
  10685. else
  10686. ac_prog_rejected=no
  10687. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10688. for as_dir in $PATH
  10689. do
  10690. IFS=$as_save_IFS
  10691. test -z "$as_dir" && as_dir=.
  10692. for ac_exec_ext in '' $ac_executable_extensions; do
  10693. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10694. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10695. ac_prog_rejected=yes
  10696. continue
  10697. fi
  10698. ac_cv_prog_CC="cc"
  10699. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10700. break 2
  10701. fi
  10702. done
  10703. done
  10704. IFS=$as_save_IFS
  10705. if test $ac_prog_rejected = yes; then
  10706. # We found a bogon in the path, so make sure we never use it.
  10707. set dummy $ac_cv_prog_CC
  10708. shift
  10709. if test $# != 0; then
  10710. # We chose a different compiler from the bogus one.
  10711. # However, it has the same basename, so the bogon will be chosen
  10712. # first if we set CC to just the basename; use the full file name.
  10713. shift
  10714. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10715. fi
  10716. fi
  10717. fi
  10718. fi
  10719. CC=$ac_cv_prog_CC
  10720. if test -n "$CC"; then
  10721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10722. $as_echo "$CC" >&6; }
  10723. else
  10724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10725. $as_echo "no" >&6; }
  10726. fi
  10727. fi
  10728. if test -z "$CC"; then
  10729. if test -n "$ac_tool_prefix"; then
  10730. for ac_prog in cl.exe
  10731. do
  10732. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10733. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10735. $as_echo_n "checking for $ac_word... " >&6; }
  10736. if ${ac_cv_prog_CC+:} false; then :
  10737. $as_echo_n "(cached) " >&6
  10738. else
  10739. if test -n "$CC"; then
  10740. ac_cv_prog_CC="$CC" # Let the user override the test.
  10741. else
  10742. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10743. for as_dir in $PATH
  10744. do
  10745. IFS=$as_save_IFS
  10746. test -z "$as_dir" && as_dir=.
  10747. for ac_exec_ext in '' $ac_executable_extensions; do
  10748. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10749. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10750. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10751. break 2
  10752. fi
  10753. done
  10754. done
  10755. IFS=$as_save_IFS
  10756. fi
  10757. fi
  10758. CC=$ac_cv_prog_CC
  10759. if test -n "$CC"; then
  10760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10761. $as_echo "$CC" >&6; }
  10762. else
  10763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10764. $as_echo "no" >&6; }
  10765. fi
  10766. test -n "$CC" && break
  10767. done
  10768. fi
  10769. if test -z "$CC"; then
  10770. ac_ct_CC=$CC
  10771. for ac_prog in cl.exe
  10772. do
  10773. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10774. set dummy $ac_prog; ac_word=$2
  10775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10776. $as_echo_n "checking for $ac_word... " >&6; }
  10777. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10778. $as_echo_n "(cached) " >&6
  10779. else
  10780. if test -n "$ac_ct_CC"; then
  10781. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10782. else
  10783. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10784. for as_dir in $PATH
  10785. do
  10786. IFS=$as_save_IFS
  10787. test -z "$as_dir" && as_dir=.
  10788. for ac_exec_ext in '' $ac_executable_extensions; do
  10789. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10790. ac_cv_prog_ac_ct_CC="$ac_prog"
  10791. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10792. break 2
  10793. fi
  10794. done
  10795. done
  10796. IFS=$as_save_IFS
  10797. fi
  10798. fi
  10799. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10800. if test -n "$ac_ct_CC"; then
  10801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10802. $as_echo "$ac_ct_CC" >&6; }
  10803. else
  10804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10805. $as_echo "no" >&6; }
  10806. fi
  10807. test -n "$ac_ct_CC" && break
  10808. done
  10809. if test "x$ac_ct_CC" = x; then
  10810. CC=""
  10811. else
  10812. case $cross_compiling:$ac_tool_warned in
  10813. yes:)
  10814. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10815. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10816. ac_tool_warned=yes ;;
  10817. esac
  10818. CC=$ac_ct_CC
  10819. fi
  10820. fi
  10821. fi
  10822. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10823. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10824. as_fn_error $? "no acceptable C compiler found in \$PATH
  10825. See \`config.log' for more details" "$LINENO" 5; }
  10826. # Provide some information about the compiler.
  10827. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10828. set X $ac_compile
  10829. ac_compiler=$2
  10830. for ac_option in --version -v -V -qversion; do
  10831. { { ac_try="$ac_compiler $ac_option >&5"
  10832. case "(($ac_try" in
  10833. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10834. *) ac_try_echo=$ac_try;;
  10835. esac
  10836. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10837. $as_echo "$ac_try_echo"; } >&5
  10838. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10839. ac_status=$?
  10840. if test -s conftest.err; then
  10841. sed '10a\
  10842. ... rest of stderr output deleted ...
  10843. 10q' conftest.err >conftest.er1
  10844. cat conftest.er1 >&5
  10845. fi
  10846. rm -f conftest.er1 conftest.err
  10847. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10848. test $ac_status = 0; }
  10849. done
  10850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10851. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10852. if ${ac_cv_c_compiler_gnu+:} false; then :
  10853. $as_echo_n "(cached) " >&6
  10854. else
  10855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10856. /* end confdefs.h. */
  10857. int
  10858. main ()
  10859. {
  10860. #ifndef __GNUC__
  10861. choke me
  10862. #endif
  10863. ;
  10864. return 0;
  10865. }
  10866. _ACEOF
  10867. if ac_fn_c_try_compile "$LINENO"; then :
  10868. ac_compiler_gnu=yes
  10869. else
  10870. ac_compiler_gnu=no
  10871. fi
  10872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10873. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10874. fi
  10875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10876. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10877. if test $ac_compiler_gnu = yes; then
  10878. GCC=yes
  10879. else
  10880. GCC=
  10881. fi
  10882. ac_test_CFLAGS=${CFLAGS+set}
  10883. ac_save_CFLAGS=$CFLAGS
  10884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10885. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10886. if ${ac_cv_prog_cc_g+:} false; then :
  10887. $as_echo_n "(cached) " >&6
  10888. else
  10889. ac_save_c_werror_flag=$ac_c_werror_flag
  10890. ac_c_werror_flag=yes
  10891. ac_cv_prog_cc_g=no
  10892. CFLAGS="-g"
  10893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10894. /* end confdefs.h. */
  10895. int
  10896. main ()
  10897. {
  10898. ;
  10899. return 0;
  10900. }
  10901. _ACEOF
  10902. if ac_fn_c_try_compile "$LINENO"; then :
  10903. ac_cv_prog_cc_g=yes
  10904. else
  10905. CFLAGS=""
  10906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10907. /* end confdefs.h. */
  10908. int
  10909. main ()
  10910. {
  10911. ;
  10912. return 0;
  10913. }
  10914. _ACEOF
  10915. if ac_fn_c_try_compile "$LINENO"; then :
  10916. else
  10917. ac_c_werror_flag=$ac_save_c_werror_flag
  10918. CFLAGS="-g"
  10919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10920. /* end confdefs.h. */
  10921. int
  10922. main ()
  10923. {
  10924. ;
  10925. return 0;
  10926. }
  10927. _ACEOF
  10928. if ac_fn_c_try_compile "$LINENO"; then :
  10929. ac_cv_prog_cc_g=yes
  10930. fi
  10931. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10932. fi
  10933. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10934. fi
  10935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10936. ac_c_werror_flag=$ac_save_c_werror_flag
  10937. fi
  10938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10939. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10940. if test "$ac_test_CFLAGS" = set; then
  10941. CFLAGS=$ac_save_CFLAGS
  10942. elif test $ac_cv_prog_cc_g = yes; then
  10943. if test "$GCC" = yes; then
  10944. CFLAGS="-g -O2"
  10945. else
  10946. CFLAGS="-g"
  10947. fi
  10948. else
  10949. if test "$GCC" = yes; then
  10950. CFLAGS="-O2"
  10951. else
  10952. CFLAGS=
  10953. fi
  10954. fi
  10955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10956. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10957. if ${ac_cv_prog_cc_c89+:} false; then :
  10958. $as_echo_n "(cached) " >&6
  10959. else
  10960. ac_cv_prog_cc_c89=no
  10961. ac_save_CC=$CC
  10962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10963. /* end confdefs.h. */
  10964. #include <stdarg.h>
  10965. #include <stdio.h>
  10966. struct stat;
  10967. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10968. struct buf { int x; };
  10969. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10970. static char *e (p, i)
  10971. char **p;
  10972. int i;
  10973. {
  10974. return p[i];
  10975. }
  10976. static char *f (char * (*g) (char **, int), char **p, ...)
  10977. {
  10978. char *s;
  10979. va_list v;
  10980. va_start (v,p);
  10981. s = g (p, va_arg (v,int));
  10982. va_end (v);
  10983. return s;
  10984. }
  10985. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10986. function prototypes and stuff, but not '\xHH' hex character constants.
  10987. These don't provoke an error unfortunately, instead are silently treated
  10988. as 'x'. The following induces an error, until -std is added to get
  10989. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10990. array size at least. It's necessary to write '\x00'==0 to get something
  10991. that's true only with -std. */
  10992. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10993. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10994. inside strings and character constants. */
  10995. #define FOO(x) 'x'
  10996. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10997. int test (int i, double x);
  10998. struct s1 {int (*f) (int a);};
  10999. struct s2 {int (*f) (double a);};
  11000. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  11001. int argc;
  11002. char **argv;
  11003. int
  11004. main ()
  11005. {
  11006. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  11007. ;
  11008. return 0;
  11009. }
  11010. _ACEOF
  11011. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  11012. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11013. do
  11014. CC="$ac_save_CC $ac_arg"
  11015. if ac_fn_c_try_compile "$LINENO"; then :
  11016. ac_cv_prog_cc_c89=$ac_arg
  11017. fi
  11018. rm -f core conftest.err conftest.$ac_objext
  11019. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11020. done
  11021. rm -f conftest.$ac_ext
  11022. CC=$ac_save_CC
  11023. fi
  11024. # AC_CACHE_VAL
  11025. case "x$ac_cv_prog_cc_c89" in
  11026. x)
  11027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11028. $as_echo "none needed" >&6; } ;;
  11029. xno)
  11030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11031. $as_echo "unsupported" >&6; } ;;
  11032. *)
  11033. CC="$CC $ac_cv_prog_cc_c89"
  11034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11035. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  11036. esac
  11037. if test "x$ac_cv_prog_cc_c89" != xno; then :
  11038. fi
  11039. ac_ext=c
  11040. ac_cpp='$CPP $CPPFLAGS'
  11041. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11042. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11043. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11044. ac_ext=cpp
  11045. ac_cpp='$CXXCPP $CPPFLAGS'
  11046. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11047. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11048. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11049. if test -z "$CXX"; then
  11050. if test -n "$CCC"; then
  11051. CXX=$CCC
  11052. else
  11053. if test -n "$ac_tool_prefix"; then
  11054. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11055. do
  11056. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11057. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11059. $as_echo_n "checking for $ac_word... " >&6; }
  11060. if ${ac_cv_prog_CXX+:} false; then :
  11061. $as_echo_n "(cached) " >&6
  11062. else
  11063. if test -n "$CXX"; then
  11064. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  11065. else
  11066. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11067. for as_dir in $PATH
  11068. do
  11069. IFS=$as_save_IFS
  11070. test -z "$as_dir" && as_dir=.
  11071. for ac_exec_ext in '' $ac_executable_extensions; do
  11072. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11073. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  11074. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11075. break 2
  11076. fi
  11077. done
  11078. done
  11079. IFS=$as_save_IFS
  11080. fi
  11081. fi
  11082. CXX=$ac_cv_prog_CXX
  11083. if test -n "$CXX"; then
  11084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  11085. $as_echo "$CXX" >&6; }
  11086. else
  11087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11088. $as_echo "no" >&6; }
  11089. fi
  11090. test -n "$CXX" && break
  11091. done
  11092. fi
  11093. if test -z "$CXX"; then
  11094. ac_ct_CXX=$CXX
  11095. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11096. do
  11097. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11098. set dummy $ac_prog; ac_word=$2
  11099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11100. $as_echo_n "checking for $ac_word... " >&6; }
  11101. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  11102. $as_echo_n "(cached) " >&6
  11103. else
  11104. if test -n "$ac_ct_CXX"; then
  11105. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  11106. else
  11107. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11108. for as_dir in $PATH
  11109. do
  11110. IFS=$as_save_IFS
  11111. test -z "$as_dir" && as_dir=.
  11112. for ac_exec_ext in '' $ac_executable_extensions; do
  11113. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11114. ac_cv_prog_ac_ct_CXX="$ac_prog"
  11115. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11116. break 2
  11117. fi
  11118. done
  11119. done
  11120. IFS=$as_save_IFS
  11121. fi
  11122. fi
  11123. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  11124. if test -n "$ac_ct_CXX"; then
  11125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  11126. $as_echo "$ac_ct_CXX" >&6; }
  11127. else
  11128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11129. $as_echo "no" >&6; }
  11130. fi
  11131. test -n "$ac_ct_CXX" && break
  11132. done
  11133. if test "x$ac_ct_CXX" = x; then
  11134. CXX="g++"
  11135. else
  11136. case $cross_compiling:$ac_tool_warned in
  11137. yes:)
  11138. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11139. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11140. ac_tool_warned=yes ;;
  11141. esac
  11142. CXX=$ac_ct_CXX
  11143. fi
  11144. fi
  11145. fi
  11146. fi
  11147. # Provide some information about the compiler.
  11148. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  11149. set X $ac_compile
  11150. ac_compiler=$2
  11151. for ac_option in --version -v -V -qversion; do
  11152. { { ac_try="$ac_compiler $ac_option >&5"
  11153. case "(($ac_try" in
  11154. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11155. *) ac_try_echo=$ac_try;;
  11156. esac
  11157. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11158. $as_echo "$ac_try_echo"; } >&5
  11159. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11160. ac_status=$?
  11161. if test -s conftest.err; then
  11162. sed '10a\
  11163. ... rest of stderr output deleted ...
  11164. 10q' conftest.err >conftest.er1
  11165. cat conftest.er1 >&5
  11166. fi
  11167. rm -f conftest.er1 conftest.err
  11168. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11169. test $ac_status = 0; }
  11170. done
  11171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  11172. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  11173. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  11174. $as_echo_n "(cached) " >&6
  11175. else
  11176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11177. /* end confdefs.h. */
  11178. int
  11179. main ()
  11180. {
  11181. #ifndef __GNUC__
  11182. choke me
  11183. #endif
  11184. ;
  11185. return 0;
  11186. }
  11187. _ACEOF
  11188. if ac_fn_cxx_try_compile "$LINENO"; then :
  11189. ac_compiler_gnu=yes
  11190. else
  11191. ac_compiler_gnu=no
  11192. fi
  11193. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11194. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  11195. fi
  11196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  11197. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  11198. if test $ac_compiler_gnu = yes; then
  11199. GXX=yes
  11200. else
  11201. GXX=
  11202. fi
  11203. ac_test_CXXFLAGS=${CXXFLAGS+set}
  11204. ac_save_CXXFLAGS=$CXXFLAGS
  11205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  11206. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  11207. if ${ac_cv_prog_cxx_g+:} false; then :
  11208. $as_echo_n "(cached) " >&6
  11209. else
  11210. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  11211. ac_cxx_werror_flag=yes
  11212. ac_cv_prog_cxx_g=no
  11213. CXXFLAGS="-g"
  11214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11215. /* end confdefs.h. */
  11216. int
  11217. main ()
  11218. {
  11219. ;
  11220. return 0;
  11221. }
  11222. _ACEOF
  11223. if ac_fn_cxx_try_compile "$LINENO"; then :
  11224. ac_cv_prog_cxx_g=yes
  11225. else
  11226. CXXFLAGS=""
  11227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11228. /* end confdefs.h. */
  11229. int
  11230. main ()
  11231. {
  11232. ;
  11233. return 0;
  11234. }
  11235. _ACEOF
  11236. if ac_fn_cxx_try_compile "$LINENO"; then :
  11237. else
  11238. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11239. CXXFLAGS="-g"
  11240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11241. /* end confdefs.h. */
  11242. int
  11243. main ()
  11244. {
  11245. ;
  11246. return 0;
  11247. }
  11248. _ACEOF
  11249. if ac_fn_cxx_try_compile "$LINENO"; then :
  11250. ac_cv_prog_cxx_g=yes
  11251. fi
  11252. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11253. fi
  11254. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11255. fi
  11256. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11257. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11258. fi
  11259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  11260. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  11261. if test "$ac_test_CXXFLAGS" = set; then
  11262. CXXFLAGS=$ac_save_CXXFLAGS
  11263. elif test $ac_cv_prog_cxx_g = yes; then
  11264. if test "$GXX" = yes; then
  11265. CXXFLAGS="-g -O2"
  11266. else
  11267. CXXFLAGS="-g"
  11268. fi
  11269. else
  11270. if test "$GXX" = yes; then
  11271. CXXFLAGS="-O2"
  11272. else
  11273. CXXFLAGS=
  11274. fi
  11275. fi
  11276. ac_ext=c
  11277. ac_cpp='$CPP $CPPFLAGS'
  11278. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11279. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11280. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11281. func_stripname_cnf ()
  11282. {
  11283. case $2 in
  11284. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  11285. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  11286. esac
  11287. } # func_stripname_cnf
  11288. if test -n "$CXX" && ( test no != "$CXX" &&
  11289. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  11290. (test g++ != "$CXX"))); then
  11291. ac_ext=cpp
  11292. ac_cpp='$CXXCPP $CPPFLAGS'
  11293. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11294. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11295. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  11297. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  11298. if test -z "$CXXCPP"; then
  11299. if ${ac_cv_prog_CXXCPP+:} false; then :
  11300. $as_echo_n "(cached) " >&6
  11301. else
  11302. # Double quotes because CXXCPP needs to be expanded
  11303. for CXXCPP in "$CXX -E" "/lib/cpp"
  11304. do
  11305. ac_preproc_ok=false
  11306. for ac_cxx_preproc_warn_flag in '' yes
  11307. do
  11308. # Use a header file that comes with gcc, so configuring glibc
  11309. # with a fresh cross-compiler works.
  11310. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11311. # <limits.h> exists even on freestanding compilers.
  11312. # On the NeXT, cc -E runs the code through the compiler's parser,
  11313. # not just through cpp. "Syntax error" is here to catch this case.
  11314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11315. /* end confdefs.h. */
  11316. #ifdef __STDC__
  11317. # include <limits.h>
  11318. #else
  11319. # include <assert.h>
  11320. #endif
  11321. Syntax error
  11322. _ACEOF
  11323. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11324. else
  11325. # Broken: fails on valid input.
  11326. continue
  11327. fi
  11328. rm -f conftest.err conftest.i conftest.$ac_ext
  11329. # OK, works on sane cases. Now check whether nonexistent headers
  11330. # can be detected and how.
  11331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11332. /* end confdefs.h. */
  11333. #include <ac_nonexistent.h>
  11334. _ACEOF
  11335. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11336. # Broken: success on invalid input.
  11337. continue
  11338. else
  11339. # Passes both tests.
  11340. ac_preproc_ok=:
  11341. break
  11342. fi
  11343. rm -f conftest.err conftest.i conftest.$ac_ext
  11344. done
  11345. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11346. rm -f conftest.i conftest.err conftest.$ac_ext
  11347. if $ac_preproc_ok; then :
  11348. break
  11349. fi
  11350. done
  11351. ac_cv_prog_CXXCPP=$CXXCPP
  11352. fi
  11353. CXXCPP=$ac_cv_prog_CXXCPP
  11354. else
  11355. ac_cv_prog_CXXCPP=$CXXCPP
  11356. fi
  11357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  11358. $as_echo "$CXXCPP" >&6; }
  11359. ac_preproc_ok=false
  11360. for ac_cxx_preproc_warn_flag in '' yes
  11361. do
  11362. # Use a header file that comes with gcc, so configuring glibc
  11363. # with a fresh cross-compiler works.
  11364. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11365. # <limits.h> exists even on freestanding compilers.
  11366. # On the NeXT, cc -E runs the code through the compiler's parser,
  11367. # not just through cpp. "Syntax error" is here to catch this case.
  11368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11369. /* end confdefs.h. */
  11370. #ifdef __STDC__
  11371. # include <limits.h>
  11372. #else
  11373. # include <assert.h>
  11374. #endif
  11375. Syntax error
  11376. _ACEOF
  11377. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11378. else
  11379. # Broken: fails on valid input.
  11380. continue
  11381. fi
  11382. rm -f conftest.err conftest.i conftest.$ac_ext
  11383. # OK, works on sane cases. Now check whether nonexistent headers
  11384. # can be detected and how.
  11385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11386. /* end confdefs.h. */
  11387. #include <ac_nonexistent.h>
  11388. _ACEOF
  11389. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11390. # Broken: success on invalid input.
  11391. continue
  11392. else
  11393. # Passes both tests.
  11394. ac_preproc_ok=:
  11395. break
  11396. fi
  11397. rm -f conftest.err conftest.i conftest.$ac_ext
  11398. done
  11399. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11400. rm -f conftest.i conftest.err conftest.$ac_ext
  11401. if $ac_preproc_ok; then :
  11402. else
  11403. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11404. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11405. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  11406. See \`config.log' for more details" "$LINENO" 5; }
  11407. fi
  11408. ac_ext=c
  11409. ac_cpp='$CPP $CPPFLAGS'
  11410. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11411. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11412. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11413. else
  11414. _lt_caught_CXX_error=yes
  11415. fi
  11416. ac_ext=cpp
  11417. ac_cpp='$CXXCPP $CPPFLAGS'
  11418. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11419. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11420. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11421. archive_cmds_need_lc_CXX=no
  11422. allow_undefined_flag_CXX=
  11423. always_export_symbols_CXX=no
  11424. archive_expsym_cmds_CXX=
  11425. compiler_needs_object_CXX=no
  11426. export_dynamic_flag_spec_CXX=
  11427. hardcode_direct_CXX=no
  11428. hardcode_direct_absolute_CXX=no
  11429. hardcode_libdir_flag_spec_CXX=
  11430. hardcode_libdir_separator_CXX=
  11431. hardcode_minus_L_CXX=no
  11432. hardcode_shlibpath_var_CXX=unsupported
  11433. hardcode_automatic_CXX=no
  11434. inherit_rpath_CXX=no
  11435. module_cmds_CXX=
  11436. module_expsym_cmds_CXX=
  11437. link_all_deplibs_CXX=unknown
  11438. old_archive_cmds_CXX=$old_archive_cmds
  11439. reload_flag_CXX=$reload_flag
  11440. reload_cmds_CXX=$reload_cmds
  11441. no_undefined_flag_CXX=
  11442. whole_archive_flag_spec_CXX=
  11443. enable_shared_with_static_runtimes_CXX=no
  11444. # Source file extension for C++ test sources.
  11445. ac_ext=cpp
  11446. # Object file extension for compiled C++ test sources.
  11447. objext=o
  11448. objext_CXX=$objext
  11449. # No sense in running all these tests if we already determined that
  11450. # the CXX compiler isn't working. Some variables (like enable_shared)
  11451. # are currently assumed to apply to all compilers on this platform,
  11452. # and will be corrupted by setting them based on a non-working compiler.
  11453. if test yes != "$_lt_caught_CXX_error"; then
  11454. # Code to be used in simple compile tests
  11455. lt_simple_compile_test_code="int some_variable = 0;"
  11456. # Code to be used in simple link tests
  11457. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11458. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11459. # If no C compiler was specified, use CC.
  11460. LTCC=${LTCC-"$CC"}
  11461. # If no C compiler flags were specified, use CFLAGS.
  11462. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11463. # Allow CC to be a program name with arguments.
  11464. compiler=$CC
  11465. # save warnings/boilerplate of simple test code
  11466. ac_outfile=conftest.$ac_objext
  11467. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11468. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11469. _lt_compiler_boilerplate=`cat conftest.err`
  11470. $RM conftest*
  11471. ac_outfile=conftest.$ac_objext
  11472. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11473. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11474. _lt_linker_boilerplate=`cat conftest.err`
  11475. $RM -r conftest*
  11476. # Allow CC to be a program name with arguments.
  11477. lt_save_CC=$CC
  11478. lt_save_CFLAGS=$CFLAGS
  11479. lt_save_LD=$LD
  11480. lt_save_GCC=$GCC
  11481. GCC=$GXX
  11482. lt_save_with_gnu_ld=$with_gnu_ld
  11483. lt_save_path_LD=$lt_cv_path_LD
  11484. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11485. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11486. else
  11487. $as_unset lt_cv_prog_gnu_ld
  11488. fi
  11489. if test -n "${lt_cv_path_LDCXX+set}"; then
  11490. lt_cv_path_LD=$lt_cv_path_LDCXX
  11491. else
  11492. $as_unset lt_cv_path_LD
  11493. fi
  11494. test -z "${LDCXX+set}" || LD=$LDCXX
  11495. CC=${CXX-"c++"}
  11496. CFLAGS=$CXXFLAGS
  11497. compiler=$CC
  11498. compiler_CXX=$CC
  11499. func_cc_basename $compiler
  11500. cc_basename=$func_cc_basename_result
  11501. if test -n "$compiler"; then
  11502. # We don't want -fno-exception when compiling C++ code, so set the
  11503. # no_builtin_flag separately
  11504. if test yes = "$GXX"; then
  11505. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11506. else
  11507. lt_prog_compiler_no_builtin_flag_CXX=
  11508. fi
  11509. if test yes = "$GXX"; then
  11510. # Set up default GNU C++ configuration
  11511. # Check whether --with-gnu-ld was given.
  11512. if test "${with_gnu_ld+set}" = set; then :
  11513. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  11514. else
  11515. with_gnu_ld=no
  11516. fi
  11517. ac_prog=ld
  11518. if test yes = "$GCC"; then
  11519. # Check if gcc -print-prog-name=ld gives a path.
  11520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11521. $as_echo_n "checking for ld used by $CC... " >&6; }
  11522. case $host in
  11523. *-*-mingw*)
  11524. # gcc leaves a trailing carriage return, which upsets mingw
  11525. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11526. *)
  11527. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11528. esac
  11529. case $ac_prog in
  11530. # Accept absolute paths.
  11531. [\\/]* | ?:[\\/]*)
  11532. re_direlt='/[^/][^/]*/\.\./'
  11533. # Canonicalize the pathname of ld
  11534. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11535. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11536. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11537. done
  11538. test -z "$LD" && LD=$ac_prog
  11539. ;;
  11540. "")
  11541. # If it fails, then pretend we aren't using GCC.
  11542. ac_prog=ld
  11543. ;;
  11544. *)
  11545. # If it is relative, then search for the first ld in PATH.
  11546. with_gnu_ld=unknown
  11547. ;;
  11548. esac
  11549. elif test yes = "$with_gnu_ld"; then
  11550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11551. $as_echo_n "checking for GNU ld... " >&6; }
  11552. else
  11553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11554. $as_echo_n "checking for non-GNU ld... " >&6; }
  11555. fi
  11556. if ${lt_cv_path_LD+:} false; then :
  11557. $as_echo_n "(cached) " >&6
  11558. else
  11559. if test -z "$LD"; then
  11560. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  11561. for ac_dir in $PATH; do
  11562. IFS=$lt_save_ifs
  11563. test -z "$ac_dir" && ac_dir=.
  11564. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11565. lt_cv_path_LD=$ac_dir/$ac_prog
  11566. # Check to see if the program is GNU ld. I'd rather use --version,
  11567. # but apparently some variants of GNU ld only accept -v.
  11568. # Break only if it was the GNU/non-GNU ld that we prefer.
  11569. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11570. *GNU* | *'with BFD'*)
  11571. test no != "$with_gnu_ld" && break
  11572. ;;
  11573. *)
  11574. test yes != "$with_gnu_ld" && break
  11575. ;;
  11576. esac
  11577. fi
  11578. done
  11579. IFS=$lt_save_ifs
  11580. else
  11581. lt_cv_path_LD=$LD # Let the user override the test with a path.
  11582. fi
  11583. fi
  11584. LD=$lt_cv_path_LD
  11585. if test -n "$LD"; then
  11586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11587. $as_echo "$LD" >&6; }
  11588. else
  11589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11590. $as_echo "no" >&6; }
  11591. fi
  11592. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11594. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11595. if ${lt_cv_prog_gnu_ld+:} false; then :
  11596. $as_echo_n "(cached) " >&6
  11597. else
  11598. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11599. case `$LD -v 2>&1 </dev/null` in
  11600. *GNU* | *'with BFD'*)
  11601. lt_cv_prog_gnu_ld=yes
  11602. ;;
  11603. *)
  11604. lt_cv_prog_gnu_ld=no
  11605. ;;
  11606. esac
  11607. fi
  11608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11609. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11610. with_gnu_ld=$lt_cv_prog_gnu_ld
  11611. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11612. # archiving commands below assume that GNU ld is being used.
  11613. if test yes = "$with_gnu_ld"; then
  11614. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  11615. 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'
  11616. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  11617. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  11618. # If archive_cmds runs LD, not CC, wlarc should be empty
  11619. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11620. # investigate it a little bit more. (MM)
  11621. wlarc='$wl'
  11622. # ancient GNU ld didn't support --whole-archive et. al.
  11623. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11624. $GREP 'no-whole-archive' > /dev/null; then
  11625. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  11626. else
  11627. whole_archive_flag_spec_CXX=
  11628. fi
  11629. else
  11630. with_gnu_ld=no
  11631. wlarc=
  11632. # A generic and very simple default shared library creation
  11633. # command for GNU C++ for the case where it uses the native
  11634. # linker, instead of GNU ld. If possible, this setting should
  11635. # overridden to take advantage of the native linker features on
  11636. # the platform it is being used on.
  11637. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11638. fi
  11639. # Commands to make compiler produce verbose output that lists
  11640. # what "hidden" libraries, object files and flags are used when
  11641. # linking a shared library.
  11642. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11643. else
  11644. GXX=no
  11645. with_gnu_ld=no
  11646. wlarc=
  11647. fi
  11648. # PORTME: fill in a description of your system's C++ link characteristics
  11649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11650. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11651. ld_shlibs_CXX=yes
  11652. case $host_os in
  11653. aix3*)
  11654. # FIXME: insert proper C++ library support
  11655. ld_shlibs_CXX=no
  11656. ;;
  11657. aix[4-9]*)
  11658. if test ia64 = "$host_cpu"; then
  11659. # On IA64, the linker does run time linking by default, so we don't
  11660. # have to do anything special.
  11661. aix_use_runtimelinking=no
  11662. exp_sym_flag='-Bexport'
  11663. no_entry_flag=
  11664. else
  11665. aix_use_runtimelinking=no
  11666. # Test if we are trying to use run time linking or normal
  11667. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11668. # have runtime linking enabled, and use it for executables.
  11669. # For shared libraries, we enable/disable runtime linking
  11670. # depending on the kind of the shared library created -
  11671. # when "with_aix_soname,aix_use_runtimelinking" is:
  11672. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  11673. # "aix,yes" lib.so shared, rtl:yes, for executables
  11674. # lib.a static archive
  11675. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  11676. # lib.a(lib.so.V) shared, rtl:no, for executables
  11677. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  11678. # lib.a(lib.so.V) shared, rtl:no
  11679. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  11680. # lib.a static archive
  11681. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11682. for ld_flag in $LDFLAGS; do
  11683. case $ld_flag in
  11684. *-brtl*)
  11685. aix_use_runtimelinking=yes
  11686. break
  11687. ;;
  11688. esac
  11689. done
  11690. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  11691. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  11692. # so we don't have lib.a shared libs to link our executables.
  11693. # We have to force runtime linking in this case.
  11694. aix_use_runtimelinking=yes
  11695. LDFLAGS="$LDFLAGS -Wl,-brtl"
  11696. fi
  11697. ;;
  11698. esac
  11699. exp_sym_flag='-bexport'
  11700. no_entry_flag='-bnoentry'
  11701. fi
  11702. # When large executables or shared objects are built, AIX ld can
  11703. # have problems creating the table of contents. If linking a library
  11704. # or program results in "error TOC overflow" add -mminimal-toc to
  11705. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11706. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11707. archive_cmds_CXX=''
  11708. hardcode_direct_CXX=yes
  11709. hardcode_direct_absolute_CXX=yes
  11710. hardcode_libdir_separator_CXX=':'
  11711. link_all_deplibs_CXX=yes
  11712. file_list_spec_CXX='$wl-f,'
  11713. case $with_aix_soname,$aix_use_runtimelinking in
  11714. aix,*) ;; # no import file
  11715. svr4,* | *,yes) # use import file
  11716. # The Import File defines what to hardcode.
  11717. hardcode_direct_CXX=no
  11718. hardcode_direct_absolute_CXX=no
  11719. ;;
  11720. esac
  11721. if test yes = "$GXX"; then
  11722. case $host_os in aix4.[012]|aix4.[012].*)
  11723. # We only want to do this on AIX 4.2 and lower, the check
  11724. # below for broken collect2 doesn't work under 4.3+
  11725. collect2name=`$CC -print-prog-name=collect2`
  11726. if test -f "$collect2name" &&
  11727. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11728. then
  11729. # We have reworked collect2
  11730. :
  11731. else
  11732. # We have old collect2
  11733. hardcode_direct_CXX=unsupported
  11734. # It fails to find uninstalled libraries when the uninstalled
  11735. # path is not listed in the libpath. Setting hardcode_minus_L
  11736. # to unsupported forces relinking
  11737. hardcode_minus_L_CXX=yes
  11738. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11739. hardcode_libdir_separator_CXX=
  11740. fi
  11741. esac
  11742. shared_flag='-shared'
  11743. if test yes = "$aix_use_runtimelinking"; then
  11744. shared_flag=$shared_flag' $wl-G'
  11745. fi
  11746. # Need to ensure runtime linking is disabled for the traditional
  11747. # shared library, or the linker may eventually find shared libraries
  11748. # /with/ Import File - we do not want to mix them.
  11749. shared_flag_aix='-shared'
  11750. shared_flag_svr4='-shared $wl-G'
  11751. else
  11752. # not using gcc
  11753. if test ia64 = "$host_cpu"; then
  11754. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11755. # chokes on -Wl,-G. The following line is correct:
  11756. shared_flag='-G'
  11757. else
  11758. if test yes = "$aix_use_runtimelinking"; then
  11759. shared_flag='$wl-G'
  11760. else
  11761. shared_flag='$wl-bM:SRE'
  11762. fi
  11763. shared_flag_aix='$wl-bM:SRE'
  11764. shared_flag_svr4='$wl-G'
  11765. fi
  11766. fi
  11767. export_dynamic_flag_spec_CXX='$wl-bexpall'
  11768. # It seems that -bexpall does not export symbols beginning with
  11769. # underscore (_), so it is better to generate a list of symbols to
  11770. # export.
  11771. always_export_symbols_CXX=yes
  11772. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  11773. # Warning - without using the other runtime loading flags (-brtl),
  11774. # -berok will link without error, but may produce a broken library.
  11775. # The "-G" linker flag allows undefined symbols.
  11776. no_undefined_flag_CXX='-bernotok'
  11777. # Determine the default libpath from the value encoded in an empty
  11778. # executable.
  11779. if test set = "${lt_cv_aix_libpath+set}"; then
  11780. aix_libpath=$lt_cv_aix_libpath
  11781. else
  11782. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11783. $as_echo_n "(cached) " >&6
  11784. else
  11785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11786. /* end confdefs.h. */
  11787. int
  11788. main ()
  11789. {
  11790. ;
  11791. return 0;
  11792. }
  11793. _ACEOF
  11794. if ac_fn_cxx_try_link "$LINENO"; then :
  11795. lt_aix_libpath_sed='
  11796. /Import File Strings/,/^$/ {
  11797. /^0/ {
  11798. s/^0 *\([^ ]*\) *$/\1/
  11799. p
  11800. }
  11801. }'
  11802. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11803. # Check for a 64-bit object if we didn't find anything.
  11804. if test -z "$lt_cv_aix_libpath__CXX"; then
  11805. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11806. fi
  11807. fi
  11808. rm -f core conftest.err conftest.$ac_objext \
  11809. conftest$ac_exeext conftest.$ac_ext
  11810. if test -z "$lt_cv_aix_libpath__CXX"; then
  11811. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11812. fi
  11813. fi
  11814. aix_libpath=$lt_cv_aix_libpath__CXX
  11815. fi
  11816. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11817. 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
  11818. else
  11819. if test ia64 = "$host_cpu"; then
  11820. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  11821. allow_undefined_flag_CXX="-z nodefs"
  11822. 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"
  11823. else
  11824. # Determine the default libpath from the value encoded in an
  11825. # empty executable.
  11826. if test set = "${lt_cv_aix_libpath+set}"; then
  11827. aix_libpath=$lt_cv_aix_libpath
  11828. else
  11829. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11830. $as_echo_n "(cached) " >&6
  11831. else
  11832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11833. /* end confdefs.h. */
  11834. int
  11835. main ()
  11836. {
  11837. ;
  11838. return 0;
  11839. }
  11840. _ACEOF
  11841. if ac_fn_cxx_try_link "$LINENO"; then :
  11842. lt_aix_libpath_sed='
  11843. /Import File Strings/,/^$/ {
  11844. /^0/ {
  11845. s/^0 *\([^ ]*\) *$/\1/
  11846. p
  11847. }
  11848. }'
  11849. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11850. # Check for a 64-bit object if we didn't find anything.
  11851. if test -z "$lt_cv_aix_libpath__CXX"; then
  11852. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11853. fi
  11854. fi
  11855. rm -f core conftest.err conftest.$ac_objext \
  11856. conftest$ac_exeext conftest.$ac_ext
  11857. if test -z "$lt_cv_aix_libpath__CXX"; then
  11858. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11859. fi
  11860. fi
  11861. aix_libpath=$lt_cv_aix_libpath__CXX
  11862. fi
  11863. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11864. # Warning - without using the other run time loading flags,
  11865. # -berok will link without error, but may produce a broken library.
  11866. no_undefined_flag_CXX=' $wl-bernotok'
  11867. allow_undefined_flag_CXX=' $wl-berok'
  11868. if test yes = "$with_gnu_ld"; then
  11869. # We only use this code for GNU lds that support --whole-archive.
  11870. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  11871. else
  11872. # Exported symbols can be pulled into shared objects from archives
  11873. whole_archive_flag_spec_CXX='$convenience'
  11874. fi
  11875. archive_cmds_need_lc_CXX=yes
  11876. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  11877. # -brtl affects multiple linker settings, -berok does not and is overridden later
  11878. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  11879. if test svr4 != "$with_aix_soname"; then
  11880. # This is similar to how AIX traditionally builds its shared
  11881. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  11882. 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'
  11883. fi
  11884. if test aix != "$with_aix_soname"; then
  11885. 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'
  11886. else
  11887. # used by -dlpreopen to get the symbols
  11888. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  11889. fi
  11890. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  11891. fi
  11892. fi
  11893. ;;
  11894. beos*)
  11895. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11896. allow_undefined_flag_CXX=unsupported
  11897. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11898. # support --undefined. This deserves some investigation. FIXME
  11899. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11900. else
  11901. ld_shlibs_CXX=no
  11902. fi
  11903. ;;
  11904. chorus*)
  11905. case $cc_basename in
  11906. *)
  11907. # FIXME: insert proper C++ library support
  11908. ld_shlibs_CXX=no
  11909. ;;
  11910. esac
  11911. ;;
  11912. cygwin* | mingw* | pw32* | cegcc*)
  11913. case $GXX,$cc_basename in
  11914. ,cl* | no,cl*)
  11915. # Native MSVC
  11916. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11917. # no search path for DLLs.
  11918. hardcode_libdir_flag_spec_CXX=' '
  11919. allow_undefined_flag_CXX=unsupported
  11920. always_export_symbols_CXX=yes
  11921. file_list_spec_CXX='@'
  11922. # Tell ltmain to make .lib files, not .a files.
  11923. libext=lib
  11924. # Tell ltmain to make .dll files, not .so files.
  11925. shrext_cmds=.dll
  11926. # FIXME: Setting linknames here is a bad hack.
  11927. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  11928. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11929. cp "$export_symbols" "$output_objdir/$soname.def";
  11930. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  11931. else
  11932. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  11933. fi~
  11934. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11935. linknames='
  11936. # The linker will not automatically build a static lib if we build a DLL.
  11937. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11938. enable_shared_with_static_runtimes_CXX=yes
  11939. # Don't use ranlib
  11940. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11941. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11942. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11943. case $lt_outputfile in
  11944. *.exe|*.EXE) ;;
  11945. *)
  11946. lt_outputfile=$lt_outputfile.exe
  11947. lt_tool_outputfile=$lt_tool_outputfile.exe
  11948. ;;
  11949. esac~
  11950. func_to_tool_file "$lt_outputfile"~
  11951. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  11952. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11953. $RM "$lt_outputfile.manifest";
  11954. fi'
  11955. ;;
  11956. *)
  11957. # g++
  11958. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11959. # as there is no search path for DLLs.
  11960. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11961. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  11962. allow_undefined_flag_CXX=unsupported
  11963. always_export_symbols_CXX=no
  11964. enable_shared_with_static_runtimes_CXX=yes
  11965. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11966. 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'
  11967. # If the export-symbols file already is a .def file, use it as
  11968. # is; otherwise, prepend EXPORTS...
  11969. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11970. cp $export_symbols $output_objdir/$soname.def;
  11971. else
  11972. echo EXPORTS > $output_objdir/$soname.def;
  11973. cat $export_symbols >> $output_objdir/$soname.def;
  11974. fi~
  11975. $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'
  11976. else
  11977. ld_shlibs_CXX=no
  11978. fi
  11979. ;;
  11980. esac
  11981. ;;
  11982. darwin* | rhapsody*)
  11983. archive_cmds_need_lc_CXX=no
  11984. hardcode_direct_CXX=no
  11985. hardcode_automatic_CXX=yes
  11986. hardcode_shlibpath_var_CXX=unsupported
  11987. if test yes = "$lt_cv_ld_force_load"; then
  11988. 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\"`'
  11989. else
  11990. whole_archive_flag_spec_CXX=''
  11991. fi
  11992. link_all_deplibs_CXX=yes
  11993. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  11994. case $cc_basename in
  11995. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  11996. *) _lt_dar_can_shared=$GCC ;;
  11997. esac
  11998. if test yes = "$_lt_dar_can_shared"; then
  11999. output_verbose_link_cmd=func_echo_all
  12000. 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"
  12001. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  12002. 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"
  12003. 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"
  12004. if test yes != "$lt_cv_apple_cc_single_mod"; then
  12005. 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"
  12006. 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"
  12007. fi
  12008. else
  12009. ld_shlibs_CXX=no
  12010. fi
  12011. ;;
  12012. os2*)
  12013. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12014. hardcode_minus_L_CXX=yes
  12015. allow_undefined_flag_CXX=unsupported
  12016. shrext_cmds=.dll
  12017. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12018. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12019. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12020. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12021. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  12022. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12023. emximp -o $lib $output_objdir/$libname.def'
  12024. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12025. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12026. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12027. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12028. prefix_cmds="$SED"~
  12029. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  12030. prefix_cmds="$prefix_cmds -e 1d";
  12031. fi~
  12032. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  12033. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  12034. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12035. emximp -o $lib $output_objdir/$libname.def'
  12036. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  12037. enable_shared_with_static_runtimes_CXX=yes
  12038. file_list_spec_CXX='@'
  12039. ;;
  12040. dgux*)
  12041. case $cc_basename in
  12042. ec++*)
  12043. # FIXME: insert proper C++ library support
  12044. ld_shlibs_CXX=no
  12045. ;;
  12046. ghcx*)
  12047. # Green Hills C++ Compiler
  12048. # FIXME: insert proper C++ library support
  12049. ld_shlibs_CXX=no
  12050. ;;
  12051. *)
  12052. # FIXME: insert proper C++ library support
  12053. ld_shlibs_CXX=no
  12054. ;;
  12055. esac
  12056. ;;
  12057. freebsd2.*)
  12058. # C++ shared libraries reported to be fairly broken before
  12059. # switch to ELF
  12060. ld_shlibs_CXX=no
  12061. ;;
  12062. freebsd-elf*)
  12063. archive_cmds_need_lc_CXX=no
  12064. ;;
  12065. freebsd* | dragonfly* | midnightbsd*)
  12066. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  12067. # conventions
  12068. ld_shlibs_CXX=yes
  12069. ;;
  12070. haiku*)
  12071. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12072. link_all_deplibs_CXX=yes
  12073. ;;
  12074. hpux9*)
  12075. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12076. hardcode_libdir_separator_CXX=:
  12077. export_dynamic_flag_spec_CXX='$wl-E'
  12078. hardcode_direct_CXX=yes
  12079. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12080. # but as the default
  12081. # location of the library.
  12082. case $cc_basename in
  12083. CC*)
  12084. # FIXME: insert proper C++ library support
  12085. ld_shlibs_CXX=no
  12086. ;;
  12087. aCC*)
  12088. 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'
  12089. # Commands to make compiler produce verbose output that lists
  12090. # what "hidden" libraries, object files and flags are used when
  12091. # linking a shared library.
  12092. #
  12093. # There doesn't appear to be a way to prevent this compiler from
  12094. # explicitly linking system object files so we need to strip them
  12095. # from the output so that they don't get included in the library
  12096. # dependencies.
  12097. 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"'
  12098. ;;
  12099. *)
  12100. if test yes = "$GXX"; then
  12101. 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'
  12102. else
  12103. # FIXME: insert proper C++ library support
  12104. ld_shlibs_CXX=no
  12105. fi
  12106. ;;
  12107. esac
  12108. ;;
  12109. hpux10*|hpux11*)
  12110. if test no = "$with_gnu_ld"; then
  12111. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12112. hardcode_libdir_separator_CXX=:
  12113. case $host_cpu in
  12114. hppa*64*|ia64*)
  12115. ;;
  12116. *)
  12117. export_dynamic_flag_spec_CXX='$wl-E'
  12118. ;;
  12119. esac
  12120. fi
  12121. case $host_cpu in
  12122. hppa*64*|ia64*)
  12123. hardcode_direct_CXX=no
  12124. hardcode_shlibpath_var_CXX=no
  12125. ;;
  12126. *)
  12127. hardcode_direct_CXX=yes
  12128. hardcode_direct_absolute_CXX=yes
  12129. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12130. # but as the default
  12131. # location of the library.
  12132. ;;
  12133. esac
  12134. case $cc_basename in
  12135. CC*)
  12136. # FIXME: insert proper C++ library support
  12137. ld_shlibs_CXX=no
  12138. ;;
  12139. aCC*)
  12140. case $host_cpu in
  12141. hppa*64*)
  12142. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12143. ;;
  12144. ia64*)
  12145. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12146. ;;
  12147. *)
  12148. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12149. ;;
  12150. esac
  12151. # Commands to make compiler produce verbose output that lists
  12152. # what "hidden" libraries, object files and flags are used when
  12153. # linking a shared library.
  12154. #
  12155. # There doesn't appear to be a way to prevent this compiler from
  12156. # explicitly linking system object files so we need to strip them
  12157. # from the output so that they don't get included in the library
  12158. # dependencies.
  12159. 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"'
  12160. ;;
  12161. *)
  12162. if test yes = "$GXX"; then
  12163. if test no = "$with_gnu_ld"; then
  12164. case $host_cpu in
  12165. hppa*64*)
  12166. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12167. ;;
  12168. ia64*)
  12169. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12170. ;;
  12171. *)
  12172. 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'
  12173. ;;
  12174. esac
  12175. fi
  12176. else
  12177. # FIXME: insert proper C++ library support
  12178. ld_shlibs_CXX=no
  12179. fi
  12180. ;;
  12181. esac
  12182. ;;
  12183. interix[3-9]*)
  12184. hardcode_direct_CXX=no
  12185. hardcode_shlibpath_var_CXX=no
  12186. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12187. export_dynamic_flag_spec_CXX='$wl-E'
  12188. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12189. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12190. # default) and relocated if they conflict, which is a slow very memory
  12191. # consuming and fragmenting process. To avoid this, we pick a random,
  12192. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12193. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12194. 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'
  12195. 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'
  12196. ;;
  12197. irix5* | irix6*)
  12198. case $cc_basename in
  12199. CC*)
  12200. # SGI C++
  12201. 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'
  12202. # Archives containing C++ object files must be created using
  12203. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  12204. # necessary to make sure instantiated templates are included
  12205. # in the archive.
  12206. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  12207. ;;
  12208. *)
  12209. if test yes = "$GXX"; then
  12210. if test no = "$with_gnu_ld"; then
  12211. 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'
  12212. else
  12213. 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'
  12214. fi
  12215. fi
  12216. link_all_deplibs_CXX=yes
  12217. ;;
  12218. esac
  12219. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12220. hardcode_libdir_separator_CXX=:
  12221. inherit_rpath_CXX=yes
  12222. ;;
  12223. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12224. case $cc_basename in
  12225. KCC*)
  12226. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12227. # KCC will only create a shared library if the output file
  12228. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12229. # to its proper name (with version) after linking.
  12230. 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'
  12231. 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'
  12232. # Commands to make compiler produce verbose output that lists
  12233. # what "hidden" libraries, object files and flags are used when
  12234. # linking a shared library.
  12235. #
  12236. # There doesn't appear to be a way to prevent this compiler from
  12237. # explicitly linking system object files so we need to strip them
  12238. # from the output so that they don't get included in the library
  12239. # dependencies.
  12240. 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"'
  12241. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12242. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12243. # Archives containing C++ object files must be created using
  12244. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  12245. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  12246. ;;
  12247. icpc* | ecpc* )
  12248. # Intel C++
  12249. with_gnu_ld=yes
  12250. # version 8.0 and above of icpc choke on multiply defined symbols
  12251. # if we add $predep_objects and $postdep_objects, however 7.1 and
  12252. # earlier do not add the objects themselves.
  12253. case `$CC -V 2>&1` in
  12254. *"Version 7."*)
  12255. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12256. 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'
  12257. ;;
  12258. *) # Version 8.0 or newer
  12259. tmp_idyn=
  12260. case $host_cpu in
  12261. ia64*) tmp_idyn=' -i_dynamic';;
  12262. esac
  12263. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12264. 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'
  12265. ;;
  12266. esac
  12267. archive_cmds_need_lc_CXX=no
  12268. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12269. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12270. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12271. ;;
  12272. pgCC* | pgcpp*)
  12273. # Portland Group C++ compiler
  12274. case `$CC -V` in
  12275. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  12276. prelink_cmds_CXX='tpldir=Template.dir~
  12277. rm -rf $tpldir~
  12278. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  12279. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  12280. old_archive_cmds_CXX='tpldir=Template.dir~
  12281. rm -rf $tpldir~
  12282. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  12283. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  12284. $RANLIB $oldlib'
  12285. archive_cmds_CXX='tpldir=Template.dir~
  12286. rm -rf $tpldir~
  12287. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12288. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12289. archive_expsym_cmds_CXX='tpldir=Template.dir~
  12290. rm -rf $tpldir~
  12291. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12292. $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'
  12293. ;;
  12294. *) # Version 6 and above use weak symbols
  12295. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12296. 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'
  12297. ;;
  12298. esac
  12299. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  12300. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12301. 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'
  12302. ;;
  12303. cxx*)
  12304. # Compaq C++
  12305. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12306. 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'
  12307. runpath_var=LD_RUN_PATH
  12308. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12309. hardcode_libdir_separator_CXX=:
  12310. # Commands to make compiler produce verbose output that lists
  12311. # what "hidden" libraries, object files and flags are used when
  12312. # linking a shared library.
  12313. #
  12314. # There doesn't appear to be a way to prevent this compiler from
  12315. # explicitly linking system object files so we need to strip them
  12316. # from the output so that they don't get included in the library
  12317. # dependencies.
  12318. 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'
  12319. ;;
  12320. xl* | mpixl* | bgxl*)
  12321. # IBM XL 8.0 on PPC, with GNU ld
  12322. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12323. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12324. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12325. if test yes = "$supports_anon_versioning"; then
  12326. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  12327. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12328. echo "local: *; };" >> $output_objdir/$libname.ver~
  12329. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  12330. fi
  12331. ;;
  12332. *)
  12333. case `$CC -V 2>&1 | sed 5q` in
  12334. *Sun\ C*)
  12335. # Sun C++ 5.9
  12336. no_undefined_flag_CXX=' -zdefs'
  12337. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12338. 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'
  12339. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12340. 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'
  12341. compiler_needs_object_CXX=yes
  12342. # Not sure whether something based on
  12343. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  12344. # would be better.
  12345. output_verbose_link_cmd='func_echo_all'
  12346. # Archives containing C++ object files must be created using
  12347. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12348. # necessary to make sure instantiated templates are included
  12349. # in the archive.
  12350. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12351. ;;
  12352. esac
  12353. ;;
  12354. esac
  12355. ;;
  12356. lynxos*)
  12357. # FIXME: insert proper C++ library support
  12358. ld_shlibs_CXX=no
  12359. ;;
  12360. m88k*)
  12361. # FIXME: insert proper C++ library support
  12362. ld_shlibs_CXX=no
  12363. ;;
  12364. mvs*)
  12365. case $cc_basename in
  12366. cxx*)
  12367. # FIXME: insert proper C++ library support
  12368. ld_shlibs_CXX=no
  12369. ;;
  12370. *)
  12371. # FIXME: insert proper C++ library support
  12372. ld_shlibs_CXX=no
  12373. ;;
  12374. esac
  12375. ;;
  12376. netbsd*)
  12377. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12378. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  12379. wlarc=
  12380. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12381. hardcode_direct_CXX=yes
  12382. hardcode_shlibpath_var_CXX=no
  12383. fi
  12384. # Workaround some broken pre-1.5 toolchains
  12385. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  12386. ;;
  12387. *nto* | *qnx*)
  12388. ld_shlibs_CXX=yes
  12389. ;;
  12390. openbsd* | bitrig*)
  12391. if test -f /usr/libexec/ld.so; then
  12392. hardcode_direct_CXX=yes
  12393. hardcode_shlibpath_var_CXX=no
  12394. hardcode_direct_absolute_CXX=yes
  12395. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12396. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12397. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  12398. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  12399. export_dynamic_flag_spec_CXX='$wl-E'
  12400. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12401. fi
  12402. output_verbose_link_cmd=func_echo_all
  12403. else
  12404. ld_shlibs_CXX=no
  12405. fi
  12406. ;;
  12407. osf3* | osf4* | osf5*)
  12408. case $cc_basename in
  12409. KCC*)
  12410. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12411. # KCC will only create a shared library if the output file
  12412. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12413. # to its proper name (with version) after linking.
  12414. 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'
  12415. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12416. hardcode_libdir_separator_CXX=:
  12417. # Archives containing C++ object files must be created using
  12418. # the KAI C++ compiler.
  12419. case $host in
  12420. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  12421. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  12422. esac
  12423. ;;
  12424. RCC*)
  12425. # Rational C++ 2.4.1
  12426. # FIXME: insert proper C++ library support
  12427. ld_shlibs_CXX=no
  12428. ;;
  12429. cxx*)
  12430. case $host in
  12431. osf3*)
  12432. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12433. 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'
  12434. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12435. ;;
  12436. *)
  12437. allow_undefined_flag_CXX=' -expect_unresolved \*'
  12438. 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'
  12439. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12440. echo "-hidden">> $lib.exp~
  12441. $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~
  12442. $RM $lib.exp'
  12443. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12444. ;;
  12445. esac
  12446. hardcode_libdir_separator_CXX=:
  12447. # Commands to make compiler produce verbose output that lists
  12448. # what "hidden" libraries, object files and flags are used when
  12449. # linking a shared library.
  12450. #
  12451. # There doesn't appear to be a way to prevent this compiler from
  12452. # explicitly linking system object files so we need to strip them
  12453. # from the output so that they don't get included in the library
  12454. # dependencies.
  12455. 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"'
  12456. ;;
  12457. *)
  12458. if test yes,no = "$GXX,$with_gnu_ld"; then
  12459. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12460. case $host in
  12461. osf3*)
  12462. 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'
  12463. ;;
  12464. *)
  12465. 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'
  12466. ;;
  12467. esac
  12468. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12469. hardcode_libdir_separator_CXX=:
  12470. # Commands to make compiler produce verbose output that lists
  12471. # what "hidden" libraries, object files and flags are used when
  12472. # linking a shared library.
  12473. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12474. else
  12475. # FIXME: insert proper C++ library support
  12476. ld_shlibs_CXX=no
  12477. fi
  12478. ;;
  12479. esac
  12480. ;;
  12481. psos*)
  12482. # FIXME: insert proper C++ library support
  12483. ld_shlibs_CXX=no
  12484. ;;
  12485. sunos4*)
  12486. case $cc_basename in
  12487. CC*)
  12488. # Sun C++ 4.x
  12489. # FIXME: insert proper C++ library support
  12490. ld_shlibs_CXX=no
  12491. ;;
  12492. lcc*)
  12493. # Lucid
  12494. # FIXME: insert proper C++ library support
  12495. ld_shlibs_CXX=no
  12496. ;;
  12497. *)
  12498. # FIXME: insert proper C++ library support
  12499. ld_shlibs_CXX=no
  12500. ;;
  12501. esac
  12502. ;;
  12503. solaris*)
  12504. case $cc_basename in
  12505. CC* | sunCC*)
  12506. # Sun C++ 4.2, 5.x and Centerline C++
  12507. archive_cmds_need_lc_CXX=yes
  12508. no_undefined_flag_CXX=' -zdefs'
  12509. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12510. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12511. $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'
  12512. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12513. hardcode_shlibpath_var_CXX=no
  12514. case $host_os in
  12515. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12516. *)
  12517. # The compiler driver will combine and reorder linker options,
  12518. # but understands '-z linker_flag'.
  12519. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12520. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12521. ;;
  12522. esac
  12523. link_all_deplibs_CXX=yes
  12524. output_verbose_link_cmd='func_echo_all'
  12525. # Archives containing C++ object files must be created using
  12526. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12527. # necessary to make sure instantiated templates are included
  12528. # in the archive.
  12529. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12530. ;;
  12531. gcx*)
  12532. # Green Hills C++ Compiler
  12533. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12534. # The C++ compiler must be used to create the archive.
  12535. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12536. ;;
  12537. *)
  12538. # GNU C++ compiler with Solaris linker
  12539. if test yes,no = "$GXX,$with_gnu_ld"; then
  12540. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  12541. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12542. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12543. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12544. $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'
  12545. # Commands to make compiler produce verbose output that lists
  12546. # what "hidden" libraries, object files and flags are used when
  12547. # linking a shared library.
  12548. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12549. else
  12550. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  12551. # platform.
  12552. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12553. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12554. $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'
  12555. # Commands to make compiler produce verbose output that lists
  12556. # what "hidden" libraries, object files and flags are used when
  12557. # linking a shared library.
  12558. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12559. fi
  12560. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  12561. case $host_os in
  12562. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12563. *)
  12564. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  12565. ;;
  12566. esac
  12567. fi
  12568. ;;
  12569. esac
  12570. ;;
  12571. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12572. no_undefined_flag_CXX='$wl-z,text'
  12573. archive_cmds_need_lc_CXX=no
  12574. hardcode_shlibpath_var_CXX=no
  12575. runpath_var='LD_RUN_PATH'
  12576. case $cc_basename in
  12577. CC*)
  12578. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12579. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12580. ;;
  12581. *)
  12582. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12583. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12584. ;;
  12585. esac
  12586. ;;
  12587. sysv5* | sco3.2v5* | sco5v6*)
  12588. # Note: We CANNOT use -z defs as we might desire, because we do not
  12589. # link with -lc, and that would cause any symbols used from libc to
  12590. # always be unresolved, which means just about no library would
  12591. # ever link correctly. If we're not using GNU ld we use -z text
  12592. # though, which does catch some bad symbols but isn't as heavy-handed
  12593. # as -z defs.
  12594. no_undefined_flag_CXX='$wl-z,text'
  12595. allow_undefined_flag_CXX='$wl-z,nodefs'
  12596. archive_cmds_need_lc_CXX=no
  12597. hardcode_shlibpath_var_CXX=no
  12598. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  12599. hardcode_libdir_separator_CXX=':'
  12600. link_all_deplibs_CXX=yes
  12601. export_dynamic_flag_spec_CXX='$wl-Bexport'
  12602. runpath_var='LD_RUN_PATH'
  12603. case $cc_basename in
  12604. CC*)
  12605. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12606. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12607. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12608. '"$old_archive_cmds_CXX"
  12609. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12610. '"$reload_cmds_CXX"
  12611. ;;
  12612. *)
  12613. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12614. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12615. ;;
  12616. esac
  12617. ;;
  12618. tandem*)
  12619. case $cc_basename in
  12620. NCC*)
  12621. # NonStop-UX NCC 3.20
  12622. # FIXME: insert proper C++ library support
  12623. ld_shlibs_CXX=no
  12624. ;;
  12625. *)
  12626. # FIXME: insert proper C++ library support
  12627. ld_shlibs_CXX=no
  12628. ;;
  12629. esac
  12630. ;;
  12631. vxworks*)
  12632. # FIXME: insert proper C++ library support
  12633. ld_shlibs_CXX=no
  12634. ;;
  12635. *)
  12636. # FIXME: insert proper C++ library support
  12637. ld_shlibs_CXX=no
  12638. ;;
  12639. esac
  12640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12641. $as_echo "$ld_shlibs_CXX" >&6; }
  12642. test no = "$ld_shlibs_CXX" && can_build_shared=no
  12643. GCC_CXX=$GXX
  12644. LD_CXX=$LD
  12645. ## CAVEAT EMPTOR:
  12646. ## There is no encapsulation within the following macros, do not change
  12647. ## the running order or otherwise move them around unless you know exactly
  12648. ## what you are doing...
  12649. # Dependencies to place before and after the object being linked:
  12650. predep_objects_CXX=
  12651. postdep_objects_CXX=
  12652. predeps_CXX=
  12653. postdeps_CXX=
  12654. compiler_lib_search_path_CXX=
  12655. cat > conftest.$ac_ext <<_LT_EOF
  12656. class Foo
  12657. {
  12658. public:
  12659. Foo (void) { a = 0; }
  12660. private:
  12661. int a;
  12662. };
  12663. _LT_EOF
  12664. _lt_libdeps_save_CFLAGS=$CFLAGS
  12665. case "$CC $CFLAGS " in #(
  12666. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12667. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12668. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12669. esac
  12670. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12671. (eval $ac_compile) 2>&5
  12672. ac_status=$?
  12673. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12674. test $ac_status = 0; }; then
  12675. # Parse the compiler output and extract the necessary
  12676. # objects, libraries and library flags.
  12677. # Sentinel used to keep track of whether or not we are before
  12678. # the conftest object file.
  12679. pre_test_object_deps_done=no
  12680. for p in `eval "$output_verbose_link_cmd"`; do
  12681. case $prev$p in
  12682. -L* | -R* | -l*)
  12683. # Some compilers place space between "-{L,R}" and the path.
  12684. # Remove the space.
  12685. if test x-L = "x$p" ||
  12686. test x-R = "x$p" ||
  12687. test x-l = "x$p"; then
  12688. prev=$p
  12689. continue
  12690. fi
  12691. # Expand the sysroot to ease extracting the directories later.
  12692. if test -z "$prev"; then
  12693. case $p in
  12694. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12695. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12696. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12697. esac
  12698. fi
  12699. case $p in
  12700. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12701. esac
  12702. if test no = "$pre_test_object_deps_done"; then
  12703. case $prev in
  12704. -L | -R)
  12705. # Internal compiler library paths should come after those
  12706. # provided the user. The postdeps already come after the
  12707. # user supplied libs so there is no need to process them.
  12708. if test -z "$compiler_lib_search_path_CXX"; then
  12709. compiler_lib_search_path_CXX=$prev$p
  12710. else
  12711. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  12712. fi
  12713. ;;
  12714. # The "-l" case would never come before the object being
  12715. # linked, so don't bother handling this case.
  12716. esac
  12717. else
  12718. if test -z "$postdeps_CXX"; then
  12719. postdeps_CXX=$prev$p
  12720. else
  12721. postdeps_CXX="${postdeps_CXX} $prev$p"
  12722. fi
  12723. fi
  12724. prev=
  12725. ;;
  12726. *.lto.$objext) ;; # Ignore GCC LTO objects
  12727. *.$objext)
  12728. # This assumes that the test object file only shows up
  12729. # once in the compiler output.
  12730. if test "$p" = "conftest.$objext"; then
  12731. pre_test_object_deps_done=yes
  12732. continue
  12733. fi
  12734. if test no = "$pre_test_object_deps_done"; then
  12735. if test -z "$predep_objects_CXX"; then
  12736. predep_objects_CXX=$p
  12737. else
  12738. predep_objects_CXX="$predep_objects_CXX $p"
  12739. fi
  12740. else
  12741. if test -z "$postdep_objects_CXX"; then
  12742. postdep_objects_CXX=$p
  12743. else
  12744. postdep_objects_CXX="$postdep_objects_CXX $p"
  12745. fi
  12746. fi
  12747. ;;
  12748. *) ;; # Ignore the rest.
  12749. esac
  12750. done
  12751. # Clean up.
  12752. rm -f a.out a.exe
  12753. else
  12754. echo "libtool.m4: error: problem compiling CXX test program"
  12755. fi
  12756. $RM -f confest.$objext
  12757. CFLAGS=$_lt_libdeps_save_CFLAGS
  12758. # PORTME: override above test on systems where it is broken
  12759. case $host_os in
  12760. interix[3-9]*)
  12761. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12762. # hack all around it, let's just trust "g++" to DTRT.
  12763. predep_objects_CXX=
  12764. postdep_objects_CXX=
  12765. postdeps_CXX=
  12766. ;;
  12767. esac
  12768. case " $postdeps_CXX " in
  12769. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12770. esac
  12771. compiler_lib_search_dirs_CXX=
  12772. if test -n "${compiler_lib_search_path_CXX}"; then
  12773. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  12774. fi
  12775. lt_prog_compiler_wl_CXX=
  12776. lt_prog_compiler_pic_CXX=
  12777. lt_prog_compiler_static_CXX=
  12778. # C++ specific cases for pic, static, wl, etc.
  12779. if test yes = "$GXX"; then
  12780. lt_prog_compiler_wl_CXX='-Wl,'
  12781. lt_prog_compiler_static_CXX='-static'
  12782. case $host_os in
  12783. aix*)
  12784. # All AIX code is PIC.
  12785. if test ia64 = "$host_cpu"; then
  12786. # AIX 5 now supports IA64 processor
  12787. lt_prog_compiler_static_CXX='-Bstatic'
  12788. fi
  12789. lt_prog_compiler_pic_CXX='-fPIC'
  12790. ;;
  12791. amigaos*)
  12792. case $host_cpu in
  12793. powerpc)
  12794. # see comment about AmigaOS4 .so support
  12795. lt_prog_compiler_pic_CXX='-fPIC'
  12796. ;;
  12797. m68k)
  12798. # FIXME: we need at least 68020 code to build shared libraries, but
  12799. # adding the '-m68020' flag to GCC prevents building anything better,
  12800. # like '-m68040'.
  12801. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12802. ;;
  12803. esac
  12804. ;;
  12805. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12806. # PIC is the default for these OSes.
  12807. ;;
  12808. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12809. # This hack is so that the source file can tell whether it is being
  12810. # built for inclusion in a dll (and should export symbols for example).
  12811. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12812. # (--disable-auto-import) libraries
  12813. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12814. case $host_os in
  12815. os2*)
  12816. lt_prog_compiler_static_CXX='$wl-static'
  12817. ;;
  12818. esac
  12819. ;;
  12820. darwin* | rhapsody*)
  12821. # PIC is the default on this platform
  12822. # Common symbols not allowed in MH_DYLIB files
  12823. lt_prog_compiler_pic_CXX='-fno-common'
  12824. ;;
  12825. *djgpp*)
  12826. # DJGPP does not support shared libraries at all
  12827. lt_prog_compiler_pic_CXX=
  12828. ;;
  12829. haiku*)
  12830. # PIC is the default for Haiku.
  12831. # The "-static" flag exists, but is broken.
  12832. lt_prog_compiler_static_CXX=
  12833. ;;
  12834. interix[3-9]*)
  12835. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12836. # Instead, we relocate shared libraries at runtime.
  12837. ;;
  12838. sysv4*MP*)
  12839. if test -d /usr/nec; then
  12840. lt_prog_compiler_pic_CXX=-Kconform_pic
  12841. fi
  12842. ;;
  12843. hpux*)
  12844. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12845. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12846. # sets the default TLS model and affects inlining.
  12847. case $host_cpu in
  12848. hppa*64*)
  12849. ;;
  12850. *)
  12851. lt_prog_compiler_pic_CXX='-fPIC'
  12852. ;;
  12853. esac
  12854. ;;
  12855. *qnx* | *nto*)
  12856. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12857. # it will coredump.
  12858. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12859. ;;
  12860. *)
  12861. lt_prog_compiler_pic_CXX='-fPIC'
  12862. ;;
  12863. esac
  12864. else
  12865. case $host_os in
  12866. aix[4-9]*)
  12867. # All AIX code is PIC.
  12868. if test ia64 = "$host_cpu"; then
  12869. # AIX 5 now supports IA64 processor
  12870. lt_prog_compiler_static_CXX='-Bstatic'
  12871. else
  12872. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12873. fi
  12874. ;;
  12875. chorus*)
  12876. case $cc_basename in
  12877. cxch68*)
  12878. # Green Hills C++ Compiler
  12879. # _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"
  12880. ;;
  12881. esac
  12882. ;;
  12883. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12884. # This hack is so that the source file can tell whether it is being
  12885. # built for inclusion in a dll (and should export symbols for example).
  12886. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12887. ;;
  12888. dgux*)
  12889. case $cc_basename in
  12890. ec++*)
  12891. lt_prog_compiler_pic_CXX='-KPIC'
  12892. ;;
  12893. ghcx*)
  12894. # Green Hills C++ Compiler
  12895. lt_prog_compiler_pic_CXX='-pic'
  12896. ;;
  12897. *)
  12898. ;;
  12899. esac
  12900. ;;
  12901. freebsd* | dragonfly* | midnightbsd*)
  12902. # FreeBSD uses GNU C++
  12903. ;;
  12904. hpux9* | hpux10* | hpux11*)
  12905. case $cc_basename in
  12906. CC*)
  12907. lt_prog_compiler_wl_CXX='-Wl,'
  12908. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12909. if test ia64 != "$host_cpu"; then
  12910. lt_prog_compiler_pic_CXX='+Z'
  12911. fi
  12912. ;;
  12913. aCC*)
  12914. lt_prog_compiler_wl_CXX='-Wl,'
  12915. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12916. case $host_cpu in
  12917. hppa*64*|ia64*)
  12918. # +Z the default
  12919. ;;
  12920. *)
  12921. lt_prog_compiler_pic_CXX='+Z'
  12922. ;;
  12923. esac
  12924. ;;
  12925. *)
  12926. ;;
  12927. esac
  12928. ;;
  12929. interix*)
  12930. # This is c89, which is MS Visual C++ (no shared libs)
  12931. # Anyone wants to do a port?
  12932. ;;
  12933. irix5* | irix6* | nonstopux*)
  12934. case $cc_basename in
  12935. CC*)
  12936. lt_prog_compiler_wl_CXX='-Wl,'
  12937. lt_prog_compiler_static_CXX='-non_shared'
  12938. # CC pic flag -KPIC is the default.
  12939. ;;
  12940. *)
  12941. ;;
  12942. esac
  12943. ;;
  12944. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12945. case $cc_basename in
  12946. KCC*)
  12947. # KAI C++ Compiler
  12948. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12949. lt_prog_compiler_pic_CXX='-fPIC'
  12950. ;;
  12951. ecpc* )
  12952. # old Intel C++ for x86_64, which still supported -KPIC.
  12953. lt_prog_compiler_wl_CXX='-Wl,'
  12954. lt_prog_compiler_pic_CXX='-KPIC'
  12955. lt_prog_compiler_static_CXX='-static'
  12956. ;;
  12957. icpc* )
  12958. # Intel C++, used to be incompatible with GCC.
  12959. # ICC 10 doesn't accept -KPIC any more.
  12960. lt_prog_compiler_wl_CXX='-Wl,'
  12961. lt_prog_compiler_pic_CXX='-fPIC'
  12962. lt_prog_compiler_static_CXX='-static'
  12963. ;;
  12964. pgCC* | pgcpp*)
  12965. # Portland Group C++ compiler
  12966. lt_prog_compiler_wl_CXX='-Wl,'
  12967. lt_prog_compiler_pic_CXX='-fpic'
  12968. lt_prog_compiler_static_CXX='-Bstatic'
  12969. ;;
  12970. cxx*)
  12971. # Compaq C++
  12972. # Make sure the PIC flag is empty. It appears that all Alpha
  12973. # Linux and Compaq Tru64 Unix objects are PIC.
  12974. lt_prog_compiler_pic_CXX=
  12975. lt_prog_compiler_static_CXX='-non_shared'
  12976. ;;
  12977. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12978. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12979. lt_prog_compiler_wl_CXX='-Wl,'
  12980. lt_prog_compiler_pic_CXX='-qpic'
  12981. lt_prog_compiler_static_CXX='-qstaticlink'
  12982. ;;
  12983. *)
  12984. case `$CC -V 2>&1 | sed 5q` in
  12985. *Sun\ C*)
  12986. # Sun C++ 5.9
  12987. lt_prog_compiler_pic_CXX='-KPIC'
  12988. lt_prog_compiler_static_CXX='-Bstatic'
  12989. lt_prog_compiler_wl_CXX='-Qoption ld '
  12990. ;;
  12991. esac
  12992. ;;
  12993. esac
  12994. ;;
  12995. lynxos*)
  12996. ;;
  12997. m88k*)
  12998. ;;
  12999. mvs*)
  13000. case $cc_basename in
  13001. cxx*)
  13002. lt_prog_compiler_pic_CXX='-W c,exportall'
  13003. ;;
  13004. *)
  13005. ;;
  13006. esac
  13007. ;;
  13008. netbsd*)
  13009. ;;
  13010. *qnx* | *nto*)
  13011. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13012. # it will coredump.
  13013. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13014. ;;
  13015. osf3* | osf4* | osf5*)
  13016. case $cc_basename in
  13017. KCC*)
  13018. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13019. ;;
  13020. RCC*)
  13021. # Rational C++ 2.4.1
  13022. lt_prog_compiler_pic_CXX='-pic'
  13023. ;;
  13024. cxx*)
  13025. # Digital/Compaq C++
  13026. lt_prog_compiler_wl_CXX='-Wl,'
  13027. # Make sure the PIC flag is empty. It appears that all Alpha
  13028. # Linux and Compaq Tru64 Unix objects are PIC.
  13029. lt_prog_compiler_pic_CXX=
  13030. lt_prog_compiler_static_CXX='-non_shared'
  13031. ;;
  13032. *)
  13033. ;;
  13034. esac
  13035. ;;
  13036. psos*)
  13037. ;;
  13038. solaris*)
  13039. case $cc_basename in
  13040. CC* | sunCC*)
  13041. # Sun C++ 4.2, 5.x and Centerline C++
  13042. lt_prog_compiler_pic_CXX='-KPIC'
  13043. lt_prog_compiler_static_CXX='-Bstatic'
  13044. lt_prog_compiler_wl_CXX='-Qoption ld '
  13045. ;;
  13046. gcx*)
  13047. # Green Hills C++ Compiler
  13048. lt_prog_compiler_pic_CXX='-PIC'
  13049. ;;
  13050. *)
  13051. ;;
  13052. esac
  13053. ;;
  13054. sunos4*)
  13055. case $cc_basename in
  13056. CC*)
  13057. # Sun C++ 4.x
  13058. lt_prog_compiler_pic_CXX='-pic'
  13059. lt_prog_compiler_static_CXX='-Bstatic'
  13060. ;;
  13061. lcc*)
  13062. # Lucid
  13063. lt_prog_compiler_pic_CXX='-pic'
  13064. ;;
  13065. *)
  13066. ;;
  13067. esac
  13068. ;;
  13069. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13070. case $cc_basename in
  13071. CC*)
  13072. lt_prog_compiler_wl_CXX='-Wl,'
  13073. lt_prog_compiler_pic_CXX='-KPIC'
  13074. lt_prog_compiler_static_CXX='-Bstatic'
  13075. ;;
  13076. esac
  13077. ;;
  13078. tandem*)
  13079. case $cc_basename in
  13080. NCC*)
  13081. # NonStop-UX NCC 3.20
  13082. lt_prog_compiler_pic_CXX='-KPIC'
  13083. ;;
  13084. *)
  13085. ;;
  13086. esac
  13087. ;;
  13088. vxworks*)
  13089. ;;
  13090. *)
  13091. lt_prog_compiler_can_build_shared_CXX=no
  13092. ;;
  13093. esac
  13094. fi
  13095. case $host_os in
  13096. # For platforms that do not support PIC, -DPIC is meaningless:
  13097. *djgpp*)
  13098. lt_prog_compiler_pic_CXX=
  13099. ;;
  13100. *)
  13101. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  13102. ;;
  13103. esac
  13104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  13105. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  13106. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  13107. $as_echo_n "(cached) " >&6
  13108. else
  13109. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  13110. fi
  13111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  13112. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  13113. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  13114. #
  13115. # Check to make sure the PIC flag actually works.
  13116. #
  13117. if test -n "$lt_prog_compiler_pic_CXX"; then
  13118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  13119. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  13120. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  13121. $as_echo_n "(cached) " >&6
  13122. else
  13123. lt_cv_prog_compiler_pic_works_CXX=no
  13124. ac_outfile=conftest.$ac_objext
  13125. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13126. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  13127. # Insert the option either (1) after the last *FLAGS variable, or
  13128. # (2) before a word containing "conftest.", or (3) at the end.
  13129. # Note that $ac_compile itself does not contain backslashes and begins
  13130. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13131. # The option is referenced via a variable to avoid confusing sed.
  13132. lt_compile=`echo "$ac_compile" | $SED \
  13133. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13134. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13135. -e 's:$: $lt_compiler_flag:'`
  13136. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13137. (eval "$lt_compile" 2>conftest.err)
  13138. ac_status=$?
  13139. cat conftest.err >&5
  13140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13141. if (exit $ac_status) && test -s "$ac_outfile"; then
  13142. # The compiler can only warn and ignore the option if not recognized
  13143. # So say no if there are warnings other than the usual output.
  13144. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  13145. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13146. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13147. lt_cv_prog_compiler_pic_works_CXX=yes
  13148. fi
  13149. fi
  13150. $RM conftest*
  13151. fi
  13152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  13153. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  13154. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  13155. case $lt_prog_compiler_pic_CXX in
  13156. "" | " "*) ;;
  13157. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  13158. esac
  13159. else
  13160. lt_prog_compiler_pic_CXX=
  13161. lt_prog_compiler_can_build_shared_CXX=no
  13162. fi
  13163. fi
  13164. #
  13165. # Check to make sure the static flag actually works.
  13166. #
  13167. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  13168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13169. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  13170. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  13171. $as_echo_n "(cached) " >&6
  13172. else
  13173. lt_cv_prog_compiler_static_works_CXX=no
  13174. save_LDFLAGS=$LDFLAGS
  13175. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13176. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13177. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13178. # The linker can only warn and ignore the option if not recognized
  13179. # So say no if there are warnings
  13180. if test -s conftest.err; then
  13181. # Append any errors to the config.log.
  13182. cat conftest.err 1>&5
  13183. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  13184. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13185. if diff conftest.exp conftest.er2 >/dev/null; then
  13186. lt_cv_prog_compiler_static_works_CXX=yes
  13187. fi
  13188. else
  13189. lt_cv_prog_compiler_static_works_CXX=yes
  13190. fi
  13191. fi
  13192. $RM -r conftest*
  13193. LDFLAGS=$save_LDFLAGS
  13194. fi
  13195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  13196. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  13197. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  13198. :
  13199. else
  13200. lt_prog_compiler_static_CXX=
  13201. fi
  13202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13203. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13204. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13205. $as_echo_n "(cached) " >&6
  13206. else
  13207. lt_cv_prog_compiler_c_o_CXX=no
  13208. $RM -r conftest 2>/dev/null
  13209. mkdir conftest
  13210. cd conftest
  13211. mkdir out
  13212. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13213. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13214. # Insert the option either (1) after the last *FLAGS variable, or
  13215. # (2) before a word containing "conftest.", or (3) at the end.
  13216. # Note that $ac_compile itself does not contain backslashes and begins
  13217. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13218. lt_compile=`echo "$ac_compile" | $SED \
  13219. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13220. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13221. -e 's:$: $lt_compiler_flag:'`
  13222. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13223. (eval "$lt_compile" 2>out/conftest.err)
  13224. ac_status=$?
  13225. cat out/conftest.err >&5
  13226. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13227. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13228. then
  13229. # The compiler can only warn and ignore the option if not recognized
  13230. # So say no if there are warnings
  13231. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13232. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13233. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13234. lt_cv_prog_compiler_c_o_CXX=yes
  13235. fi
  13236. fi
  13237. chmod u+w . 2>&5
  13238. $RM conftest*
  13239. # SGI C++ compiler will create directory out/ii_files/ for
  13240. # template instantiation
  13241. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13242. $RM out/* && rmdir out
  13243. cd ..
  13244. $RM -r conftest
  13245. $RM conftest*
  13246. fi
  13247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13248. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13250. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13251. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13252. $as_echo_n "(cached) " >&6
  13253. else
  13254. lt_cv_prog_compiler_c_o_CXX=no
  13255. $RM -r conftest 2>/dev/null
  13256. mkdir conftest
  13257. cd conftest
  13258. mkdir out
  13259. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13260. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13261. # Insert the option either (1) after the last *FLAGS variable, or
  13262. # (2) before a word containing "conftest.", or (3) at the end.
  13263. # Note that $ac_compile itself does not contain backslashes and begins
  13264. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13265. lt_compile=`echo "$ac_compile" | $SED \
  13266. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13267. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13268. -e 's:$: $lt_compiler_flag:'`
  13269. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13270. (eval "$lt_compile" 2>out/conftest.err)
  13271. ac_status=$?
  13272. cat out/conftest.err >&5
  13273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13274. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13275. then
  13276. # The compiler can only warn and ignore the option if not recognized
  13277. # So say no if there are warnings
  13278. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13279. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13280. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13281. lt_cv_prog_compiler_c_o_CXX=yes
  13282. fi
  13283. fi
  13284. chmod u+w . 2>&5
  13285. $RM conftest*
  13286. # SGI C++ compiler will create directory out/ii_files/ for
  13287. # template instantiation
  13288. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13289. $RM out/* && rmdir out
  13290. cd ..
  13291. $RM -r conftest
  13292. $RM conftest*
  13293. fi
  13294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13295. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13296. hard_links=nottested
  13297. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  13298. # do not overwrite the value of need_locks provided by the user
  13299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  13300. $as_echo_n "checking if we can lock with hard links... " >&6; }
  13301. hard_links=yes
  13302. $RM conftest*
  13303. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13304. touch conftest.a
  13305. ln conftest.a conftest.b 2>&5 || hard_links=no
  13306. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  13308. $as_echo "$hard_links" >&6; }
  13309. if test no = "$hard_links"; then
  13310. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  13311. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  13312. need_locks=warn
  13313. fi
  13314. else
  13315. need_locks=no
  13316. fi
  13317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13318. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13319. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13320. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  13321. case $host_os in
  13322. aix[4-9]*)
  13323. # If we're using GNU nm, then we don't want the "-C" option.
  13324. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  13325. # Without the "-l" option, or with the "-B" option, AIX nm treats
  13326. # weak defined symbols like other global defined symbols, whereas
  13327. # GNU nm marks them as "W".
  13328. # While the 'weak' keyword is ignored in the Export File, we need
  13329. # it in the Import File for the 'aix-soname' feature, so we have
  13330. # to replace the "-B" option with "-P" for AIX nm.
  13331. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  13332. 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'
  13333. else
  13334. 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'
  13335. fi
  13336. ;;
  13337. pw32*)
  13338. export_symbols_cmds_CXX=$ltdll_cmds
  13339. ;;
  13340. cygwin* | mingw* | cegcc*)
  13341. case $cc_basename in
  13342. cl*)
  13343. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  13344. ;;
  13345. *)
  13346. 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'
  13347. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  13348. ;;
  13349. esac
  13350. ;;
  13351. *)
  13352. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13353. ;;
  13354. esac
  13355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13356. $as_echo "$ld_shlibs_CXX" >&6; }
  13357. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13358. with_gnu_ld_CXX=$with_gnu_ld
  13359. #
  13360. # Do we need to explicitly link libc?
  13361. #
  13362. case "x$archive_cmds_need_lc_CXX" in
  13363. x|xyes)
  13364. # Assume -lc should be added
  13365. archive_cmds_need_lc_CXX=yes
  13366. if test yes,yes = "$GCC,$enable_shared"; then
  13367. case $archive_cmds_CXX in
  13368. *'~'*)
  13369. # FIXME: we may have to deal with multi-command sequences.
  13370. ;;
  13371. '$CC '*)
  13372. # Test whether the compiler implicitly links with -lc since on some
  13373. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13374. # to ld, don't add -lc before -lgcc.
  13375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  13376. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  13377. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  13378. $as_echo_n "(cached) " >&6
  13379. else
  13380. $RM conftest*
  13381. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13382. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13383. (eval $ac_compile) 2>&5
  13384. ac_status=$?
  13385. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13386. test $ac_status = 0; } 2>conftest.err; then
  13387. soname=conftest
  13388. lib=conftest
  13389. libobjs=conftest.$ac_objext
  13390. deplibs=
  13391. wl=$lt_prog_compiler_wl_CXX
  13392. pic_flag=$lt_prog_compiler_pic_CXX
  13393. compiler_flags=-v
  13394. linker_flags=-v
  13395. verstring=
  13396. output_objdir=.
  13397. libname=conftest
  13398. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  13399. allow_undefined_flag_CXX=
  13400. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  13401. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13402. ac_status=$?
  13403. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13404. test $ac_status = 0; }
  13405. then
  13406. lt_cv_archive_cmds_need_lc_CXX=no
  13407. else
  13408. lt_cv_archive_cmds_need_lc_CXX=yes
  13409. fi
  13410. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  13411. else
  13412. cat conftest.err 1>&5
  13413. fi
  13414. $RM conftest*
  13415. fi
  13416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  13417. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  13418. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  13419. ;;
  13420. esac
  13421. fi
  13422. ;;
  13423. esac
  13424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  13425. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  13426. library_names_spec=
  13427. libname_spec='lib$name'
  13428. soname_spec=
  13429. shrext_cmds=.so
  13430. postinstall_cmds=
  13431. postuninstall_cmds=
  13432. finish_cmds=
  13433. finish_eval=
  13434. shlibpath_var=
  13435. shlibpath_overrides_runpath=unknown
  13436. version_type=none
  13437. dynamic_linker="$host_os ld.so"
  13438. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13439. need_lib_prefix=unknown
  13440. hardcode_into_libs=no
  13441. # when you set need_version to no, make sure it does not cause -set_version
  13442. # flags to be left without arguments
  13443. need_version=unknown
  13444. case $host_os in
  13445. aix3*)
  13446. version_type=linux # correct to gnu/linux during the next big refactor
  13447. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  13448. shlibpath_var=LIBPATH
  13449. # AIX 3 has no versioning support, so we append a major version to the name.
  13450. soname_spec='$libname$release$shared_ext$major'
  13451. ;;
  13452. aix[4-9]*)
  13453. version_type=linux # correct to gnu/linux during the next big refactor
  13454. need_lib_prefix=no
  13455. need_version=no
  13456. hardcode_into_libs=yes
  13457. if test ia64 = "$host_cpu"; then
  13458. # AIX 5 supports IA64
  13459. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  13460. shlibpath_var=LD_LIBRARY_PATH
  13461. else
  13462. # With GCC up to 2.95.x, collect2 would create an import file
  13463. # for dependence libraries. The import file would start with
  13464. # the line '#! .'. This would cause the generated library to
  13465. # depend on '.', always an invalid library. This was fixed in
  13466. # development snapshots of GCC prior to 3.0.
  13467. case $host_os in
  13468. aix4 | aix4.[01] | aix4.[01].*)
  13469. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13470. echo ' yes '
  13471. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  13472. :
  13473. else
  13474. can_build_shared=no
  13475. fi
  13476. ;;
  13477. esac
  13478. # Using Import Files as archive members, it is possible to support
  13479. # filename-based versioning of shared library archives on AIX. While
  13480. # this would work for both with and without runtime linking, it will
  13481. # prevent static linking of such archives. So we do filename-based
  13482. # shared library versioning with .so extension only, which is used
  13483. # when both runtime linking and shared linking is enabled.
  13484. # Unfortunately, runtime linking may impact performance, so we do
  13485. # not want this to be the default eventually. Also, we use the
  13486. # versioned .so libs for executables only if there is the -brtl
  13487. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  13488. # To allow for filename-based versioning support, we need to create
  13489. # libNAME.so.V as an archive file, containing:
  13490. # *) an Import File, referring to the versioned filename of the
  13491. # archive as well as the shared archive member, telling the
  13492. # bitwidth (32 or 64) of that shared object, and providing the
  13493. # list of exported symbols of that shared object, eventually
  13494. # decorated with the 'weak' keyword
  13495. # *) the shared object with the F_LOADONLY flag set, to really avoid
  13496. # it being seen by the linker.
  13497. # At run time we better use the real file rather than another symlink,
  13498. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  13499. case $with_aix_soname,$aix_use_runtimelinking in
  13500. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  13501. # soname into executable. Probably we can add versioning support to
  13502. # collect2, so additional links can be useful in future.
  13503. aix,yes) # traditional libtool
  13504. dynamic_linker='AIX unversionable lib.so'
  13505. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13506. # instead of lib<name>.a to let people know that these are not
  13507. # typical AIX shared libraries.
  13508. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13509. ;;
  13510. aix,no) # traditional AIX only
  13511. dynamic_linker='AIX lib.a(lib.so.V)'
  13512. # We preserve .a as extension for shared libraries through AIX4.2
  13513. # and later when we are not doing run time linking.
  13514. library_names_spec='$libname$release.a $libname.a'
  13515. soname_spec='$libname$release$shared_ext$major'
  13516. ;;
  13517. svr4,*) # full svr4 only
  13518. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  13519. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13520. # We do not specify a path in Import Files, so LIBPATH fires.
  13521. shlibpath_overrides_runpath=yes
  13522. ;;
  13523. *,yes) # both, prefer svr4
  13524. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  13525. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13526. # unpreferred sharedlib libNAME.a needs extra handling
  13527. 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"'
  13528. 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"'
  13529. # We do not specify a path in Import Files, so LIBPATH fires.
  13530. shlibpath_overrides_runpath=yes
  13531. ;;
  13532. *,no) # both, prefer aix
  13533. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  13534. library_names_spec='$libname$release.a $libname.a'
  13535. soname_spec='$libname$release$shared_ext$major'
  13536. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  13537. 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)'
  13538. 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"'
  13539. ;;
  13540. esac
  13541. shlibpath_var=LIBPATH
  13542. fi
  13543. ;;
  13544. amigaos*)
  13545. case $host_cpu in
  13546. powerpc)
  13547. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13548. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13549. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13550. ;;
  13551. m68k)
  13552. library_names_spec='$libname.ixlibrary $libname.a'
  13553. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13554. 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'
  13555. ;;
  13556. esac
  13557. ;;
  13558. beos*)
  13559. library_names_spec='$libname$shared_ext'
  13560. dynamic_linker="$host_os ld.so"
  13561. shlibpath_var=LIBRARY_PATH
  13562. ;;
  13563. bsdi[45]*)
  13564. version_type=linux # correct to gnu/linux during the next big refactor
  13565. need_version=no
  13566. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13567. soname_spec='$libname$release$shared_ext$major'
  13568. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13569. shlibpath_var=LD_LIBRARY_PATH
  13570. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13571. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13572. # the default ld.so.conf also contains /usr/contrib/lib and
  13573. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13574. # libtool to hard-code these into programs
  13575. ;;
  13576. cygwin* | mingw* | pw32* | cegcc*)
  13577. version_type=windows
  13578. shrext_cmds=.dll
  13579. need_version=no
  13580. need_lib_prefix=no
  13581. case $GCC,$cc_basename in
  13582. yes,*)
  13583. # gcc
  13584. library_names_spec='$libname.dll.a'
  13585. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13586. postinstall_cmds='base_file=`basename \$file`~
  13587. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13588. dldir=$destdir/`dirname \$dlpath`~
  13589. test -d \$dldir || mkdir -p \$dldir~
  13590. $install_prog $dir/$dlname \$dldir/$dlname~
  13591. chmod a+x \$dldir/$dlname~
  13592. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13593. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13594. fi'
  13595. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13596. dlpath=$dir/\$dldll~
  13597. $RM \$dlpath'
  13598. shlibpath_overrides_runpath=yes
  13599. case $host_os in
  13600. cygwin*)
  13601. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13602. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  13603. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  13604. ;;
  13605. mingw* | cegcc*)
  13606. # MinGW DLLs use traditional 'lib' prefix
  13607. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  13608. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  13609. ;;
  13610. pw32*)
  13611. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13612. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13613. ;;
  13614. esac
  13615. dynamic_linker='Win32 ld.exe'
  13616. ;;
  13617. *,cl*)
  13618. # Native MSVC
  13619. libname_spec='$name'
  13620. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13621. library_names_spec='$libname.dll.lib'
  13622. case $build_os in
  13623. mingw*)
  13624. sys_lib_search_path_spec=
  13625. lt_save_ifs=$IFS
  13626. IFS=';'
  13627. for lt_path in $LIB
  13628. do
  13629. IFS=$lt_save_ifs
  13630. # Let DOS variable expansion print the short 8.3 style file name.
  13631. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13632. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13633. done
  13634. IFS=$lt_save_ifs
  13635. # Convert to MSYS style.
  13636. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13637. ;;
  13638. cygwin*)
  13639. # Convert to unix form, then to dos form, then back to unix form
  13640. # but this time dos style (no spaces!) so that the unix form looks
  13641. # like /cygdrive/c/PROGRA~1:/cygdr...
  13642. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13643. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13644. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13645. ;;
  13646. *)
  13647. sys_lib_search_path_spec=$LIB
  13648. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13649. # It is most probably a Windows format PATH.
  13650. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13651. else
  13652. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13653. fi
  13654. # FIXME: find the short name or the path components, as spaces are
  13655. # common. (e.g. "Program Files" -> "PROGRA~1")
  13656. ;;
  13657. esac
  13658. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13659. postinstall_cmds='base_file=`basename \$file`~
  13660. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13661. dldir=$destdir/`dirname \$dlpath`~
  13662. test -d \$dldir || mkdir -p \$dldir~
  13663. $install_prog $dir/$dlname \$dldir/$dlname'
  13664. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13665. dlpath=$dir/\$dldll~
  13666. $RM \$dlpath'
  13667. shlibpath_overrides_runpath=yes
  13668. dynamic_linker='Win32 link.exe'
  13669. ;;
  13670. *)
  13671. # Assume MSVC wrapper
  13672. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  13673. dynamic_linker='Win32 ld.exe'
  13674. ;;
  13675. esac
  13676. # FIXME: first we should search . and the directory the executable is in
  13677. shlibpath_var=PATH
  13678. ;;
  13679. darwin* | rhapsody*)
  13680. dynamic_linker="$host_os dyld"
  13681. version_type=darwin
  13682. need_lib_prefix=no
  13683. need_version=no
  13684. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  13685. soname_spec='$libname$release$major$shared_ext'
  13686. shlibpath_overrides_runpath=yes
  13687. shlibpath_var=DYLD_LIBRARY_PATH
  13688. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13689. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13690. ;;
  13691. dgux*)
  13692. version_type=linux # correct to gnu/linux during the next big refactor
  13693. need_lib_prefix=no
  13694. need_version=no
  13695. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13696. soname_spec='$libname$release$shared_ext$major'
  13697. shlibpath_var=LD_LIBRARY_PATH
  13698. ;;
  13699. freebsd* | dragonfly* | midnightbsd*)
  13700. # DragonFly does not have aout. When/if they implement a new
  13701. # versioning mechanism, adjust this.
  13702. if test -x /usr/bin/objformat; then
  13703. objformat=`/usr/bin/objformat`
  13704. else
  13705. case $host_os in
  13706. freebsd[23].*) objformat=aout ;;
  13707. *) objformat=elf ;;
  13708. esac
  13709. fi
  13710. version_type=freebsd-$objformat
  13711. case $version_type in
  13712. freebsd-elf*)
  13713. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13714. soname_spec='$libname$release$shared_ext$major'
  13715. need_version=no
  13716. need_lib_prefix=no
  13717. ;;
  13718. freebsd-*)
  13719. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13720. need_version=yes
  13721. ;;
  13722. esac
  13723. shlibpath_var=LD_LIBRARY_PATH
  13724. case $host_os in
  13725. freebsd2.*)
  13726. shlibpath_overrides_runpath=yes
  13727. ;;
  13728. freebsd3.[01]* | freebsdelf3.[01]*)
  13729. shlibpath_overrides_runpath=yes
  13730. hardcode_into_libs=yes
  13731. ;;
  13732. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13733. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13734. shlibpath_overrides_runpath=no
  13735. hardcode_into_libs=yes
  13736. ;;
  13737. *) # from 4.6 on, and DragonFly
  13738. shlibpath_overrides_runpath=yes
  13739. hardcode_into_libs=yes
  13740. ;;
  13741. esac
  13742. ;;
  13743. haiku*)
  13744. version_type=linux # correct to gnu/linux during the next big refactor
  13745. need_lib_prefix=no
  13746. need_version=no
  13747. dynamic_linker="$host_os runtime_loader"
  13748. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13749. soname_spec='$libname$release$shared_ext$major'
  13750. shlibpath_var=LIBRARY_PATH
  13751. shlibpath_overrides_runpath=no
  13752. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13753. hardcode_into_libs=yes
  13754. ;;
  13755. hpux9* | hpux10* | hpux11*)
  13756. # Give a soname corresponding to the major version so that dld.sl refuses to
  13757. # link against other versions.
  13758. version_type=sunos
  13759. need_lib_prefix=no
  13760. need_version=no
  13761. case $host_cpu in
  13762. ia64*)
  13763. shrext_cmds='.so'
  13764. hardcode_into_libs=yes
  13765. dynamic_linker="$host_os dld.so"
  13766. shlibpath_var=LD_LIBRARY_PATH
  13767. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13768. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13769. soname_spec='$libname$release$shared_ext$major'
  13770. if test 32 = "$HPUX_IA64_MODE"; then
  13771. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13772. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  13773. else
  13774. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13775. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  13776. fi
  13777. ;;
  13778. hppa*64*)
  13779. shrext_cmds='.sl'
  13780. hardcode_into_libs=yes
  13781. dynamic_linker="$host_os dld.sl"
  13782. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13783. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13784. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13785. soname_spec='$libname$release$shared_ext$major'
  13786. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13787. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13788. ;;
  13789. *)
  13790. shrext_cmds='.sl'
  13791. dynamic_linker="$host_os dld.sl"
  13792. shlibpath_var=SHLIB_PATH
  13793. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13794. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13795. soname_spec='$libname$release$shared_ext$major'
  13796. ;;
  13797. esac
  13798. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13799. postinstall_cmds='chmod 555 $lib'
  13800. # or fails outright, so override atomically:
  13801. install_override_mode=555
  13802. ;;
  13803. interix[3-9]*)
  13804. version_type=linux # correct to gnu/linux during the next big refactor
  13805. need_lib_prefix=no
  13806. need_version=no
  13807. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13808. soname_spec='$libname$release$shared_ext$major'
  13809. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13810. shlibpath_var=LD_LIBRARY_PATH
  13811. shlibpath_overrides_runpath=no
  13812. hardcode_into_libs=yes
  13813. ;;
  13814. irix5* | irix6* | nonstopux*)
  13815. case $host_os in
  13816. nonstopux*) version_type=nonstopux ;;
  13817. *)
  13818. if test yes = "$lt_cv_prog_gnu_ld"; then
  13819. version_type=linux # correct to gnu/linux during the next big refactor
  13820. else
  13821. version_type=irix
  13822. fi ;;
  13823. esac
  13824. need_lib_prefix=no
  13825. need_version=no
  13826. soname_spec='$libname$release$shared_ext$major'
  13827. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  13828. case $host_os in
  13829. irix5* | nonstopux*)
  13830. libsuff= shlibsuff=
  13831. ;;
  13832. *)
  13833. case $LD in # libtool.m4 will add one of these switches to LD
  13834. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13835. libsuff= shlibsuff= libmagic=32-bit;;
  13836. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13837. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13838. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13839. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13840. *) libsuff= shlibsuff= libmagic=never-match;;
  13841. esac
  13842. ;;
  13843. esac
  13844. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13845. shlibpath_overrides_runpath=no
  13846. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  13847. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  13848. hardcode_into_libs=yes
  13849. ;;
  13850. # No shared lib support for Linux oldld, aout, or coff.
  13851. linux*oldld* | linux*aout* | linux*coff*)
  13852. dynamic_linker=no
  13853. ;;
  13854. linux*android*)
  13855. version_type=none # Android doesn't support versioned libraries.
  13856. need_lib_prefix=no
  13857. need_version=no
  13858. library_names_spec='$libname$release$shared_ext'
  13859. soname_spec='$libname$release$shared_ext'
  13860. finish_cmds=
  13861. shlibpath_var=LD_LIBRARY_PATH
  13862. shlibpath_overrides_runpath=yes
  13863. # This implies no fast_install, which is unacceptable.
  13864. # Some rework will be needed to allow for fast_install
  13865. # before this can be enabled.
  13866. hardcode_into_libs=yes
  13867. dynamic_linker='Android linker'
  13868. # Don't embed -rpath directories since the linker doesn't support them.
  13869. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13870. ;;
  13871. # This must be glibc/ELF.
  13872. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13873. version_type=linux # correct to gnu/linux during the next big refactor
  13874. need_lib_prefix=no
  13875. need_version=no
  13876. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13877. soname_spec='$libname$release$shared_ext$major'
  13878. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13879. shlibpath_var=LD_LIBRARY_PATH
  13880. shlibpath_overrides_runpath=no
  13881. # Some binutils ld are patched to set DT_RUNPATH
  13882. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13883. $as_echo_n "(cached) " >&6
  13884. else
  13885. lt_cv_shlibpath_overrides_runpath=no
  13886. save_LDFLAGS=$LDFLAGS
  13887. save_libdir=$libdir
  13888. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13889. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13891. /* end confdefs.h. */
  13892. int
  13893. main ()
  13894. {
  13895. ;
  13896. return 0;
  13897. }
  13898. _ACEOF
  13899. if ac_fn_cxx_try_link "$LINENO"; then :
  13900. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13901. lt_cv_shlibpath_overrides_runpath=yes
  13902. fi
  13903. fi
  13904. rm -f core conftest.err conftest.$ac_objext \
  13905. conftest$ac_exeext conftest.$ac_ext
  13906. LDFLAGS=$save_LDFLAGS
  13907. libdir=$save_libdir
  13908. fi
  13909. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13910. # This implies no fast_install, which is unacceptable.
  13911. # Some rework will be needed to allow for fast_install
  13912. # before this can be enabled.
  13913. hardcode_into_libs=yes
  13914. # Add ABI-specific directories to the system library path.
  13915. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  13916. # Ideally, we could use ldconfig to report *all* directores which are
  13917. # searched for libraries, however this is still not possible. Aside from not
  13918. # being certain /sbin/ldconfig is available, command
  13919. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  13920. # even though it is searched at run-time. Try to do the best guess by
  13921. # appending ld.so.conf contents (and includes) to the search path.
  13922. if test -f /etc/ld.so.conf; then
  13923. 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' ' '`
  13924. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  13925. fi
  13926. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13927. # powerpc, because MkLinux only supported shared libraries with the
  13928. # GNU dynamic linker. Since this was broken with cross compilers,
  13929. # most powerpc-linux boxes support dynamic linking these days and
  13930. # people can always --disable-shared, the test was removed, and we
  13931. # assume the GNU/Linux dynamic linker is in use.
  13932. dynamic_linker='GNU/Linux ld.so'
  13933. ;;
  13934. netbsd*)
  13935. version_type=sunos
  13936. need_lib_prefix=no
  13937. need_version=no
  13938. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13939. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13940. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13941. dynamic_linker='NetBSD (a.out) ld.so'
  13942. else
  13943. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13944. soname_spec='$libname$release$shared_ext$major'
  13945. dynamic_linker='NetBSD ld.elf_so'
  13946. fi
  13947. shlibpath_var=LD_LIBRARY_PATH
  13948. shlibpath_overrides_runpath=yes
  13949. hardcode_into_libs=yes
  13950. ;;
  13951. newsos6)
  13952. version_type=linux # correct to gnu/linux during the next big refactor
  13953. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13954. shlibpath_var=LD_LIBRARY_PATH
  13955. shlibpath_overrides_runpath=yes
  13956. ;;
  13957. *nto* | *qnx*)
  13958. version_type=qnx
  13959. need_lib_prefix=no
  13960. need_version=no
  13961. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13962. soname_spec='$libname$release$shared_ext$major'
  13963. shlibpath_var=LD_LIBRARY_PATH
  13964. shlibpath_overrides_runpath=no
  13965. hardcode_into_libs=yes
  13966. dynamic_linker='ldqnx.so'
  13967. ;;
  13968. openbsd* | bitrig*)
  13969. version_type=sunos
  13970. sys_lib_dlsearch_path_spec=/usr/lib
  13971. need_lib_prefix=no
  13972. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  13973. need_version=no
  13974. else
  13975. need_version=yes
  13976. fi
  13977. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13978. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13979. shlibpath_var=LD_LIBRARY_PATH
  13980. shlibpath_overrides_runpath=yes
  13981. ;;
  13982. os2*)
  13983. libname_spec='$name'
  13984. shrext_cmds=.dll
  13985. need_lib_prefix=no
  13986. # OS/2 can only load a DLL with a base name of 8 characters or less.
  13987. # SDL customization: removed versioning support.
  13988. # version_type=windows
  13989. # need_version=no
  13990. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  13991. # v=$($ECHO $release$versuffix | tr -d .-);
  13992. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  13993. # $ECHO $n$v`$shared_ext'
  13994. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  13995. library_names_spec='${libname}_dll.$libext'
  13996. dynamic_linker='OS/2 ld.exe'
  13997. shlibpath_var=BEGINLIBPATH
  13998. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13999. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14000. postinstall_cmds='base_file=`basename \$file`~
  14001. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  14002. dldir=$destdir/`dirname \$dlpath`~
  14003. test -d \$dldir || mkdir -p \$dldir~
  14004. $install_prog $dir/$dlname \$dldir/$dlname~
  14005. chmod a+x \$dldir/$dlname~
  14006. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14007. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14008. fi'
  14009. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  14010. dlpath=$dir/\$dldll~
  14011. $RM \$dlpath'
  14012. ;;
  14013. osf3* | osf4* | osf5*)
  14014. version_type=osf
  14015. need_lib_prefix=no
  14016. need_version=no
  14017. soname_spec='$libname$release$shared_ext$major'
  14018. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14019. shlibpath_var=LD_LIBRARY_PATH
  14020. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14021. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14022. ;;
  14023. rdos*)
  14024. dynamic_linker=no
  14025. ;;
  14026. solaris*)
  14027. version_type=linux # correct to gnu/linux during the next big refactor
  14028. need_lib_prefix=no
  14029. need_version=no
  14030. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14031. soname_spec='$libname$release$shared_ext$major'
  14032. shlibpath_var=LD_LIBRARY_PATH
  14033. shlibpath_overrides_runpath=yes
  14034. hardcode_into_libs=yes
  14035. # ldd complains unless libraries are executable
  14036. postinstall_cmds='chmod +x $lib'
  14037. ;;
  14038. sunos4*)
  14039. version_type=sunos
  14040. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14041. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14042. shlibpath_var=LD_LIBRARY_PATH
  14043. shlibpath_overrides_runpath=yes
  14044. if test yes = "$with_gnu_ld"; then
  14045. need_lib_prefix=no
  14046. fi
  14047. need_version=yes
  14048. ;;
  14049. sysv4 | sysv4.3*)
  14050. version_type=linux # correct to gnu/linux during the next big refactor
  14051. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14052. soname_spec='$libname$release$shared_ext$major'
  14053. shlibpath_var=LD_LIBRARY_PATH
  14054. case $host_vendor in
  14055. sni)
  14056. shlibpath_overrides_runpath=no
  14057. need_lib_prefix=no
  14058. runpath_var=LD_RUN_PATH
  14059. ;;
  14060. siemens)
  14061. need_lib_prefix=no
  14062. ;;
  14063. motorola)
  14064. need_lib_prefix=no
  14065. need_version=no
  14066. shlibpath_overrides_runpath=no
  14067. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14068. ;;
  14069. esac
  14070. ;;
  14071. sysv4*MP*)
  14072. if test -d /usr/nec; then
  14073. version_type=linux # correct to gnu/linux during the next big refactor
  14074. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  14075. soname_spec='$libname$shared_ext.$major'
  14076. shlibpath_var=LD_LIBRARY_PATH
  14077. fi
  14078. ;;
  14079. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14080. version_type=sco
  14081. need_lib_prefix=no
  14082. need_version=no
  14083. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  14084. soname_spec='$libname$release$shared_ext$major'
  14085. shlibpath_var=LD_LIBRARY_PATH
  14086. shlibpath_overrides_runpath=yes
  14087. hardcode_into_libs=yes
  14088. if test yes = "$with_gnu_ld"; then
  14089. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14090. else
  14091. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14092. case $host_os in
  14093. sco3.2v5*)
  14094. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14095. ;;
  14096. esac
  14097. fi
  14098. sys_lib_dlsearch_path_spec='/usr/lib'
  14099. ;;
  14100. tpf*)
  14101. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  14102. version_type=linux # correct to gnu/linux during the next big refactor
  14103. need_lib_prefix=no
  14104. need_version=no
  14105. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14106. shlibpath_var=LD_LIBRARY_PATH
  14107. shlibpath_overrides_runpath=no
  14108. hardcode_into_libs=yes
  14109. ;;
  14110. uts4*)
  14111. version_type=linux # correct to gnu/linux during the next big refactor
  14112. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14113. soname_spec='$libname$release$shared_ext$major'
  14114. shlibpath_var=LD_LIBRARY_PATH
  14115. ;;
  14116. *)
  14117. dynamic_linker=no
  14118. ;;
  14119. esac
  14120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  14121. $as_echo "$dynamic_linker" >&6; }
  14122. test no = "$dynamic_linker" && can_build_shared=no
  14123. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14124. if test yes = "$GCC"; then
  14125. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14126. fi
  14127. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  14128. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  14129. fi
  14130. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  14131. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  14132. fi
  14133. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  14134. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  14135. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  14136. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  14137. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  14138. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  14139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  14140. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  14141. hardcode_action_CXX=
  14142. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  14143. test -n "$runpath_var_CXX" ||
  14144. test yes = "$hardcode_automatic_CXX"; then
  14145. # We can hardcode non-existent directories.
  14146. if test no != "$hardcode_direct_CXX" &&
  14147. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14148. # have to relink, otherwise we might link with an installed library
  14149. # when we should be linking with a yet-to-be-installed one
  14150. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  14151. test no != "$hardcode_minus_L_CXX"; then
  14152. # Linking always hardcodes the temporary library directory.
  14153. hardcode_action_CXX=relink
  14154. else
  14155. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14156. hardcode_action_CXX=immediate
  14157. fi
  14158. else
  14159. # We cannot hardcode anything, or else we can only hardcode existing
  14160. # directories.
  14161. hardcode_action_CXX=unsupported
  14162. fi
  14163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  14164. $as_echo "$hardcode_action_CXX" >&6; }
  14165. if test relink = "$hardcode_action_CXX" ||
  14166. test yes = "$inherit_rpath_CXX"; then
  14167. # Fast installation is not supported
  14168. enable_fast_install=no
  14169. elif test yes = "$shlibpath_overrides_runpath" ||
  14170. test no = "$enable_shared"; then
  14171. # Fast installation is not necessary
  14172. enable_fast_install=needless
  14173. fi
  14174. fi # test -n "$compiler"
  14175. CC=$lt_save_CC
  14176. CFLAGS=$lt_save_CFLAGS
  14177. LDCXX=$LD
  14178. LD=$lt_save_LD
  14179. GCC=$lt_save_GCC
  14180. with_gnu_ld=$lt_save_with_gnu_ld
  14181. lt_cv_path_LDCXX=$lt_cv_path_LD
  14182. lt_cv_path_LD=$lt_save_path_LD
  14183. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  14184. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  14185. fi # test yes != "$_lt_caught_CXX_error"
  14186. ac_ext=c
  14187. ac_cpp='$CPP $CPPFLAGS'
  14188. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14189. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14190. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14191. # Find a good install program. We prefer a C program (faster),
  14192. # so one script is as good as another. But avoid the broken or
  14193. # incompatible versions:
  14194. # SysV /etc/install, /usr/sbin/install
  14195. # SunOS /usr/etc/install
  14196. # IRIX /sbin/install
  14197. # AIX /bin/install
  14198. # AmigaOS /C/install, which installs bootblocks on floppy discs
  14199. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  14200. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  14201. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  14202. # OS/2's system install, which has a completely different semantic
  14203. # ./install, which can be erroneously created by make from ./install.sh.
  14204. # Reject install programs that cannot install multiple files.
  14205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  14206. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  14207. if test -z "$INSTALL"; then
  14208. if ${ac_cv_path_install+:} false; then :
  14209. $as_echo_n "(cached) " >&6
  14210. else
  14211. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14212. for as_dir in $PATH
  14213. do
  14214. IFS=$as_save_IFS
  14215. test -z "$as_dir" && as_dir=.
  14216. # Account for people who put trailing slashes in PATH elements.
  14217. case $as_dir/ in #((
  14218. ./ | .// | /[cC]/* | \
  14219. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  14220. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  14221. /usr/ucb/* ) ;;
  14222. *)
  14223. # OSF1 and SCO ODT 3.0 have their own names for install.
  14224. # Don't use installbsd from OSF since it installs stuff as root
  14225. # by default.
  14226. for ac_prog in ginstall scoinst install; do
  14227. for ac_exec_ext in '' $ac_executable_extensions; do
  14228. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  14229. if test $ac_prog = install &&
  14230. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  14231. # AIX install. It has an incompatible calling convention.
  14232. :
  14233. elif test $ac_prog = install &&
  14234. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  14235. # program-specific install script used by HP pwplus--don't use.
  14236. :
  14237. else
  14238. rm -rf conftest.one conftest.two conftest.dir
  14239. echo one > conftest.one
  14240. echo two > conftest.two
  14241. mkdir conftest.dir
  14242. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  14243. test -s conftest.one && test -s conftest.two &&
  14244. test -s conftest.dir/conftest.one &&
  14245. test -s conftest.dir/conftest.two
  14246. then
  14247. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  14248. break 3
  14249. fi
  14250. fi
  14251. fi
  14252. done
  14253. done
  14254. ;;
  14255. esac
  14256. done
  14257. IFS=$as_save_IFS
  14258. rm -rf conftest.one conftest.two conftest.dir
  14259. fi
  14260. if test "${ac_cv_path_install+set}" = set; then
  14261. INSTALL=$ac_cv_path_install
  14262. else
  14263. # As a last resort, use the slow shell script. Don't cache a
  14264. # value for INSTALL within a source directory, because that will
  14265. # break other packages using the cache if that directory is
  14266. # removed, or if the value is a relative name.
  14267. INSTALL=$ac_install_sh
  14268. fi
  14269. fi
  14270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  14271. $as_echo "$INSTALL" >&6; }
  14272. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  14273. # It thinks the first close brace ends the variable substitution.
  14274. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  14275. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  14276. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  14277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  14278. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  14279. set x ${MAKE-make}
  14280. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  14281. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  14282. $as_echo_n "(cached) " >&6
  14283. else
  14284. cat >conftest.make <<\_ACEOF
  14285. SHELL = /bin/sh
  14286. all:
  14287. @echo '@@@%%%=$(MAKE)=@@@%%%'
  14288. _ACEOF
  14289. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  14290. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  14291. *@@@%%%=?*=@@@%%%*)
  14292. eval ac_cv_prog_make_${ac_make}_set=yes;;
  14293. *)
  14294. eval ac_cv_prog_make_${ac_make}_set=no;;
  14295. esac
  14296. rm -f conftest.make
  14297. fi
  14298. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  14299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14300. $as_echo "yes" >&6; }
  14301. SET_MAKE=
  14302. else
  14303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14304. $as_echo "no" >&6; }
  14305. SET_MAKE="MAKE=${MAKE-make}"
  14306. fi
  14307. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  14308. if test -n "$ac_tool_prefix"; then
  14309. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  14310. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  14311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14312. $as_echo_n "checking for $ac_word... " >&6; }
  14313. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  14314. $as_echo_n "(cached) " >&6
  14315. else
  14316. case $PKG_CONFIG in
  14317. [\\/]* | ?:[\\/]*)
  14318. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  14319. ;;
  14320. *)
  14321. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14322. for as_dir in $PATH
  14323. do
  14324. IFS=$as_save_IFS
  14325. test -z "$as_dir" && as_dir=.
  14326. for ac_exec_ext in '' $ac_executable_extensions; do
  14327. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14328. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14329. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14330. break 2
  14331. fi
  14332. done
  14333. done
  14334. IFS=$as_save_IFS
  14335. ;;
  14336. esac
  14337. fi
  14338. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  14339. if test -n "$PKG_CONFIG"; then
  14340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  14341. $as_echo "$PKG_CONFIG" >&6; }
  14342. else
  14343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14344. $as_echo "no" >&6; }
  14345. fi
  14346. fi
  14347. if test -z "$ac_cv_path_PKG_CONFIG"; then
  14348. ac_pt_PKG_CONFIG=$PKG_CONFIG
  14349. # Extract the first word of "pkg-config", so it can be a program name with args.
  14350. set dummy pkg-config; ac_word=$2
  14351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14352. $as_echo_n "checking for $ac_word... " >&6; }
  14353. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  14354. $as_echo_n "(cached) " >&6
  14355. else
  14356. case $ac_pt_PKG_CONFIG in
  14357. [\\/]* | ?:[\\/]*)
  14358. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  14359. ;;
  14360. *)
  14361. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14362. for as_dir in $PATH
  14363. do
  14364. IFS=$as_save_IFS
  14365. test -z "$as_dir" && as_dir=.
  14366. for ac_exec_ext in '' $ac_executable_extensions; do
  14367. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14368. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14369. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14370. break 2
  14371. fi
  14372. done
  14373. done
  14374. IFS=$as_save_IFS
  14375. ;;
  14376. esac
  14377. fi
  14378. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  14379. if test -n "$ac_pt_PKG_CONFIG"; then
  14380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  14381. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  14382. else
  14383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14384. $as_echo "no" >&6; }
  14385. fi
  14386. if test "x$ac_pt_PKG_CONFIG" = x; then
  14387. PKG_CONFIG=""
  14388. else
  14389. case $cross_compiling:$ac_tool_warned in
  14390. yes:)
  14391. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14392. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14393. ac_tool_warned=yes ;;
  14394. esac
  14395. PKG_CONFIG=$ac_pt_PKG_CONFIG
  14396. fi
  14397. else
  14398. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  14399. fi
  14400. fi
  14401. if test -n "$PKG_CONFIG"; then
  14402. _pkg_min_version=0.9.0
  14403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  14404. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  14405. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  14406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14407. $as_echo "yes" >&6; }
  14408. else
  14409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14410. $as_echo "no" >&6; }
  14411. PKG_CONFIG=""
  14412. fi
  14413. fi
  14414. case "$host" in
  14415. *-*-mingw*)
  14416. # Except on msys, where make can't handle full pathnames (bug 1972)
  14417. ;;
  14418. *)
  14419. srcdir=`cd $srcdir && pwd`
  14420. ;;
  14421. esac
  14422. INCLUDE="-I$srcdir/include"
  14423. case "$host" in
  14424. *-*-nto-qnx*)
  14425. ;;
  14426. *)
  14427. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  14428. ;;
  14429. esac
  14430. case "$host" in
  14431. *-*-haiku*)
  14432. LINKER='$(CXX)'
  14433. LIBTOOLLINKERTAG='CXX'
  14434. ;;
  14435. *)
  14436. LINKER='$(CC)'
  14437. LIBTOOLLINKERTAG='CC'
  14438. ;;
  14439. esac
  14440. if test x$srcdir != x.; then
  14441. INCLUDE="-Iinclude $INCLUDE"
  14442. elif test -d .git; then
  14443. as_fn_error $? "
  14444. *** When building from a git clone you should configure and build in a
  14445. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  14446. " "$LINENO" 5
  14447. fi
  14448. BASE_CFLAGS=""
  14449. BASE_LDFLAGS=""
  14450. case "$host" in
  14451. *-*-cygwin*)
  14452. # We build SDL on cygwin without the UNIX emulation layer
  14453. save_CFLAGS="$CFLAGS"
  14454. have_no_cygwin=no
  14455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  14456. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  14457. CFLAGS="$save_CFLAGS -mno-cygwin"
  14458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14459. /* end confdefs.h. */
  14460. int
  14461. main ()
  14462. {
  14463. ;
  14464. return 0;
  14465. }
  14466. _ACEOF
  14467. if ac_fn_c_try_compile "$LINENO"; then :
  14468. have_no_cygwin=yes
  14469. fi
  14470. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  14472. $as_echo "$have_no_cygwin" >&6; }
  14473. CFLAGS="$save_CFLAGS"
  14474. if test x$have_no_cygwin = xyes; then
  14475. BASE_CFLAGS="-mno-cygwin"
  14476. BASE_LDFLAGS="-mno-cygwin"
  14477. fi
  14478. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  14479. ;;
  14480. esac
  14481. # Uncomment the following line if you want to force SDL and applications
  14482. # built with it to be compiled for a particular architecture.
  14483. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  14484. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  14485. # The default optimization for SDL is -O3 (Bug #31)
  14486. if test "x$orig_CFLAGS" = x; then
  14487. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  14488. fi
  14489. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  14490. BUILD_LDFLAGS="$LDFLAGS"
  14491. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  14492. ## These are common directories to find software packages
  14493. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  14494. # if test -d $path/include; then
  14495. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  14496. # fi
  14497. # if test -d $path/lib; then
  14498. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  14499. # fi
  14500. #done
  14501. SDL_CFLAGS="$BASE_CFLAGS"
  14502. SDL_LIBS="-lSDL2"
  14503. if test "x$BASE_LDFLAGS" != x; then
  14504. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  14505. fi
  14506. if test "x$EXTRA_CFLAGS" != x; then
  14507. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  14508. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  14509. fi
  14510. if test "x$EXTRA_LDFLAGS" != x; then
  14511. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  14512. fi
  14513. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  14514. find_lib()
  14515. {
  14516. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  14517. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  14518. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  14519. if test "$cross_compiling" = yes; then
  14520. host_lib_path=""
  14521. else
  14522. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  14523. fi
  14524. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  14525. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  14526. if test x$lib != x; then
  14527. echo $lib
  14528. return
  14529. fi
  14530. done
  14531. # Try again, this time allowing more than one version digit after the .so
  14532. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  14533. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  14534. if test x$lib != x; then
  14535. echo $lib
  14536. return
  14537. fi
  14538. done
  14539. }
  14540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  14541. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  14542. if ${ac_cv_c_const+:} false; then :
  14543. $as_echo_n "(cached) " >&6
  14544. else
  14545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14546. /* end confdefs.h. */
  14547. int
  14548. main ()
  14549. {
  14550. #ifndef __cplusplus
  14551. /* Ultrix mips cc rejects this sort of thing. */
  14552. typedef int charset[2];
  14553. const charset cs = { 0, 0 };
  14554. /* SunOS 4.1.1 cc rejects this. */
  14555. char const *const *pcpcc;
  14556. char **ppc;
  14557. /* NEC SVR4.0.2 mips cc rejects this. */
  14558. struct point {int x, y;};
  14559. static struct point const zero = {0,0};
  14560. /* AIX XL C 1.02.0.0 rejects this.
  14561. It does not let you subtract one const X* pointer from another in
  14562. an arm of an if-expression whose if-part is not a constant
  14563. expression */
  14564. const char *g = "string";
  14565. pcpcc = &g + (g ? g-g : 0);
  14566. /* HPUX 7.0 cc rejects these. */
  14567. ++pcpcc;
  14568. ppc = (char**) pcpcc;
  14569. pcpcc = (char const *const *) ppc;
  14570. { /* SCO 3.2v4 cc rejects this sort of thing. */
  14571. char tx;
  14572. char *t = &tx;
  14573. char const *s = 0 ? (char *) 0 : (char const *) 0;
  14574. *t++ = 0;
  14575. if (s) return 0;
  14576. }
  14577. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  14578. int x[] = {25, 17};
  14579. const int *foo = &x[0];
  14580. ++foo;
  14581. }
  14582. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  14583. typedef const int *iptr;
  14584. iptr p = 0;
  14585. ++p;
  14586. }
  14587. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  14588. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  14589. struct s { int j; const int *ap[3]; } bx;
  14590. struct s *b = &bx; b->j = 5;
  14591. }
  14592. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  14593. const int foo = 10;
  14594. if (!foo) return 0;
  14595. }
  14596. return !cs[0] && !zero.x;
  14597. #endif
  14598. ;
  14599. return 0;
  14600. }
  14601. _ACEOF
  14602. if ac_fn_c_try_compile "$LINENO"; then :
  14603. ac_cv_c_const=yes
  14604. else
  14605. ac_cv_c_const=no
  14606. fi
  14607. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14608. fi
  14609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  14610. $as_echo "$ac_cv_c_const" >&6; }
  14611. if test $ac_cv_c_const = no; then
  14612. $as_echo "#define const /**/" >>confdefs.h
  14613. fi
  14614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14615. $as_echo_n "checking for inline... " >&6; }
  14616. if ${ac_cv_c_inline+:} false; then :
  14617. $as_echo_n "(cached) " >&6
  14618. else
  14619. ac_cv_c_inline=no
  14620. for ac_kw in inline __inline__ __inline; do
  14621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14622. /* end confdefs.h. */
  14623. #ifndef __cplusplus
  14624. typedef int foo_t;
  14625. static $ac_kw foo_t static_foo () {return 0; }
  14626. $ac_kw foo_t foo () {return 0; }
  14627. #endif
  14628. _ACEOF
  14629. if ac_fn_c_try_compile "$LINENO"; then :
  14630. ac_cv_c_inline=$ac_kw
  14631. fi
  14632. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14633. test "$ac_cv_c_inline" != no && break
  14634. done
  14635. fi
  14636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14637. $as_echo "$ac_cv_c_inline" >&6; }
  14638. case $ac_cv_c_inline in
  14639. inline | yes) ;;
  14640. *)
  14641. case $ac_cv_c_inline in
  14642. no) ac_val=;;
  14643. *) ac_val=$ac_cv_c_inline;;
  14644. esac
  14645. cat >>confdefs.h <<_ACEOF
  14646. #ifndef __cplusplus
  14647. #define inline $ac_val
  14648. #endif
  14649. _ACEOF
  14650. ;;
  14651. esac
  14652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  14653. $as_echo_n "checking for working volatile... " >&6; }
  14654. if ${ac_cv_c_volatile+:} false; then :
  14655. $as_echo_n "(cached) " >&6
  14656. else
  14657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14658. /* end confdefs.h. */
  14659. int
  14660. main ()
  14661. {
  14662. volatile int x;
  14663. int * volatile y = (int *) 0;
  14664. return !x && !y;
  14665. ;
  14666. return 0;
  14667. }
  14668. _ACEOF
  14669. if ac_fn_c_try_compile "$LINENO"; then :
  14670. ac_cv_c_volatile=yes
  14671. else
  14672. ac_cv_c_volatile=no
  14673. fi
  14674. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14675. fi
  14676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  14677. $as_echo "$ac_cv_c_volatile" >&6; }
  14678. if test $ac_cv_c_volatile = no; then
  14679. $as_echo "#define volatile /**/" >>confdefs.h
  14680. fi
  14681. # Check whether --enable-assertions was given.
  14682. if test "${enable_assertions+set}" = set; then :
  14683. enableval=$enable_assertions;
  14684. else
  14685. enable_assertions=auto
  14686. fi
  14687. case "$enable_assertions" in
  14688. auto) # Use optimization settings to determine assertion level
  14689. ;;
  14690. disabled)
  14691. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  14692. ;;
  14693. release)
  14694. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  14695. ;;
  14696. enabled)
  14697. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  14698. ;;
  14699. paranoid)
  14700. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  14701. ;;
  14702. *)
  14703. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  14704. ;;
  14705. esac
  14706. # Check whether --enable-dependency-tracking was given.
  14707. if test "${enable_dependency_tracking+set}" = set; then :
  14708. enableval=$enable_dependency_tracking;
  14709. else
  14710. enable_dependency_tracking=yes
  14711. fi
  14712. if test x$enable_dependency_tracking = xyes; then
  14713. have_gcc_mmd_mt=no
  14714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  14715. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  14716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14717. /* end confdefs.h. */
  14718. #if !defined(__GNUC__) || __GNUC__ < 3
  14719. #error Dependency tracking requires GCC 3.0 or newer
  14720. #endif
  14721. int
  14722. main ()
  14723. {
  14724. ;
  14725. return 0;
  14726. }
  14727. _ACEOF
  14728. if ac_fn_c_try_compile "$LINENO"; then :
  14729. have_gcc_mmd_mt=yes
  14730. fi
  14731. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  14733. $as_echo "$have_gcc_mmd_mt" >&6; }
  14734. if test x$have_gcc_mmd_mt = xyes; then
  14735. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  14736. fi
  14737. fi
  14738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  14739. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  14740. have_no_undefined=no
  14741. case "$host" in
  14742. *-*-openbsd*)
  14743. ;;
  14744. *)
  14745. save_LDFLAGS="$LDFLAGS"
  14746. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  14747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14748. /* end confdefs.h. */
  14749. int
  14750. main ()
  14751. {
  14752. ;
  14753. return 0;
  14754. }
  14755. _ACEOF
  14756. if ac_fn_c_try_link "$LINENO"; then :
  14757. have_no_undefined=yes
  14758. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  14759. fi
  14760. rm -f core conftest.err conftest.$ac_objext \
  14761. conftest$ac_exeext conftest.$ac_ext
  14762. LDFLAGS="$save_LDFLAGS"
  14763. ;;
  14764. esac
  14765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  14766. $as_echo "$have_no_undefined" >&6; }
  14767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  14768. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  14769. have_dynamicbase=no
  14770. case "$host" in
  14771. *)
  14772. save_LDFLAGS="$LDFLAGS"
  14773. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  14774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14775. /* end confdefs.h. */
  14776. int
  14777. main ()
  14778. {
  14779. ;
  14780. return 0;
  14781. }
  14782. _ACEOF
  14783. if ac_fn_c_try_link "$LINENO"; then :
  14784. have_dynamicbase=yes
  14785. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  14786. fi
  14787. rm -f core conftest.err conftest.$ac_objext \
  14788. conftest$ac_exeext conftest.$ac_ext
  14789. LDFLAGS="$save_LDFLAGS"
  14790. ;;
  14791. esac
  14792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  14793. $as_echo "$have_dynamicbase" >&6; }
  14794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  14795. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  14796. have_nxcompat=no
  14797. case "$host" in
  14798. *)
  14799. save_LDFLAGS="$LDFLAGS"
  14800. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  14801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14802. /* end confdefs.h. */
  14803. int
  14804. main ()
  14805. {
  14806. ;
  14807. return 0;
  14808. }
  14809. _ACEOF
  14810. if ac_fn_c_try_link "$LINENO"; then :
  14811. have_nxcompat=yes
  14812. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  14813. fi
  14814. rm -f core conftest.err conftest.$ac_objext \
  14815. conftest$ac_exeext conftest.$ac_ext
  14816. LDFLAGS="$save_LDFLAGS"
  14817. ;;
  14818. esac
  14819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  14820. $as_echo "$have_nxcompat" >&6; }
  14821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  14822. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  14823. have_high_entropy_va=no
  14824. case "$host" in
  14825. *)
  14826. save_LDFLAGS="$LDFLAGS"
  14827. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  14828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14829. /* end confdefs.h. */
  14830. int
  14831. main ()
  14832. {
  14833. ;
  14834. return 0;
  14835. }
  14836. _ACEOF
  14837. if ac_fn_c_try_link "$LINENO"; then :
  14838. have_high_entropy_va=yes
  14839. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  14840. fi
  14841. rm -f core conftest.err conftest.$ac_objext \
  14842. conftest$ac_exeext conftest.$ac_ext
  14843. LDFLAGS="$save_LDFLAGS"
  14844. ;;
  14845. esac
  14846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  14847. $as_echo "$have_high_entropy_va" >&6; }
  14848. # Check whether --enable-libc was given.
  14849. if test "${enable_libc+set}" = set; then :
  14850. enableval=$enable_libc;
  14851. else
  14852. enable_libc=yes
  14853. fi
  14854. if test x$enable_libc = xyes; then
  14855. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  14856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14857. $as_echo_n "checking for ANSI C header files... " >&6; }
  14858. if ${ac_cv_header_stdc+:} false; then :
  14859. $as_echo_n "(cached) " >&6
  14860. else
  14861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14862. /* end confdefs.h. */
  14863. #include <stdlib.h>
  14864. #include <stdarg.h>
  14865. #include <string.h>
  14866. #include <float.h>
  14867. int
  14868. main ()
  14869. {
  14870. ;
  14871. return 0;
  14872. }
  14873. _ACEOF
  14874. if ac_fn_c_try_compile "$LINENO"; then :
  14875. ac_cv_header_stdc=yes
  14876. else
  14877. ac_cv_header_stdc=no
  14878. fi
  14879. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14880. if test $ac_cv_header_stdc = yes; then
  14881. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14883. /* end confdefs.h. */
  14884. #include <string.h>
  14885. _ACEOF
  14886. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14887. $EGREP "memchr" >/dev/null 2>&1; then :
  14888. else
  14889. ac_cv_header_stdc=no
  14890. fi
  14891. rm -f conftest*
  14892. fi
  14893. if test $ac_cv_header_stdc = yes; then
  14894. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14896. /* end confdefs.h. */
  14897. #include <stdlib.h>
  14898. _ACEOF
  14899. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14900. $EGREP "free" >/dev/null 2>&1; then :
  14901. else
  14902. ac_cv_header_stdc=no
  14903. fi
  14904. rm -f conftest*
  14905. fi
  14906. if test $ac_cv_header_stdc = yes; then
  14907. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14908. if test "$cross_compiling" = yes; then :
  14909. :
  14910. else
  14911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14912. /* end confdefs.h. */
  14913. #include <ctype.h>
  14914. #include <stdlib.h>
  14915. #if ((' ' & 0x0FF) == 0x020)
  14916. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14917. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14918. #else
  14919. # define ISLOWER(c) \
  14920. (('a' <= (c) && (c) <= 'i') \
  14921. || ('j' <= (c) && (c) <= 'r') \
  14922. || ('s' <= (c) && (c) <= 'z'))
  14923. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14924. #endif
  14925. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14926. int
  14927. main ()
  14928. {
  14929. int i;
  14930. for (i = 0; i < 256; i++)
  14931. if (XOR (islower (i), ISLOWER (i))
  14932. || toupper (i) != TOUPPER (i))
  14933. return 2;
  14934. return 0;
  14935. }
  14936. _ACEOF
  14937. if ac_fn_c_try_run "$LINENO"; then :
  14938. else
  14939. ac_cv_header_stdc=no
  14940. fi
  14941. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14942. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14943. fi
  14944. fi
  14945. fi
  14946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14947. $as_echo "$ac_cv_header_stdc" >&6; }
  14948. if test $ac_cv_header_stdc = yes; then
  14949. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14950. fi
  14951. for ac_header in sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h wchar.h inttypes.h stdint.h limits.h ctype.h math.h float.h iconv.h signal.h
  14952. do :
  14953. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14954. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14955. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14956. cat >>confdefs.h <<_ACEOF
  14957. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14958. _ACEOF
  14959. fi
  14960. done
  14961. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14962. if test "x$ac_cv_type_size_t" = xyes; then :
  14963. else
  14964. cat >>confdefs.h <<_ACEOF
  14965. #define size_t unsigned int
  14966. _ACEOF
  14967. fi
  14968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14969. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14970. if ${ac_cv_define_M_PI+:} false; then :
  14971. $as_echo_n "(cached) " >&6
  14972. else
  14973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14974. /* end confdefs.h. */
  14975. #include <math.h>
  14976. #ifdef M_PI
  14977. YES_IS_DEFINED
  14978. #endif
  14979. _ACEOF
  14980. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14981. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14982. ac_cv_define_M_PI=yes
  14983. else
  14984. ac_cv_define_M_PI=no
  14985. fi
  14986. rm -f conftest*
  14987. fi
  14988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14989. $as_echo "$ac_cv_define_M_PI" >&6; }
  14990. if test "$ac_cv_define_M_PI" = "yes" ; then
  14991. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14992. fi
  14993. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14994. # for constant arguments. Useless!
  14995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14996. $as_echo_n "checking for working alloca.h... " >&6; }
  14997. if ${ac_cv_working_alloca_h+:} false; then :
  14998. $as_echo_n "(cached) " >&6
  14999. else
  15000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15001. /* end confdefs.h. */
  15002. #include <alloca.h>
  15003. int
  15004. main ()
  15005. {
  15006. char *p = (char *) alloca (2 * sizeof (int));
  15007. if (p) return 0;
  15008. ;
  15009. return 0;
  15010. }
  15011. _ACEOF
  15012. if ac_fn_c_try_link "$LINENO"; then :
  15013. ac_cv_working_alloca_h=yes
  15014. else
  15015. ac_cv_working_alloca_h=no
  15016. fi
  15017. rm -f core conftest.err conftest.$ac_objext \
  15018. conftest$ac_exeext conftest.$ac_ext
  15019. fi
  15020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  15021. $as_echo "$ac_cv_working_alloca_h" >&6; }
  15022. if test $ac_cv_working_alloca_h = yes; then
  15023. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  15024. fi
  15025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  15026. $as_echo_n "checking for alloca... " >&6; }
  15027. if ${ac_cv_func_alloca_works+:} false; then :
  15028. $as_echo_n "(cached) " >&6
  15029. else
  15030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15031. /* end confdefs.h. */
  15032. #ifdef __GNUC__
  15033. # define alloca __builtin_alloca
  15034. #else
  15035. # ifdef _MSC_VER
  15036. # include <malloc.h>
  15037. # define alloca _alloca
  15038. # else
  15039. # ifdef HAVE_ALLOCA_H
  15040. # include <alloca.h>
  15041. # else
  15042. # ifdef _AIX
  15043. #pragma alloca
  15044. # else
  15045. # ifndef alloca /* predefined by HP cc +Olibcalls */
  15046. void *alloca (size_t);
  15047. # endif
  15048. # endif
  15049. # endif
  15050. # endif
  15051. #endif
  15052. int
  15053. main ()
  15054. {
  15055. char *p = (char *) alloca (1);
  15056. if (p) return 0;
  15057. ;
  15058. return 0;
  15059. }
  15060. _ACEOF
  15061. if ac_fn_c_try_link "$LINENO"; then :
  15062. ac_cv_func_alloca_works=yes
  15063. else
  15064. ac_cv_func_alloca_works=no
  15065. fi
  15066. rm -f core conftest.err conftest.$ac_objext \
  15067. conftest$ac_exeext conftest.$ac_ext
  15068. fi
  15069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  15070. $as_echo "$ac_cv_func_alloca_works" >&6; }
  15071. if test $ac_cv_func_alloca_works = yes; then
  15072. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  15073. else
  15074. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  15075. # that cause trouble. Some versions do not even contain alloca or
  15076. # contain a buggy version. If you still want to use their alloca,
  15077. # use ar to extract alloca.o from them instead of compiling alloca.c.
  15078. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  15079. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  15080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  15081. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  15082. if ${ac_cv_os_cray+:} false; then :
  15083. $as_echo_n "(cached) " >&6
  15084. else
  15085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15086. /* end confdefs.h. */
  15087. #if defined CRAY && ! defined CRAY2
  15088. webecray
  15089. #else
  15090. wenotbecray
  15091. #endif
  15092. _ACEOF
  15093. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15094. $EGREP "webecray" >/dev/null 2>&1; then :
  15095. ac_cv_os_cray=yes
  15096. else
  15097. ac_cv_os_cray=no
  15098. fi
  15099. rm -f conftest*
  15100. fi
  15101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  15102. $as_echo "$ac_cv_os_cray" >&6; }
  15103. if test $ac_cv_os_cray = yes; then
  15104. for ac_func in _getb67 GETB67 getb67; do
  15105. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15106. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15107. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15108. cat >>confdefs.h <<_ACEOF
  15109. #define CRAY_STACKSEG_END $ac_func
  15110. _ACEOF
  15111. break
  15112. fi
  15113. done
  15114. fi
  15115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  15116. $as_echo_n "checking stack direction for C alloca... " >&6; }
  15117. if ${ac_cv_c_stack_direction+:} false; then :
  15118. $as_echo_n "(cached) " >&6
  15119. else
  15120. if test "$cross_compiling" = yes; then :
  15121. ac_cv_c_stack_direction=0
  15122. else
  15123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15124. /* end confdefs.h. */
  15125. $ac_includes_default
  15126. int
  15127. find_stack_direction (int *addr, int depth)
  15128. {
  15129. int dir, dummy = 0;
  15130. if (! addr)
  15131. addr = &dummy;
  15132. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  15133. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  15134. return dir + dummy;
  15135. }
  15136. int
  15137. main (int argc, char **argv)
  15138. {
  15139. return find_stack_direction (0, argc + !argv + 20) < 0;
  15140. }
  15141. _ACEOF
  15142. if ac_fn_c_try_run "$LINENO"; then :
  15143. ac_cv_c_stack_direction=1
  15144. else
  15145. ac_cv_c_stack_direction=-1
  15146. fi
  15147. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15148. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15149. fi
  15150. fi
  15151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  15152. $as_echo "$ac_cv_c_stack_direction" >&6; }
  15153. cat >>confdefs.h <<_ACEOF
  15154. #define STACK_DIRECTION $ac_cv_c_stack_direction
  15155. _ACEOF
  15156. fi
  15157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  15158. $as_echo_n "checking for working memcmp... " >&6; }
  15159. if ${ac_cv_func_memcmp_working+:} false; then :
  15160. $as_echo_n "(cached) " >&6
  15161. else
  15162. if test "$cross_compiling" = yes; then :
  15163. ac_cv_func_memcmp_working=no
  15164. else
  15165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15166. /* end confdefs.h. */
  15167. $ac_includes_default
  15168. int
  15169. main ()
  15170. {
  15171. /* Some versions of memcmp are not 8-bit clean. */
  15172. char c0 = '\100', c1 = '\200', c2 = '\201';
  15173. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  15174. return 1;
  15175. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  15176. or more and with at least one buffer not starting on a 4-byte boundary.
  15177. William Lewis provided this test program. */
  15178. {
  15179. char foo[21];
  15180. char bar[21];
  15181. int i;
  15182. for (i = 0; i < 4; i++)
  15183. {
  15184. char *a = foo + i;
  15185. char *b = bar + i;
  15186. strcpy (a, "--------01111111");
  15187. strcpy (b, "--------10000000");
  15188. if (memcmp (a, b, 16) >= 0)
  15189. return 1;
  15190. }
  15191. return 0;
  15192. }
  15193. ;
  15194. return 0;
  15195. }
  15196. _ACEOF
  15197. if ac_fn_c_try_run "$LINENO"; then :
  15198. ac_cv_func_memcmp_working=yes
  15199. else
  15200. ac_cv_func_memcmp_working=no
  15201. fi
  15202. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15203. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15204. fi
  15205. fi
  15206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  15207. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  15208. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  15209. *" memcmp.$ac_objext "* ) ;;
  15210. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  15211. ;;
  15212. esac
  15213. if test x$ac_cv_func_memcmp_working = xyes; then
  15214. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  15215. fi
  15216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  15217. $as_echo_n "checking for working strtod... " >&6; }
  15218. if ${ac_cv_func_strtod+:} false; then :
  15219. $as_echo_n "(cached) " >&6
  15220. else
  15221. if test "$cross_compiling" = yes; then :
  15222. ac_cv_func_strtod=no
  15223. else
  15224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15225. /* end confdefs.h. */
  15226. $ac_includes_default
  15227. #ifndef strtod
  15228. double strtod ();
  15229. #endif
  15230. int
  15231. main()
  15232. {
  15233. {
  15234. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  15235. char *string = " +69";
  15236. char *term;
  15237. double value;
  15238. value = strtod (string, &term);
  15239. if (value != 69 || term != (string + 4))
  15240. return 1;
  15241. }
  15242. {
  15243. /* Under Solaris 2.4, strtod returns the wrong value for the
  15244. terminating character under some conditions. */
  15245. char *string = "NaN";
  15246. char *term;
  15247. strtod (string, &term);
  15248. if (term != string && *(term - 1) == 0)
  15249. return 1;
  15250. }
  15251. return 0;
  15252. }
  15253. _ACEOF
  15254. if ac_fn_c_try_run "$LINENO"; then :
  15255. ac_cv_func_strtod=yes
  15256. else
  15257. ac_cv_func_strtod=no
  15258. fi
  15259. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15260. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15261. fi
  15262. fi
  15263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  15264. $as_echo "$ac_cv_func_strtod" >&6; }
  15265. if test $ac_cv_func_strtod = no; then
  15266. case " $LIBOBJS " in
  15267. *" strtod.$ac_objext "* ) ;;
  15268. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  15269. ;;
  15270. esac
  15271. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  15272. if test "x$ac_cv_func_pow" = xyes; then :
  15273. fi
  15274. if test $ac_cv_func_pow = no; then
  15275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  15276. $as_echo_n "checking for pow in -lm... " >&6; }
  15277. if ${ac_cv_lib_m_pow+:} false; then :
  15278. $as_echo_n "(cached) " >&6
  15279. else
  15280. ac_check_lib_save_LIBS=$LIBS
  15281. LIBS="-lm $LIBS"
  15282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15283. /* end confdefs.h. */
  15284. /* Override any GCC internal prototype to avoid an error.
  15285. Use char because int might match the return type of a GCC
  15286. builtin and then its argument prototype would still apply. */
  15287. #ifdef __cplusplus
  15288. extern "C"
  15289. #endif
  15290. char pow ();
  15291. int
  15292. main ()
  15293. {
  15294. return pow ();
  15295. ;
  15296. return 0;
  15297. }
  15298. _ACEOF
  15299. if ac_fn_c_try_link "$LINENO"; then :
  15300. ac_cv_lib_m_pow=yes
  15301. else
  15302. ac_cv_lib_m_pow=no
  15303. fi
  15304. rm -f core conftest.err conftest.$ac_objext \
  15305. conftest$ac_exeext conftest.$ac_ext
  15306. LIBS=$ac_check_lib_save_LIBS
  15307. fi
  15308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  15309. $as_echo "$ac_cv_lib_m_pow" >&6; }
  15310. if test "x$ac_cv_lib_m_pow" = xyes; then :
  15311. POW_LIB=-lm
  15312. else
  15313. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  15314. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  15315. fi
  15316. fi
  15317. fi
  15318. if test x$ac_cv_func_strtod = xyes; then
  15319. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  15320. fi
  15321. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  15322. if test "x$ac_cv_func_mprotect" = xyes; then :
  15323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15324. /* end confdefs.h. */
  15325. #include <sys/types.h>
  15326. #include <sys/mman.h>
  15327. int
  15328. main ()
  15329. {
  15330. ;
  15331. return 0;
  15332. }
  15333. _ACEOF
  15334. if ac_fn_c_try_compile "$LINENO"; then :
  15335. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  15336. fi
  15337. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15338. fi
  15339. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcslcpy wcslcat _wcsdup wcsdup wcsstr wcscmp wcsncmp wcscasecmp _wcsicmp wcsncasecmp _wcsnicmp strlen strlcpy strlcat _strrev _strupr _strlwr index rindex strchr strrchr strstr strtok_r itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval elf_aux_info poll _Exit
  15340. do :
  15341. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15342. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15343. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15344. cat >>confdefs.h <<_ACEOF
  15345. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15346. _ACEOF
  15347. fi
  15348. done
  15349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  15350. $as_echo_n "checking for pow in -lm... " >&6; }
  15351. if ${ac_cv_lib_m_pow+:} false; then :
  15352. $as_echo_n "(cached) " >&6
  15353. else
  15354. ac_check_lib_save_LIBS=$LIBS
  15355. LIBS="-lm $LIBS"
  15356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15357. /* end confdefs.h. */
  15358. /* Override any GCC internal prototype to avoid an error.
  15359. Use char because int might match the return type of a GCC
  15360. builtin and then its argument prototype would still apply. */
  15361. #ifdef __cplusplus
  15362. extern "C"
  15363. #endif
  15364. char pow ();
  15365. int
  15366. main ()
  15367. {
  15368. return pow ();
  15369. ;
  15370. return 0;
  15371. }
  15372. _ACEOF
  15373. if ac_fn_c_try_link "$LINENO"; then :
  15374. ac_cv_lib_m_pow=yes
  15375. else
  15376. ac_cv_lib_m_pow=no
  15377. fi
  15378. rm -f core conftest.err conftest.$ac_objext \
  15379. conftest$ac_exeext conftest.$ac_ext
  15380. LIBS=$ac_check_lib_save_LIBS
  15381. fi
  15382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  15383. $as_echo "$ac_cv_lib_m_pow" >&6; }
  15384. if test "x$ac_cv_lib_m_pow" = xyes; then :
  15385. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  15386. fi
  15387. for ac_func in acos acosf asin asinf atan atanf atan2 atan2f ceil ceilf copysign copysignf cos cosf exp expf fabs fabsf floor floorf trunc truncf fmod fmodf log logf log10 log10f lround lroundf pow powf round roundf scalbn scalbnf sin sinf sqrt sqrtf tan tanf
  15388. do :
  15389. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15390. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15391. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15392. cat >>confdefs.h <<_ACEOF
  15393. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15394. _ACEOF
  15395. fi
  15396. done
  15397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  15398. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  15399. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  15400. $as_echo_n "(cached) " >&6
  15401. else
  15402. ac_check_lib_save_LIBS=$LIBS
  15403. LIBS="-liconv $LIBS"
  15404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15405. /* end confdefs.h. */
  15406. /* Override any GCC internal prototype to avoid an error.
  15407. Use char because int might match the return type of a GCC
  15408. builtin and then its argument prototype would still apply. */
  15409. #ifdef __cplusplus
  15410. extern "C"
  15411. #endif
  15412. char iconv_open ();
  15413. int
  15414. main ()
  15415. {
  15416. return iconv_open ();
  15417. ;
  15418. return 0;
  15419. }
  15420. _ACEOF
  15421. if ac_fn_c_try_link "$LINENO"; then :
  15422. ac_cv_lib_iconv_iconv_open=yes
  15423. else
  15424. ac_cv_lib_iconv_iconv_open=no
  15425. fi
  15426. rm -f core conftest.err conftest.$ac_objext \
  15427. conftest$ac_exeext conftest.$ac_ext
  15428. LIBS=$ac_check_lib_save_LIBS
  15429. fi
  15430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  15431. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  15432. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  15433. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  15434. fi
  15435. for ac_func in iconv
  15436. do :
  15437. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  15438. if test "x$ac_cv_func_iconv" = xyes; then :
  15439. cat >>confdefs.h <<_ACEOF
  15440. #define HAVE_ICONV 1
  15441. _ACEOF
  15442. fi
  15443. done
  15444. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  15445. "
  15446. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  15447. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  15448. fi
  15449. for ac_header in libunwind.h
  15450. do :
  15451. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  15452. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  15453. cat >>confdefs.h <<_ACEOF
  15454. #define HAVE_LIBUNWIND_H 1
  15455. _ACEOF
  15456. fi
  15457. done
  15458. fi
  15459. # Check whether --enable-gcc-atomics was given.
  15460. if test "${enable_gcc_atomics+set}" = set; then :
  15461. enableval=$enable_gcc_atomics;
  15462. else
  15463. enable_gcc_atomics=yes
  15464. fi
  15465. if test x$enable_gcc_atomics = xyes; then
  15466. have_gcc_atomics=no
  15467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  15468. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  15469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15470. /* end confdefs.h. */
  15471. int
  15472. main ()
  15473. {
  15474. int a;
  15475. void *x, *y, *z;
  15476. __sync_lock_test_and_set(&a, 4);
  15477. __sync_lock_test_and_set(&x, y);
  15478. __sync_fetch_and_add(&a, 1);
  15479. __sync_bool_compare_and_swap(&a, 5, 10);
  15480. __sync_bool_compare_and_swap(&x, y, z);
  15481. ;
  15482. return 0;
  15483. }
  15484. _ACEOF
  15485. if ac_fn_c_try_link "$LINENO"; then :
  15486. have_gcc_atomics=yes
  15487. fi
  15488. rm -f core conftest.err conftest.$ac_objext \
  15489. conftest$ac_exeext conftest.$ac_ext
  15490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  15491. $as_echo "$have_gcc_atomics" >&6; }
  15492. if test x$have_gcc_atomics = xyes; then
  15493. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  15494. else
  15495. # See if we have the minimum operation needed for GCC atomics
  15496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15497. /* end confdefs.h. */
  15498. int
  15499. main ()
  15500. {
  15501. int a;
  15502. __sync_lock_test_and_set(&a, 1);
  15503. __sync_lock_release(&a);
  15504. ;
  15505. return 0;
  15506. }
  15507. _ACEOF
  15508. if ac_fn_c_try_link "$LINENO"; then :
  15509. have_gcc_sync_lock_test_and_set=yes
  15510. fi
  15511. rm -f core conftest.err conftest.$ac_objext \
  15512. conftest$ac_exeext conftest.$ac_ext
  15513. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  15514. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  15515. fi
  15516. fi
  15517. fi
  15518. # Standard C sources
  15519. SOURCES="$SOURCES $srcdir/src/*.c"
  15520. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  15521. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  15522. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  15523. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  15524. SOURCES="$SOURCES $srcdir/src/events/*.c"
  15525. SOURCES="$SOURCES $srcdir/src/file/*.c"
  15526. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  15527. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  15528. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  15529. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  15530. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  15531. SOURCES="$SOURCES $srcdir/src/power/*.c"
  15532. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  15533. SOURCES="$SOURCES $srcdir/src/render/*.c"
  15534. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  15535. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  15536. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  15537. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  15538. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  15539. SOURCES="$SOURCES $srcdir/src/video/*.c"
  15540. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  15541. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  15542. case "$host" in
  15543. *-*-emscripten*)
  15544. default_atomic=no
  15545. ;;
  15546. *)
  15547. default_atomic=yes
  15548. ;;
  15549. esac
  15550. # Check whether --enable-atomic was given.
  15551. if test "${enable_atomic+set}" = set; then :
  15552. enableval=$enable_atomic;
  15553. else
  15554. enable_atomic=$default_atomic
  15555. fi
  15556. if test x$enable_atomic != xyes; then
  15557. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  15558. else
  15559. SUMMARY_modules="${SUMMARY_modules} atomic"
  15560. fi
  15561. # Check whether --enable-audio was given.
  15562. if test "${enable_audio+set}" = set; then :
  15563. enableval=$enable_audio;
  15564. else
  15565. enable_audio=yes
  15566. fi
  15567. if test x$enable_audio != xyes; then
  15568. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  15569. else
  15570. SUMMARY_modules="${SUMMARY_modules} audio"
  15571. fi
  15572. # Check whether --enable-video was given.
  15573. if test "${enable_video+set}" = set; then :
  15574. enableval=$enable_video;
  15575. else
  15576. enable_video=yes
  15577. fi
  15578. if test x$enable_video != xyes; then
  15579. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  15580. else
  15581. SUMMARY_modules="${SUMMARY_modules} video"
  15582. fi
  15583. # Check whether --enable-render was given.
  15584. if test "${enable_render+set}" = set; then :
  15585. enableval=$enable_render;
  15586. else
  15587. enable_render=yes
  15588. fi
  15589. if test x$enable_render != xyes; then
  15590. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  15591. else
  15592. SUMMARY_modules="${SUMMARY_modules} render"
  15593. fi
  15594. # Check whether --enable-events was given.
  15595. if test "${enable_events+set}" = set; then :
  15596. enableval=$enable_events;
  15597. else
  15598. enable_events=yes
  15599. fi
  15600. if test x$enable_events != xyes; then
  15601. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  15602. else
  15603. SUMMARY_modules="${SUMMARY_modules} events"
  15604. fi
  15605. # Check whether --enable-joystick was given.
  15606. if test "${enable_joystick+set}" = set; then :
  15607. enableval=$enable_joystick;
  15608. else
  15609. enable_joystick=yes
  15610. fi
  15611. if test x$enable_joystick != xyes; then
  15612. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  15613. else
  15614. SUMMARY_modules="${SUMMARY_modules} joystick"
  15615. fi
  15616. # Check whether --enable-haptic was given.
  15617. if test "${enable_haptic+set}" = set; then :
  15618. enableval=$enable_haptic;
  15619. else
  15620. enable_haptic=yes
  15621. fi
  15622. if test x$enable_haptic != xyes; then
  15623. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  15624. else
  15625. SUMMARY_modules="${SUMMARY_modules} haptic"
  15626. fi
  15627. # Check whether --enable-hidapi was given.
  15628. if test "${enable_hidapi+set}" = set; then :
  15629. enableval=$enable_hidapi;
  15630. else
  15631. enable_hidapi=yes
  15632. fi
  15633. if test x$enable_hidapi != xyes; then
  15634. $as_echo "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  15635. else
  15636. SUMMARY_modules="${SUMMARY_modules} hidapi"
  15637. fi
  15638. # Check whether --enable-sensor was given.
  15639. if test "${enable_sensor+set}" = set; then :
  15640. enableval=$enable_sensor;
  15641. else
  15642. enable_sensor=yes
  15643. fi
  15644. if test x$enable_sensor != xyes; then
  15645. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  15646. else
  15647. SUMMARY_modules="${SUMMARY_modules} sensor"
  15648. fi
  15649. # Check whether --enable-power was given.
  15650. if test "${enable_power+set}" = set; then :
  15651. enableval=$enable_power;
  15652. else
  15653. enable_power=yes
  15654. fi
  15655. if test x$enable_power != xyes; then
  15656. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  15657. else
  15658. SUMMARY_modules="${SUMMARY_modules} power"
  15659. fi
  15660. # Check whether --enable-filesystem was given.
  15661. if test "${enable_filesystem+set}" = set; then :
  15662. enableval=$enable_filesystem;
  15663. else
  15664. enable_filesystem=yes
  15665. fi
  15666. if test x$enable_filesystem != xyes; then
  15667. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  15668. else
  15669. SUMMARY_modules="${SUMMARY_modules} filesystem"
  15670. fi
  15671. # Check whether --enable-threads was given.
  15672. if test "${enable_threads+set}" = set; then :
  15673. enableval=$enable_threads;
  15674. else
  15675. enable_threads=yes
  15676. fi
  15677. if test x$enable_threads != xyes; then
  15678. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  15679. else
  15680. SUMMARY_modules="${SUMMARY_modules} threads"
  15681. fi
  15682. # Check whether --enable-timers was given.
  15683. if test "${enable_timers+set}" = set; then :
  15684. enableval=$enable_timers;
  15685. else
  15686. enable_timers=yes
  15687. fi
  15688. if test x$enable_timers != xyes; then
  15689. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  15690. else
  15691. SUMMARY_modules="${SUMMARY_modules} timers"
  15692. fi
  15693. # Check whether --enable-file was given.
  15694. if test "${enable_file+set}" = set; then :
  15695. enableval=$enable_file;
  15696. else
  15697. enable_file=yes
  15698. fi
  15699. if test x$enable_file != xyes; then
  15700. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  15701. else
  15702. SUMMARY_modules="${SUMMARY_modules} file"
  15703. fi
  15704. # Check whether --enable-misc was given.
  15705. if test "${enable_misc+set}" = set; then :
  15706. enableval=$enable_misc;
  15707. else
  15708. enable_misc=yes
  15709. fi
  15710. if test x$enable_misc != xyes; then
  15711. $as_echo "#define SDL_MISC_DISABLED 1" >>confdefs.h
  15712. else
  15713. SUMMARY_modules="${SUMMARY_modules} misc"
  15714. fi
  15715. # Check whether --enable-locale was given.
  15716. if test "${enable_locale+set}" = set; then :
  15717. enableval=$enable_locale;
  15718. else
  15719. enable_locale=yes
  15720. fi
  15721. if test x$enable_locale != xyes; then
  15722. $as_echo "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  15723. else
  15724. SUMMARY_modules="${SUMMARY_modules} locale"
  15725. fi
  15726. # Check whether --enable-loadso was given.
  15727. if test "${enable_loadso+set}" = set; then :
  15728. enableval=$enable_loadso;
  15729. else
  15730. enable_loadso=yes
  15731. fi
  15732. if test x$enable_loadso != xyes; then
  15733. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  15734. else
  15735. SUMMARY_modules="${SUMMARY_modules} loadso"
  15736. fi
  15737. # Check whether --enable-cpuinfo was given.
  15738. if test "${enable_cpuinfo+set}" = set; then :
  15739. enableval=$enable_cpuinfo;
  15740. else
  15741. enable_cpuinfo=yes
  15742. fi
  15743. if test x$enable_cpuinfo != xyes; then
  15744. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  15745. else
  15746. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  15747. fi
  15748. # Check whether --enable-assembly was given.
  15749. if test "${enable_assembly+set}" = set; then :
  15750. enableval=$enable_assembly;
  15751. else
  15752. enable_assembly=yes
  15753. fi
  15754. if test x$enable_assembly = xyes; then
  15755. SUMMARY_modules="${SUMMARY_modules} assembly"
  15756. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  15757. # Make sure that we don't generate floating point code that would
  15758. # cause illegal instruction exceptions on older processors
  15759. case "$host" in
  15760. *-*-darwin*)
  15761. # Don't need to worry about Apple hardware, it's all SSE capable
  15762. default_ssemath=yes
  15763. ;;
  15764. *64-*-*)
  15765. # x86 64-bit architectures all have SSE instructions
  15766. default_ssemath=yes
  15767. ;;
  15768. *)
  15769. default_ssemath=no
  15770. ;;
  15771. esac
  15772. # Check whether --enable-ssemath was given.
  15773. if test "${enable_ssemath+set}" = set; then :
  15774. enableval=$enable_ssemath;
  15775. else
  15776. enable_ssemath=$default_ssemath
  15777. fi
  15778. if test x$enable_ssemath = xno; then
  15779. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  15780. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  15781. fi
  15782. fi
  15783. # Check whether --enable-mmx was given.
  15784. if test "${enable_mmx+set}" = set; then :
  15785. enableval=$enable_mmx;
  15786. else
  15787. enable_mmx=yes
  15788. fi
  15789. if test x$enable_mmx = xyes; then
  15790. save_CFLAGS="$CFLAGS"
  15791. have_gcc_mmx=no
  15792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  15793. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  15794. mmx_CFLAGS="-mmmx"
  15795. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  15796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15797. /* end confdefs.h. */
  15798. #ifdef __MINGW32__
  15799. #include <_mingw.h>
  15800. #ifdef __MINGW64_VERSION_MAJOR
  15801. #include <intrin.h>
  15802. #else
  15803. #include <mmintrin.h>
  15804. #endif
  15805. #else
  15806. #include <mmintrin.h>
  15807. #endif
  15808. #ifndef __MMX__
  15809. #error Assembler CPP flag not enabled
  15810. #endif
  15811. int
  15812. main ()
  15813. {
  15814. ;
  15815. return 0;
  15816. }
  15817. _ACEOF
  15818. if ac_fn_c_try_compile "$LINENO"; then :
  15819. have_gcc_mmx=yes
  15820. fi
  15821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  15823. $as_echo "$have_gcc_mmx" >&6; }
  15824. CFLAGS="$save_CFLAGS"
  15825. if test x$have_gcc_mmx = xyes; then
  15826. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  15827. SUMMARY_math="${SUMMARY_math} mmx"
  15828. fi
  15829. fi
  15830. # Check whether --enable-3dnow was given.
  15831. if test "${enable_3dnow+set}" = set; then :
  15832. enableval=$enable_3dnow;
  15833. else
  15834. enable_3dnow=yes
  15835. fi
  15836. if test x$enable_3dnow = xyes; then
  15837. save_CFLAGS="$CFLAGS"
  15838. have_gcc_3dnow=no
  15839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  15840. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  15841. amd3dnow_CFLAGS="-m3dnow"
  15842. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  15843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15844. /* end confdefs.h. */
  15845. #include <mm3dnow.h>
  15846. #ifndef __3dNOW__
  15847. #error Assembler CPP flag not enabled
  15848. #endif
  15849. int
  15850. main ()
  15851. {
  15852. void *p = 0;
  15853. _m_prefetch(p);
  15854. ;
  15855. return 0;
  15856. }
  15857. _ACEOF
  15858. if ac_fn_c_try_link "$LINENO"; then :
  15859. have_gcc_3dnow=yes
  15860. fi
  15861. rm -f core conftest.err conftest.$ac_objext \
  15862. conftest$ac_exeext conftest.$ac_ext
  15863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  15864. $as_echo "$have_gcc_3dnow" >&6; }
  15865. CFLAGS="$save_CFLAGS"
  15866. if test x$have_gcc_3dnow = xyes; then
  15867. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  15868. SUMMARY_math="${SUMMARY_math} 3dnow"
  15869. fi
  15870. fi
  15871. # Check whether --enable-sse was given.
  15872. if test "${enable_sse+set}" = set; then :
  15873. enableval=$enable_sse;
  15874. else
  15875. enable_sse=yes
  15876. fi
  15877. if test x$enable_sse = xyes; then
  15878. save_CFLAGS="$CFLAGS"
  15879. have_gcc_sse=no
  15880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  15881. $as_echo_n "checking for GCC -msse option... " >&6; }
  15882. sse_CFLAGS="-msse"
  15883. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  15884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15885. /* end confdefs.h. */
  15886. #ifdef __MINGW32__
  15887. #include <_mingw.h>
  15888. #ifdef __MINGW64_VERSION_MAJOR
  15889. #include <intrin.h>
  15890. #else
  15891. #include <xmmintrin.h>
  15892. #endif
  15893. #else
  15894. #include <xmmintrin.h>
  15895. #endif
  15896. #ifndef __SSE__
  15897. #error Assembler CPP flag not enabled
  15898. #endif
  15899. int
  15900. main ()
  15901. {
  15902. ;
  15903. return 0;
  15904. }
  15905. _ACEOF
  15906. if ac_fn_c_try_compile "$LINENO"; then :
  15907. have_gcc_sse=yes
  15908. fi
  15909. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  15911. $as_echo "$have_gcc_sse" >&6; }
  15912. CFLAGS="$save_CFLAGS"
  15913. if test x$have_gcc_sse = xyes; then
  15914. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  15915. SUMMARY_math="${SUMMARY_math} sse"
  15916. fi
  15917. fi
  15918. # Check whether --enable-sse2 was given.
  15919. if test "${enable_sse2+set}" = set; then :
  15920. enableval=$enable_sse2;
  15921. else
  15922. enable_sse2=$default_ssemath
  15923. fi
  15924. if test x$enable_sse2 = xyes; then
  15925. save_CFLAGS="$CFLAGS"
  15926. have_gcc_sse2=no
  15927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  15928. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  15929. sse2_CFLAGS="-msse2"
  15930. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  15931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15932. /* end confdefs.h. */
  15933. #ifdef __MINGW32__
  15934. #include <_mingw.h>
  15935. #ifdef __MINGW64_VERSION_MAJOR
  15936. #include <intrin.h>
  15937. #else
  15938. #include <emmintrin.h>
  15939. #endif
  15940. #else
  15941. #include <emmintrin.h>
  15942. #endif
  15943. #ifndef __SSE2__
  15944. #error Assembler CPP flag not enabled
  15945. #endif
  15946. int
  15947. main ()
  15948. {
  15949. ;
  15950. return 0;
  15951. }
  15952. _ACEOF
  15953. if ac_fn_c_try_compile "$LINENO"; then :
  15954. have_gcc_sse2=yes
  15955. fi
  15956. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  15958. $as_echo "$have_gcc_sse2" >&6; }
  15959. CFLAGS="$save_CFLAGS"
  15960. if test x$have_gcc_sse2 = xyes; then
  15961. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  15962. SUMMARY_math="${SUMMARY_math} sse2"
  15963. fi
  15964. fi
  15965. # Check whether --enable-sse3 was given.
  15966. if test "${enable_sse3+set}" = set; then :
  15967. enableval=$enable_sse3;
  15968. else
  15969. enable_sse3=$default_ssemath
  15970. fi
  15971. if test x$enable_sse3 = xyes; then
  15972. save_CFLAGS="$CFLAGS"
  15973. have_gcc_sse3=no
  15974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  15975. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  15976. sse3_CFLAGS="-msse3"
  15977. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  15978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15979. /* end confdefs.h. */
  15980. #ifdef __MINGW32__
  15981. #include <_mingw.h>
  15982. #ifdef __MINGW64_VERSION_MAJOR
  15983. #include <intrin.h>
  15984. #else
  15985. #include <pmmintrin.h>
  15986. #endif
  15987. #else
  15988. #include <pmmintrin.h>
  15989. #endif
  15990. #ifndef __SSE2__
  15991. #error Assembler CPP flag not enabled
  15992. #endif
  15993. int
  15994. main ()
  15995. {
  15996. ;
  15997. return 0;
  15998. }
  15999. _ACEOF
  16000. if ac_fn_c_try_compile "$LINENO"; then :
  16001. have_gcc_sse3=yes
  16002. fi
  16003. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  16005. $as_echo "$have_gcc_sse3" >&6; }
  16006. CFLAGS="$save_CFLAGS"
  16007. if test x$have_gcc_sse3 = xyes; then
  16008. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  16009. SUMMARY_math="${SUMMARY_math} sse3"
  16010. fi
  16011. fi
  16012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  16013. $as_echo_n "checking for immintrin.h... " >&6; }
  16014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16015. /* end confdefs.h. */
  16016. #include <immintrin.h>
  16017. int
  16018. main ()
  16019. {
  16020. ;
  16021. return 0;
  16022. }
  16023. _ACEOF
  16024. if ac_fn_c_try_compile "$LINENO"; then :
  16025. have_immintrin_h_hdr=yes
  16026. else
  16027. have_immintrin_h_hdr=no
  16028. fi
  16029. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  16031. $as_echo "$have_immintrin_h_hdr" >&6; }
  16032. if test x$have_immintrin_h_hdr = xyes; then
  16033. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  16034. fi
  16035. # Check whether --enable-altivec was given.
  16036. if test "${enable_altivec+set}" = set; then :
  16037. enableval=$enable_altivec;
  16038. else
  16039. enable_altivec=yes
  16040. fi
  16041. if test x$enable_altivec = xyes; then
  16042. save_CFLAGS="$CFLAGS"
  16043. have_gcc_altivec=no
  16044. have_altivec_h_hdr=no
  16045. altivec_CFLAGS="-maltivec"
  16046. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  16047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  16048. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  16049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16050. /* end confdefs.h. */
  16051. #include <altivec.h>
  16052. vector unsigned int vzero() {
  16053. return vec_splat_u32(0);
  16054. }
  16055. int
  16056. main ()
  16057. {
  16058. ;
  16059. return 0;
  16060. }
  16061. _ACEOF
  16062. if ac_fn_c_try_compile "$LINENO"; then :
  16063. have_gcc_altivec=yes
  16064. have_altivec_h_hdr=yes
  16065. fi
  16066. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16068. $as_echo "$have_gcc_altivec" >&6; }
  16069. if test x$have_gcc_altivec = xno; then
  16070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  16071. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  16072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16073. /* end confdefs.h. */
  16074. vector unsigned int vzero() {
  16075. return vec_splat_u32(0);
  16076. }
  16077. int
  16078. main ()
  16079. {
  16080. ;
  16081. return 0;
  16082. }
  16083. _ACEOF
  16084. if ac_fn_c_try_compile "$LINENO"; then :
  16085. have_gcc_altivec=yes
  16086. fi
  16087. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16089. $as_echo "$have_gcc_altivec" >&6; }
  16090. fi
  16091. if test x$have_gcc_altivec = xno; then
  16092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  16093. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  16094. altivec_CFLAGS="-faltivec"
  16095. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  16096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16097. /* end confdefs.h. */
  16098. #include <altivec.h>
  16099. vector unsigned int vzero() {
  16100. return vec_splat_u32(0);
  16101. }
  16102. int
  16103. main ()
  16104. {
  16105. ;
  16106. return 0;
  16107. }
  16108. _ACEOF
  16109. if ac_fn_c_try_compile "$LINENO"; then :
  16110. have_gcc_altivec=yes
  16111. have_altivec_h_hdr=yes
  16112. fi
  16113. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16115. $as_echo "$have_gcc_altivec" >&6; }
  16116. fi
  16117. if test x$have_gcc_altivec = xno; then
  16118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  16119. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  16120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16121. /* end confdefs.h. */
  16122. vector unsigned int vzero() {
  16123. return vec_splat_u32(0);
  16124. }
  16125. int
  16126. main ()
  16127. {
  16128. ;
  16129. return 0;
  16130. }
  16131. _ACEOF
  16132. if ac_fn_c_try_compile "$LINENO"; then :
  16133. have_gcc_altivec=yes
  16134. fi
  16135. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  16137. $as_echo "$have_gcc_altivec" >&6; }
  16138. fi
  16139. CFLAGS="$save_CFLAGS"
  16140. if test x$have_gcc_altivec = xyes; then
  16141. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  16142. if test x$have_altivec_h_hdr = xyes; then
  16143. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  16144. fi
  16145. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  16146. SUMMARY_math="${SUMMARY_math} altivec"
  16147. fi
  16148. fi
  16149. fi
  16150. CheckOSS()
  16151. {
  16152. # Check whether --enable-oss was given.
  16153. if test "${enable_oss+set}" = set; then :
  16154. enableval=$enable_oss;
  16155. else
  16156. enable_oss=maybe
  16157. fi
  16158. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  16159. # use sndio instead. So on there, we default to disabled. You can force
  16160. # it on if you really want, though.
  16161. if test x$enable_oss = xmaybe; then
  16162. enable_oss=yes
  16163. case "$host" in
  16164. *-*-openbsd*)
  16165. enable_oss=no;;
  16166. esac
  16167. fi
  16168. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  16169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  16170. $as_echo_n "checking for OSS audio support... " >&6; }
  16171. have_oss=no
  16172. if test x$have_oss != xyes; then
  16173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16174. /* end confdefs.h. */
  16175. #include <sys/soundcard.h>
  16176. int
  16177. main ()
  16178. {
  16179. int arg = SNDCTL_DSP_SETFRAGMENT;
  16180. ;
  16181. return 0;
  16182. }
  16183. _ACEOF
  16184. if ac_fn_c_try_compile "$LINENO"; then :
  16185. have_oss=yes
  16186. fi
  16187. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16188. fi
  16189. if test x$have_oss != xyes; then
  16190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16191. /* end confdefs.h. */
  16192. #include <soundcard.h>
  16193. int
  16194. main ()
  16195. {
  16196. int arg = SNDCTL_DSP_SETFRAGMENT;
  16197. ;
  16198. return 0;
  16199. }
  16200. _ACEOF
  16201. if ac_fn_c_try_compile "$LINENO"; then :
  16202. have_oss=yes
  16203. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  16204. fi
  16205. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16206. fi
  16207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  16208. $as_echo "$have_oss" >&6; }
  16209. if test x$have_oss = xyes; then
  16210. SUMMARY_audio="${SUMMARY_audio} oss"
  16211. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  16212. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  16213. have_audio=yes
  16214. # We may need to link with ossaudio emulation library
  16215. case "$host" in
  16216. *-*-openbsd*|*-*-netbsd*)
  16217. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  16218. esac
  16219. fi
  16220. fi
  16221. }
  16222. CheckALSA()
  16223. {
  16224. # Check whether --enable-alsa was given.
  16225. if test "${enable_alsa+set}" = set; then :
  16226. enableval=$enable_alsa;
  16227. else
  16228. enable_alsa=yes
  16229. fi
  16230. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  16231. alsa_save_CFLAGS="$CFLAGS"
  16232. alsa_save_LDFLAGS="$LDFLAGS"
  16233. alsa_save_LIBS="$LIBS"
  16234. alsa_found=yes
  16235. # Check whether --with-alsa-prefix was given.
  16236. if test "${with_alsa_prefix+set}" = set; then :
  16237. withval=$with_alsa_prefix; alsa_prefix="$withval"
  16238. else
  16239. alsa_prefix=""
  16240. fi
  16241. # Check whether --with-alsa-inc-prefix was given.
  16242. if test "${with_alsa_inc_prefix+set}" = set; then :
  16243. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  16244. else
  16245. alsa_inc_prefix=""
  16246. fi
  16247. # Check whether --enable-alsatest was given.
  16248. if test "${enable_alsatest+set}" = set; then :
  16249. enableval=$enable_alsatest; enable_alsatest="$enableval"
  16250. else
  16251. enable_alsatest=yes
  16252. fi
  16253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  16254. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  16255. if test "$alsa_inc_prefix" != "" ; then
  16256. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  16257. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  16258. fi
  16259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  16260. $as_echo "$ALSA_CFLAGS" >&6; }
  16261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  16262. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  16263. if test "$alsa_prefix" != "" ; then
  16264. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  16265. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  16266. fi
  16267. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  16268. LIBS=`echo $LIBS | sed 's/-lm//'`
  16269. LIBS=`echo $LIBS | sed 's/-ldl//'`
  16270. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  16271. LIBS=`echo $LIBS | sed 's/ //'`
  16272. LIBS="$ALSA_LIBS $LIBS"
  16273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  16274. $as_echo "$ALSA_LIBS" >&6; }
  16275. min_alsa_version=1.0.11
  16276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  16277. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  16278. no_alsa=""
  16279. alsa_min_major_version=`echo $min_alsa_version | \
  16280. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  16281. alsa_min_minor_version=`echo $min_alsa_version | \
  16282. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  16283. alsa_min_micro_version=`echo $min_alsa_version | \
  16284. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  16285. ac_ext=c
  16286. ac_cpp='$CPP $CPPFLAGS'
  16287. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16288. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16289. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16291. /* end confdefs.h. */
  16292. #include <alsa/asoundlib.h>
  16293. int
  16294. main ()
  16295. {
  16296. /* ensure backward compatibility */
  16297. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  16298. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  16299. #endif
  16300. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  16301. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  16302. #endif
  16303. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  16304. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  16305. #endif
  16306. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  16307. exit(0);
  16308. # else
  16309. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  16310. # error not present
  16311. # endif
  16312. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  16313. exit(0);
  16314. # else
  16315. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  16316. # error not present
  16317. # endif
  16318. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  16319. # error not present
  16320. # endif
  16321. # endif
  16322. # endif
  16323. exit(0);
  16324. ;
  16325. return 0;
  16326. }
  16327. _ACEOF
  16328. if ac_fn_c_try_compile "$LINENO"; then :
  16329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  16330. $as_echo "found." >&6; }
  16331. else
  16332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  16333. $as_echo "not present." >&6; }
  16334. alsa_found=no
  16335. fi
  16336. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16337. ac_ext=c
  16338. ac_cpp='$CPP $CPPFLAGS'
  16339. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16340. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16341. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16342. if test "x$enable_alsatest" = "xyes"; then
  16343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  16344. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  16345. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  16346. $as_echo_n "(cached) " >&6
  16347. else
  16348. ac_check_lib_save_LIBS=$LIBS
  16349. LIBS="-lasound $LIBS"
  16350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16351. /* end confdefs.h. */
  16352. /* Override any GCC internal prototype to avoid an error.
  16353. Use char because int might match the return type of a GCC
  16354. builtin and then its argument prototype would still apply. */
  16355. #ifdef __cplusplus
  16356. extern "C"
  16357. #endif
  16358. char snd_ctl_open ();
  16359. int
  16360. main ()
  16361. {
  16362. return snd_ctl_open ();
  16363. ;
  16364. return 0;
  16365. }
  16366. _ACEOF
  16367. if ac_fn_c_try_link "$LINENO"; then :
  16368. ac_cv_lib_asound_snd_ctl_open=yes
  16369. else
  16370. ac_cv_lib_asound_snd_ctl_open=no
  16371. fi
  16372. rm -f core conftest.err conftest.$ac_objext \
  16373. conftest$ac_exeext conftest.$ac_ext
  16374. LIBS=$ac_check_lib_save_LIBS
  16375. fi
  16376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  16377. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  16378. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  16379. cat >>confdefs.h <<_ACEOF
  16380. #define HAVE_LIBASOUND 1
  16381. _ACEOF
  16382. LIBS="-lasound $LIBS"
  16383. else
  16384. alsa_found=no
  16385. fi
  16386. fi
  16387. if test "x$alsa_found" = "xyes" ; then
  16388. have_alsa=yes
  16389. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  16390. LIBS=`echo $LIBS | sed 's/ //'`
  16391. LIBS="-lasound $LIBS"
  16392. fi
  16393. if test "x$alsa_found" = "xno" ; then
  16394. have_alsa=no
  16395. CFLAGS="$alsa_save_CFLAGS"
  16396. LDFLAGS="$alsa_save_LDFLAGS"
  16397. LIBS="$alsa_save_LIBS"
  16398. ALSA_CFLAGS=""
  16399. ALSA_LIBS=""
  16400. fi
  16401. # Restore all flags from before the ALSA detection runs
  16402. CFLAGS="$alsa_save_CFLAGS"
  16403. LDFLAGS="$alsa_save_LDFLAGS"
  16404. LIBS="$alsa_save_LIBS"
  16405. if test x$have_alsa = xyes; then
  16406. # Check whether --enable-alsa-shared was given.
  16407. if test "${enable_alsa_shared+set}" = set; then :
  16408. enableval=$enable_alsa_shared;
  16409. else
  16410. enable_alsa_shared=yes
  16411. fi
  16412. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16413. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  16414. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  16415. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  16416. if test x$have_loadso != xyes && \
  16417. test x$enable_alsa_shared = xyes; then
  16418. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  16419. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  16420. fi
  16421. if test x$have_loadso = xyes && \
  16422. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  16423. echo "-- dynamic libasound -> $alsa_lib"
  16424. cat >>confdefs.h <<_ACEOF
  16425. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  16426. _ACEOF
  16427. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  16428. else
  16429. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  16430. SUMMARY_audio="${SUMMARY_audio} alsa"
  16431. fi
  16432. have_audio=yes
  16433. fi
  16434. fi
  16435. }
  16436. CheckJACK()
  16437. {
  16438. # Check whether --enable-jack was given.
  16439. if test "${enable_jack+set}" = set; then :
  16440. enableval=$enable_jack;
  16441. else
  16442. enable_jack=yes
  16443. fi
  16444. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  16445. pkg_failed=no
  16446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  16447. $as_echo_n "checking for jack >= 0.125... " >&6; }
  16448. if test -n "$JACK_CFLAGS"; then
  16449. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  16450. elif test -n "$PKG_CONFIG"; then
  16451. if test -n "$PKG_CONFIG" && \
  16452. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  16453. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  16454. ac_status=$?
  16455. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16456. test $ac_status = 0; }; then
  16457. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  16458. test "x$?" != "x0" && pkg_failed=yes
  16459. else
  16460. pkg_failed=yes
  16461. fi
  16462. else
  16463. pkg_failed=untried
  16464. fi
  16465. if test -n "$JACK_LIBS"; then
  16466. pkg_cv_JACK_LIBS="$JACK_LIBS"
  16467. elif test -n "$PKG_CONFIG"; then
  16468. if test -n "$PKG_CONFIG" && \
  16469. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  16470. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  16471. ac_status=$?
  16472. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16473. test $ac_status = 0; }; then
  16474. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  16475. test "x$?" != "x0" && pkg_failed=yes
  16476. else
  16477. pkg_failed=yes
  16478. fi
  16479. else
  16480. pkg_failed=untried
  16481. fi
  16482. if test $pkg_failed = yes; then
  16483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16484. $as_echo "no" >&6; }
  16485. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16486. _pkg_short_errors_supported=yes
  16487. else
  16488. _pkg_short_errors_supported=no
  16489. fi
  16490. if test $_pkg_short_errors_supported = yes; then
  16491. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  16492. else
  16493. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  16494. fi
  16495. # Put the nasty error message in config.log where it belongs
  16496. echo "$JACK_PKG_ERRORS" >&5
  16497. audio_jack=no
  16498. elif test $pkg_failed = untried; then
  16499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16500. $as_echo "no" >&6; }
  16501. audio_jack=no
  16502. else
  16503. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  16504. JACK_LIBS=$pkg_cv_JACK_LIBS
  16505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16506. $as_echo "yes" >&6; }
  16507. audio_jack=yes
  16508. fi
  16509. if test x$audio_jack = xyes; then
  16510. # Check whether --enable-jack-shared was given.
  16511. if test "${enable_jack_shared+set}" = set; then :
  16512. enableval=$enable_jack_shared;
  16513. else
  16514. enable_jack_shared=yes
  16515. fi
  16516. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16517. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  16518. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  16519. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  16520. if test x$have_loadso != xyes && \
  16521. test x$enable_jack_shared = xyes; then
  16522. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  16523. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  16524. fi
  16525. if test x$have_loadso = xyes && \
  16526. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  16527. echo "-- dynamic libjack -> $jack_lib"
  16528. cat >>confdefs.h <<_ACEOF
  16529. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  16530. _ACEOF
  16531. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  16532. case "$host" in
  16533. # On Solaris, jack must be linked deferred explicitly
  16534. # to prevent undefined symbol failures.
  16535. *-*-solaris*)
  16536. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  16537. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  16538. esac
  16539. else
  16540. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  16541. SUMMARY_audio="${SUMMARY_audio} jack"
  16542. fi
  16543. have_audio=yes
  16544. fi
  16545. fi
  16546. }
  16547. CheckESD()
  16548. {
  16549. # Check whether --enable-esd was given.
  16550. if test "${enable_esd+set}" = set; then :
  16551. enableval=$enable_esd;
  16552. else
  16553. enable_esd=yes
  16554. fi
  16555. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  16556. # Check whether --with-esd-prefix was given.
  16557. if test "${with_esd_prefix+set}" = set; then :
  16558. withval=$with_esd_prefix; esd_prefix="$withval"
  16559. else
  16560. esd_prefix=""
  16561. fi
  16562. # Check whether --with-esd-exec-prefix was given.
  16563. if test "${with_esd_exec_prefix+set}" = set; then :
  16564. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  16565. else
  16566. esd_exec_prefix=""
  16567. fi
  16568. # Check whether --enable-esdtest was given.
  16569. if test "${enable_esdtest+set}" = set; then :
  16570. enableval=$enable_esdtest;
  16571. else
  16572. enable_esdtest=yes
  16573. fi
  16574. if test x$esd_exec_prefix != x ; then
  16575. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  16576. if test x${ESD_CONFIG+set} != xset ; then
  16577. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  16578. fi
  16579. fi
  16580. if test x$esd_prefix != x ; then
  16581. esd_args="$esd_args --prefix=$esd_prefix"
  16582. if test x${ESD_CONFIG+set} != xset ; then
  16583. ESD_CONFIG=$esd_prefix/bin/esd-config
  16584. fi
  16585. fi
  16586. # Extract the first word of "esd-config", so it can be a program name with args.
  16587. set dummy esd-config; ac_word=$2
  16588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16589. $as_echo_n "checking for $ac_word... " >&6; }
  16590. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  16591. $as_echo_n "(cached) " >&6
  16592. else
  16593. case $ESD_CONFIG in
  16594. [\\/]* | ?:[\\/]*)
  16595. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  16596. ;;
  16597. *)
  16598. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16599. for as_dir in $PATH
  16600. do
  16601. IFS=$as_save_IFS
  16602. test -z "$as_dir" && as_dir=.
  16603. for ac_exec_ext in '' $ac_executable_extensions; do
  16604. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16605. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16606. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16607. break 2
  16608. fi
  16609. done
  16610. done
  16611. IFS=$as_save_IFS
  16612. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  16613. ;;
  16614. esac
  16615. fi
  16616. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  16617. if test -n "$ESD_CONFIG"; then
  16618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  16619. $as_echo "$ESD_CONFIG" >&6; }
  16620. else
  16621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16622. $as_echo "no" >&6; }
  16623. fi
  16624. min_esd_version=0.2.8
  16625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  16626. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  16627. no_esd=""
  16628. if test "$ESD_CONFIG" = "no" ; then
  16629. no_esd=yes
  16630. else
  16631. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  16632. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  16633. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  16634. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  16635. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  16636. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  16637. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  16638. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  16639. if test "x$enable_esdtest" = "xyes" ; then
  16640. ac_ext=c
  16641. ac_cpp='$CPP $CPPFLAGS'
  16642. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16643. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16644. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16645. ac_save_CFLAGS="$CFLAGS"
  16646. ac_save_LIBS="$LIBS"
  16647. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16648. LIBS="$LIBS $ESD_LIBS"
  16649. rm -f conf.esdtest
  16650. if test "$cross_compiling" = yes; then :
  16651. echo $ac_n "cross compiling; assumed OK... $ac_c"
  16652. else
  16653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16654. /* end confdefs.h. */
  16655. #include <stdio.h>
  16656. #include <stdlib.h>
  16657. #include <esd.h>
  16658. int main (void)
  16659. {
  16660. int major, minor, micro;
  16661. FILE *fp = fopen("conf.esdtest", "w");
  16662. if (fp) fclose(fp);
  16663. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  16664. printf("%s, bad version string\n", "$min_esd_version");
  16665. exit(1);
  16666. }
  16667. if (($esd_major_version > major) ||
  16668. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  16669. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  16670. {
  16671. return 0;
  16672. }
  16673. else
  16674. {
  16675. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  16676. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  16677. printf("*** best to upgrade to the required version.\n");
  16678. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  16679. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  16680. printf("*** config.cache before re-running configure\n");
  16681. return 1;
  16682. }
  16683. }
  16684. _ACEOF
  16685. if ac_fn_c_try_run "$LINENO"; then :
  16686. else
  16687. no_esd=yes
  16688. fi
  16689. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16690. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16691. fi
  16692. CFLAGS="$ac_save_CFLAGS"
  16693. LIBS="$ac_save_LIBS"
  16694. ac_ext=c
  16695. ac_cpp='$CPP $CPPFLAGS'
  16696. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16697. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16698. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16699. fi
  16700. fi
  16701. if test "x$no_esd" = x ; then
  16702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16703. $as_echo "yes" >&6; }
  16704. have_esd=yes
  16705. else
  16706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16707. $as_echo "no" >&6; }
  16708. if test "$ESD_CONFIG" = "no" ; then
  16709. echo "*** The esd-config script installed by ESD could not be found"
  16710. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  16711. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  16712. echo "*** full path to esd-config."
  16713. else
  16714. if test -f conf.esdtest ; then
  16715. :
  16716. else
  16717. echo "*** Could not run ESD test program, checking why..."
  16718. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16719. LIBS="$LIBS $ESD_LIBS"
  16720. ac_ext=c
  16721. ac_cpp='$CPP $CPPFLAGS'
  16722. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16723. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16724. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16726. /* end confdefs.h. */
  16727. #include <stdio.h>
  16728. #include <esd.h>
  16729. int
  16730. main ()
  16731. {
  16732. return 0;
  16733. ;
  16734. return 0;
  16735. }
  16736. _ACEOF
  16737. if ac_fn_c_try_link "$LINENO"; then :
  16738. echo "*** The test program compiled, but did not run. This usually means"
  16739. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  16740. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  16741. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  16742. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  16743. echo "*** is required on your system"
  16744. echo "***"
  16745. echo "*** If you have an old version installed, it is best to remove it, although"
  16746. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  16747. else
  16748. echo "*** The test program failed to compile or link. See the file config.log for the"
  16749. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  16750. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  16751. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  16752. fi
  16753. rm -f core conftest.err conftest.$ac_objext \
  16754. conftest$ac_exeext conftest.$ac_ext
  16755. CFLAGS="$ac_save_CFLAGS"
  16756. LIBS="$ac_save_LIBS"
  16757. ac_ext=c
  16758. ac_cpp='$CPP $CPPFLAGS'
  16759. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16760. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16761. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16762. fi
  16763. fi
  16764. ESD_CFLAGS=""
  16765. ESD_LIBS=""
  16766. have_esd=no
  16767. fi
  16768. rm -f conf.esdtest
  16769. if test x$have_esd = xyes; then
  16770. # Check whether --enable-esd-shared was given.
  16771. if test "${enable_esd_shared+set}" = set; then :
  16772. enableval=$enable_esd_shared;
  16773. else
  16774. enable_esd_shared=yes
  16775. fi
  16776. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16777. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  16778. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  16779. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  16780. if test x$have_loadso != xyes && \
  16781. test x$enable_esd_shared = xyes; then
  16782. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  16783. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  16784. fi
  16785. if test x$have_loadso = xyes && \
  16786. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  16787. echo "-- dynamic libesd -> $esd_lib"
  16788. cat >>confdefs.h <<_ACEOF
  16789. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  16790. _ACEOF
  16791. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  16792. else
  16793. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  16794. SUMMARY_audio="${SUMMARY_audio} esd"
  16795. fi
  16796. have_audio=yes
  16797. fi
  16798. fi
  16799. }
  16800. CheckPipewire()
  16801. {
  16802. # Check whether --enable-pipewire was given.
  16803. if test "${enable_pipewire+set}" = set; then :
  16804. enableval=$enable_pipewire;
  16805. else
  16806. enable_pipewire=yes
  16807. fi
  16808. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  16809. pkg_failed=no
  16810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  16811. $as_echo_n "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  16812. if test -n "$PIPEWIRE_CFLAGS"; then
  16813. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  16814. elif test -n "$PKG_CONFIG"; then
  16815. if test -n "$PKG_CONFIG" && \
  16816. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16817. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16818. ac_status=$?
  16819. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16820. test $ac_status = 0; }; then
  16821. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16822. test "x$?" != "x0" && pkg_failed=yes
  16823. else
  16824. pkg_failed=yes
  16825. fi
  16826. else
  16827. pkg_failed=untried
  16828. fi
  16829. if test -n "$PIPEWIRE_LIBS"; then
  16830. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  16831. elif test -n "$PKG_CONFIG"; then
  16832. if test -n "$PKG_CONFIG" && \
  16833. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16834. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16835. ac_status=$?
  16836. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16837. test $ac_status = 0; }; then
  16838. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16839. test "x$?" != "x0" && pkg_failed=yes
  16840. else
  16841. pkg_failed=yes
  16842. fi
  16843. else
  16844. pkg_failed=untried
  16845. fi
  16846. if test $pkg_failed = yes; then
  16847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16848. $as_echo "no" >&6; }
  16849. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16850. _pkg_short_errors_supported=yes
  16851. else
  16852. _pkg_short_errors_supported=no
  16853. fi
  16854. if test $_pkg_short_errors_supported = yes; then
  16855. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16856. else
  16857. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16858. fi
  16859. # Put the nasty error message in config.log where it belongs
  16860. echo "$PIPEWIRE_PKG_ERRORS" >&5
  16861. audio_pipewire=no
  16862. elif test $pkg_failed = untried; then
  16863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16864. $as_echo "no" >&6; }
  16865. audio_pipewire=no
  16866. else
  16867. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  16868. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  16869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16870. $as_echo "yes" >&6; }
  16871. audio_pipewire=yes
  16872. fi
  16873. if test x$audio_pipewire = xyes; then
  16874. # Check whether --enable-pipewire-shared was given.
  16875. if test "${enable_pipewire_shared+set}" = set; then :
  16876. enableval=$enable_pipewire_shared;
  16877. else
  16878. enable_pipewire_shared=yes
  16879. fi
  16880. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16881. $as_echo "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  16882. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  16883. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  16884. if test x$have_loadso != xyes && \
  16885. test x$enable_pipewire_shared = xyes; then
  16886. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  16887. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  16888. fi
  16889. if test x$have_loadso = xyes && \
  16890. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  16891. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  16892. cat >>confdefs.h <<_ACEOF
  16893. #define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC "$pipewire_lib"
  16894. _ACEOF
  16895. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  16896. else
  16897. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  16898. SUMMARY_audio="${SUMMARY_audio} pipewire"
  16899. fi
  16900. have_audio=yes
  16901. fi
  16902. fi
  16903. }
  16904. CheckPulseAudio()
  16905. {
  16906. # Check whether --enable-pulseaudio was given.
  16907. if test "${enable_pulseaudio+set}" = set; then :
  16908. enableval=$enable_pulseaudio;
  16909. else
  16910. enable_pulseaudio=yes
  16911. fi
  16912. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  16913. pkg_failed=no
  16914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  16915. $as_echo_n "checking for libpulse-simple >= 0.9... " >&6; }
  16916. if test -n "$PULSEAUDIO_CFLAGS"; then
  16917. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  16918. elif test -n "$PKG_CONFIG"; then
  16919. if test -n "$PKG_CONFIG" && \
  16920. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16921. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16922. ac_status=$?
  16923. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16924. test $ac_status = 0; }; then
  16925. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  16926. test "x$?" != "x0" && pkg_failed=yes
  16927. else
  16928. pkg_failed=yes
  16929. fi
  16930. else
  16931. pkg_failed=untried
  16932. fi
  16933. if test -n "$PULSEAUDIO_LIBS"; then
  16934. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  16935. elif test -n "$PKG_CONFIG"; then
  16936. if test -n "$PKG_CONFIG" && \
  16937. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16938. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16939. ac_status=$?
  16940. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16941. test $ac_status = 0; }; then
  16942. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  16943. test "x$?" != "x0" && pkg_failed=yes
  16944. else
  16945. pkg_failed=yes
  16946. fi
  16947. else
  16948. pkg_failed=untried
  16949. fi
  16950. if test $pkg_failed = yes; then
  16951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16952. $as_echo "no" >&6; }
  16953. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16954. _pkg_short_errors_supported=yes
  16955. else
  16956. _pkg_short_errors_supported=no
  16957. fi
  16958. if test $_pkg_short_errors_supported = yes; then
  16959. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16960. else
  16961. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16962. fi
  16963. # Put the nasty error message in config.log where it belongs
  16964. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  16965. audio_pulseaudio=no
  16966. elif test $pkg_failed = untried; then
  16967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16968. $as_echo "no" >&6; }
  16969. audio_pulseaudio=no
  16970. else
  16971. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  16972. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  16973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16974. $as_echo "yes" >&6; }
  16975. audio_pulseaudio=yes
  16976. fi
  16977. if test x$audio_pulseaudio = xyes; then
  16978. # Check whether --enable-pulseaudio-shared was given.
  16979. if test "${enable_pulseaudio_shared+set}" = set; then :
  16980. enableval=$enable_pulseaudio_shared;
  16981. else
  16982. enable_pulseaudio_shared=yes
  16983. fi
  16984. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16985. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  16986. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  16987. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  16988. if test x$have_loadso != xyes && \
  16989. test x$enable_pulseaudio_shared = xyes; then
  16990. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  16991. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  16992. fi
  16993. if test x$have_loadso = xyes && \
  16994. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  16995. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  16996. cat >>confdefs.h <<_ACEOF
  16997. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  16998. _ACEOF
  16999. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  17000. case "$host" in
  17001. # On Solaris, pulseaudio must be linked deferred explicitly
  17002. # to prevent undefined symbol failures.
  17003. *-*-solaris*)
  17004. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  17005. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  17006. esac
  17007. else
  17008. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  17009. SUMMARY_audio="${SUMMARY_audio} pulse"
  17010. fi
  17011. have_audio=yes
  17012. fi
  17013. fi
  17014. }
  17015. CheckARTSC()
  17016. {
  17017. # Check whether --enable-arts was given.
  17018. if test "${enable_arts+set}" = set; then :
  17019. enableval=$enable_arts;
  17020. else
  17021. enable_arts=yes
  17022. fi
  17023. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  17024. # Extract the first word of "artsc-config", so it can be a program name with args.
  17025. set dummy artsc-config; ac_word=$2
  17026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17027. $as_echo_n "checking for $ac_word... " >&6; }
  17028. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  17029. $as_echo_n "(cached) " >&6
  17030. else
  17031. case $ARTSCONFIG in
  17032. [\\/]* | ?:[\\/]*)
  17033. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  17034. ;;
  17035. *)
  17036. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17037. for as_dir in $PATH
  17038. do
  17039. IFS=$as_save_IFS
  17040. test -z "$as_dir" && as_dir=.
  17041. for ac_exec_ext in '' $ac_executable_extensions; do
  17042. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17043. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  17044. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17045. break 2
  17046. fi
  17047. done
  17048. done
  17049. IFS=$as_save_IFS
  17050. ;;
  17051. esac
  17052. fi
  17053. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  17054. if test -n "$ARTSCONFIG"; then
  17055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  17056. $as_echo "$ARTSCONFIG" >&6; }
  17057. else
  17058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17059. $as_echo "no" >&6; }
  17060. fi
  17061. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  17062. : # arts isn't installed
  17063. else
  17064. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  17065. ARTS_LIBS=`$ARTSCONFIG --libs`
  17066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  17067. $as_echo_n "checking for aRts development environment... " >&6; }
  17068. audio_arts=no
  17069. save_CFLAGS="$CFLAGS"
  17070. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  17071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17072. /* end confdefs.h. */
  17073. #include <artsc.h>
  17074. int
  17075. main ()
  17076. {
  17077. arts_stream_t stream;
  17078. ;
  17079. return 0;
  17080. }
  17081. _ACEOF
  17082. if ac_fn_c_try_compile "$LINENO"; then :
  17083. audio_arts=yes
  17084. fi
  17085. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17086. CFLAGS="$save_CFLAGS"
  17087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  17088. $as_echo "$audio_arts" >&6; }
  17089. if test x$audio_arts = xyes; then
  17090. # Check whether --enable-arts-shared was given.
  17091. if test "${enable_arts_shared+set}" = set; then :
  17092. enableval=$enable_arts_shared;
  17093. else
  17094. enable_arts_shared=yes
  17095. fi
  17096. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17097. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  17098. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  17099. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  17100. if test x$have_loadso != xyes && \
  17101. test x$enable_arts_shared = xyes; then
  17102. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  17103. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  17104. fi
  17105. if test x$have_loadso = xyes && \
  17106. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  17107. echo "-- dynamic libartsc -> $arts_lib"
  17108. cat >>confdefs.h <<_ACEOF
  17109. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  17110. _ACEOF
  17111. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  17112. else
  17113. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  17114. SUMMARY_audio="${SUMMARY_audio} arts"
  17115. fi
  17116. have_audio=yes
  17117. fi
  17118. fi
  17119. fi
  17120. }
  17121. CheckNAS()
  17122. {
  17123. # Check whether --enable-nas was given.
  17124. if test "${enable_nas+set}" = set; then :
  17125. enableval=$enable_nas;
  17126. else
  17127. enable_nas=yes
  17128. fi
  17129. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  17130. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  17131. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  17132. have_nas_hdr=yes
  17133. fi
  17134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  17135. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  17136. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  17137. $as_echo_n "(cached) " >&6
  17138. else
  17139. ac_check_lib_save_LIBS=$LIBS
  17140. LIBS="-laudio $LIBS"
  17141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17142. /* end confdefs.h. */
  17143. /* Override any GCC internal prototype to avoid an error.
  17144. Use char because int might match the return type of a GCC
  17145. builtin and then its argument prototype would still apply. */
  17146. #ifdef __cplusplus
  17147. extern "C"
  17148. #endif
  17149. char AuOpenServer ();
  17150. int
  17151. main ()
  17152. {
  17153. return AuOpenServer ();
  17154. ;
  17155. return 0;
  17156. }
  17157. _ACEOF
  17158. if ac_fn_c_try_link "$LINENO"; then :
  17159. ac_cv_lib_audio_AuOpenServer=yes
  17160. else
  17161. ac_cv_lib_audio_AuOpenServer=no
  17162. fi
  17163. rm -f core conftest.err conftest.$ac_objext \
  17164. conftest$ac_exeext conftest.$ac_ext
  17165. LIBS=$ac_check_lib_save_LIBS
  17166. fi
  17167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  17168. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  17169. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  17170. have_nas_lib=yes
  17171. fi
  17172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  17173. $as_echo_n "checking for NAS audio support... " >&6; }
  17174. have_nas=no
  17175. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  17176. have_nas=yes
  17177. NAS_LIBS="-laudio"
  17178. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  17179. have_nas=yes
  17180. NAS_CFLAGS="-I/usr/X11R6/include/"
  17181. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  17182. fi
  17183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  17184. $as_echo "$have_nas" >&6; }
  17185. if test x$have_nas = xyes; then
  17186. # Check whether --enable-nas-shared was given.
  17187. if test "${enable_nas_shared+set}" = set; then :
  17188. enableval=$enable_nas_shared;
  17189. else
  17190. enable_nas_shared=yes
  17191. fi
  17192. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17193. if test x$have_loadso != xyes && \
  17194. test x$enable_nas_shared = xyes; then
  17195. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  17196. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  17197. fi
  17198. if test x$have_loadso = xyes && \
  17199. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  17200. echo "-- dynamic libaudio -> $nas_lib"
  17201. cat >>confdefs.h <<_ACEOF
  17202. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  17203. _ACEOF
  17204. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  17205. else
  17206. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  17207. SUMMARY_audio="${SUMMARY_audio} nas"
  17208. fi
  17209. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  17210. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  17211. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  17212. have_audio=yes
  17213. fi
  17214. fi
  17215. }
  17216. CheckSNDIO()
  17217. {
  17218. # Check whether --enable-sndio was given.
  17219. if test "${enable_sndio+set}" = set; then :
  17220. enableval=$enable_sndio;
  17221. else
  17222. enable_sndio=yes
  17223. fi
  17224. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  17225. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  17226. if test "x$ac_cv_header_sndio_h" = xyes; then :
  17227. have_sndio_hdr=yes
  17228. fi
  17229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  17230. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  17231. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  17232. $as_echo_n "(cached) " >&6
  17233. else
  17234. ac_check_lib_save_LIBS=$LIBS
  17235. LIBS="-lsndio $LIBS"
  17236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17237. /* end confdefs.h. */
  17238. /* Override any GCC internal prototype to avoid an error.
  17239. Use char because int might match the return type of a GCC
  17240. builtin and then its argument prototype would still apply. */
  17241. #ifdef __cplusplus
  17242. extern "C"
  17243. #endif
  17244. char sio_open ();
  17245. int
  17246. main ()
  17247. {
  17248. return sio_open ();
  17249. ;
  17250. return 0;
  17251. }
  17252. _ACEOF
  17253. if ac_fn_c_try_link "$LINENO"; then :
  17254. ac_cv_lib_sndio_sio_open=yes
  17255. else
  17256. ac_cv_lib_sndio_sio_open=no
  17257. fi
  17258. rm -f core conftest.err conftest.$ac_objext \
  17259. conftest$ac_exeext conftest.$ac_ext
  17260. LIBS=$ac_check_lib_save_LIBS
  17261. fi
  17262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  17263. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  17264. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  17265. have_sndio_lib=yes
  17266. fi
  17267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  17268. $as_echo_n "checking for sndio audio support... " >&6; }
  17269. have_sndio=no
  17270. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  17271. have_sndio=yes
  17272. SNDIO_LIBS="-lsndio"
  17273. fi
  17274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  17275. $as_echo "$have_sndio" >&6; }
  17276. if test x$have_sndio = xyes; then
  17277. # Check whether --enable-sndio-shared was given.
  17278. if test "${enable_sndio_shared+set}" = set; then :
  17279. enableval=$enable_sndio_shared;
  17280. else
  17281. enable_sndio_shared=yes
  17282. fi
  17283. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17284. if test x$have_loadso != xyes && \
  17285. test x$enable_sndio_shared = xyes; then
  17286. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  17287. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  17288. fi
  17289. if test x$have_loadso = xyes && \
  17290. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  17291. echo "-- dynamic libsndio -> $sndio_lib"
  17292. cat >>confdefs.h <<_ACEOF
  17293. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  17294. _ACEOF
  17295. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  17296. else
  17297. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  17298. SUMMARY_audio="${SUMMARY_audio} sndio"
  17299. fi
  17300. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  17301. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  17302. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  17303. have_audio=yes
  17304. fi
  17305. fi
  17306. }
  17307. CheckFusionSound()
  17308. {
  17309. # Check whether --enable-fusionsound was given.
  17310. if test "${enable_fusionsound+set}" = set; then :
  17311. enableval=$enable_fusionsound;
  17312. else
  17313. enable_fusionsound=no
  17314. fi
  17315. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  17316. pkg_failed=no
  17317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  17318. $as_echo_n "checking for fusionsound >= 1.1.1... " >&6; }
  17319. if test -n "$FUSIONSOUND_CFLAGS"; then
  17320. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  17321. elif test -n "$PKG_CONFIG"; then
  17322. if test -n "$PKG_CONFIG" && \
  17323. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  17324. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  17325. ac_status=$?
  17326. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17327. test $ac_status = 0; }; then
  17328. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  17329. test "x$?" != "x0" && pkg_failed=yes
  17330. else
  17331. pkg_failed=yes
  17332. fi
  17333. else
  17334. pkg_failed=untried
  17335. fi
  17336. if test -n "$FUSIONSOUND_LIBS"; then
  17337. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  17338. elif test -n "$PKG_CONFIG"; then
  17339. if test -n "$PKG_CONFIG" && \
  17340. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  17341. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  17342. ac_status=$?
  17343. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17344. test $ac_status = 0; }; then
  17345. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  17346. test "x$?" != "x0" && pkg_failed=yes
  17347. else
  17348. pkg_failed=yes
  17349. fi
  17350. else
  17351. pkg_failed=untried
  17352. fi
  17353. if test $pkg_failed = yes; then
  17354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17355. $as_echo "no" >&6; }
  17356. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17357. _pkg_short_errors_supported=yes
  17358. else
  17359. _pkg_short_errors_supported=no
  17360. fi
  17361. if test $_pkg_short_errors_supported = yes; then
  17362. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  17363. else
  17364. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  17365. fi
  17366. # Put the nasty error message in config.log where it belongs
  17367. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  17368. fusionsound=no
  17369. elif test $pkg_failed = untried; then
  17370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17371. $as_echo "no" >&6; }
  17372. fusionsound=no
  17373. else
  17374. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  17375. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  17376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17377. $as_echo "yes" >&6; }
  17378. fusionsound=yes
  17379. fi
  17380. if test x$fusionsound = xyes; then
  17381. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  17382. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  17383. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  17384. # Check whether --enable-fusionsound-shared was given.
  17385. if test "${enable_fusionsound_shared+set}" = set; then :
  17386. enableval=$enable_fusionsound_shared;
  17387. else
  17388. enable_fusionsound_shared=yes
  17389. fi
  17390. fusionsound_shared=no
  17391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  17392. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  17393. if test x$have_loadso != xyes && \
  17394. test x$enable_fusionsound_shared = xyes; then
  17395. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  17396. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  17397. fi
  17398. if test x$have_loadso = xyes && \
  17399. test x$enable_fusionsound_shared = xyes; then
  17400. cat >>confdefs.h <<_ACEOF
  17401. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  17402. _ACEOF
  17403. fusionsound_shared=yes
  17404. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  17405. else
  17406. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  17407. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  17408. fi
  17409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  17410. $as_echo "$fusionsound_shared" >&6; }
  17411. have_audio=yes
  17412. fi
  17413. fi
  17414. }
  17415. CheckDiskAudio()
  17416. {
  17417. # Check whether --enable-diskaudio was given.
  17418. if test "${enable_diskaudio+set}" = set; then :
  17419. enableval=$enable_diskaudio;
  17420. else
  17421. enable_diskaudio=yes
  17422. fi
  17423. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  17424. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  17425. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  17426. SUMMARY_audio="${SUMMARY_audio} disk"
  17427. have_audio=yes
  17428. fi
  17429. }
  17430. CheckDummyAudio()
  17431. {
  17432. # Check whether --enable-dummyaudio was given.
  17433. if test "${enable_dummyaudio+set}" = set; then :
  17434. enableval=$enable_dummyaudio;
  17435. else
  17436. enable_dummyaudio=yes
  17437. fi
  17438. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  17439. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  17440. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  17441. SUMMARY_audio="${SUMMARY_audio} dummy"
  17442. have_audio=yes
  17443. fi
  17444. }
  17445. CheckLibSampleRate()
  17446. {
  17447. # Check whether --enable-libsamplerate was given.
  17448. if test "${enable_libsamplerate+set}" = set; then :
  17449. enableval=$enable_libsamplerate;
  17450. else
  17451. enable_libsamplerate=yes
  17452. fi
  17453. if test x$enable_libsamplerate = xyes; then
  17454. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  17455. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  17456. have_samplerate_h_hdr=yes
  17457. else
  17458. have_samplerate_h_hdr=no
  17459. fi
  17460. if test x$have_samplerate_h_hdr = xyes; then
  17461. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  17462. # Check whether --enable-libsamplerate-shared was given.
  17463. if test "${enable_libsamplerate_shared+set}" = set; then :
  17464. enableval=$enable_libsamplerate_shared;
  17465. else
  17466. enable_libsamplerate_shared=yes
  17467. fi
  17468. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  17469. if test x$have_loadso != xyes && \
  17470. test x$enable_libsamplerate_shared = xyes; then
  17471. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  17472. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  17473. fi
  17474. if test x$have_loadso = xyes && \
  17475. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  17476. echo "-- dynamic libsamplerate -> $samplerate_lib"
  17477. cat >>confdefs.h <<_ACEOF
  17478. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  17479. _ACEOF
  17480. else
  17481. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  17482. fi
  17483. fi
  17484. fi
  17485. }
  17486. CheckARM()
  17487. {
  17488. # Check whether --enable-arm-simd was given.
  17489. if test "${enable_arm_simd+set}" = set; then :
  17490. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  17491. else
  17492. enable_arm_simd=no
  17493. fi
  17494. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  17495. save_CFLAGS="$CFLAGS"
  17496. have_arm_simd=no
  17497. CFLAGS="-x assembler-with-cpp $CFLAGS"
  17498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  17499. $as_echo_n "checking for ARM SIMD... " >&6; }
  17500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17501. /* end confdefs.h. */
  17502. .text
  17503. .arch armv6
  17504. .object_arch armv4
  17505. .arm
  17506. .altmacro
  17507. #ifndef __ARM_EABI__
  17508. #error EABI is required (to be sure that calling conventions are compatible)
  17509. #endif
  17510. pld [r0]
  17511. uqadd8 r0, r0, r0
  17512. _ACEOF
  17513. if ac_fn_c_try_compile "$LINENO"; then :
  17514. have_arm_simd=yes
  17515. fi
  17516. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  17518. $as_echo "$have_arm_simd" >&6; }
  17519. CFLAGS="$save_CFLAGS"
  17520. if test x$have_arm_simd = xyes; then
  17521. $as_echo "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  17522. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  17523. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  17524. fi
  17525. fi
  17526. }
  17527. CheckNEON()
  17528. {
  17529. # Check whether --enable-arm-neon was given.
  17530. if test "${enable_arm_neon+set}" = set; then :
  17531. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  17532. else
  17533. enable_arm_neon=no
  17534. fi
  17535. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  17536. save_CFLAGS="$CFLAGS"
  17537. have_arm_neon=no
  17538. CFLAGS="-x assembler-with-cpp $CFLAGS"
  17539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  17540. $as_echo_n "checking for ARM NEON... " >&6; }
  17541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17542. /* end confdefs.h. */
  17543. .text
  17544. .fpu neon
  17545. .arch armv7a
  17546. .object_arch armv4
  17547. .eabi_attribute 10, 0
  17548. .arm
  17549. .altmacro
  17550. #ifndef __ARM_EABI__
  17551. #error EABI is required (to be sure that calling conventions are compatible)
  17552. #endif
  17553. pld [r0]
  17554. vmovn.u16 d0, q0
  17555. _ACEOF
  17556. if ac_fn_c_try_compile "$LINENO"; then :
  17557. have_arm_neon=yes
  17558. fi
  17559. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  17561. $as_echo "$have_arm_neon" >&6; }
  17562. CFLAGS="$save_CFLAGS"
  17563. if test x$have_arm_neon = xyes; then
  17564. $as_echo "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  17565. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  17566. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  17567. fi
  17568. fi
  17569. }
  17570. CheckVisibilityHidden()
  17571. {
  17572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  17573. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  17574. have_gcc_fvisibility=no
  17575. visibility_CFLAGS="-fvisibility=hidden"
  17576. save_CFLAGS="$CFLAGS"
  17577. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  17578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17579. /* end confdefs.h. */
  17580. #if !defined(__GNUC__) || __GNUC__ < 4
  17581. #error SDL only uses visibility attributes in GCC 4 or newer
  17582. #endif
  17583. int
  17584. main ()
  17585. {
  17586. ;
  17587. return 0;
  17588. }
  17589. _ACEOF
  17590. if ac_fn_c_try_compile "$LINENO"; then :
  17591. have_gcc_fvisibility=yes
  17592. fi
  17593. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  17595. $as_echo "$have_gcc_fvisibility" >&6; }
  17596. CFLAGS="$save_CFLAGS"
  17597. if test x$have_gcc_fvisibility = xyes; then
  17598. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  17599. fi
  17600. }
  17601. CheckNoStrictAliasing()
  17602. {
  17603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  17604. $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
  17605. have_gcc_no_strict_aliasing=no
  17606. save_CFLAGS="$CFLAGS"
  17607. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  17608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17609. /* end confdefs.h. */
  17610. int x = 0;
  17611. int
  17612. main ()
  17613. {
  17614. ;
  17615. return 0;
  17616. }
  17617. _ACEOF
  17618. if ac_fn_c_try_compile "$LINENO"; then :
  17619. have_gcc_no_strict_aliasing=yes
  17620. fi
  17621. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  17623. $as_echo "$have_gcc_no_strict_aliasing" >&6; }
  17624. CFLAGS="$save_CFLAGS"
  17625. if test x$have_gcc_no_strict_aliasing = xyes; then
  17626. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  17627. fi
  17628. }
  17629. CheckStackBoundary()
  17630. {
  17631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  17632. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  17633. have_gcc_preferred_stack_boundary=no
  17634. save_CFLAGS="$CFLAGS"
  17635. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  17636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17637. /* end confdefs.h. */
  17638. int x = 0;
  17639. int
  17640. main ()
  17641. {
  17642. ;
  17643. return 0;
  17644. }
  17645. _ACEOF
  17646. if ac_fn_c_try_compile "$LINENO"; then :
  17647. have_gcc_preferred_stack_boundary=yes
  17648. fi
  17649. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  17651. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  17652. CFLAGS="$save_CFLAGS"
  17653. if test x$have_gcc_preferred_stack_boundary = xyes; then
  17654. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  17655. fi
  17656. }
  17657. CheckDeclarationAfterStatement()
  17658. {
  17659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  17660. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  17661. have_gcc_declaration_after_statement=no
  17662. save_CFLAGS="$CFLAGS"
  17663. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17665. /* end confdefs.h. */
  17666. int x = 0;
  17667. int
  17668. main ()
  17669. {
  17670. ;
  17671. return 0;
  17672. }
  17673. _ACEOF
  17674. if ac_fn_c_try_compile "$LINENO"; then :
  17675. have_gcc_declaration_after_statement=yes
  17676. fi
  17677. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  17679. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  17680. CFLAGS="$save_CFLAGS"
  17681. if test x$have_gcc_declaration_after_statement = xyes; then
  17682. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17683. fi
  17684. }
  17685. CheckWarnAll()
  17686. {
  17687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  17688. $as_echo_n "checking for GCC -Wall option... " >&6; }
  17689. have_gcc_Wall=no
  17690. save_CFLAGS="$CFLAGS"
  17691. CFLAGS="$save_CFLAGS -Wall"
  17692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17693. /* end confdefs.h. */
  17694. int x = 0;
  17695. int
  17696. main ()
  17697. {
  17698. ;
  17699. return 0;
  17700. }
  17701. _ACEOF
  17702. if ac_fn_c_try_compile "$LINENO"; then :
  17703. have_gcc_Wall=yes
  17704. fi
  17705. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  17707. $as_echo "$have_gcc_Wall" >&6; }
  17708. CFLAGS="$save_CFLAGS"
  17709. if test x$have_gcc_Wall = xyes; then
  17710. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  17711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  17712. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  17713. need_gcc_Wno_multichar=no
  17714. case "$host" in
  17715. *-*-haiku*)
  17716. need_gcc_Wno_multichar=yes
  17717. ;;
  17718. esac
  17719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  17720. $as_echo "$need_gcc_Wno_multichar" >&6; }
  17721. if test x$need_gcc_Wno_multichar = xyes; then
  17722. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  17723. fi
  17724. fi
  17725. }
  17726. CheckWayland()
  17727. {
  17728. # Check whether --enable-video-wayland was given.
  17729. if test "${enable_video_wayland+set}" = set; then :
  17730. enableval=$enable_video_wayland;
  17731. else
  17732. enable_video_wayland=yes
  17733. fi
  17734. # Check whether --enable-video-wayland-qt-touch was given.
  17735. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  17736. enableval=$enable_video_wayland_qt_touch;
  17737. else
  17738. enable_video_wayland_qt_touch=yes
  17739. fi
  17740. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  17741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  17742. $as_echo_n "checking for Wayland support... " >&6; }
  17743. video_wayland=no
  17744. if test x$video_opengl_egl = xyes && \
  17745. test x$video_opengles_v2 = xyes; then
  17746. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  17747. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  17748. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  17749. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  17750. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'; then :
  17751. WAYLAND_SCANNER_CODE_MODE=private-code
  17752. else
  17753. WAYLAND_SCANNER_CODE_MODE=code
  17754. fi
  17755. video_wayland=yes
  17756. fi
  17757. fi
  17758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  17759. $as_echo "$video_wayland" >&6; }
  17760. if test x$video_wayland = xyes; then
  17761. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  17762. if test x$enable_video_wayland_qt_touch = xyes; then
  17763. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  17764. fi
  17765. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  17766. SOURCES="$SOURCES $WAYLAND_SOURCES"
  17767. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  17768. # Check whether --enable-wayland-shared was given.
  17769. if test "${enable_wayland_shared+set}" = set; then :
  17770. enableval=$enable_wayland_shared;
  17771. else
  17772. enable_wayland_shared=maybe
  17773. fi
  17774. case "$host" in
  17775. *)
  17776. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17777. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17778. if test x$wayland_egl_lib = x; then
  17779. # This works in Ubuntu 13.10, maybe others
  17780. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17781. fi
  17782. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17783. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17784. ;;
  17785. esac
  17786. if test x$enable_wayland_shared = xmaybe; then
  17787. enable_wayland_shared=yes
  17788. fi
  17789. if test x$have_loadso != xyes && \
  17790. test x$enable_wayland_shared = xyes; then
  17791. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  17792. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  17793. enable_wayland_shared=no
  17794. fi
  17795. if test x$have_loadso = xyes && \
  17796. test x$enable_wayland_shared = xyes && \
  17797. test x$wayland_client_lib != x && \
  17798. test x$wayland_egl_lib != x && \
  17799. test x$wayland_cursor_lib != x && \
  17800. test x$xkbcommon_lib != x; then
  17801. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  17802. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  17803. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  17804. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  17805. cat >>confdefs.h <<_ACEOF
  17806. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  17807. _ACEOF
  17808. cat >>confdefs.h <<_ACEOF
  17809. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  17810. _ACEOF
  17811. cat >>confdefs.h <<_ACEOF
  17812. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  17813. _ACEOF
  17814. cat >>confdefs.h <<_ACEOF
  17815. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  17816. _ACEOF
  17817. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  17818. else
  17819. enable_wayland_shared=no
  17820. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  17821. SUMMARY_video="${SUMMARY_video} wayland"
  17822. fi
  17823. have_video=yes
  17824. # Check whether --enable-libdecor was given.
  17825. if test "${enable_libdecor+set}" = set; then :
  17826. enableval=$enable_libdecor;
  17827. else
  17828. enable_libdecor=yes
  17829. fi
  17830. if test x$enable_libdecor = xyes; then
  17831. pkg_failed=no
  17832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  17833. $as_echo_n "checking for libdecor-0... " >&6; }
  17834. if test -n "$DECOR_CFLAGS"; then
  17835. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  17836. elif test -n "$PKG_CONFIG"; then
  17837. if test -n "$PKG_CONFIG" && \
  17838. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  17839. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  17840. ac_status=$?
  17841. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17842. test $ac_status = 0; }; then
  17843. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  17844. test "x$?" != "x0" && pkg_failed=yes
  17845. else
  17846. pkg_failed=yes
  17847. fi
  17848. else
  17849. pkg_failed=untried
  17850. fi
  17851. if test -n "$DECOR_LIBS"; then
  17852. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  17853. elif test -n "$PKG_CONFIG"; then
  17854. if test -n "$PKG_CONFIG" && \
  17855. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  17856. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  17857. ac_status=$?
  17858. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17859. test $ac_status = 0; }; then
  17860. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  17861. test "x$?" != "x0" && pkg_failed=yes
  17862. else
  17863. pkg_failed=yes
  17864. fi
  17865. else
  17866. pkg_failed=untried
  17867. fi
  17868. if test $pkg_failed = yes; then
  17869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17870. $as_echo "no" >&6; }
  17871. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17872. _pkg_short_errors_supported=yes
  17873. else
  17874. _pkg_short_errors_supported=no
  17875. fi
  17876. if test $_pkg_short_errors_supported = yes; then
  17877. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  17878. else
  17879. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  17880. fi
  17881. # Put the nasty error message in config.log where it belongs
  17882. echo "$DECOR_PKG_ERRORS" >&5
  17883. video_libdecor=no
  17884. elif test $pkg_failed = untried; then
  17885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17886. $as_echo "no" >&6; }
  17887. video_libdecor=no
  17888. else
  17889. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  17890. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  17891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17892. $as_echo "yes" >&6; }
  17893. video_libdecor=yes
  17894. fi
  17895. if test x$video_libdecor = xyes; then
  17896. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  17897. $as_echo "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  17898. # Check whether --enable-libdecor-shared was given.
  17899. if test "${enable_libdecor_shared+set}" = set; then :
  17900. enableval=$enable_libdecor_shared;
  17901. else
  17902. enable_libdecor_shared=yes
  17903. fi
  17904. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17905. if test x$enable_wayland_shared != xyes; then
  17906. enable_libdecor_shared=no
  17907. fi
  17908. if test x$have_loadso != xyes && \
  17909. test x$enable_libdecor_shared = xyes; then
  17910. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  17911. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  17912. fi
  17913. if test x$have_loadso = xyes && \
  17914. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  17915. echo "-- dynamic libdecor -> $decor_lib"
  17916. cat >>confdefs.h <<_ACEOF
  17917. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR "$decor_lib"
  17918. _ACEOF
  17919. else
  17920. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  17921. fi
  17922. fi
  17923. fi
  17924. fi
  17925. fi
  17926. }
  17927. CheckNativeClient()
  17928. {
  17929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17930. /* end confdefs.h. */
  17931. #if !defined(__native_client__)
  17932. #error "NO NACL"
  17933. #endif
  17934. int
  17935. main ()
  17936. {
  17937. ;
  17938. return 0;
  17939. }
  17940. _ACEOF
  17941. if ac_fn_c_try_compile "$LINENO"; then :
  17942. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  17943. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  17944. $as_echo "#define HAVE_POW 1" >>confdefs.h
  17945. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  17946. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17947. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17948. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  17949. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  17950. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  17951. SUMMARY_audio="${SUMMARY_audio} nacl"
  17952. have_audio=yes
  17953. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  17954. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  17955. have_video=yes
  17956. fi
  17957. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17958. }
  17959. CheckRPI()
  17960. {
  17961. # Check whether --enable-video-rpi was given.
  17962. if test "${enable_video_rpi+set}" = set; then :
  17963. enableval=$enable_video_rpi;
  17964. else
  17965. enable_video_rpi=yes
  17966. fi
  17967. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  17968. pkg_failed=no
  17969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  17970. $as_echo_n "checking for bcm_host brcmegl... " >&6; }
  17971. if test -n "$RPI_CFLAGS"; then
  17972. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  17973. elif test -n "$PKG_CONFIG"; then
  17974. if test -n "$PKG_CONFIG" && \
  17975. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17976. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17977. ac_status=$?
  17978. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17979. test $ac_status = 0; }; then
  17980. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  17981. test "x$?" != "x0" && pkg_failed=yes
  17982. else
  17983. pkg_failed=yes
  17984. fi
  17985. else
  17986. pkg_failed=untried
  17987. fi
  17988. if test -n "$RPI_LIBS"; then
  17989. pkg_cv_RPI_LIBS="$RPI_LIBS"
  17990. elif test -n "$PKG_CONFIG"; then
  17991. if test -n "$PKG_CONFIG" && \
  17992. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17993. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17994. ac_status=$?
  17995. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17996. test $ac_status = 0; }; then
  17997. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  17998. test "x$?" != "x0" && pkg_failed=yes
  17999. else
  18000. pkg_failed=yes
  18001. fi
  18002. else
  18003. pkg_failed=untried
  18004. fi
  18005. if test $pkg_failed = yes; then
  18006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18007. $as_echo "no" >&6; }
  18008. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18009. _pkg_short_errors_supported=yes
  18010. else
  18011. _pkg_short_errors_supported=no
  18012. fi
  18013. if test $_pkg_short_errors_supported = yes; then
  18014. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  18015. else
  18016. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  18017. fi
  18018. # Put the nasty error message in config.log where it belongs
  18019. echo "$RPI_PKG_ERRORS" >&5
  18020. video_rpi=no
  18021. elif test $pkg_failed = untried; then
  18022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18023. $as_echo "no" >&6; }
  18024. video_rpi=no
  18025. else
  18026. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  18027. RPI_LIBS=$pkg_cv_RPI_LIBS
  18028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18029. $as_echo "yes" >&6; }
  18030. video_rpi=yes
  18031. fi
  18032. if test x$video_rpi = xno; then
  18033. if test x$ARCH = xnetbsd; then
  18034. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  18035. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  18036. else
  18037. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  18038. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  18039. fi
  18040. fi
  18041. # Save the original compiler flags and libraries
  18042. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  18043. # Add the Raspberry Pi compiler flags and libraries
  18044. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  18045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  18046. $as_echo_n "checking for Raspberry Pi 2/3... " >&6; }
  18047. have_video_rpi=no
  18048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18049. /* end confdefs.h. */
  18050. #include <bcm_host.h>
  18051. #include <EGL/eglplatform.h>
  18052. int
  18053. main ()
  18054. {
  18055. EGL_DISPMANX_WINDOW_T window;
  18056. bcm_host_init();
  18057. ;
  18058. return 0;
  18059. }
  18060. _ACEOF
  18061. if ac_fn_c_try_link "$LINENO"; then :
  18062. have_video_rpi=yes
  18063. fi
  18064. rm -f core conftest.err conftest.$ac_objext \
  18065. conftest$ac_exeext conftest.$ac_ext
  18066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  18067. $as_echo "$have_video_rpi" >&6; }
  18068. # Restore the compiler flags and libraries
  18069. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  18070. if test x$have_video_rpi = xyes; then
  18071. CFLAGS="$CFLAGS $RPI_CFLAGS"
  18072. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  18073. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  18074. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  18075. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  18076. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  18077. SUMMARY_video="${SUMMARY_video} rpi"
  18078. have_video=yes
  18079. fi
  18080. fi
  18081. }
  18082. CheckX11()
  18083. {
  18084. # Check whether --enable-video-x11 was given.
  18085. if test "${enable_video_x11+set}" = set; then :
  18086. enableval=$enable_video_x11;
  18087. else
  18088. enable_video_x11=yes
  18089. fi
  18090. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  18091. case "$host" in
  18092. *-*-darwin*)
  18093. # This isn't necessary for X11, but fixes GLX detection
  18094. if test "x$x_includes" = xNONE && \
  18095. test "x$x_libraries" = xNONE && \
  18096. test -d /opt/X11/include && \
  18097. test -d /opt/X11/lib; then
  18098. x_includes="/opt/X11/include"
  18099. x_libraries="/opt/X11/lib"
  18100. fi
  18101. ;;
  18102. esac
  18103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  18104. $as_echo_n "checking for X... " >&6; }
  18105. # Check whether --with-x was given.
  18106. if test "${with_x+set}" = set; then :
  18107. withval=$with_x;
  18108. fi
  18109. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  18110. if test "x$with_x" = xno; then
  18111. # The user explicitly disabled X.
  18112. have_x=disabled
  18113. else
  18114. case $x_includes,$x_libraries in #(
  18115. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  18116. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  18117. $as_echo_n "(cached) " >&6
  18118. else
  18119. # One or both of the vars are not set, and there is no cached value.
  18120. ac_x_includes=no
  18121. ac_x_libraries=no
  18122. # Do we need to do anything special at all?
  18123. ac_save_LIBS=$LIBS
  18124. LIBS="-lX11 $LIBS"
  18125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18126. /* end confdefs.h. */
  18127. #include <X11/Xlib.h>
  18128. int
  18129. main ()
  18130. {
  18131. XrmInitialize ()
  18132. ;
  18133. return 0;
  18134. }
  18135. _ACEOF
  18136. if ac_fn_c_try_link "$LINENO"; then :
  18137. # We can compile and link X programs with no special options.
  18138. ac_x_includes=
  18139. ac_x_libraries=
  18140. fi
  18141. rm -f core conftest.err conftest.$ac_objext \
  18142. conftest$ac_exeext conftest.$ac_ext
  18143. LIBS="$ac_save_LIBS"
  18144. # If that didn't work, only try xmkmf and filesystem searches
  18145. # for native compilation.
  18146. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no; then :
  18147. rm -f -r conftest.dir
  18148. if mkdir conftest.dir; then
  18149. cd conftest.dir
  18150. cat >Imakefile <<'_ACEOF'
  18151. incroot:
  18152. @echo incroot='${INCROOT}'
  18153. usrlibdir:
  18154. @echo usrlibdir='${USRLIBDIR}'
  18155. libdir:
  18156. @echo libdir='${LIBDIR}'
  18157. _ACEOF
  18158. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  18159. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  18160. for ac_var in incroot usrlibdir libdir; do
  18161. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  18162. done
  18163. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  18164. for ac_extension in a so sl dylib la dll; do
  18165. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  18166. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  18167. ac_im_usrlibdir=$ac_im_libdir; break
  18168. fi
  18169. done
  18170. # Screen out bogus values from the imake configuration. They are
  18171. # bogus both because they are the default anyway, and because
  18172. # using them would break gcc on systems where it needs fixed includes.
  18173. case $ac_im_incroot in
  18174. /usr/include) ac_x_includes= ;;
  18175. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  18176. esac
  18177. case $ac_im_usrlibdir in
  18178. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  18179. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  18180. esac
  18181. fi
  18182. cd ..
  18183. rm -f -r conftest.dir
  18184. fi
  18185. # Standard set of common directories for X headers.
  18186. # Check X11 before X11Rn because it is often a symlink to the current release.
  18187. ac_x_header_dirs='
  18188. /usr/X11/include
  18189. /usr/X11R7/include
  18190. /usr/X11R6/include
  18191. /usr/X11R5/include
  18192. /usr/X11R4/include
  18193. /usr/include/X11
  18194. /usr/include/X11R7
  18195. /usr/include/X11R6
  18196. /usr/include/X11R5
  18197. /usr/include/X11R4
  18198. /usr/local/X11/include
  18199. /usr/local/X11R7/include
  18200. /usr/local/X11R6/include
  18201. /usr/local/X11R5/include
  18202. /usr/local/X11R4/include
  18203. /usr/local/include/X11
  18204. /usr/local/include/X11R7
  18205. /usr/local/include/X11R6
  18206. /usr/local/include/X11R5
  18207. /usr/local/include/X11R4
  18208. /opt/X11/include
  18209. /usr/X386/include
  18210. /usr/x386/include
  18211. /usr/XFree86/include/X11
  18212. /usr/include
  18213. /usr/local/include
  18214. /usr/unsupported/include
  18215. /usr/athena/include
  18216. /usr/local/x11r5/include
  18217. /usr/lpp/Xamples/include
  18218. /usr/openwin/include
  18219. /usr/openwin/share/include'
  18220. if test "$ac_x_includes" = no; then
  18221. # Guess where to find include files, by looking for Xlib.h.
  18222. # First, try using that file with no special directory specified.
  18223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18224. /* end confdefs.h. */
  18225. #include <X11/Xlib.h>
  18226. _ACEOF
  18227. if ac_fn_c_try_cpp "$LINENO"; then :
  18228. # We can compile using X headers with no special include directory.
  18229. ac_x_includes=
  18230. else
  18231. for ac_dir in $ac_x_header_dirs; do
  18232. if test -r "$ac_dir/X11/Xlib.h"; then
  18233. ac_x_includes=$ac_dir
  18234. break
  18235. fi
  18236. done
  18237. fi
  18238. rm -f conftest.err conftest.i conftest.$ac_ext
  18239. fi # $ac_x_includes = no
  18240. if test "$ac_x_libraries" = no; then
  18241. # Check for the libraries.
  18242. # See if we find them without any special options.
  18243. # Don't add to $LIBS permanently.
  18244. ac_save_LIBS=$LIBS
  18245. LIBS="-lX11 $LIBS"
  18246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18247. /* end confdefs.h. */
  18248. #include <X11/Xlib.h>
  18249. int
  18250. main ()
  18251. {
  18252. XrmInitialize ()
  18253. ;
  18254. return 0;
  18255. }
  18256. _ACEOF
  18257. if ac_fn_c_try_link "$LINENO"; then :
  18258. LIBS=$ac_save_LIBS
  18259. # We can link X programs with no special library path.
  18260. ac_x_libraries=
  18261. else
  18262. LIBS=$ac_save_LIBS
  18263. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  18264. do
  18265. # Don't even attempt the hair of trying to link an X program!
  18266. for ac_extension in a so sl dylib la dll; do
  18267. if test -r "$ac_dir/libX11.$ac_extension"; then
  18268. ac_x_libraries=$ac_dir
  18269. break 2
  18270. fi
  18271. done
  18272. done
  18273. fi
  18274. rm -f core conftest.err conftest.$ac_objext \
  18275. conftest$ac_exeext conftest.$ac_ext
  18276. fi # $ac_x_libraries = no
  18277. fi
  18278. # Record the results.
  18279. case $ac_x_includes,$ac_x_libraries in #(
  18280. no,* | *,no | *\'*) :
  18281. # Didn't find X, or a directory has "'" in its name.
  18282. ac_cv_have_x="have_x=no" ;; #(
  18283. *) :
  18284. # Record where we found X for the cache.
  18285. ac_cv_have_x="have_x=yes\
  18286. ac_x_includes='$ac_x_includes'\
  18287. ac_x_libraries='$ac_x_libraries'" ;;
  18288. esac
  18289. fi
  18290. ;; #(
  18291. *) have_x=yes;;
  18292. esac
  18293. eval "$ac_cv_have_x"
  18294. fi # $with_x != no
  18295. if test "$have_x" != yes; then
  18296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  18297. $as_echo "$have_x" >&6; }
  18298. no_x=yes
  18299. else
  18300. # If each of the values was on the command line, it overrides each guess.
  18301. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  18302. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  18303. # Update the cache value to reflect the command line values.
  18304. ac_cv_have_x="have_x=yes\
  18305. ac_x_includes='$x_includes'\
  18306. ac_x_libraries='$x_libraries'"
  18307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  18308. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  18309. fi
  18310. if test "$no_x" = yes; then
  18311. # Not all programs may use this symbol, but it does not hurt to define it.
  18312. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  18313. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  18314. else
  18315. if test -n "$x_includes"; then
  18316. X_CFLAGS="$X_CFLAGS -I$x_includes"
  18317. fi
  18318. # It would also be nice to do this for all -L options, not just this one.
  18319. if test -n "$x_libraries"; then
  18320. X_LIBS="$X_LIBS -L$x_libraries"
  18321. # For Solaris; some versions of Sun CC require a space after -R and
  18322. # others require no space. Words are not sufficient . . . .
  18323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  18324. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  18325. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  18326. ac_xsave_c_werror_flag=$ac_c_werror_flag
  18327. ac_c_werror_flag=yes
  18328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18329. /* end confdefs.h. */
  18330. int
  18331. main ()
  18332. {
  18333. ;
  18334. return 0;
  18335. }
  18336. _ACEOF
  18337. if ac_fn_c_try_link "$LINENO"; then :
  18338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18339. $as_echo "no" >&6; }
  18340. X_LIBS="$X_LIBS -R$x_libraries"
  18341. else
  18342. LIBS="$ac_xsave_LIBS -R $x_libraries"
  18343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18344. /* end confdefs.h. */
  18345. int
  18346. main ()
  18347. {
  18348. ;
  18349. return 0;
  18350. }
  18351. _ACEOF
  18352. if ac_fn_c_try_link "$LINENO"; then :
  18353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18354. $as_echo "yes" >&6; }
  18355. X_LIBS="$X_LIBS -R $x_libraries"
  18356. else
  18357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  18358. $as_echo "neither works" >&6; }
  18359. fi
  18360. rm -f core conftest.err conftest.$ac_objext \
  18361. conftest$ac_exeext conftest.$ac_ext
  18362. fi
  18363. rm -f core conftest.err conftest.$ac_objext \
  18364. conftest$ac_exeext conftest.$ac_ext
  18365. ac_c_werror_flag=$ac_xsave_c_werror_flag
  18366. LIBS=$ac_xsave_LIBS
  18367. fi
  18368. # Check for system-dependent libraries X programs must link with.
  18369. # Do this before checking for the system-independent R6 libraries
  18370. # (-lICE), since we may need -lsocket or whatever for X linking.
  18371. if test "$ISC" = yes; then
  18372. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  18373. else
  18374. # Martyn Johnson says this is needed for Ultrix, if the X
  18375. # libraries were built with DECnet support. And Karl Berry says
  18376. # the Alpha needs dnet_stub (dnet does not exist).
  18377. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  18378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18379. /* end confdefs.h. */
  18380. /* Override any GCC internal prototype to avoid an error.
  18381. Use char because int might match the return type of a GCC
  18382. builtin and then its argument prototype would still apply. */
  18383. #ifdef __cplusplus
  18384. extern "C"
  18385. #endif
  18386. char XOpenDisplay ();
  18387. int
  18388. main ()
  18389. {
  18390. return XOpenDisplay ();
  18391. ;
  18392. return 0;
  18393. }
  18394. _ACEOF
  18395. if ac_fn_c_try_link "$LINENO"; then :
  18396. else
  18397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  18398. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  18399. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  18400. $as_echo_n "(cached) " >&6
  18401. else
  18402. ac_check_lib_save_LIBS=$LIBS
  18403. LIBS="-ldnet $LIBS"
  18404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18405. /* end confdefs.h. */
  18406. /* Override any GCC internal prototype to avoid an error.
  18407. Use char because int might match the return type of a GCC
  18408. builtin and then its argument prototype would still apply. */
  18409. #ifdef __cplusplus
  18410. extern "C"
  18411. #endif
  18412. char dnet_ntoa ();
  18413. int
  18414. main ()
  18415. {
  18416. return dnet_ntoa ();
  18417. ;
  18418. return 0;
  18419. }
  18420. _ACEOF
  18421. if ac_fn_c_try_link "$LINENO"; then :
  18422. ac_cv_lib_dnet_dnet_ntoa=yes
  18423. else
  18424. ac_cv_lib_dnet_dnet_ntoa=no
  18425. fi
  18426. rm -f core conftest.err conftest.$ac_objext \
  18427. conftest$ac_exeext conftest.$ac_ext
  18428. LIBS=$ac_check_lib_save_LIBS
  18429. fi
  18430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  18431. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  18432. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  18433. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  18434. fi
  18435. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  18436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  18437. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  18438. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  18439. $as_echo_n "(cached) " >&6
  18440. else
  18441. ac_check_lib_save_LIBS=$LIBS
  18442. LIBS="-ldnet_stub $LIBS"
  18443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18444. /* end confdefs.h. */
  18445. /* Override any GCC internal prototype to avoid an error.
  18446. Use char because int might match the return type of a GCC
  18447. builtin and then its argument prototype would still apply. */
  18448. #ifdef __cplusplus
  18449. extern "C"
  18450. #endif
  18451. char dnet_ntoa ();
  18452. int
  18453. main ()
  18454. {
  18455. return dnet_ntoa ();
  18456. ;
  18457. return 0;
  18458. }
  18459. _ACEOF
  18460. if ac_fn_c_try_link "$LINENO"; then :
  18461. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  18462. else
  18463. ac_cv_lib_dnet_stub_dnet_ntoa=no
  18464. fi
  18465. rm -f core conftest.err conftest.$ac_objext \
  18466. conftest$ac_exeext conftest.$ac_ext
  18467. LIBS=$ac_check_lib_save_LIBS
  18468. fi
  18469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  18470. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  18471. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  18472. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  18473. fi
  18474. fi
  18475. fi
  18476. rm -f core conftest.err conftest.$ac_objext \
  18477. conftest$ac_exeext conftest.$ac_ext
  18478. LIBS="$ac_xsave_LIBS"
  18479. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  18480. # to get the SysV transport functions.
  18481. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  18482. # needs -lnsl.
  18483. # The nsl library prevents programs from opening the X display
  18484. # on Irix 5.2, according to T.E. Dickey.
  18485. # The functions gethostbyname, getservbyname, and inet_addr are
  18486. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  18487. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  18488. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  18489. fi
  18490. if test $ac_cv_func_gethostbyname = no; then
  18491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  18492. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  18493. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  18494. $as_echo_n "(cached) " >&6
  18495. else
  18496. ac_check_lib_save_LIBS=$LIBS
  18497. LIBS="-lnsl $LIBS"
  18498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18499. /* end confdefs.h. */
  18500. /* Override any GCC internal prototype to avoid an error.
  18501. Use char because int might match the return type of a GCC
  18502. builtin and then its argument prototype would still apply. */
  18503. #ifdef __cplusplus
  18504. extern "C"
  18505. #endif
  18506. char gethostbyname ();
  18507. int
  18508. main ()
  18509. {
  18510. return gethostbyname ();
  18511. ;
  18512. return 0;
  18513. }
  18514. _ACEOF
  18515. if ac_fn_c_try_link "$LINENO"; then :
  18516. ac_cv_lib_nsl_gethostbyname=yes
  18517. else
  18518. ac_cv_lib_nsl_gethostbyname=no
  18519. fi
  18520. rm -f core conftest.err conftest.$ac_objext \
  18521. conftest$ac_exeext conftest.$ac_ext
  18522. LIBS=$ac_check_lib_save_LIBS
  18523. fi
  18524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  18525. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  18526. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  18527. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  18528. fi
  18529. if test $ac_cv_lib_nsl_gethostbyname = no; then
  18530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  18531. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  18532. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  18533. $as_echo_n "(cached) " >&6
  18534. else
  18535. ac_check_lib_save_LIBS=$LIBS
  18536. LIBS="-lbsd $LIBS"
  18537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18538. /* end confdefs.h. */
  18539. /* Override any GCC internal prototype to avoid an error.
  18540. Use char because int might match the return type of a GCC
  18541. builtin and then its argument prototype would still apply. */
  18542. #ifdef __cplusplus
  18543. extern "C"
  18544. #endif
  18545. char gethostbyname ();
  18546. int
  18547. main ()
  18548. {
  18549. return gethostbyname ();
  18550. ;
  18551. return 0;
  18552. }
  18553. _ACEOF
  18554. if ac_fn_c_try_link "$LINENO"; then :
  18555. ac_cv_lib_bsd_gethostbyname=yes
  18556. else
  18557. ac_cv_lib_bsd_gethostbyname=no
  18558. fi
  18559. rm -f core conftest.err conftest.$ac_objext \
  18560. conftest$ac_exeext conftest.$ac_ext
  18561. LIBS=$ac_check_lib_save_LIBS
  18562. fi
  18563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  18564. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  18565. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  18566. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  18567. fi
  18568. fi
  18569. fi
  18570. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  18571. # socket/setsockopt and other routines are undefined under SCO ODT
  18572. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  18573. # on later versions), says Simon Leinen: it contains gethostby*
  18574. # variants that don't use the name server (or something). -lsocket
  18575. # must be given before -lnsl if both are needed. We assume that
  18576. # if connect needs -lnsl, so does gethostbyname.
  18577. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  18578. if test "x$ac_cv_func_connect" = xyes; then :
  18579. fi
  18580. if test $ac_cv_func_connect = no; then
  18581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  18582. $as_echo_n "checking for connect in -lsocket... " >&6; }
  18583. if ${ac_cv_lib_socket_connect+:} false; then :
  18584. $as_echo_n "(cached) " >&6
  18585. else
  18586. ac_check_lib_save_LIBS=$LIBS
  18587. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  18588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18589. /* end confdefs.h. */
  18590. /* Override any GCC internal prototype to avoid an error.
  18591. Use char because int might match the return type of a GCC
  18592. builtin and then its argument prototype would still apply. */
  18593. #ifdef __cplusplus
  18594. extern "C"
  18595. #endif
  18596. char connect ();
  18597. int
  18598. main ()
  18599. {
  18600. return connect ();
  18601. ;
  18602. return 0;
  18603. }
  18604. _ACEOF
  18605. if ac_fn_c_try_link "$LINENO"; then :
  18606. ac_cv_lib_socket_connect=yes
  18607. else
  18608. ac_cv_lib_socket_connect=no
  18609. fi
  18610. rm -f core conftest.err conftest.$ac_objext \
  18611. conftest$ac_exeext conftest.$ac_ext
  18612. LIBS=$ac_check_lib_save_LIBS
  18613. fi
  18614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  18615. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  18616. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  18617. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  18618. fi
  18619. fi
  18620. # Guillermo Gomez says -lposix is necessary on A/UX.
  18621. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  18622. if test "x$ac_cv_func_remove" = xyes; then :
  18623. fi
  18624. if test $ac_cv_func_remove = no; then
  18625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  18626. $as_echo_n "checking for remove in -lposix... " >&6; }
  18627. if ${ac_cv_lib_posix_remove+:} false; then :
  18628. $as_echo_n "(cached) " >&6
  18629. else
  18630. ac_check_lib_save_LIBS=$LIBS
  18631. LIBS="-lposix $LIBS"
  18632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18633. /* end confdefs.h. */
  18634. /* Override any GCC internal prototype to avoid an error.
  18635. Use char because int might match the return type of a GCC
  18636. builtin and then its argument prototype would still apply. */
  18637. #ifdef __cplusplus
  18638. extern "C"
  18639. #endif
  18640. char remove ();
  18641. int
  18642. main ()
  18643. {
  18644. return remove ();
  18645. ;
  18646. return 0;
  18647. }
  18648. _ACEOF
  18649. if ac_fn_c_try_link "$LINENO"; then :
  18650. ac_cv_lib_posix_remove=yes
  18651. else
  18652. ac_cv_lib_posix_remove=no
  18653. fi
  18654. rm -f core conftest.err conftest.$ac_objext \
  18655. conftest$ac_exeext conftest.$ac_ext
  18656. LIBS=$ac_check_lib_save_LIBS
  18657. fi
  18658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  18659. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  18660. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  18661. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  18662. fi
  18663. fi
  18664. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  18665. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  18666. if test "x$ac_cv_func_shmat" = xyes; then :
  18667. fi
  18668. if test $ac_cv_func_shmat = no; then
  18669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  18670. $as_echo_n "checking for shmat in -lipc... " >&6; }
  18671. if ${ac_cv_lib_ipc_shmat+:} false; then :
  18672. $as_echo_n "(cached) " >&6
  18673. else
  18674. ac_check_lib_save_LIBS=$LIBS
  18675. LIBS="-lipc $LIBS"
  18676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18677. /* end confdefs.h. */
  18678. /* Override any GCC internal prototype to avoid an error.
  18679. Use char because int might match the return type of a GCC
  18680. builtin and then its argument prototype would still apply. */
  18681. #ifdef __cplusplus
  18682. extern "C"
  18683. #endif
  18684. char shmat ();
  18685. int
  18686. main ()
  18687. {
  18688. return shmat ();
  18689. ;
  18690. return 0;
  18691. }
  18692. _ACEOF
  18693. if ac_fn_c_try_link "$LINENO"; then :
  18694. ac_cv_lib_ipc_shmat=yes
  18695. else
  18696. ac_cv_lib_ipc_shmat=no
  18697. fi
  18698. rm -f core conftest.err conftest.$ac_objext \
  18699. conftest$ac_exeext conftest.$ac_ext
  18700. LIBS=$ac_check_lib_save_LIBS
  18701. fi
  18702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  18703. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  18704. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  18705. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  18706. fi
  18707. fi
  18708. fi
  18709. # Check for libraries that X11R6 Xt/Xaw programs need.
  18710. ac_save_LDFLAGS=$LDFLAGS
  18711. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  18712. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  18713. # check for ICE first), but we must link in the order -lSM -lICE or
  18714. # we get undefined symbols. So assume we have SM if we have ICE.
  18715. # These have to be linked with before -lX11, unlike the other
  18716. # libraries we check for below, so use a different variable.
  18717. # John Interrante, Karl Berry
  18718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  18719. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  18720. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  18721. $as_echo_n "(cached) " >&6
  18722. else
  18723. ac_check_lib_save_LIBS=$LIBS
  18724. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  18725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18726. /* end confdefs.h. */
  18727. /* Override any GCC internal prototype to avoid an error.
  18728. Use char because int might match the return type of a GCC
  18729. builtin and then its argument prototype would still apply. */
  18730. #ifdef __cplusplus
  18731. extern "C"
  18732. #endif
  18733. char IceConnectionNumber ();
  18734. int
  18735. main ()
  18736. {
  18737. return IceConnectionNumber ();
  18738. ;
  18739. return 0;
  18740. }
  18741. _ACEOF
  18742. if ac_fn_c_try_link "$LINENO"; then :
  18743. ac_cv_lib_ICE_IceConnectionNumber=yes
  18744. else
  18745. ac_cv_lib_ICE_IceConnectionNumber=no
  18746. fi
  18747. rm -f core conftest.err conftest.$ac_objext \
  18748. conftest$ac_exeext conftest.$ac_ext
  18749. LIBS=$ac_check_lib_save_LIBS
  18750. fi
  18751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  18752. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  18753. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  18754. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  18755. fi
  18756. LDFLAGS=$ac_save_LDFLAGS
  18757. fi
  18758. if test x$have_x = xyes; then
  18759. # Check whether --enable-x11-shared was given.
  18760. if test "${enable_x11_shared+set}" = set; then :
  18761. enableval=$enable_x11_shared;
  18762. else
  18763. enable_x11_shared=maybe
  18764. fi
  18765. case "$host" in
  18766. *-*-darwin*)
  18767. # Apple now puts this in /opt/X11
  18768. x11_lib='/opt/X11/lib/libX11.6.dylib'
  18769. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  18770. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  18771. xinerama_lib='/opt/X11/lib/libXinerama.1.dylib'
  18772. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  18773. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  18774. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  18775. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  18776. xss_lib='/opt/X11/lib/libXss.1.dylib'
  18777. xvidmode_lib='/opt/X11/lib/libXxf86vm.1.dylib'
  18778. ;;
  18779. *-*-openbsd*)
  18780. x11_lib='libX11.so'
  18781. x11ext_lib='libXext.so'
  18782. xcursor_lib='libXcursor.so'
  18783. xinerama_lib='libXinerama.so'
  18784. xinput_lib='libXi.so'
  18785. xfixes_lib='libXfixes.so'
  18786. xrandr_lib='libXrandr.so'
  18787. xrender_lib='libXrender.so'
  18788. xss_lib='libXss.so'
  18789. xvidmode_lib='libXxf86vm.so'
  18790. ;;
  18791. *)
  18792. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18793. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18794. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18795. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18796. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18797. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18798. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18799. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18800. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18801. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18802. ;;
  18803. esac
  18804. if test x$ac_cv_func_shmat != xyes; then
  18805. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  18806. fi
  18807. CFLAGS="$CFLAGS $X_CFLAGS"
  18808. LDFLAGS="$LDFLAGS $X_LIBS"
  18809. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  18810. #include <X11/Xproto.h>
  18811. "
  18812. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  18813. have_xext_h_hdr=yes
  18814. else
  18815. have_xext_h_hdr=no
  18816. fi
  18817. if test x$have_xext_h_hdr != xyes; then
  18818. as_fn_error $? "
  18819. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  18820. " "$LINENO" 5
  18821. fi
  18822. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  18823. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  18824. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  18825. # Needed so SDL applications can include SDL_syswm.h
  18826. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  18827. if test x$enable_x11_shared = xmaybe; then
  18828. enable_x11_shared=yes
  18829. fi
  18830. if test x$have_loadso != xyes && \
  18831. test x$enable_x11_shared = xyes; then
  18832. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  18833. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  18834. enable_x11_shared=no
  18835. fi
  18836. if test x$have_loadso = xyes && \
  18837. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  18838. echo "-- dynamic libX11 -> $x11_lib"
  18839. echo "-- dynamic libX11ext -> $x11ext_lib"
  18840. cat >>confdefs.h <<_ACEOF
  18841. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  18842. _ACEOF
  18843. cat >>confdefs.h <<_ACEOF
  18844. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  18845. _ACEOF
  18846. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  18847. else
  18848. enable_x11_shared=no
  18849. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  18850. SUMMARY_video="${SUMMARY_video} x11"
  18851. fi
  18852. have_video=yes
  18853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  18854. $as_echo_n "checking for XGenericEvent... " >&6; }
  18855. have_XGenericEvent=no
  18856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18857. /* end confdefs.h. */
  18858. #include <X11/Xlib.h>
  18859. int
  18860. main ()
  18861. {
  18862. Display *display;
  18863. XEvent event;
  18864. XGenericEventCookie *cookie = &event.xcookie;
  18865. XNextEvent(display, &event);
  18866. XGetEventData(display, cookie);
  18867. XFreeEventData(display, cookie);
  18868. ;
  18869. return 0;
  18870. }
  18871. _ACEOF
  18872. if ac_fn_c_try_compile "$LINENO"; then :
  18873. have_XGenericEvent=yes
  18874. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  18875. fi
  18876. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  18878. $as_echo "$have_XGenericEvent" >&6; }
  18879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  18880. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  18881. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  18882. $as_echo_n "(cached) " >&6
  18883. else
  18884. ac_check_lib_save_LIBS=$LIBS
  18885. LIBS="-lX11 $LIBS"
  18886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18887. /* end confdefs.h. */
  18888. /* Override any GCC internal prototype to avoid an error.
  18889. Use char because int might match the return type of a GCC
  18890. builtin and then its argument prototype would still apply. */
  18891. #ifdef __cplusplus
  18892. extern "C"
  18893. #endif
  18894. char XkbKeycodeToKeysym ();
  18895. int
  18896. main ()
  18897. {
  18898. return XkbKeycodeToKeysym ();
  18899. ;
  18900. return 0;
  18901. }
  18902. _ACEOF
  18903. if ac_fn_c_try_link "$LINENO"; then :
  18904. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  18905. else
  18906. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  18907. fi
  18908. rm -f core conftest.err conftest.$ac_objext \
  18909. conftest$ac_exeext conftest.$ac_ext
  18910. LIBS=$ac_check_lib_save_LIBS
  18911. fi
  18912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  18913. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  18914. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  18915. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  18916. fi
  18917. # Check whether --enable-video-x11-xcursor was given.
  18918. if test "${enable_video_x11_xcursor+set}" = set; then :
  18919. enableval=$enable_video_x11_xcursor;
  18920. else
  18921. enable_video_x11_xcursor=yes
  18922. fi
  18923. if test x$enable_video_x11_xcursor = xyes; then
  18924. definitely_enable_video_x11_xcursor=no
  18925. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  18926. "
  18927. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  18928. have_xcursor_h_hdr=yes
  18929. else
  18930. have_xcursor_h_hdr=no
  18931. fi
  18932. if test x$have_xcursor_h_hdr = xyes; then
  18933. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  18934. echo "-- dynamic libXcursor -> $xcursor_lib"
  18935. cat >>confdefs.h <<_ACEOF
  18936. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  18937. _ACEOF
  18938. definitely_enable_video_x11_xcursor=yes
  18939. else
  18940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  18941. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  18942. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  18943. $as_echo_n "(cached) " >&6
  18944. else
  18945. ac_check_lib_save_LIBS=$LIBS
  18946. LIBS="-lXcursor $LIBS"
  18947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18948. /* end confdefs.h. */
  18949. /* Override any GCC internal prototype to avoid an error.
  18950. Use char because int might match the return type of a GCC
  18951. builtin and then its argument prototype would still apply. */
  18952. #ifdef __cplusplus
  18953. extern "C"
  18954. #endif
  18955. char XcursorImageCreate ();
  18956. int
  18957. main ()
  18958. {
  18959. return XcursorImageCreate ();
  18960. ;
  18961. return 0;
  18962. }
  18963. _ACEOF
  18964. if ac_fn_c_try_link "$LINENO"; then :
  18965. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  18966. else
  18967. ac_cv_lib_Xcursor_XcursorImageCreate=no
  18968. fi
  18969. rm -f core conftest.err conftest.$ac_objext \
  18970. conftest$ac_exeext conftest.$ac_ext
  18971. LIBS=$ac_check_lib_save_LIBS
  18972. fi
  18973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  18974. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  18975. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  18976. have_xcursor_lib=yes
  18977. fi
  18978. if test x$have_xcursor_lib = xyes ; then
  18979. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  18980. definitely_enable_video_x11_xcursor=yes
  18981. fi
  18982. fi
  18983. fi
  18984. fi
  18985. if test x$definitely_enable_video_x11_xcursor = xyes; then
  18986. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  18987. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  18988. fi
  18989. # Check whether --enable-video-x11-xdbe was given.
  18990. if test "${enable_video_x11_xdbe+set}" = set; then :
  18991. enableval=$enable_video_x11_xdbe;
  18992. else
  18993. enable_video_x11_xdbe=yes
  18994. fi
  18995. if test x$enable_video_x11_xdbe = xyes; then
  18996. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  18997. "
  18998. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  18999. have_dbe_h_hdr=yes
  19000. else
  19001. have_dbe_h_hdr=no
  19002. fi
  19003. if test x$have_dbe_h_hdr = xyes; then
  19004. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  19005. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  19006. fi
  19007. fi
  19008. # Check whether --enable-video-x11-xinerama was given.
  19009. if test "${enable_video_x11_xinerama+set}" = set; then :
  19010. enableval=$enable_video_x11_xinerama;
  19011. else
  19012. enable_video_x11_xinerama=yes
  19013. fi
  19014. if test x$enable_video_x11_xinerama = xyes; then
  19015. definitely_enable_video_x11_xinerama=no
  19016. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  19017. "
  19018. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  19019. have_xinerama_h_hdr=yes
  19020. else
  19021. have_xinerama_h_hdr=no
  19022. fi
  19023. if test x$have_xinerama_h_hdr = xyes; then
  19024. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  19025. echo "-- dynamic libXinerama -> $xinerama_lib"
  19026. cat >>confdefs.h <<_ACEOF
  19027. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  19028. _ACEOF
  19029. definitely_enable_video_x11_xinerama=yes
  19030. else
  19031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  19032. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  19033. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  19034. $as_echo_n "(cached) " >&6
  19035. else
  19036. ac_check_lib_save_LIBS=$LIBS
  19037. LIBS="-lXinerama $LIBS"
  19038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19039. /* end confdefs.h. */
  19040. /* Override any GCC internal prototype to avoid an error.
  19041. Use char because int might match the return type of a GCC
  19042. builtin and then its argument prototype would still apply. */
  19043. #ifdef __cplusplus
  19044. extern "C"
  19045. #endif
  19046. char XineramaQueryExtension ();
  19047. int
  19048. main ()
  19049. {
  19050. return XineramaQueryExtension ();
  19051. ;
  19052. return 0;
  19053. }
  19054. _ACEOF
  19055. if ac_fn_c_try_link "$LINENO"; then :
  19056. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  19057. else
  19058. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  19059. fi
  19060. rm -f core conftest.err conftest.$ac_objext \
  19061. conftest$ac_exeext conftest.$ac_ext
  19062. LIBS=$ac_check_lib_save_LIBS
  19063. fi
  19064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  19065. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  19066. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  19067. have_xinerama_lib=yes
  19068. fi
  19069. if test x$have_xinerama_lib = xyes ; then
  19070. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  19071. definitely_enable_video_x11_xinerama=yes
  19072. fi
  19073. fi
  19074. fi
  19075. fi
  19076. if test x$definitely_enable_video_x11_xinerama = xyes; then
  19077. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  19078. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  19079. fi
  19080. # Check whether --enable-video-x11-xinput was given.
  19081. if test "${enable_video_x11_xinput+set}" = set; then :
  19082. enableval=$enable_video_x11_xinput;
  19083. else
  19084. enable_video_x11_xinput=yes
  19085. fi
  19086. if test x$enable_video_x11_xinput = xyes; then
  19087. definitely_enable_video_x11_xinput=no
  19088. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  19089. "
  19090. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  19091. have_xinput_h_hdr=yes
  19092. else
  19093. have_xinput_h_hdr=no
  19094. fi
  19095. if test x$have_xinput_h_hdr = xyes; then
  19096. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  19097. echo "-- dynamic libXi -> $xinput_lib"
  19098. cat >>confdefs.h <<_ACEOF
  19099. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  19100. _ACEOF
  19101. definitely_enable_video_x11_xinput=yes
  19102. else
  19103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  19104. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  19105. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  19106. $as_echo_n "(cached) " >&6
  19107. else
  19108. ac_check_lib_save_LIBS=$LIBS
  19109. LIBS="-lXi $LIBS"
  19110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19111. /* end confdefs.h. */
  19112. /* Override any GCC internal prototype to avoid an error.
  19113. Use char because int might match the return type of a GCC
  19114. builtin and then its argument prototype would still apply. */
  19115. #ifdef __cplusplus
  19116. extern "C"
  19117. #endif
  19118. char XOpenDevice ();
  19119. int
  19120. main ()
  19121. {
  19122. return XOpenDevice ();
  19123. ;
  19124. return 0;
  19125. }
  19126. _ACEOF
  19127. if ac_fn_c_try_link "$LINENO"; then :
  19128. ac_cv_lib_Xi_XOpenDevice=yes
  19129. else
  19130. ac_cv_lib_Xi_XOpenDevice=no
  19131. fi
  19132. rm -f core conftest.err conftest.$ac_objext \
  19133. conftest$ac_exeext conftest.$ac_ext
  19134. LIBS=$ac_check_lib_save_LIBS
  19135. fi
  19136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  19137. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  19138. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  19139. have_xinput_lib=yes
  19140. fi
  19141. if test x$have_xinput_lib = xyes ; then
  19142. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  19143. definitely_enable_video_x11_xinput=yes
  19144. fi
  19145. fi
  19146. fi
  19147. fi
  19148. if test x$definitely_enable_video_x11_xinput = xyes; then
  19149. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  19150. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  19151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  19152. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  19153. have_xinput2_multitouch=no
  19154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19155. /* end confdefs.h. */
  19156. #include <X11/Xlib.h>
  19157. #include <X11/Xproto.h>
  19158. #include <X11/extensions/XInput2.h>
  19159. int
  19160. main ()
  19161. {
  19162. int event_type = XI_TouchBegin;
  19163. XITouchClassInfo *t;
  19164. ;
  19165. return 0;
  19166. }
  19167. _ACEOF
  19168. if ac_fn_c_try_compile "$LINENO"; then :
  19169. have_xinput2_multitouch=yes
  19170. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  19171. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  19172. fi
  19173. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  19175. $as_echo "$have_xinput2_multitouch" >&6; }
  19176. fi
  19177. # Check whether --enable-video-x11-xfixes was given.
  19178. if test "${enable_video_x11_xfixes+set}" = set; then :
  19179. enableval=$enable_video_x11_xfixes;
  19180. else
  19181. enable_video_x11_xfixes=yes
  19182. fi
  19183. if test x$enable_video_x11_xfixes = xyes; then
  19184. definitely_enable_video_x11_xfixes=no
  19185. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  19186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  19187. $as_echo_n "checking for X11/extensions/Xfixes.h... " >&6; }
  19188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19189. /* end confdefs.h. */
  19190. #include <X11/Xlib.h>
  19191. #include <X11/Xproto.h>
  19192. #include <X11/extensions/XInput2.h>
  19193. #include <X11/extensions/Xfixes.h>
  19194. int
  19195. main ()
  19196. {
  19197. BarrierEventID b;
  19198. ;
  19199. return 0;
  19200. }
  19201. _ACEOF
  19202. if ac_fn_c_try_compile "$LINENO"; then :
  19203. have_xfixes_h_hdr=yes
  19204. else
  19205. have_xfixes_h_hdr=no
  19206. fi
  19207. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  19209. $as_echo "$have_xfixes_h_hdr" >&6; }
  19210. if test x$have_xfixes_h_hdr = xyes; then
  19211. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  19212. echo "-- dynamic libXfixes -> $xfixes_lib"
  19213. cat >>confdefs.h <<_ACEOF
  19214. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES "$xfixes_lib"
  19215. _ACEOF
  19216. definitely_enable_video_x11_xfixes=yes
  19217. else
  19218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  19219. $as_echo_n "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  19220. if ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+:} false; then :
  19221. $as_echo_n "(cached) " >&6
  19222. else
  19223. ac_check_lib_save_LIBS=$LIBS
  19224. LIBS="-lXfixes $LIBS"
  19225. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19226. /* end confdefs.h. */
  19227. /* Override any GCC internal prototype to avoid an error.
  19228. Use char because int might match the return type of a GCC
  19229. builtin and then its argument prototype would still apply. */
  19230. #ifdef __cplusplus
  19231. extern "C"
  19232. #endif
  19233. char XFixesCreatePointerBarrier ();
  19234. int
  19235. main ()
  19236. {
  19237. return XFixesCreatePointerBarrier ();
  19238. ;
  19239. return 0;
  19240. }
  19241. _ACEOF
  19242. if ac_fn_c_try_link "$LINENO"; then :
  19243. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  19244. else
  19245. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  19246. fi
  19247. rm -f core conftest.err conftest.$ac_objext \
  19248. conftest$ac_exeext conftest.$ac_ext
  19249. LIBS=$ac_check_lib_save_LIBS
  19250. fi
  19251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  19252. $as_echo "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  19253. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes; then :
  19254. have_xfixes_lib=yes
  19255. fi
  19256. if test x$have_xfixes_lib = xyes ; then
  19257. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  19258. definitely_enable_video_x11_xfixes=yes
  19259. fi
  19260. fi
  19261. fi
  19262. fi
  19263. if test x$definitely_enable_video_x11_xfixes = xyes; then
  19264. $as_echo "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  19265. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  19266. fi
  19267. # Check whether --enable-video-x11-xrandr was given.
  19268. if test "${enable_video_x11_xrandr+set}" = set; then :
  19269. enableval=$enable_video_x11_xrandr;
  19270. else
  19271. enable_video_x11_xrandr=yes
  19272. fi
  19273. if test x$enable_video_x11_xrandr = xyes; then
  19274. definitely_enable_video_x11_xrandr=no
  19275. have_xrandr_h_hdr=no
  19276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19277. /* end confdefs.h. */
  19278. #include <X11/Xlib.h>
  19279. #include <X11/extensions/Xrandr.h>
  19280. int
  19281. main ()
  19282. {
  19283. XRRScreenResources *res = NULL;
  19284. ;
  19285. return 0;
  19286. }
  19287. _ACEOF
  19288. if ac_fn_c_try_compile "$LINENO"; then :
  19289. have_xrandr_h_hdr=yes
  19290. fi
  19291. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19292. if test x$have_xrandr_h_hdr = xyes; then
  19293. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  19294. echo "-- dynamic libXrandr -> $xrandr_lib"
  19295. cat >>confdefs.h <<_ACEOF
  19296. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  19297. _ACEOF
  19298. definitely_enable_video_x11_xrandr=yes
  19299. else
  19300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  19301. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  19302. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  19303. $as_echo_n "(cached) " >&6
  19304. else
  19305. ac_check_lib_save_LIBS=$LIBS
  19306. LIBS="-lXrandr $LIBS"
  19307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19308. /* end confdefs.h. */
  19309. /* Override any GCC internal prototype to avoid an error.
  19310. Use char because int might match the return type of a GCC
  19311. builtin and then its argument prototype would still apply. */
  19312. #ifdef __cplusplus
  19313. extern "C"
  19314. #endif
  19315. char XRRQueryExtension ();
  19316. int
  19317. main ()
  19318. {
  19319. return XRRQueryExtension ();
  19320. ;
  19321. return 0;
  19322. }
  19323. _ACEOF
  19324. if ac_fn_c_try_link "$LINENO"; then :
  19325. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  19326. else
  19327. ac_cv_lib_Xrandr_XRRQueryExtension=no
  19328. fi
  19329. rm -f core conftest.err conftest.$ac_objext \
  19330. conftest$ac_exeext conftest.$ac_ext
  19331. LIBS=$ac_check_lib_save_LIBS
  19332. fi
  19333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  19334. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  19335. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  19336. have_xrandr_lib=yes
  19337. fi
  19338. if test x$have_xrandr_lib = xyes ; then
  19339. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  19340. definitely_enable_video_x11_xrandr=yes
  19341. fi
  19342. fi
  19343. fi
  19344. fi
  19345. if test x$definitely_enable_video_x11_xrandr = xyes; then
  19346. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  19347. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  19348. fi
  19349. # Check whether --enable-video-x11-scrnsaver was given.
  19350. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  19351. enableval=$enable_video_x11_scrnsaver;
  19352. else
  19353. enable_video_x11_scrnsaver=yes
  19354. fi
  19355. if test x$enable_video_x11_scrnsaver = xyes; then
  19356. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  19357. "
  19358. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  19359. have_scrnsaver_h_hdr=yes
  19360. else
  19361. have_scrnsaver_h_hdr=no
  19362. fi
  19363. if test x$have_scrnsaver_h_hdr = xyes; then
  19364. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  19365. echo "-- dynamic libXss -> $xss_lib"
  19366. cat >>confdefs.h <<_ACEOF
  19367. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  19368. _ACEOF
  19369. definitely_enable_video_x11_scrnsaver=yes
  19370. else
  19371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  19372. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  19373. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  19374. $as_echo_n "(cached) " >&6
  19375. else
  19376. ac_check_lib_save_LIBS=$LIBS
  19377. LIBS="-lXss $LIBS"
  19378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19379. /* end confdefs.h. */
  19380. /* Override any GCC internal prototype to avoid an error.
  19381. Use char because int might match the return type of a GCC
  19382. builtin and then its argument prototype would still apply. */
  19383. #ifdef __cplusplus
  19384. extern "C"
  19385. #endif
  19386. char XScreenSaverSuspend ();
  19387. int
  19388. main ()
  19389. {
  19390. return XScreenSaverSuspend ();
  19391. ;
  19392. return 0;
  19393. }
  19394. _ACEOF
  19395. if ac_fn_c_try_link "$LINENO"; then :
  19396. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  19397. else
  19398. ac_cv_lib_Xss_XScreenSaverSuspend=no
  19399. fi
  19400. rm -f core conftest.err conftest.$ac_objext \
  19401. conftest$ac_exeext conftest.$ac_ext
  19402. LIBS=$ac_check_lib_save_LIBS
  19403. fi
  19404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  19405. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  19406. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  19407. have_xss_lib=yes
  19408. fi
  19409. if test x$have_xss_lib = xyes ; then
  19410. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  19411. definitely_enable_video_x11_scrnsaver=yes
  19412. fi
  19413. fi
  19414. fi
  19415. fi
  19416. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  19417. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  19418. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  19419. fi
  19420. # Check whether --enable-video-x11-xshape was given.
  19421. if test "${enable_video_x11_xshape+set}" = set; then :
  19422. enableval=$enable_video_x11_xshape;
  19423. else
  19424. enable_video_x11_xshape=yes
  19425. fi
  19426. if test x$enable_video_x11_xshape = xyes; then
  19427. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  19428. "
  19429. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  19430. have_shape_h_hdr=yes
  19431. else
  19432. have_shape_h_hdr=no
  19433. fi
  19434. if test x$have_shape_h_hdr = xyes; then
  19435. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  19436. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  19437. fi
  19438. fi
  19439. # Check whether --enable-video-x11-vm was given.
  19440. if test "${enable_video_x11_vm+set}" = set; then :
  19441. enableval=$enable_video_x11_vm;
  19442. else
  19443. enable_video_x11_vm=yes
  19444. fi
  19445. if test x$enable_video_x11_vm = xyes; then
  19446. definitely_enable_video_x11_vm=no
  19447. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  19448. "
  19449. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  19450. have_vm_h_hdr=yes
  19451. else
  19452. have_vm_h_hdr=no
  19453. fi
  19454. if test x$have_vm_h_hdr = xyes; then
  19455. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  19456. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  19457. cat >>confdefs.h <<_ACEOF
  19458. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  19459. _ACEOF
  19460. definitely_enable_video_x11_vm=yes
  19461. else
  19462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  19463. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  19464. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  19465. $as_echo_n "(cached) " >&6
  19466. else
  19467. ac_check_lib_save_LIBS=$LIBS
  19468. LIBS="-lXxf86vm $LIBS"
  19469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19470. /* end confdefs.h. */
  19471. /* Override any GCC internal prototype to avoid an error.
  19472. Use char because int might match the return type of a GCC
  19473. builtin and then its argument prototype would still apply. */
  19474. #ifdef __cplusplus
  19475. extern "C"
  19476. #endif
  19477. char XF86VidModeQueryVersion ();
  19478. int
  19479. main ()
  19480. {
  19481. return XF86VidModeQueryVersion ();
  19482. ;
  19483. return 0;
  19484. }
  19485. _ACEOF
  19486. if ac_fn_c_try_link "$LINENO"; then :
  19487. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  19488. else
  19489. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  19490. fi
  19491. rm -f core conftest.err conftest.$ac_objext \
  19492. conftest$ac_exeext conftest.$ac_ext
  19493. LIBS=$ac_check_lib_save_LIBS
  19494. fi
  19495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  19496. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  19497. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  19498. have_vm_lib=yes
  19499. fi
  19500. if test x$have_vm_lib = xyes ; then
  19501. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  19502. definitely_enable_video_x11_vm=yes
  19503. fi
  19504. fi
  19505. fi
  19506. fi
  19507. if test x$definitely_enable_video_x11_vm = xyes; then
  19508. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  19509. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  19510. fi
  19511. fi
  19512. fi
  19513. if test x$have_x != xyes; then
  19514. # Prevent Mesa from including X11 headers
  19515. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  19516. fi
  19517. }
  19518. CheckVivanteVideo()
  19519. {
  19520. # Check whether --enable-video-vivante was given.
  19521. if test "${enable_video_vivante+set}" = set; then :
  19522. enableval=$enable_video_vivante;
  19523. else
  19524. enable_video_vivante=yes
  19525. fi
  19526. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  19527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  19528. $as_echo_n "checking for Vivante VDK API... " >&6; }
  19529. have_vivante_vdk=no
  19530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19531. /* end confdefs.h. */
  19532. #define LINUX
  19533. #define EGL_API_FB
  19534. #include <gc_vdk.h>
  19535. int
  19536. main ()
  19537. {
  19538. ;
  19539. return 0;
  19540. }
  19541. _ACEOF
  19542. if ac_fn_c_try_compile "$LINENO"; then :
  19543. have_vivante_vdk=yes
  19544. fi
  19545. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  19547. $as_echo "$have_vivante_vdk" >&6; }
  19548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  19549. $as_echo_n "checking for Vivante FB API... " >&6; }
  19550. have_vivante_egl=no
  19551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19552. /* end confdefs.h. */
  19553. #define LINUX
  19554. #define EGL_API_FB
  19555. #include <EGL/eglvivante.h>
  19556. int
  19557. main ()
  19558. {
  19559. ;
  19560. return 0;
  19561. }
  19562. _ACEOF
  19563. if ac_fn_c_try_compile "$LINENO"; then :
  19564. have_vivante_egl=yes
  19565. fi
  19566. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  19568. $as_echo "$have_vivante_egl" >&6; }
  19569. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  19570. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  19571. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  19572. if test x$have_vivante_vdk = xyes; then
  19573. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  19574. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  19575. fi
  19576. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  19577. SUMMARY_video="${SUMMARY_video} vivante"
  19578. have_video=yes
  19579. fi
  19580. fi
  19581. }
  19582. CheckHaikuVideo()
  19583. {
  19584. if test x$enable_video = xyes; then
  19585. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  19586. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  19587. have_video=yes
  19588. SUMMARY_video="${SUMMARY_video} haiku"
  19589. fi
  19590. }
  19591. CheckCOCOA()
  19592. {
  19593. # Check whether --enable-video-cocoa was given.
  19594. if test "${enable_video_cocoa+set}" = set; then :
  19595. enableval=$enable_video_cocoa;
  19596. else
  19597. enable_video_cocoa=yes
  19598. fi
  19599. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  19600. save_CFLAGS="$CFLAGS"
  19601. CFLAGS="$CFLAGS -x objective-c"
  19602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  19603. $as_echo_n "checking for Cocoa framework... " >&6; }
  19604. have_cocoa=no
  19605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19606. /* end confdefs.h. */
  19607. #import <Cocoa/Cocoa.h>
  19608. int
  19609. main ()
  19610. {
  19611. ;
  19612. return 0;
  19613. }
  19614. _ACEOF
  19615. if ac_fn_c_try_compile "$LINENO"; then :
  19616. have_cocoa=yes
  19617. fi
  19618. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  19620. $as_echo "$have_cocoa" >&6; }
  19621. CFLAGS="$save_CFLAGS"
  19622. if test x$have_cocoa = xyes; then
  19623. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  19624. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  19625. SUMMARY_video="${SUMMARY_video} cocoa"
  19626. have_video=yes
  19627. fi
  19628. fi
  19629. }
  19630. CheckMETAL()
  19631. {
  19632. # Check whether --enable-video-metal was given.
  19633. if test "${enable_video_metal+set}" = set; then :
  19634. enableval=$enable_video_metal;
  19635. else
  19636. enable_video_metal=yes
  19637. fi
  19638. # Check whether --enable-render-metal was given.
  19639. if test "${enable_render_metal+set}" = set; then :
  19640. enableval=$enable_render_metal;
  19641. else
  19642. enable_render_metal=yes
  19643. fi
  19644. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  19645. save_CFLAGS="$CFLAGS"
  19646. CFLAGS="$CFLAGS -x objective-c"
  19647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  19648. $as_echo_n "checking for Metal framework... " >&6; }
  19649. have_metal=no
  19650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19651. /* end confdefs.h. */
  19652. #import <Cocoa/Cocoa.h>
  19653. #import <Metal/Metal.h>
  19654. #import <QuartzCore/CAMetalLayer.h>
  19655. #if TARGET_CPU_X86
  19656. #error Metal doesn't work on this configuration
  19657. #endif
  19658. int
  19659. main ()
  19660. {
  19661. ;
  19662. return 0;
  19663. }
  19664. _ACEOF
  19665. if ac_fn_c_try_compile "$LINENO"; then :
  19666. have_metal=yes
  19667. fi
  19668. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19669. CFLAGS="$save_CFLAGS"
  19670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  19671. $as_echo "$have_metal" >&6; }
  19672. if test x$have_metal = xyes; then
  19673. $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h
  19674. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  19675. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  19676. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  19677. fi
  19678. SUMMARY_video="${SUMMARY_video} metal"
  19679. else
  19680. enable_video_metal=no
  19681. enable_render_metal=no
  19682. fi
  19683. fi
  19684. }
  19685. CheckDirectFB()
  19686. {
  19687. # Check whether --enable-video-directfb was given.
  19688. if test "${enable_video_directfb+set}" = set; then :
  19689. enableval=$enable_video_directfb;
  19690. else
  19691. enable_video_directfb=no
  19692. fi
  19693. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  19694. pkg_failed=no
  19695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  19696. $as_echo_n "checking for directfb >= 1.0.0... " >&6; }
  19697. if test -n "$DIRECTFB_CFLAGS"; then
  19698. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  19699. elif test -n "$PKG_CONFIG"; then
  19700. if test -n "$PKG_CONFIG" && \
  19701. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  19702. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  19703. ac_status=$?
  19704. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19705. test $ac_status = 0; }; then
  19706. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  19707. test "x$?" != "x0" && pkg_failed=yes
  19708. else
  19709. pkg_failed=yes
  19710. fi
  19711. else
  19712. pkg_failed=untried
  19713. fi
  19714. if test -n "$DIRECTFB_LIBS"; then
  19715. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  19716. elif test -n "$PKG_CONFIG"; then
  19717. if test -n "$PKG_CONFIG" && \
  19718. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  19719. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  19720. ac_status=$?
  19721. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19722. test $ac_status = 0; }; then
  19723. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  19724. test "x$?" != "x0" && pkg_failed=yes
  19725. else
  19726. pkg_failed=yes
  19727. fi
  19728. else
  19729. pkg_failed=untried
  19730. fi
  19731. if test $pkg_failed = yes; then
  19732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19733. $as_echo "no" >&6; }
  19734. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19735. _pkg_short_errors_supported=yes
  19736. else
  19737. _pkg_short_errors_supported=no
  19738. fi
  19739. if test $_pkg_short_errors_supported = yes; then
  19740. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  19741. else
  19742. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  19743. fi
  19744. # Put the nasty error message in config.log where it belongs
  19745. echo "$DIRECTFB_PKG_ERRORS" >&5
  19746. video_directfb=no
  19747. elif test $pkg_failed = untried; then
  19748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19749. $as_echo "no" >&6; }
  19750. video_directfb=no
  19751. else
  19752. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  19753. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  19754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19755. $as_echo "yes" >&6; }
  19756. video_directfb=yes
  19757. fi
  19758. if test x$video_directfb = xyes; then
  19759. # SuSE 11.1 installs directfb-config without directfb-devel
  19760. save_CPPFLAGS="$CPPFLAGS"
  19761. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  19762. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  19763. if test "x$ac_cv_header_directfb_h" = xyes; then :
  19764. have_directfb_hdr=yes
  19765. else
  19766. have_directfb_hdr=no
  19767. fi
  19768. CPPFLAGS="$save_CPPFLAGS"
  19769. video_directfb=$have_directfb_hdr
  19770. fi
  19771. if test x$video_directfb = xyes; then
  19772. # Check whether --enable-directfb-shared was given.
  19773. if test "${enable_directfb_shared+set}" = set; then :
  19774. enableval=$enable_directfb_shared;
  19775. else
  19776. enable_directfb_shared=yes
  19777. fi
  19778. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  19779. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  19780. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  19781. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  19782. directfb_shared=no
  19783. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19784. if test x$have_loadso != xyes && \
  19785. test x$enable_directfb_shared = xyes; then
  19786. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  19787. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  19788. fi
  19789. if test x$have_loadso = xyes && \
  19790. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  19791. directfb_shared=yes
  19792. echo "-- dynamic libdirectfb -> $directfb_lib"
  19793. cat >>confdefs.h <<_ACEOF
  19794. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  19795. _ACEOF
  19796. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  19797. else
  19798. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  19799. SUMMARY_video="${SUMMARY_video} directfb"
  19800. fi
  19801. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  19802. have_video=yes
  19803. fi
  19804. fi
  19805. }
  19806. CheckKMSDRM()
  19807. {
  19808. # Check whether --enable-video-kmsdrm was given.
  19809. if test "${enable_video_kmsdrm+set}" = set; then :
  19810. enableval=$enable_video_kmsdrm;
  19811. else
  19812. enable_video_kmsdrm=yes
  19813. fi
  19814. if test x$enable_video = xyes && \
  19815. test x$enable_video_kmsdrm = xyes && \
  19816. test x$video_opengl_egl = xyes; then
  19817. video_kmsdrm=no
  19818. pkg_failed=no
  19819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  19820. $as_echo_n "checking for libdrm >= 1.4.82... " >&6; }
  19821. if test -n "$LIBDRM_CFLAGS"; then
  19822. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  19823. elif test -n "$PKG_CONFIG"; then
  19824. if test -n "$PKG_CONFIG" && \
  19825. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  19826. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  19827. ac_status=$?
  19828. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19829. test $ac_status = 0; }; then
  19830. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  19831. test "x$?" != "x0" && pkg_failed=yes
  19832. else
  19833. pkg_failed=yes
  19834. fi
  19835. else
  19836. pkg_failed=untried
  19837. fi
  19838. if test -n "$LIBDRM_LIBS"; then
  19839. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  19840. elif test -n "$PKG_CONFIG"; then
  19841. if test -n "$PKG_CONFIG" && \
  19842. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  19843. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  19844. ac_status=$?
  19845. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19846. test $ac_status = 0; }; then
  19847. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  19848. test "x$?" != "x0" && pkg_failed=yes
  19849. else
  19850. pkg_failed=yes
  19851. fi
  19852. else
  19853. pkg_failed=untried
  19854. fi
  19855. if test $pkg_failed = yes; then
  19856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19857. $as_echo "no" >&6; }
  19858. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19859. _pkg_short_errors_supported=yes
  19860. else
  19861. _pkg_short_errors_supported=no
  19862. fi
  19863. if test $_pkg_short_errors_supported = yes; then
  19864. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19865. else
  19866. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19867. fi
  19868. # Put the nasty error message in config.log where it belongs
  19869. echo "$LIBDRM_PKG_ERRORS" >&5
  19870. libdrm_avail=no
  19871. elif test $pkg_failed = untried; then
  19872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19873. $as_echo "no" >&6; }
  19874. libdrm_avail=no
  19875. else
  19876. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  19877. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  19878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19879. $as_echo "yes" >&6; }
  19880. libdrm_avail=yes
  19881. fi
  19882. pkg_failed=no
  19883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  19884. $as_echo_n "checking for gbm >= 11.1.0... " >&6; }
  19885. if test -n "$LIBGBM_CFLAGS"; then
  19886. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  19887. elif test -n "$PKG_CONFIG"; then
  19888. if test -n "$PKG_CONFIG" && \
  19889. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19890. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19891. ac_status=$?
  19892. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19893. test $ac_status = 0; }; then
  19894. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  19895. test "x$?" != "x0" && pkg_failed=yes
  19896. else
  19897. pkg_failed=yes
  19898. fi
  19899. else
  19900. pkg_failed=untried
  19901. fi
  19902. if test -n "$LIBGBM_LIBS"; then
  19903. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  19904. elif test -n "$PKG_CONFIG"; then
  19905. if test -n "$PKG_CONFIG" && \
  19906. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19907. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19908. ac_status=$?
  19909. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19910. test $ac_status = 0; }; then
  19911. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  19912. test "x$?" != "x0" && pkg_failed=yes
  19913. else
  19914. pkg_failed=yes
  19915. fi
  19916. else
  19917. pkg_failed=untried
  19918. fi
  19919. if test $pkg_failed = yes; then
  19920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19921. $as_echo "no" >&6; }
  19922. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19923. _pkg_short_errors_supported=yes
  19924. else
  19925. _pkg_short_errors_supported=no
  19926. fi
  19927. if test $_pkg_short_errors_supported = yes; then
  19928. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19929. else
  19930. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19931. fi
  19932. # Put the nasty error message in config.log where it belongs
  19933. echo "$LIBGBM_PKG_ERRORS" >&5
  19934. libgbm_avail=no
  19935. elif test $pkg_failed = untried; then
  19936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19937. $as_echo "no" >&6; }
  19938. libgbm_avail=no
  19939. else
  19940. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  19941. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  19942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19943. $as_echo "yes" >&6; }
  19944. libgbm_avail=yes
  19945. fi
  19946. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  19947. video_kmsdrm=yes
  19948. fi
  19949. if test x$video_kmsdrm = xyes; then
  19950. # Check whether --enable-kmsdrm-shared was given.
  19951. if test "${enable_kmsdrm_shared+set}" = set; then :
  19952. enableval=$enable_kmsdrm_shared;
  19953. else
  19954. enable_kmsdrm_shared=yes
  19955. fi
  19956. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  19957. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  19958. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  19959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  19960. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  19961. kmsdrm_shared=no
  19962. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  19963. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  19964. if test x$have_loadso != xyes && \
  19965. test x$enable_kmsdrm_shared = xyes; then
  19966. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  19967. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  19968. fi
  19969. if test x$have_loadso = xyes && \
  19970. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  19971. kmsdrm_shared=yes
  19972. cat >>confdefs.h <<_ACEOF
  19973. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  19974. _ACEOF
  19975. cat >>confdefs.h <<_ACEOF
  19976. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  19977. _ACEOF
  19978. cat >>confdefs.h <<_ACEOF
  19979. #define HAVE_KMSDRM_SHARED "TRUE"
  19980. _ACEOF
  19981. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  19982. else
  19983. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  19984. SUMMARY_video="${SUMMARY_video} kmsdrm"
  19985. fi
  19986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  19987. $as_echo "$kmsdrm_shared" >&6; }
  19988. if test x$kmsdrm_shared = xyes; then
  19989. echo "-- dynamic libdrm -> $drm_lib"
  19990. echo "-- dynamic libgbm -> $gbm_lib"
  19991. fi
  19992. have_video=yes
  19993. fi
  19994. fi
  19995. }
  19996. CheckDummyVideo()
  19997. {
  19998. # Check whether --enable-video-dummy was given.
  19999. if test "${enable_video_dummy+set}" = set; then :
  20000. enableval=$enable_video_dummy;
  20001. else
  20002. enable_video_dummy=yes
  20003. fi
  20004. if test x$enable_video_dummy = xyes; then
  20005. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  20006. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  20007. have_video=yes
  20008. SUMMARY_video="${SUMMARY_video} dummy"
  20009. fi
  20010. }
  20011. CheckOffscreenVideo()
  20012. {
  20013. # Check whether --enable-video-offscreen was given.
  20014. if test "${enable_video_offscreen+set}" = set; then :
  20015. enableval=$enable_video_offscreen;
  20016. else
  20017. enable_video_offscreen=no
  20018. fi
  20019. if test x$enable_video_offscreen = xyes; then
  20020. $as_echo "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  20021. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  20022. have_video=yes
  20023. SUMMARY_video="${SUMMARY_video} offscreen"
  20024. fi
  20025. }
  20026. CheckQNXVideo()
  20027. {
  20028. if test x$enable_video = xyes; then
  20029. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  20030. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  20031. have_video=yes
  20032. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  20033. SUMMARY_video="${SUMMARY_video} qnx"
  20034. fi
  20035. }
  20036. CheckQNXAudio()
  20037. {
  20038. if test x$enable_audio = xyes; then
  20039. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  20040. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  20041. have_audio=yes
  20042. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  20043. SUMMARY_audio="${SUMMARY_audio} qsa"
  20044. fi
  20045. }
  20046. # Check whether --enable-video-opengl was given.
  20047. if test "${enable_video_opengl+set}" = set; then :
  20048. enableval=$enable_video_opengl;
  20049. else
  20050. enable_video_opengl=yes
  20051. fi
  20052. CheckGLX()
  20053. {
  20054. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  20056. $as_echo_n "checking for GLX support... " >&6; }
  20057. video_opengl_glx=no
  20058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20059. /* end confdefs.h. */
  20060. #include <GL/glx.h>
  20061. int
  20062. main ()
  20063. {
  20064. ;
  20065. return 0;
  20066. }
  20067. _ACEOF
  20068. if ac_fn_c_try_compile "$LINENO"; then :
  20069. video_opengl_glx=yes
  20070. fi
  20071. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  20073. $as_echo "$video_opengl_glx" >&6; }
  20074. if test x$video_opengl_glx = xyes; then
  20075. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20076. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  20077. fi
  20078. fi
  20079. }
  20080. # Check whether --enable-video-opengles was given.
  20081. if test "${enable_video_opengles+set}" = set; then :
  20082. enableval=$enable_video_opengles;
  20083. else
  20084. enable_video_opengles=yes
  20085. fi
  20086. # Check whether --enable-video-opengles1 was given.
  20087. if test "${enable_video_opengles1+set}" = set; then :
  20088. enableval=$enable_video_opengles1;
  20089. else
  20090. enable_video_opengles1=yes
  20091. fi
  20092. # Check whether --enable-video-opengles2 was given.
  20093. if test "${enable_video_opengles2+set}" = set; then :
  20094. enableval=$enable_video_opengles2;
  20095. else
  20096. enable_video_opengles2=yes
  20097. fi
  20098. CheckEGL()
  20099. {
  20100. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  20102. $as_echo_n "checking for EGL support... " >&6; }
  20103. video_opengl_egl=no
  20104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20105. /* end confdefs.h. */
  20106. #define LINUX
  20107. #define EGL_API_FB
  20108. #define MESA_EGL_NO_X11_HEADERS
  20109. #define EGL_NO_X11
  20110. #include <EGL/egl.h>
  20111. #include <EGL/eglext.h>
  20112. int
  20113. main ()
  20114. {
  20115. ;
  20116. return 0;
  20117. }
  20118. _ACEOF
  20119. if ac_fn_c_try_compile "$LINENO"; then :
  20120. video_opengl_egl=yes
  20121. fi
  20122. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20124. $as_echo "$video_opengl_egl" >&6; }
  20125. if test x$video_opengl_egl = xyes; then
  20126. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20127. fi
  20128. fi
  20129. }
  20130. CheckOpenGL()
  20131. {
  20132. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  20134. $as_echo_n "checking for OpenGL headers... " >&6; }
  20135. video_opengl=no
  20136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20137. /* end confdefs.h. */
  20138. #include <GL/gl.h>
  20139. #include <GL/glext.h>
  20140. int
  20141. main ()
  20142. {
  20143. ;
  20144. return 0;
  20145. }
  20146. _ACEOF
  20147. if ac_fn_c_try_compile "$LINENO"; then :
  20148. video_opengl=yes
  20149. fi
  20150. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  20152. $as_echo "$video_opengl" >&6; }
  20153. if test x$video_opengl = xyes; then
  20154. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20155. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20156. SUMMARY_video="${SUMMARY_video} opengl"
  20157. fi
  20158. fi
  20159. }
  20160. CheckOpenGLES()
  20161. {
  20162. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20163. if test x$enable_video_opengles1 = xyes; then
  20164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  20165. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  20166. video_opengles_v1=no
  20167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20168. /* end confdefs.h. */
  20169. #include <GLES/gl.h>
  20170. #include <GLES/glext.h>
  20171. int
  20172. main ()
  20173. {
  20174. ;
  20175. return 0;
  20176. }
  20177. _ACEOF
  20178. if ac_fn_c_try_compile "$LINENO"; then :
  20179. video_opengles_v1=yes
  20180. fi
  20181. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  20183. $as_echo "$video_opengles_v1" >&6; }
  20184. if test x$video_opengles_v1 = xyes; then
  20185. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  20186. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  20187. SUMMARY_video="${SUMMARY_video} opengl_es1"
  20188. fi
  20189. fi
  20190. if test x$enable_video_opengles2 = xyes; then
  20191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20192. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20193. video_opengles_v2=no
  20194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20195. /* end confdefs.h. */
  20196. #include <GLES2/gl2.h>
  20197. #include <GLES2/gl2ext.h>
  20198. int
  20199. main ()
  20200. {
  20201. ;
  20202. return 0;
  20203. }
  20204. _ACEOF
  20205. if ac_fn_c_try_compile "$LINENO"; then :
  20206. video_opengles_v2=yes
  20207. fi
  20208. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20210. $as_echo "$video_opengles_v2" >&6; }
  20211. if test x$video_opengles_v2 = xyes; then
  20212. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20213. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20214. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20215. fi
  20216. fi
  20217. fi
  20218. }
  20219. CheckWINDOWSGL()
  20220. {
  20221. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20222. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20223. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  20224. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20225. SUMMARY_video="${SUMMARY_video} opengl"
  20226. fi
  20227. }
  20228. CheckWINDOWSGLES()
  20229. {
  20230. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  20232. $as_echo_n "checking for EGL support... " >&6; }
  20233. video_opengl_egl=no
  20234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20235. /* end confdefs.h. */
  20236. #include <EGL/egl.h>
  20237. int
  20238. main ()
  20239. {
  20240. ;
  20241. return 0;
  20242. }
  20243. _ACEOF
  20244. if ac_fn_c_try_compile "$LINENO"; then :
  20245. video_opengl_egl=yes
  20246. fi
  20247. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20249. $as_echo "$video_opengl_egl" >&6; }
  20250. if test x$video_opengl_egl = xyes; then
  20251. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20252. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20253. SUMMARY_video="${SUMMARY_video} opengl_es1"
  20254. fi
  20255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20256. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20257. video_opengles_v2=no
  20258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20259. /* end confdefs.h. */
  20260. #include <GLES2/gl2.h>
  20261. #include <GLES2/gl2ext.h>
  20262. int
  20263. main ()
  20264. {
  20265. ;
  20266. return 0;
  20267. }
  20268. _ACEOF
  20269. if ac_fn_c_try_compile "$LINENO"; then :
  20270. video_opengles_v2=yes
  20271. fi
  20272. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20274. $as_echo "$video_opengles_v2" >&6; }
  20275. if test x$video_opengles_v2 = xyes; then
  20276. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20277. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20278. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20279. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20280. fi
  20281. fi
  20282. }
  20283. CheckHaikuGL()
  20284. {
  20285. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20286. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20287. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  20288. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20289. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  20290. SUMMARY_video="${SUMMARY_video} opengl"
  20291. fi
  20292. }
  20293. CheckMacGL()
  20294. {
  20295. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  20296. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  20297. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  20298. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  20299. SUMMARY_video="${SUMMARY_video} opengl"
  20300. fi
  20301. }
  20302. CheckMacGLES()
  20303. {
  20304. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20305. video_opengl_egl=yes
  20306. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20307. video_opengles_v2=yes
  20308. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20309. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20310. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20311. fi
  20312. }
  20313. CheckEmscriptenGLES()
  20314. {
  20315. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  20316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  20317. $as_echo_n "checking for EGL support... " >&6; }
  20318. video_opengl_egl=no
  20319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20320. /* end confdefs.h. */
  20321. #include <EGL/egl.h>
  20322. int
  20323. main ()
  20324. {
  20325. ;
  20326. return 0;
  20327. }
  20328. _ACEOF
  20329. if ac_fn_c_try_compile "$LINENO"; then :
  20330. video_opengl_egl=yes
  20331. fi
  20332. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  20334. $as_echo "$video_opengl_egl" >&6; }
  20335. if test x$video_opengl_egl = xyes; then
  20336. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  20337. fi
  20338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  20339. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  20340. video_opengles_v2=no
  20341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20342. /* end confdefs.h. */
  20343. #include <GLES2/gl2.h>
  20344. #include <GLES2/gl2ext.h>
  20345. int
  20346. main ()
  20347. {
  20348. ;
  20349. return 0;
  20350. }
  20351. _ACEOF
  20352. if ac_fn_c_try_compile "$LINENO"; then :
  20353. video_opengles_v2=yes
  20354. fi
  20355. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  20357. $as_echo "$video_opengles_v2" >&6; }
  20358. if test x$video_opengles_v2 = xyes; then
  20359. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20360. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20361. SUMMARY_video="${SUMMARY_video} opengl_es2"
  20362. fi
  20363. fi
  20364. }
  20365. # Check whether --enable-video-vulkan was given.
  20366. if test "${enable_video_vulkan+set}" = set; then :
  20367. enableval=$enable_video_vulkan;
  20368. else
  20369. enable_video_vulkan=yes
  20370. fi
  20371. CheckVulkan()
  20372. {
  20373. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  20374. case "$host" in
  20375. *-*-android*)
  20376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20377. /* end confdefs.h. */
  20378. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  20379. #error Vulkan doesn't work on this configuration
  20380. #endif
  20381. int
  20382. main ()
  20383. {
  20384. ;
  20385. return 0;
  20386. }
  20387. _ACEOF
  20388. if ac_fn_c_try_compile "$LINENO"; then :
  20389. else
  20390. enable_video_vulkan=no
  20391. fi
  20392. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20393. ;;
  20394. *-*-darwin*)
  20395. save_CFLAGS="$CFLAGS"
  20396. CFLAGS="$CFLAGS -x objective-c"
  20397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20398. /* end confdefs.h. */
  20399. #include <Cocoa/Cocoa.h>
  20400. #include <Metal/Metal.h>
  20401. #include <QuartzCore/CAMetalLayer.h>
  20402. #if TARGET_CPU_X86
  20403. #error Vulkan doesn't work on this configuration
  20404. #endif
  20405. int
  20406. main ()
  20407. {
  20408. ;
  20409. return 0;
  20410. }
  20411. _ACEOF
  20412. if ac_fn_c_try_compile "$LINENO"; then :
  20413. else
  20414. enable_video_vulkan=no
  20415. fi
  20416. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20417. CFLAGS="$save_CFLAGS"
  20418. ;;
  20419. *)
  20420. ;;
  20421. esac
  20422. if test x$enable_video_vulkan = xno; then
  20423. # For reasons I am totally unable to see, I get an undefined macro error if
  20424. # I put this in the AC_TRY_COMPILE.
  20425. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  20426. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  20427. fi
  20428. fi
  20429. if test x$have_loadso != xyes; then
  20430. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  20431. $as_echo "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  20432. enable_video_vulkan=no
  20433. fi
  20434. if test x$enable_video_vulkan = xyes; then
  20435. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  20436. SUMMARY_video="${SUMMARY_video} vulkan"
  20437. fi
  20438. }
  20439. CheckInputEvents()
  20440. {
  20441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  20442. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  20443. use_input_events=no
  20444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20445. /* end confdefs.h. */
  20446. #include <linux/input.h>
  20447. int
  20448. main ()
  20449. {
  20450. #ifndef EVIOCGNAME
  20451. #error EVIOCGNAME() ioctl not available
  20452. #endif
  20453. ;
  20454. return 0;
  20455. }
  20456. _ACEOF
  20457. if ac_fn_c_try_compile "$LINENO"; then :
  20458. use_input_events=yes
  20459. fi
  20460. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  20462. $as_echo "$use_input_events" >&6; }
  20463. if test x$use_input_events = xyes; then
  20464. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  20465. SUMMARY_input="${SUMMARY_input} linuxev"
  20466. fi
  20467. }
  20468. CheckInputKD()
  20469. {
  20470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  20471. $as_echo_n "checking for Linux kd.h... " >&6; }
  20472. use_input_kd=no
  20473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20474. /* end confdefs.h. */
  20475. #include <linux/kd.h>
  20476. #include <linux/keyboard.h>
  20477. int
  20478. main ()
  20479. {
  20480. struct kbentry kbe;
  20481. kbe.kb_table = KG_CTRL;
  20482. ioctl(0, KDGKBENT, &kbe);
  20483. ;
  20484. return 0;
  20485. }
  20486. _ACEOF
  20487. if ac_fn_c_try_compile "$LINENO"; then :
  20488. use_input_kd=yes
  20489. fi
  20490. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  20492. $as_echo "$use_input_kd" >&6; }
  20493. if test x$use_input_kd = xyes; then
  20494. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  20495. SUMMARY_input="${SUMMARY_input} linuxkd"
  20496. fi
  20497. }
  20498. CheckInputKBIO()
  20499. {
  20500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  20501. $as_echo_n "checking for FreeBSD kbio.h... " >&6; }
  20502. use_input_kbio=no
  20503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20504. /* end confdefs.h. */
  20505. #include <sys/kbio.h>
  20506. #include <sys/ioctl.h>
  20507. int
  20508. main ()
  20509. {
  20510. accentmap_t accTable;
  20511. ioctl(0, KDENABIO, 1);
  20512. ;
  20513. return 0;
  20514. }
  20515. _ACEOF
  20516. if ac_fn_c_try_compile "$LINENO"; then :
  20517. use_input_kbio=yes
  20518. fi
  20519. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  20521. $as_echo "$use_input_kbio" >&6; }
  20522. if test x$use_input_kbio = xyes; then
  20523. $as_echo "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  20524. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  20525. fi
  20526. }
  20527. CheckInputWSCONS()
  20528. {
  20529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  20530. $as_echo_n "checking for OpenBSD wscons... " >&6; }
  20531. use_input_wscons=no
  20532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20533. /* end confdefs.h. */
  20534. #include <sys/time.h>
  20535. #include <dev/wscons/wsconsio.h>
  20536. #include <dev/wscons/wsksymdef.h>
  20537. #include <dev/wscons/wsksymvar.h>
  20538. #include <sys/ioctl.h>
  20539. int
  20540. main ()
  20541. {
  20542. struct wskbd_map_data data;
  20543. ioctl(0, WSKBDIO_GETMAP, &data);
  20544. ;
  20545. return 0;
  20546. }
  20547. _ACEOF
  20548. if ac_fn_c_try_compile "$LINENO"; then :
  20549. use_input_wscons=yes
  20550. fi
  20551. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  20553. $as_echo "$use_input_wscons" >&6; }
  20554. if test x$use_input_wscons = xyes; then
  20555. $as_echo "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  20556. SUMMARY_input="${SUMMARY_input} wscons"
  20557. fi
  20558. }
  20559. CheckLibUDev()
  20560. {
  20561. # Check whether --enable-libudev was given.
  20562. if test "${enable_libudev+set}" = set; then :
  20563. enableval=$enable_libudev;
  20564. else
  20565. enable_libudev=yes
  20566. fi
  20567. if test x$enable_libudev = xyes; then
  20568. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  20569. if test "x$ac_cv_header_libudev_h" = xyes; then :
  20570. have_libudev_h_hdr=yes
  20571. else
  20572. have_libudev_h_hdr=no
  20573. fi
  20574. if test x$have_libudev_h_hdr = xyes; then
  20575. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  20576. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  20577. if test x$udev_lib != x; then
  20578. echo "-- dynamic udev -> $udev_lib"
  20579. cat >>confdefs.h <<_ACEOF
  20580. #define SDL_UDEV_DYNAMIC "$udev_lib"
  20581. _ACEOF
  20582. fi
  20583. fi
  20584. fi
  20585. }
  20586. CheckDBus()
  20587. {
  20588. # Check whether --enable-dbus was given.
  20589. if test "${enable_dbus+set}" = set; then :
  20590. enableval=$enable_dbus;
  20591. else
  20592. enable_dbus=yes
  20593. fi
  20594. if test x$enable_dbus = xyes; then
  20595. pkg_failed=no
  20596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  20597. $as_echo_n "checking for dbus-1... " >&6; }
  20598. if test -n "$DBUS_CFLAGS"; then
  20599. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  20600. elif test -n "$PKG_CONFIG"; then
  20601. if test -n "$PKG_CONFIG" && \
  20602. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  20603. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  20604. ac_status=$?
  20605. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20606. test $ac_status = 0; }; then
  20607. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  20608. test "x$?" != "x0" && pkg_failed=yes
  20609. else
  20610. pkg_failed=yes
  20611. fi
  20612. else
  20613. pkg_failed=untried
  20614. fi
  20615. if test -n "$DBUS_LIBS"; then
  20616. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  20617. elif test -n "$PKG_CONFIG"; then
  20618. if test -n "$PKG_CONFIG" && \
  20619. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  20620. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  20621. ac_status=$?
  20622. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20623. test $ac_status = 0; }; then
  20624. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  20625. test "x$?" != "x0" && pkg_failed=yes
  20626. else
  20627. pkg_failed=yes
  20628. fi
  20629. else
  20630. pkg_failed=untried
  20631. fi
  20632. if test $pkg_failed = yes; then
  20633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20634. $as_echo "no" >&6; }
  20635. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20636. _pkg_short_errors_supported=yes
  20637. else
  20638. _pkg_short_errors_supported=no
  20639. fi
  20640. if test $_pkg_short_errors_supported = yes; then
  20641. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  20642. else
  20643. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  20644. fi
  20645. # Put the nasty error message in config.log where it belongs
  20646. echo "$DBUS_PKG_ERRORS" >&5
  20647. have_dbus=no
  20648. elif test $pkg_failed = untried; then
  20649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20650. $as_echo "no" >&6; }
  20651. have_dbus=no
  20652. else
  20653. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  20654. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  20655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20656. $as_echo "yes" >&6; }
  20657. have_dbus=yes
  20658. fi
  20659. save_CPPFLAGS="$CPPFLAGS"
  20660. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  20661. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  20662. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  20663. have_dbus_dbus_h_hdr=yes
  20664. else
  20665. have_dbus_dbus_h_hdr=no
  20666. fi
  20667. CPPFLAGS="$save_CPPFLAGS"
  20668. if test x$have_dbus_dbus_h_hdr = xyes; then
  20669. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  20670. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  20671. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  20672. fi
  20673. fi
  20674. }
  20675. CheckIME()
  20676. {
  20677. # Check whether --enable-ime was given.
  20678. if test "${enable_ime+set}" = set; then :
  20679. enableval=$enable_ime;
  20680. else
  20681. enable_ime=yes
  20682. fi
  20683. if test x$enable_ime = xyes; then
  20684. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  20685. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  20686. fi
  20687. }
  20688. CheckInotify()
  20689. {
  20690. save_LIBS="$LIBS"
  20691. case "$host" in
  20692. *-*-freebsd*) LIBS="$LIBS -linotify"
  20693. ;;
  20694. esac
  20695. for ac_header in sys/inotify.h
  20696. do :
  20697. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  20698. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  20699. cat >>confdefs.h <<_ACEOF
  20700. #define HAVE_SYS_INOTIFY_H 1
  20701. _ACEOF
  20702. have_inotify_inotify_h_hdr=yes
  20703. fi
  20704. done
  20705. for ac_func in inotify_init
  20706. do :
  20707. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  20708. if test "x$ac_cv_func_inotify_init" = xyes; then :
  20709. cat >>confdefs.h <<_ACEOF
  20710. #define HAVE_INOTIFY_INIT 1
  20711. _ACEOF
  20712. have_inotify=yes
  20713. fi
  20714. done
  20715. for ac_func in inotify_init1
  20716. do :
  20717. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  20718. if test "x$ac_cv_func_inotify_init1" = xyes; then :
  20719. cat >>confdefs.h <<_ACEOF
  20720. #define HAVE_INOTIFY_INIT1 1
  20721. _ACEOF
  20722. fi
  20723. done
  20724. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  20725. $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
  20726. case "$host" in
  20727. *-*-freebsd*)
  20728. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  20729. ;;
  20730. esac
  20731. fi
  20732. LIBS="$save_LIBS"
  20733. }
  20734. CheckIBus()
  20735. {
  20736. # Check whether --enable-ibus was given.
  20737. if test "${enable_ibus+set}" = set; then :
  20738. enableval=$enable_ibus;
  20739. else
  20740. enable_ibus=yes
  20741. fi
  20742. if test x$enable_ibus = xyes; then
  20743. pkg_failed=no
  20744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  20745. $as_echo_n "checking for ibus-1.0... " >&6; }
  20746. if test -n "$IBUS_CFLAGS"; then
  20747. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  20748. elif test -n "$PKG_CONFIG"; then
  20749. if test -n "$PKG_CONFIG" && \
  20750. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  20751. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  20752. ac_status=$?
  20753. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20754. test $ac_status = 0; }; then
  20755. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  20756. test "x$?" != "x0" && pkg_failed=yes
  20757. else
  20758. pkg_failed=yes
  20759. fi
  20760. else
  20761. pkg_failed=untried
  20762. fi
  20763. if test -n "$IBUS_LIBS"; then
  20764. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  20765. elif test -n "$PKG_CONFIG"; then
  20766. if test -n "$PKG_CONFIG" && \
  20767. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  20768. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  20769. ac_status=$?
  20770. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20771. test $ac_status = 0; }; then
  20772. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  20773. test "x$?" != "x0" && pkg_failed=yes
  20774. else
  20775. pkg_failed=yes
  20776. fi
  20777. else
  20778. pkg_failed=untried
  20779. fi
  20780. if test $pkg_failed = yes; then
  20781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20782. $as_echo "no" >&6; }
  20783. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20784. _pkg_short_errors_supported=yes
  20785. else
  20786. _pkg_short_errors_supported=no
  20787. fi
  20788. if test $_pkg_short_errors_supported = yes; then
  20789. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  20790. else
  20791. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  20792. fi
  20793. # Put the nasty error message in config.log where it belongs
  20794. echo "$IBUS_PKG_ERRORS" >&5
  20795. have_ibus=no
  20796. elif test $pkg_failed = untried; then
  20797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20798. $as_echo "no" >&6; }
  20799. have_ibus=no
  20800. else
  20801. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  20802. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  20803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20804. $as_echo "yes" >&6; }
  20805. have_ibus=yes
  20806. fi
  20807. save_CPPFLAGS="$CPPFLAGS"
  20808. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  20809. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  20810. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  20811. have_ibus_ibus_h_hdr=yes
  20812. else
  20813. have_ibus_ibus_h_hdr=no
  20814. fi
  20815. CPPFLAGS="$save_CPPFLAGS"
  20816. if test x$have_ibus_ibus_h_hdr = xyes; then
  20817. if test x$enable_ime != xyes; then
  20818. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  20819. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  20820. have_ibus_ibus_h_hdr=no
  20821. elif test x$enable_dbus != xyes; then
  20822. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  20823. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  20824. have_ibus_ibus_h_hdr=no
  20825. elif test x$have_inotify_inotify_h_hdr != xyes; then
  20826. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  20827. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  20828. have_ibus_ibus_h_hdr=no
  20829. else
  20830. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  20831. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  20832. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  20833. fi
  20834. fi
  20835. fi
  20836. }
  20837. CheckFcitx()
  20838. {
  20839. # Check whether --enable-fcitx was given.
  20840. if test "${enable_fcitx+set}" = set; then :
  20841. enableval=$enable_fcitx;
  20842. else
  20843. enable_fcitx=yes
  20844. fi
  20845. if test x$enable_fcitx = xyes; then
  20846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  20847. $as_echo_n "checking for fcitx support... " >&6; }
  20848. have_fcitx=no
  20849. if test x$enable_ime != xyes; then
  20850. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  20851. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  20852. elif test x$have_dbus_dbus_h_hdr != xyes; then
  20853. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  20854. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  20855. else
  20856. have_fcitx=yes
  20857. $as_echo "#define HAVE_FCITX 1" >>confdefs.h
  20858. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  20859. fi
  20860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  20861. $as_echo "$have_fcitx" >&6; }
  20862. fi
  20863. }
  20864. CheckJoystickMFI()
  20865. {
  20866. # Check whether --enable-joystick-mfi was given.
  20867. if test "${enable_joystick_mfi+set}" = set; then :
  20868. enableval=$enable_joystick_mfi;
  20869. else
  20870. enable_joystick_mfi=yes
  20871. fi
  20872. if test x$enable_joystick_mfi = xyes; then
  20873. save_CFLAGS="$CFLAGS"
  20874. save_LDFLAGS="$LDFLAGS"
  20875. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  20876. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  20878. $as_echo_n "checking for GameController framework... " >&6; }
  20879. enable_joystick_mfi=no
  20880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20881. /* end confdefs.h. */
  20882. #include <AvailabilityMacros.h>
  20883. #include <TargetConditionals.h>
  20884. #import <GameController/GameController.h>
  20885. int
  20886. main ()
  20887. {
  20888. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  20889. #error GameController framework doesn't work on this configuration
  20890. #endif
  20891. #if TARGET_CPU_X86
  20892. #error GameController framework doesn't work on this configuration
  20893. #endif
  20894. ;
  20895. return 0;
  20896. }
  20897. _ACEOF
  20898. if ac_fn_c_try_link "$LINENO"; then :
  20899. enable_joystick_mfi=yes
  20900. fi
  20901. rm -f core conftest.err conftest.$ac_objext \
  20902. conftest$ac_exeext conftest.$ac_ext
  20903. CFLAGS="$save_CFLAGS"
  20904. LDFLAGS="$save_LDFLAGS"
  20905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  20906. $as_echo "$enable_joystick_mfi" >&6; }
  20907. if test x$enable_joystick_mfi = xyes; then
  20908. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  20909. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  20910. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20911. fi
  20912. fi
  20913. }
  20914. CheckPTHREAD()
  20915. {
  20916. case "$host" in
  20917. *-*-emscripten*)
  20918. enable_pthreads_default=no
  20919. ;;
  20920. *)
  20921. enable_pthreads_default=yes
  20922. ;;
  20923. esac
  20924. # Check whether --enable-pthreads was given.
  20925. if test "${enable_pthreads+set}" = set; then :
  20926. enableval=$enable_pthreads;
  20927. else
  20928. enable_pthreads=maybe
  20929. fi
  20930. # Check whether --enable-pthread-sem was given.
  20931. if test "${enable_pthread_sem+set}" = set; then :
  20932. enableval=$enable_pthread_sem;
  20933. else
  20934. enable_pthread_sem=maybe
  20935. fi
  20936. if test x$enable_pthreads = xmaybe; then
  20937. enable_pthreads=$enable_pthreads_default
  20938. fi
  20939. if test x$enable_pthread_sem = xmaybe; then
  20940. enable_pthread_sem=$enable_pthreads
  20941. fi
  20942. case "$host" in
  20943. *-*-android*)
  20944. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20945. pthread_lib=""
  20946. ;;
  20947. *-*-linux*|*-*-uclinux*)
  20948. pthread_cflags="-D_REENTRANT"
  20949. pthread_lib="-lpthread"
  20950. ;;
  20951. *-*-bsdi*)
  20952. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20953. pthread_lib=""
  20954. ;;
  20955. *-*-darwin*)
  20956. pthread_cflags="-D_THREAD_SAFE"
  20957. # causes Carbon.p complaints?
  20958. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20959. ;;
  20960. *-*-freebsd*|*-*-dragonfly*)
  20961. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20962. pthread_lib="-pthread"
  20963. ;;
  20964. *-*-netbsd*)
  20965. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20966. pthread_lib="-lpthread"
  20967. ;;
  20968. *-*-openbsd*)
  20969. pthread_cflags="-D_REENTRANT"
  20970. pthread_lib="-pthread"
  20971. ;;
  20972. *-*-solaris2.9)
  20973. # From Solaris 9+, posix4's preferred name is rt.
  20974. pthread_cflags="-D_REENTRANT"
  20975. pthread_lib="-lpthread -lrt"
  20976. ;;
  20977. *-*-solaris2.10)
  20978. # Solaris 10+ merged pthread into libc.
  20979. pthread_cflags="-D_REENTRANT"
  20980. pthread_lib="-lrt"
  20981. ;;
  20982. *-*-solaris*)
  20983. # Solaris 11+ merged rt into libc.
  20984. pthread_cflags="-D_REENTRANT"
  20985. pthread_lib=""
  20986. ;;
  20987. *-*-sysv5*)
  20988. pthread_cflags="-D_REENTRANT -Kthread"
  20989. pthread_lib=""
  20990. ;;
  20991. *-*-aix*)
  20992. pthread_cflags="-D_REENTRANT -mthreads"
  20993. pthread_lib="-lpthread"
  20994. ;;
  20995. *-*-hpux11*)
  20996. pthread_cflags="-D_REENTRANT"
  20997. pthread_lib="-L/usr/lib -lpthread"
  20998. ;;
  20999. *-*-haiku*)
  21000. pthread_cflags="-D_REENTRANT"
  21001. pthread_lib=""
  21002. ;;
  21003. *-*-nto*)
  21004. pthread_cflags="-D_REENTRANT"
  21005. pthread_lib=""
  21006. ;;
  21007. *-*-emscripten*)
  21008. pthread_cflags="-D_REENTRANT -pthread"
  21009. pthread_lib="-pthread"
  21010. ;;
  21011. *)
  21012. pthread_cflags="-D_REENTRANT"
  21013. pthread_lib="-lpthread"
  21014. ;;
  21015. esac
  21016. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  21017. # Save the original compiler flags and libraries
  21018. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  21019. # Add the pthread compiler flags and libraries
  21020. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  21021. # Check to see if we have pthread support on this system
  21022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  21023. $as_echo_n "checking for pthreads... " >&6; }
  21024. use_pthreads=no
  21025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21026. /* end confdefs.h. */
  21027. #include <pthread.h>
  21028. int
  21029. main ()
  21030. {
  21031. pthread_attr_t type;
  21032. pthread_attr_init(&type);
  21033. ;
  21034. return 0;
  21035. }
  21036. _ACEOF
  21037. if ac_fn_c_try_link "$LINENO"; then :
  21038. use_pthreads=yes
  21039. fi
  21040. rm -f core conftest.err conftest.$ac_objext \
  21041. conftest$ac_exeext conftest.$ac_ext
  21042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  21043. $as_echo "$use_pthreads" >&6; }
  21044. # Restore the compiler flags and libraries
  21045. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  21046. # Do futher testing if we have pthread support...
  21047. if test x$use_pthreads = xyes; then
  21048. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  21049. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  21050. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  21051. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  21052. # Save the original compiler flags and libraries
  21053. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  21054. # Add the pthread compiler flags and libraries
  21055. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  21056. # Check to see if recursive mutexes are available
  21057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  21058. $as_echo_n "checking for recursive mutexes... " >&6; }
  21059. has_recursive_mutexes=no
  21060. if test x$has_recursive_mutexes = xno; then
  21061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21062. /* end confdefs.h. */
  21063. #define _GNU_SOURCE 1
  21064. #include <pthread.h>
  21065. int
  21066. main ()
  21067. {
  21068. pthread_mutexattr_t attr;
  21069. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  21070. ;
  21071. return 0;
  21072. }
  21073. _ACEOF
  21074. if ac_fn_c_try_link "$LINENO"; then :
  21075. has_recursive_mutexes=yes
  21076. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  21077. fi
  21078. rm -f core conftest.err conftest.$ac_objext \
  21079. conftest$ac_exeext conftest.$ac_ext
  21080. fi
  21081. if test x$has_recursive_mutexes = xno; then
  21082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21083. /* end confdefs.h. */
  21084. #define _GNU_SOURCE 1
  21085. #include <pthread.h>
  21086. int
  21087. main ()
  21088. {
  21089. pthread_mutexattr_t attr;
  21090. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  21091. ;
  21092. return 0;
  21093. }
  21094. _ACEOF
  21095. if ac_fn_c_try_link "$LINENO"; then :
  21096. has_recursive_mutexes=yes
  21097. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  21098. fi
  21099. rm -f core conftest.err conftest.$ac_objext \
  21100. conftest$ac_exeext conftest.$ac_ext
  21101. fi
  21102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  21103. $as_echo "$has_recursive_mutexes" >&6; }
  21104. # Check to see if pthread semaphore support is missing
  21105. if test x$enable_pthread_sem = xyes; then
  21106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  21107. $as_echo_n "checking for pthread semaphores... " >&6; }
  21108. have_pthread_sem=no
  21109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21110. /* end confdefs.h. */
  21111. #include <pthread.h>
  21112. #include <semaphore.h>
  21113. int
  21114. main ()
  21115. {
  21116. ;
  21117. return 0;
  21118. }
  21119. _ACEOF
  21120. if ac_fn_c_try_compile "$LINENO"; then :
  21121. have_pthread_sem=yes
  21122. fi
  21123. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  21125. $as_echo "$have_pthread_sem" >&6; }
  21126. fi
  21127. if test x$have_pthread_sem = xyes; then
  21128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  21129. $as_echo_n "checking for sem_timedwait... " >&6; }
  21130. have_sem_timedwait=no
  21131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21132. /* end confdefs.h. */
  21133. #include <pthread.h>
  21134. #include <semaphore.h>
  21135. int
  21136. main ()
  21137. {
  21138. sem_timedwait(NULL, NULL);
  21139. ;
  21140. return 0;
  21141. }
  21142. _ACEOF
  21143. if ac_fn_c_try_link "$LINENO"; then :
  21144. have_sem_timedwait=yes
  21145. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  21146. fi
  21147. rm -f core conftest.err conftest.$ac_objext \
  21148. conftest$ac_exeext conftest.$ac_ext
  21149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  21150. $as_echo "$have_sem_timedwait" >&6; }
  21151. fi
  21152. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  21153. "
  21154. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  21155. have_pthread_np_h=yes
  21156. else
  21157. have_pthread_np_h=no
  21158. fi
  21159. if test x$have_pthread_np_h = xyes; then
  21160. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  21161. fi
  21162. # Check to see if pthread naming is available
  21163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  21164. $as_echo_n "checking for pthread_setname_np... " >&6; }
  21165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21166. /* end confdefs.h. */
  21167. /* Override any GCC internal prototype to avoid an error.
  21168. Use char because int might match the return type of a GCC
  21169. builtin and then its argument prototype would still apply. */
  21170. #ifdef __cplusplus
  21171. extern "C"
  21172. #endif
  21173. char pthread_setname_np ();
  21174. int
  21175. main ()
  21176. {
  21177. return pthread_setname_np ();
  21178. ;
  21179. return 0;
  21180. }
  21181. _ACEOF
  21182. if ac_fn_c_try_link "$LINENO"; then :
  21183. has_pthread_setname_np=yes
  21184. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  21185. else
  21186. has_pthread_setname_np=no
  21187. fi
  21188. rm -f core conftest.err conftest.$ac_objext \
  21189. conftest$ac_exeext conftest.$ac_ext
  21190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  21191. $as_echo "$has_pthread_setname_np" >&6; }
  21192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  21193. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  21194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21195. /* end confdefs.h. */
  21196. /* Override any GCC internal prototype to avoid an error.
  21197. Use char because int might match the return type of a GCC
  21198. builtin and then its argument prototype would still apply. */
  21199. #ifdef __cplusplus
  21200. extern "C"
  21201. #endif
  21202. char pthread_set_name_np ();
  21203. int
  21204. main ()
  21205. {
  21206. return pthread_set_name_np ();
  21207. ;
  21208. return 0;
  21209. }
  21210. _ACEOF
  21211. if ac_fn_c_try_link "$LINENO"; then :
  21212. has_pthread_set_name_np=yes
  21213. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  21214. else
  21215. has_pthread_set_name_np=no
  21216. fi
  21217. rm -f core conftest.err conftest.$ac_objext \
  21218. conftest$ac_exeext conftest.$ac_ext
  21219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  21220. $as_echo "$has_pthread_set_name_np" >&6; }
  21221. # Restore the compiler flags and libraries
  21222. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  21223. # Basic thread creation functions
  21224. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  21225. # Semaphores
  21226. # We can fake these with mutexes and condition variables if necessary
  21227. if test x$have_pthread_sem = xyes; then
  21228. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  21229. else
  21230. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  21231. fi
  21232. # Mutexes
  21233. # We can fake these with semaphores if necessary
  21234. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  21235. # Condition variables
  21236. # We can fake these with semaphores and mutexes if necessary
  21237. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  21238. # Thread local storage
  21239. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  21240. have_threads=yes
  21241. fi
  21242. fi
  21243. }
  21244. CheckWINDOWS()
  21245. {
  21246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  21247. $as_echo_n "checking Windows compiler... " >&6; }
  21248. have_win32_gcc=no
  21249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21250. /* end confdefs.h. */
  21251. #include <windows.h>
  21252. int
  21253. main ()
  21254. {
  21255. ;
  21256. return 0;
  21257. }
  21258. _ACEOF
  21259. if ac_fn_c_try_compile "$LINENO"; then :
  21260. have_win32_gcc=yes
  21261. fi
  21262. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  21264. $as_echo "$have_win32_gcc" >&6; }
  21265. if test x$have_win32_gcc != xyes; then
  21266. as_fn_error $? "
  21267. *** Your compiler ($CC) does not produce Windows executables!
  21268. " "$LINENO" 5
  21269. fi
  21270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  21271. $as_echo_n "checking Windows CE... " >&6; }
  21272. have_wince=no
  21273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21274. /* end confdefs.h. */
  21275. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  21276. #error This is not Windows CE
  21277. #endif
  21278. int
  21279. main ()
  21280. {
  21281. ;
  21282. return 0;
  21283. }
  21284. _ACEOF
  21285. if ac_fn_c_try_compile "$LINENO"; then :
  21286. have_wince=yes
  21287. as_fn_error $? "
  21288. *** Sorry, Windows CE is no longer supported.
  21289. " "$LINENO" 5
  21290. fi
  21291. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  21293. $as_echo "$have_wince" >&6; }
  21294. # This fixes Windows stack alignment with newer GCC
  21295. CheckStackBoundary
  21296. # headers needed elsewhere
  21297. ac_fn_c_check_header_mongrel "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  21298. if test "x$ac_cv_header_tpcshrd_h" = xyes; then :
  21299. have_tpcshrd_h=yes
  21300. fi
  21301. if test x$have_tpcshrd_h = xyes; then
  21302. $as_echo "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  21303. fi
  21304. ac_fn_c_check_header_mongrel "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  21305. if test "x$ac_cv_header_roapi_h" = xyes; then :
  21306. have_roapi_h=yes
  21307. fi
  21308. if test x$have_roapi_h = xyes; then
  21309. $as_echo "#define HAVE_ROAPI_H 1" >>confdefs.h
  21310. fi
  21311. }
  21312. CheckOS2()
  21313. {
  21314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  21315. $as_echo_n "checking OS/2 compiler... " >&6; }
  21316. have_os2_gcc=no
  21317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21318. /* end confdefs.h. */
  21319. #include <os2.h>
  21320. int
  21321. main ()
  21322. {
  21323. ;
  21324. return 0;
  21325. }
  21326. _ACEOF
  21327. if ac_fn_c_try_compile "$LINENO"; then :
  21328. have_os2_gcc=yes
  21329. fi
  21330. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  21332. $as_echo "$have_os2_gcc" >&6; }
  21333. if test x$have_os2_gcc != xyes; then
  21334. as_fn_error $? "
  21335. *** Your compiler ($CC) does not produce OS/2 executables!
  21336. " "$LINENO" 5
  21337. fi
  21338. }
  21339. CheckDIRECTX()
  21340. {
  21341. # Check whether --enable-directx was given.
  21342. if test "${enable_directx+set}" = set; then :
  21343. enableval=$enable_directx;
  21344. else
  21345. enable_directx=yes
  21346. fi
  21347. if test x$enable_directx = xyes; then
  21348. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  21349. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  21350. have_d3d=yes
  21351. fi
  21352. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  21353. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  21354. have_d3d11=yes
  21355. fi
  21356. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  21357. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  21358. have_ddraw=yes
  21359. fi
  21360. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  21361. if test "x$ac_cv_header_dsound_h" = xyes; then :
  21362. have_dsound=yes
  21363. fi
  21364. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  21365. if test "x$ac_cv_header_dinput_h" = xyes; then :
  21366. have_dinput=yes
  21367. fi
  21368. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  21369. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  21370. have_dxgi=yes
  21371. fi
  21372. if test x$have_ddraw = xyes; then
  21373. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  21374. fi
  21375. if test x$have_dinput = xyes; then
  21376. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  21377. fi
  21378. if test x$have_dsound = xyes; then
  21379. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  21380. fi
  21381. if test x$have_dxgi = xyes; then
  21382. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  21383. fi
  21384. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  21385. # FIXME: ...so force it off for now.
  21386. case "$host" in
  21387. *-*-cygwin*)
  21388. have_dinput=false
  21389. ;;
  21390. esac
  21391. fi
  21392. # Check whether --enable-xinput was given.
  21393. if test "${enable_xinput+set}" = set; then :
  21394. enableval=$enable_xinput;
  21395. else
  21396. enable_xinput=yes
  21397. fi
  21398. if test x$enable_xinput = xyes; then
  21399. have_xinput_gamepadex=no
  21400. have_xinput_stateex=no
  21401. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  21402. if test "x$ac_cv_header_xinput_h" = xyes; then :
  21403. have_xinput=yes
  21404. fi
  21405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  21406. $as_echo_n "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  21407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21408. /* end confdefs.h. */
  21409. #include <windows.h>
  21410. #include <xinput.h>
  21411. XINPUT_GAMEPAD_EX x1;
  21412. int
  21413. main ()
  21414. {
  21415. ;
  21416. return 0;
  21417. }
  21418. _ACEOF
  21419. if ac_fn_c_try_compile "$LINENO"; then :
  21420. have_xinput_gamepadex=yes
  21421. fi
  21422. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  21424. $as_echo "$have_xinput_gamepadex" >&6; }
  21425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  21426. $as_echo_n "checking for struct XINPUT_STATE_EX... " >&6; }
  21427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21428. /* end confdefs.h. */
  21429. #include <windows.h>
  21430. #include <xinput.h>
  21431. XINPUT_STATE_EX s1;
  21432. int
  21433. main ()
  21434. {
  21435. ;
  21436. return 0;
  21437. }
  21438. _ACEOF
  21439. if ac_fn_c_try_compile "$LINENO"; then :
  21440. have_xinput_stateex=yes
  21441. fi
  21442. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  21444. $as_echo "$have_xinput_stateex" >&6; }
  21445. if test x$have_xinput = xyes; then
  21446. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  21447. fi
  21448. if test x$have_xinput_gamepadex = xyes; then
  21449. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  21450. fi
  21451. if test x$have_xinput_stateex = xyes; then
  21452. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  21453. fi
  21454. fi
  21455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  21456. $as_echo_n "checking for windows.gaming.input.h... " >&6; }
  21457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21458. /* end confdefs.h. */
  21459. #define COBJMACROS
  21460. #include <windows.gaming.input.h>
  21461. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  21462. int
  21463. main ()
  21464. {
  21465. ;
  21466. return 0;
  21467. }
  21468. _ACEOF
  21469. if ac_fn_c_try_compile "$LINENO"; then :
  21470. have_wgi=yes
  21471. else
  21472. have_wgi=no
  21473. fi
  21474. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  21476. $as_echo "$have_wgi" >&6; }
  21477. if test x$have_wgi = xyes; then
  21478. $as_echo "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  21479. fi
  21480. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  21481. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  21482. have_wasapi=yes
  21483. fi
  21484. if test x$have_wasapi = xyes; then
  21485. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  21486. fi
  21487. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  21488. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  21489. else
  21490. have_wasapi=no
  21491. fi
  21492. if test x$have_wasapi = xyes; then
  21493. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  21494. fi
  21495. # Check whether --enable-wasapi was given.
  21496. if test "${enable_wasapi+set}" = set; then :
  21497. enableval=$enable_wasapi;
  21498. else
  21499. enable_wasapi=yes
  21500. fi
  21501. }
  21502. CheckDLOPEN()
  21503. {
  21504. $as_echo "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  21505. ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  21506. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  21507. have_dlfcn_h=yes
  21508. else
  21509. have_dlfcn_h=no
  21510. fi
  21511. have_dlopen=no
  21512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  21513. $as_echo_n "checking for dlopen in -lc... " >&6; }
  21514. if ${ac_cv_lib_c_dlopen+:} false; then :
  21515. $as_echo_n "(cached) " >&6
  21516. else
  21517. ac_check_lib_save_LIBS=$LIBS
  21518. LIBS="-lc $LIBS"
  21519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21520. /* end confdefs.h. */
  21521. /* Override any GCC internal prototype to avoid an error.
  21522. Use char because int might match the return type of a GCC
  21523. builtin and then its argument prototype would still apply. */
  21524. #ifdef __cplusplus
  21525. extern "C"
  21526. #endif
  21527. char dlopen ();
  21528. int
  21529. main ()
  21530. {
  21531. return dlopen ();
  21532. ;
  21533. return 0;
  21534. }
  21535. _ACEOF
  21536. if ac_fn_c_try_link "$LINENO"; then :
  21537. ac_cv_lib_c_dlopen=yes
  21538. else
  21539. ac_cv_lib_c_dlopen=no
  21540. fi
  21541. rm -f core conftest.err conftest.$ac_objext \
  21542. conftest$ac_exeext conftest.$ac_ext
  21543. LIBS=$ac_check_lib_save_LIBS
  21544. fi
  21545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  21546. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  21547. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  21548. have_dlopen=yes
  21549. else
  21550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  21551. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  21552. if ${ac_cv_lib_dl_dlopen+:} false; then :
  21553. $as_echo_n "(cached) " >&6
  21554. else
  21555. ac_check_lib_save_LIBS=$LIBS
  21556. LIBS="-ldl $LIBS"
  21557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21558. /* end confdefs.h. */
  21559. /* Override any GCC internal prototype to avoid an error.
  21560. Use char because int might match the return type of a GCC
  21561. builtin and then its argument prototype would still apply. */
  21562. #ifdef __cplusplus
  21563. extern "C"
  21564. #endif
  21565. char dlopen ();
  21566. int
  21567. main ()
  21568. {
  21569. return dlopen ();
  21570. ;
  21571. return 0;
  21572. }
  21573. _ACEOF
  21574. if ac_fn_c_try_link "$LINENO"; then :
  21575. ac_cv_lib_dl_dlopen=yes
  21576. else
  21577. ac_cv_lib_dl_dlopen=no
  21578. fi
  21579. rm -f core conftest.err conftest.$ac_objext \
  21580. conftest$ac_exeext conftest.$ac_ext
  21581. LIBS=$ac_check_lib_save_LIBS
  21582. fi
  21583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  21584. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  21585. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  21586. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  21587. fi
  21588. fi
  21589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  21590. $as_echo_n "checking for dlopen... " >&6; }
  21591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  21592. $as_echo "$have_dlopen" >&6; }
  21593. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  21594. $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
  21595. if test x$enable_loadso = xyes; then
  21596. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  21597. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  21598. have_loadso=yes
  21599. fi
  21600. fi
  21601. }
  21602. CheckO_CLOEXEC()
  21603. {
  21604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  21605. $as_echo_n "checking for O_CLOEXEC... " >&6; }
  21606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21607. /* end confdefs.h. */
  21608. #include <fcntl.h>
  21609. int flag = O_CLOEXEC;
  21610. int
  21611. main ()
  21612. {
  21613. ;
  21614. return 0;
  21615. }
  21616. _ACEOF
  21617. if ac_fn_c_try_compile "$LINENO"; then :
  21618. have_o_cloexec=yes
  21619. else
  21620. have_o_cloexec=no
  21621. fi
  21622. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  21624. $as_echo "$have_o_cloexec" >&6; }
  21625. if test $have_o_cloexec = yes; then
  21626. $as_echo "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  21627. fi
  21628. }
  21629. CheckUSBHID()
  21630. {
  21631. case "$host" in
  21632. *-*-*bsd*|*-*-dragonfly*)
  21633. if test x$enable_joystick = xyes; then
  21634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  21635. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  21636. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  21637. $as_echo_n "(cached) " >&6
  21638. else
  21639. ac_check_lib_save_LIBS=$LIBS
  21640. LIBS="-lusbhid $LIBS"
  21641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21642. /* end confdefs.h. */
  21643. /* Override any GCC internal prototype to avoid an error.
  21644. Use char because int might match the return type of a GCC
  21645. builtin and then its argument prototype would still apply. */
  21646. #ifdef __cplusplus
  21647. extern "C"
  21648. #endif
  21649. char hid_init ();
  21650. int
  21651. main ()
  21652. {
  21653. return hid_init ();
  21654. ;
  21655. return 0;
  21656. }
  21657. _ACEOF
  21658. if ac_fn_c_try_link "$LINENO"; then :
  21659. ac_cv_lib_usbhid_hid_init=yes
  21660. else
  21661. ac_cv_lib_usbhid_hid_init=no
  21662. fi
  21663. rm -f core conftest.err conftest.$ac_objext \
  21664. conftest$ac_exeext conftest.$ac_ext
  21665. LIBS=$ac_check_lib_save_LIBS
  21666. fi
  21667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  21668. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  21669. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  21670. have_libusbhid=yes
  21671. fi
  21672. if test x$have_libusbhid = xyes; then
  21673. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  21674. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  21675. USB_CFLAGS="-DHAVE_USBHID_H"
  21676. fi
  21677. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  21678. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  21679. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  21680. fi
  21681. USB_LIBS="$USB_LIBS -lusbhid"
  21682. else
  21683. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  21684. if test "x$ac_cv_header_usb_h" = xyes; then :
  21685. USB_CFLAGS="-DHAVE_USB_H"
  21686. fi
  21687. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  21688. if test "x$ac_cv_header_libusb_h" = xyes; then :
  21689. USB_CFLAGS="-DHAVE_LIBUSB_H"
  21690. fi
  21691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  21692. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  21693. if ${ac_cv_lib_usb_hid_init+:} false; then :
  21694. $as_echo_n "(cached) " >&6
  21695. else
  21696. ac_check_lib_save_LIBS=$LIBS
  21697. LIBS="-lusb $LIBS"
  21698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21699. /* end confdefs.h. */
  21700. /* Override any GCC internal prototype to avoid an error.
  21701. Use char because int might match the return type of a GCC
  21702. builtin and then its argument prototype would still apply. */
  21703. #ifdef __cplusplus
  21704. extern "C"
  21705. #endif
  21706. char hid_init ();
  21707. int
  21708. main ()
  21709. {
  21710. return hid_init ();
  21711. ;
  21712. return 0;
  21713. }
  21714. _ACEOF
  21715. if ac_fn_c_try_link "$LINENO"; then :
  21716. ac_cv_lib_usb_hid_init=yes
  21717. else
  21718. ac_cv_lib_usb_hid_init=no
  21719. fi
  21720. rm -f core conftest.err conftest.$ac_objext \
  21721. conftest$ac_exeext conftest.$ac_ext
  21722. LIBS=$ac_check_lib_save_LIBS
  21723. fi
  21724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  21725. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  21726. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  21727. USB_LIBS="$USB_LIBS -lusb"
  21728. fi
  21729. fi
  21730. save_CFLAGS="$CFLAGS"
  21731. CFLAGS="$CFLAGS $USB_CFLAGS"
  21732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  21733. $as_echo_n "checking for usbhid... " >&6; }
  21734. have_usbhid=no
  21735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21736. /* end confdefs.h. */
  21737. #include <sys/types.h>
  21738. #if defined(HAVE_USB_H)
  21739. #include <usb.h>
  21740. #endif
  21741. #ifdef __DragonFly__
  21742. # include <bus/u4b/usb.h>
  21743. # include <bus/u4b/usbhid.h>
  21744. #else
  21745. # include <dev/usb/usb.h>
  21746. # include <dev/usb/usbhid.h>
  21747. #endif
  21748. #if defined(HAVE_USBHID_H)
  21749. #include <usbhid.h>
  21750. #elif defined(HAVE_LIBUSB_H)
  21751. #include <libusb.h>
  21752. #elif defined(HAVE_LIBUSBHID_H)
  21753. #include <libusbhid.h>
  21754. #endif
  21755. int
  21756. main ()
  21757. {
  21758. struct report_desc *repdesc;
  21759. struct usb_ctl_report *repbuf;
  21760. hid_kind_t hidkind;
  21761. ;
  21762. return 0;
  21763. }
  21764. _ACEOF
  21765. if ac_fn_c_try_compile "$LINENO"; then :
  21766. have_usbhid=yes
  21767. fi
  21768. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  21770. $as_echo "$have_usbhid" >&6; }
  21771. if test x$have_usbhid = xyes; then
  21772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  21773. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  21774. have_usbhid_ucr_data=no
  21775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21776. /* end confdefs.h. */
  21777. #include <sys/types.h>
  21778. #if defined(HAVE_USB_H)
  21779. #include <usb.h>
  21780. #endif
  21781. #ifdef __DragonFly__
  21782. # include <bus/u4b/usb.h>
  21783. # include <bus/u4b/usbhid.h>
  21784. #else
  21785. # include <dev/usb/usb.h>
  21786. # include <dev/usb/usbhid.h>
  21787. #endif
  21788. #if defined(HAVE_USBHID_H)
  21789. #include <usbhid.h>
  21790. #elif defined(HAVE_LIBUSB_H)
  21791. #include <libusb.h>
  21792. #elif defined(HAVE_LIBUSBHID_H)
  21793. #include <libusbhid.h>
  21794. #endif
  21795. int
  21796. main ()
  21797. {
  21798. struct usb_ctl_report buf;
  21799. if (buf.ucr_data) { }
  21800. ;
  21801. return 0;
  21802. }
  21803. _ACEOF
  21804. if ac_fn_c_try_compile "$LINENO"; then :
  21805. have_usbhid_ucr_data=yes
  21806. fi
  21807. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21808. if test x$have_usbhid_ucr_data = xyes; then
  21809. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  21810. fi
  21811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  21812. $as_echo "$have_usbhid_ucr_data" >&6; }
  21813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  21814. $as_echo_n "checking for new usbhid API... " >&6; }
  21815. have_usbhid_new=no
  21816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21817. /* end confdefs.h. */
  21818. #include <sys/types.h>
  21819. #if defined(HAVE_USB_H)
  21820. #include <usb.h>
  21821. #endif
  21822. #ifdef __DragonFly__
  21823. #include <bus/u4b/usb.h>
  21824. #include <bus/u4b/usbhid.h>
  21825. #else
  21826. #include <dev/usb/usb.h>
  21827. #include <dev/usb/usbhid.h>
  21828. #endif
  21829. #if defined(HAVE_USBHID_H)
  21830. #include <usbhid.h>
  21831. #elif defined(HAVE_LIBUSB_H)
  21832. #include <libusb.h>
  21833. #elif defined(HAVE_LIBUSBHID_H)
  21834. #include <libusbhid.h>
  21835. #endif
  21836. int
  21837. main ()
  21838. {
  21839. report_desc_t d;
  21840. hid_start_parse(d, 1, 1);
  21841. ;
  21842. return 0;
  21843. }
  21844. _ACEOF
  21845. if ac_fn_c_try_compile "$LINENO"; then :
  21846. have_usbhid_new=yes
  21847. fi
  21848. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21849. if test x$have_usbhid_new = xyes; then
  21850. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  21851. fi
  21852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  21853. $as_echo "$have_usbhid_new" >&6; }
  21854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  21855. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  21856. have_machine_joystick=no
  21857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21858. /* end confdefs.h. */
  21859. #include <machine/joystick.h>
  21860. int
  21861. main ()
  21862. {
  21863. struct joystick t;
  21864. ;
  21865. return 0;
  21866. }
  21867. _ACEOF
  21868. if ac_fn_c_try_compile "$LINENO"; then :
  21869. have_machine_joystick=yes
  21870. fi
  21871. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21872. if test x$have_machine_joystick = xyes; then
  21873. $as_echo "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  21874. fi
  21875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  21876. $as_echo "$have_machine_joystick" >&6; }
  21877. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  21878. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  21879. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  21880. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  21881. have_joystick=yes
  21882. fi
  21883. CFLAGS="$save_CFLAGS"
  21884. fi
  21885. ;;
  21886. esac
  21887. }
  21888. CheckHIDAPI()
  21889. {
  21890. # Check whether --enable-hidapi-joystick was given.
  21891. if test "${enable_hidapi_joystick+set}" = set; then :
  21892. enableval=$enable_hidapi_joystick;
  21893. else
  21894. enable_hidapi_joystick=yes
  21895. fi
  21896. # Check whether --enable-hidapi-libusb was given.
  21897. if test "${enable_hidapi_libusb+set}" = set; then :
  21898. enableval=$enable_hidapi_libusb;
  21899. else
  21900. enable_hidapi_libusb=maybe
  21901. fi
  21902. if test x$enable_hidapi = xyes; then
  21903. case "$host" in
  21904. # libusb does not support iOS
  21905. *-ios-* )
  21906. enable_hidapi_libusb=no
  21907. ;;
  21908. # On the other hand, *BSD specifically uses libusb only
  21909. *-*-*bsd* )
  21910. enable_hidapi_libusb=yes
  21911. require_hidapi_libusb=yes
  21912. ;;
  21913. *-*-os2* )
  21914. enable_hidapi_libusb=yes
  21915. ;;
  21916. esac
  21917. hidapi_support=yes
  21918. if test x$enable_hidapi_libusb = xyes; then
  21919. pkg_failed=no
  21920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  21921. $as_echo_n "checking for libusb-1.0... " >&6; }
  21922. if test -n "$LIBUSB_CFLAGS"; then
  21923. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  21924. elif test -n "$PKG_CONFIG"; then
  21925. if test -n "$PKG_CONFIG" && \
  21926. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21927. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21928. ac_status=$?
  21929. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21930. test $ac_status = 0; }; then
  21931. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  21932. test "x$?" != "x0" && pkg_failed=yes
  21933. else
  21934. pkg_failed=yes
  21935. fi
  21936. else
  21937. pkg_failed=untried
  21938. fi
  21939. if test -n "$LIBUSB_LIBS"; then
  21940. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  21941. elif test -n "$PKG_CONFIG"; then
  21942. if test -n "$PKG_CONFIG" && \
  21943. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21944. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21945. ac_status=$?
  21946. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21947. test $ac_status = 0; }; then
  21948. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  21949. test "x$?" != "x0" && pkg_failed=yes
  21950. else
  21951. pkg_failed=yes
  21952. fi
  21953. else
  21954. pkg_failed=untried
  21955. fi
  21956. if test $pkg_failed = yes; then
  21957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21958. $as_echo "no" >&6; }
  21959. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21960. _pkg_short_errors_supported=yes
  21961. else
  21962. _pkg_short_errors_supported=no
  21963. fi
  21964. if test $_pkg_short_errors_supported = yes; then
  21965. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21966. else
  21967. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21968. fi
  21969. # Put the nasty error message in config.log where it belongs
  21970. echo "$LIBUSB_PKG_ERRORS" >&5
  21971. have_libusb=no
  21972. elif test $pkg_failed = untried; then
  21973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21974. $as_echo "no" >&6; }
  21975. have_libusb=no
  21976. else
  21977. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  21978. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  21979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21980. $as_echo "yes" >&6; }
  21981. have_libusb=yes
  21982. fi
  21983. save_CPPFLAGS="$CPPFLAGS"
  21984. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  21985. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  21986. if test "x$ac_cv_header_libusb_h" = xyes; then :
  21987. have_libusb_h=yes
  21988. else
  21989. have_libusb_h=no
  21990. fi
  21991. CPPFLAGS="$save_CPPFLAGS"
  21992. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  21993. hidapi_support=no
  21994. fi
  21995. fi
  21996. if test x$hidapi_support = xyes; then
  21997. if test x$have_libusb_h = xyes; then
  21998. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  21999. if test x$require_hidapi_libusb = xyes; then
  22000. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  22001. else
  22002. if test x$have_loadso != xyes; then
  22003. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  22004. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  22005. fi
  22006. # libusb is loaded dynamically, so don't add it to LDFLAGS
  22007. libusb_lib=""
  22008. case "$host" in
  22009. *-*-darwin* )
  22010. libusb_lib="libusb-1.0.0.dylib"
  22011. ;;
  22012. *-*-cygwin* | *-*-mingw* )
  22013. libusb_lib="libusb-1.0.dll"
  22014. ;;
  22015. *-*-os2* )
  22016. libusb_lib="usb100.dll"
  22017. ;;
  22018. esac
  22019. if test x$libusb_lib = x; then
  22020. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  22021. fi
  22022. cat >>confdefs.h <<_ACEOF
  22023. #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
  22024. _ACEOF
  22025. fi
  22026. fi
  22027. fi
  22028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  22029. $as_echo_n "checking for hidapi joystick support... " >&6; }
  22030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  22031. $as_echo "$hidapi_support" >&6; }
  22032. fi
  22033. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  22034. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  22035. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  22036. fi
  22037. }
  22038. CheckClockGettime()
  22039. {
  22040. # Check whether --enable-clock_gettime was given.
  22041. if test "${enable_clock_gettime+set}" = set; then :
  22042. enableval=$enable_clock_gettime;
  22043. else
  22044. enable_clock_gettime=yes
  22045. fi
  22046. if test x$enable_clock_gettime = xyes; then
  22047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  22048. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  22049. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  22050. $as_echo_n "(cached) " >&6
  22051. else
  22052. ac_check_lib_save_LIBS=$LIBS
  22053. LIBS="-lrt $LIBS"
  22054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22055. /* end confdefs.h. */
  22056. /* Override any GCC internal prototype to avoid an error.
  22057. Use char because int might match the return type of a GCC
  22058. builtin and then its argument prototype would still apply. */
  22059. #ifdef __cplusplus
  22060. extern "C"
  22061. #endif
  22062. char clock_gettime ();
  22063. int
  22064. main ()
  22065. {
  22066. return clock_gettime ();
  22067. ;
  22068. return 0;
  22069. }
  22070. _ACEOF
  22071. if ac_fn_c_try_link "$LINENO"; then :
  22072. ac_cv_lib_rt_clock_gettime=yes
  22073. else
  22074. ac_cv_lib_rt_clock_gettime=no
  22075. fi
  22076. rm -f core conftest.err conftest.$ac_objext \
  22077. conftest$ac_exeext conftest.$ac_ext
  22078. LIBS=$ac_check_lib_save_LIBS
  22079. fi
  22080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  22081. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  22082. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  22083. have_clock_gettime=yes
  22084. fi
  22085. if test x$have_clock_gettime = xyes; then
  22086. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  22087. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  22088. else
  22089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  22090. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  22091. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  22092. $as_echo_n "(cached) " >&6
  22093. else
  22094. ac_check_lib_save_LIBS=$LIBS
  22095. LIBS="-lc $LIBS"
  22096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22097. /* end confdefs.h. */
  22098. /* Override any GCC internal prototype to avoid an error.
  22099. Use char because int might match the return type of a GCC
  22100. builtin and then its argument prototype would still apply. */
  22101. #ifdef __cplusplus
  22102. extern "C"
  22103. #endif
  22104. char clock_gettime ();
  22105. int
  22106. main ()
  22107. {
  22108. return clock_gettime ();
  22109. ;
  22110. return 0;
  22111. }
  22112. _ACEOF
  22113. if ac_fn_c_try_link "$LINENO"; then :
  22114. ac_cv_lib_c_clock_gettime=yes
  22115. else
  22116. ac_cv_lib_c_clock_gettime=no
  22117. fi
  22118. rm -f core conftest.err conftest.$ac_objext \
  22119. conftest$ac_exeext conftest.$ac_ext
  22120. LIBS=$ac_check_lib_save_LIBS
  22121. fi
  22122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  22123. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  22124. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  22125. have_clock_gettime=yes
  22126. fi
  22127. if test x$have_clock_gettime = xyes; then
  22128. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  22129. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  22130. fi
  22131. fi
  22132. fi
  22133. }
  22134. CheckLinuxVersion()
  22135. {
  22136. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  22137. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  22138. have_linux_version_h=yes
  22139. fi
  22140. if test x$have_linux_version_h = xyes; then
  22141. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  22142. fi
  22143. }
  22144. CheckRPATH()
  22145. {
  22146. # Check whether --enable-rpath was given.
  22147. if test "${enable_rpath+set}" = set; then :
  22148. enableval=$enable_rpath;
  22149. else
  22150. enable_rpath=yes
  22151. fi
  22152. }
  22153. CheckEventSignals()
  22154. {
  22155. # Check whether --enable-backgrounding-signal was given.
  22156. if test "${enable_backgrounding_signal+set}" = set; then :
  22157. enableval=$enable_backgrounding_signal;
  22158. else
  22159. enable_backgrounding_signal=no
  22160. fi
  22161. if test x$enable_backgrounding_signal != xno; then
  22162. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  22163. fi
  22164. # Check whether --enable-foregrounding-signal was given.
  22165. if test "${enable_foregrounding_signal+set}" = set; then :
  22166. enableval=$enable_foregrounding_signal;
  22167. else
  22168. enable_foregrounding_signal=no
  22169. fi
  22170. if test x$enable_foregrounding_signal != xno; then
  22171. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  22172. fi
  22173. }
  22174. CheckVirtualJoystick()
  22175. {
  22176. # Check whether --enable-joystick-virtual was given.
  22177. if test "${enable_joystick_virtual+set}" = set; then :
  22178. enableval=$enable_joystick_virtual;
  22179. else
  22180. enable_joystick_virtual=yes
  22181. fi
  22182. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  22183. $as_echo "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  22184. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  22185. have_joystick_virtual=yes
  22186. fi
  22187. }
  22188. CheckWarnAll
  22189. CheckNoStrictAliasing
  22190. CheckEventSignals
  22191. have_locale=no
  22192. case "$host" in
  22193. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  22194. case "$host" in
  22195. *-*-android*)
  22196. # Android
  22197. ARCH=android
  22198. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  22199. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  22200. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  22201. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  22202. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  22203. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  22204. if test x$enable_video = xyes; then
  22205. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  22206. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  22207. SUMMARY_video="${SUMMARY_video} android"
  22208. have_video=yes
  22209. fi
  22210. ;;
  22211. *-*-linux*) ARCH=linux ;;
  22212. *-*-uclinux*) ARCH=linux ;;
  22213. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  22214. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  22215. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  22216. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  22217. *-*-bsdi*) ARCH=bsdi ;;
  22218. *-*-freebsd*) ARCH=freebsd ;;
  22219. *-*-dragonfly*) ARCH=freebsd ;;
  22220. *-*-netbsd*) ARCH=netbsd ;;
  22221. *-*-openbsd*) ARCH=openbsd ;;
  22222. *-*-sysv5*) ARCH=sysv5 ;;
  22223. *-*-solaris*) ARCH=solaris ;;
  22224. *-*-hpux*) ARCH=hpux ;;
  22225. *-*-aix*) ARCH=aix ;;
  22226. *-*-minix*) ARCH=minix ;;
  22227. *-*-nto*) ARCH=nto
  22228. CheckQNXVideo
  22229. ;;
  22230. esac
  22231. CheckVisibilityHidden
  22232. CheckDeclarationAfterStatement
  22233. CheckDummyVideo
  22234. CheckOffscreenVideo
  22235. CheckDiskAudio
  22236. CheckDummyAudio
  22237. CheckDLOPEN
  22238. CheckARM
  22239. CheckNEON
  22240. CheckO_CLOEXEC
  22241. CheckOSS
  22242. CheckALSA
  22243. CheckPipewire
  22244. CheckPulseAudio
  22245. CheckJACK
  22246. CheckARTSC
  22247. CheckESD
  22248. CheckNAS
  22249. CheckSNDIO
  22250. CheckFusionSound
  22251. CheckLibSampleRate
  22252. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  22253. CheckRPI
  22254. CheckX11
  22255. CheckDirectFB
  22256. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  22257. CheckEGL
  22258. CheckKMSDRM
  22259. CheckGLX
  22260. CheckOpenGL
  22261. CheckOpenGLES
  22262. CheckVulkan
  22263. CheckWayland
  22264. CheckInputEvents
  22265. CheckLibUDev
  22266. CheckDBus
  22267. CheckIME
  22268. CheckInotify
  22269. CheckIBus
  22270. CheckFcitx
  22271. case $ARCH in
  22272. linux)
  22273. CheckInputKD
  22274. ;;
  22275. freebsd)
  22276. CheckInputKBIO
  22277. ;;
  22278. openbsd|netbsd)
  22279. CheckInputWSCONS
  22280. ;;
  22281. esac
  22282. CheckUSBHID
  22283. CheckHIDAPI
  22284. CheckPTHREAD
  22285. CheckClockGettime
  22286. CheckLinuxVersion
  22287. CheckRPATH
  22288. CheckVivanteVideo
  22289. # Set up files for the misc library
  22290. if test x$enable_misc = xyes; then
  22291. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  22292. have_misc=yes
  22293. fi
  22294. # Set up files for the locale library
  22295. if test x$enable_locale = xyes; then
  22296. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  22297. have_locale=yes
  22298. fi
  22299. # Set up files for the audio library
  22300. if test x$enable_audio = xyes; then
  22301. case $ARCH in
  22302. sysv5|solaris|hpux)
  22303. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  22304. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  22305. SUMMARY_audio="${SUMMARY_audio} sun"
  22306. have_audio=yes
  22307. ;;
  22308. netbsd) # Don't use this on OpenBSD, it's busted.
  22309. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  22310. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  22311. SUMMARY_audio="${SUMMARY_audio} netbsd"
  22312. have_audio=yes
  22313. ;;
  22314. aix)
  22315. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  22316. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  22317. SUMMARY_audio="${SUMMARY_audio} paudio"
  22318. have_audio=yes
  22319. ;;
  22320. android)
  22321. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  22322. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  22323. SUMMARY_audio="${SUMMARY_audio} android"
  22324. $as_echo "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  22325. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  22326. SUMMARY_audio="${SUMMARY_audio} openslES"
  22327. $as_echo "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  22328. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  22329. SUMMARY_audio="${SUMMARY_audio} aaudio"
  22330. have_audio=yes
  22331. ;;
  22332. nto)
  22333. CheckQNXAudio
  22334. ;;
  22335. esac
  22336. fi
  22337. # Set up files for the joystick library
  22338. if test x$enable_joystick = xyes; then
  22339. case $ARCH in
  22340. linux)
  22341. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  22342. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  22343. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22344. have_joystick=yes
  22345. ;;
  22346. freebsd)
  22347. if test x$use_input_events = xyes; then
  22348. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  22349. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  22350. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22351. have_joystick=yes
  22352. fi
  22353. ;;
  22354. android)
  22355. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  22356. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  22357. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22358. have_joystick=yes
  22359. ;;
  22360. esac
  22361. fi
  22362. # Set up files for the haptic library
  22363. if test x$enable_haptic = xyes; then
  22364. case $ARCH in
  22365. linux|freebsd)
  22366. if test x$use_input_events = xyes; then
  22367. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  22368. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  22369. have_haptic=yes
  22370. fi
  22371. ;;
  22372. android)
  22373. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  22374. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  22375. have_haptic=yes
  22376. ;;
  22377. esac
  22378. fi
  22379. # Set up files for the sensor library
  22380. if test x$enable_sensor = xyes; then
  22381. case $ARCH in
  22382. android)
  22383. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  22384. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  22385. have_sensor=yes
  22386. ;;
  22387. esac
  22388. fi
  22389. # Set up files for the power library
  22390. if test x$enable_power = xyes; then
  22391. case $ARCH in
  22392. linux)
  22393. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  22394. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  22395. have_power=yes
  22396. ;;
  22397. android)
  22398. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  22399. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  22400. have_power=yes
  22401. ;;
  22402. esac
  22403. fi
  22404. # Set up files for the filesystem library
  22405. if test x$enable_filesystem = xyes; then
  22406. case $ARCH in
  22407. android)
  22408. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  22409. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  22410. have_filesystem=yes
  22411. ;;
  22412. *)
  22413. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  22414. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  22415. have_filesystem=yes
  22416. ;;
  22417. esac
  22418. fi
  22419. # Set up files for the timer library
  22420. if test x$enable_timers = xyes; then
  22421. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22422. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22423. have_timers=yes
  22424. fi
  22425. # Set up files for udev hotplugging support
  22426. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  22427. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  22428. fi
  22429. # Set up files for evdev input
  22430. if test x$use_input_events = xyes; then
  22431. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  22432. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  22433. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  22434. fi
  22435. # Set up files for wscons input
  22436. if test x$use_input_wscons = xyes; then
  22437. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  22438. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  22439. fi
  22440. # Set up other core UNIX files
  22441. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  22442. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  22443. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22444. ;;
  22445. *-*-cygwin* | *-*-mingw*)
  22446. ARCH=win32
  22447. if test "$build" != "$host"; then # cross-compiling
  22448. # Default cross-compile location
  22449. ac_default_prefix=/usr/local/cross-tools/$host
  22450. else
  22451. # Look for the location of the tools and install there
  22452. if test "$BUILD_PREFIX" != ""; then
  22453. ac_default_prefix=$BUILD_PREFIX
  22454. fi
  22455. fi
  22456. if test x$enable_loadso = xyes; then
  22457. have_loadso=yes
  22458. fi
  22459. CheckDeclarationAfterStatement
  22460. CheckDummyVideo
  22461. CheckOffscreenVideo
  22462. CheckDiskAudio
  22463. CheckDummyAudio
  22464. CheckWINDOWS
  22465. CheckWINDOWSGL
  22466. CheckWINDOWSGLES
  22467. CheckVulkan
  22468. CheckDIRECTX
  22469. CheckHIDAPI
  22470. # Set up the core platform files
  22471. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  22472. # Set up files for the misc library
  22473. if test x$enable_misc = xyes; then
  22474. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  22475. have_misc=yes
  22476. fi
  22477. # Use the Windows locale APIs.
  22478. if test x$enable_locale = xyes; then
  22479. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  22480. have_locale=yes
  22481. fi
  22482. # Set up files for the video library
  22483. if test x$enable_video = xyes; then
  22484. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  22485. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  22486. have_video=yes
  22487. # Check whether --enable-render-d3d was given.
  22488. if test "${enable_render_d3d+set}" = set; then :
  22489. enableval=$enable_render_d3d;
  22490. else
  22491. enable_render_d3d=yes
  22492. fi
  22493. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  22494. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  22495. SUMMARY_video="${SUMMARY_video} d3d9"
  22496. fi
  22497. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  22498. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  22499. SUMMARY_video="${SUMMARY_video} d3d11"
  22500. fi
  22501. fi
  22502. # Set up files for the audio library
  22503. if test x$enable_audio = xyes; then
  22504. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  22505. SUMMARY_audio="${SUMMARY_audio} winmm"
  22506. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  22507. if test x$have_dsound = xyes; then
  22508. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  22509. SUMMARY_audio="${SUMMARY_audio} directsound"
  22510. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  22511. fi
  22512. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  22513. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  22514. SUMMARY_audio="${SUMMARY_audio} wasapi"
  22515. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  22516. fi
  22517. have_audio=yes
  22518. fi
  22519. # Set up files for the joystick library
  22520. if test x$enable_joystick = xyes; then
  22521. $as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  22522. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  22523. if test x$have_xinput = xyes; then
  22524. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  22525. fi
  22526. if test x$have_wgi = xyes; then
  22527. $as_echo "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  22528. fi
  22529. if test x$have_dinput = xyes; then
  22530. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  22531. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  22532. fi
  22533. fi
  22534. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  22535. have_joystick=yes
  22536. fi
  22537. if test x$enable_haptic = xyes; then
  22538. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  22539. if test x$have_xinput = xyes; then
  22540. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  22541. fi
  22542. if test x$have_dinput = xyes; then
  22543. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  22544. fi
  22545. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  22546. have_haptic=yes
  22547. fi
  22548. fi
  22549. # Set up files for the sensor library
  22550. ac_fn_c_check_header_mongrel "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  22551. if test "x$ac_cv_header_sensorsapi_h" = xyes; then :
  22552. have_winsensors=yes
  22553. else
  22554. have_winsensors=no
  22555. fi
  22556. if test x$have_winsensors = xyes; then
  22557. $as_echo "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  22558. fi
  22559. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  22560. $as_echo "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  22561. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  22562. have_sensor=yes
  22563. fi
  22564. # Set up files for the power library
  22565. if test x$enable_power = xyes; then
  22566. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  22567. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  22568. have_power=yes
  22569. fi
  22570. # Set up files for the filesystem library
  22571. if test x$enable_filesystem = xyes; then
  22572. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  22573. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  22574. have_filesystem=yes
  22575. fi
  22576. # Set up files for the thread library
  22577. if test x$enable_threads = xyes; then
  22578. $as_echo "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  22579. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  22580. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  22581. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  22582. have_threads=yes
  22583. fi
  22584. # Set up files for the timer library
  22585. if test x$enable_timers = xyes; then
  22586. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  22587. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  22588. have_timers=yes
  22589. fi
  22590. # Set up files for the shared object loading library
  22591. if test x$enable_loadso = xyes; then
  22592. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  22593. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  22594. fi
  22595. # Set up the system libraries we need
  22596. if test -f /lib/w32api/libuuid.a; then
  22597. LIBUUID=/lib/w32api/libuuid.a
  22598. else
  22599. LIBUUID=-luuid
  22600. fi
  22601. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  22602. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  22603. # The Windows platform requires special setup
  22604. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  22605. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  22606. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  22607. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  22608. # Check to see if this is a mingw or cygwin build
  22609. have_mingw32=
  22610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  22611. $as_echo_n "checking for main in -lmingw32... " >&6; }
  22612. if ${ac_cv_lib_mingw32_main+:} false; then :
  22613. $as_echo_n "(cached) " >&6
  22614. else
  22615. ac_check_lib_save_LIBS=$LIBS
  22616. LIBS="-lmingw32 $LIBS"
  22617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22618. /* end confdefs.h. */
  22619. int
  22620. main ()
  22621. {
  22622. return main ();
  22623. ;
  22624. return 0;
  22625. }
  22626. _ACEOF
  22627. if ac_fn_c_try_link "$LINENO"; then :
  22628. ac_cv_lib_mingw32_main=yes
  22629. else
  22630. ac_cv_lib_mingw32_main=no
  22631. fi
  22632. rm -f core conftest.err conftest.$ac_objext \
  22633. conftest$ac_exeext conftest.$ac_ext
  22634. LIBS=$ac_check_lib_save_LIBS
  22635. fi
  22636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  22637. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  22638. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  22639. have_mingw32=yes
  22640. fi
  22641. if test x$have_mingw32 = xyes; then
  22642. SDL_LIBS="-lmingw32 $SDL_LIBS"
  22643. else
  22644. SDL_LIBS="-lcygwin $SDL_LIBS"
  22645. fi
  22646. ;;
  22647. *-*-beos*)
  22648. as_fn_error $? "
  22649. *** BeOS support has been removed as of SDL 2.0.2.
  22650. " "$LINENO" 5
  22651. ;;
  22652. *-*-haiku*)
  22653. ARCH=haiku
  22654. ac_default_prefix=/boot/system
  22655. CheckDummyVideo
  22656. CheckOffscreenVideo
  22657. CheckDiskAudio
  22658. CheckDummyAudio
  22659. CheckDLOPEN
  22660. CheckO_CLOEXEC
  22661. CheckHaikuVideo
  22662. CheckHaikuGL
  22663. CheckPTHREAD
  22664. # Set up files for the audio library
  22665. if test x$enable_audio = xyes; then
  22666. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  22667. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  22668. SUMMARY_audio="${SUMMARY_audio} haiku"
  22669. have_audio=yes
  22670. fi
  22671. # Set up files for the joystick library
  22672. if test x$enable_joystick = xyes; then
  22673. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  22674. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  22675. have_joystick=yes
  22676. fi
  22677. # Set up files for the timer library
  22678. if test x$enable_timers = xyes; then
  22679. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  22680. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  22681. have_timers=yes
  22682. fi
  22683. # Set up files for the system power library
  22684. if test x$enable_power = xyes; then
  22685. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  22686. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  22687. have_power=yes
  22688. fi
  22689. # Set up files for the system filesystem library
  22690. if test x$enable_filesystem = xyes; then
  22691. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  22692. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  22693. have_filesystem=yes
  22694. fi
  22695. # Set up files for the misc library
  22696. if test x$enable_misc = xyes; then
  22697. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  22698. have_misc=yes
  22699. fi
  22700. # Set up files for the locale library
  22701. if test x$enable_locale = xyes; then
  22702. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  22703. have_locale=yes
  22704. fi
  22705. # The Haiku platform requires special setup.
  22706. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  22707. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  22708. ;;
  22709. *-ios-*)
  22710. ARCH=ios
  22711. CheckVisibilityHidden
  22712. CheckDeclarationAfterStatement
  22713. CheckDummyVideo
  22714. CheckOffscreenVideo
  22715. CheckDiskAudio
  22716. CheckDummyAudio
  22717. CheckDLOPEN
  22718. CheckO_CLOEXEC
  22719. CheckMETAL
  22720. CheckVulkan
  22721. CheckPTHREAD
  22722. # Set up files for the misc library
  22723. if test x$enable_misc = xyes; then
  22724. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  22725. have_misc=yes
  22726. fi
  22727. # Set up files for the locale library
  22728. if test x$enable_locale = xyes; then
  22729. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  22730. have_locale=yes
  22731. fi
  22732. # Set up files for the audio library
  22733. if test x$enable_audio = xyes; then
  22734. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  22735. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  22736. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  22737. have_audio=yes
  22738. fi
  22739. # Set up files for the joystick library
  22740. if test x$enable_joystick = xyes; then
  22741. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  22742. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22743. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  22744. have_joystick=yes
  22745. else
  22746. # Need this code for accelerometer as joystick support
  22747. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22748. fi
  22749. # Set up files for the haptic library
  22750. #if test x$enable_haptic = xyes; then
  22751. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  22752. # have_haptic=yes
  22753. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  22754. #fi
  22755. # Set up files for the sensor library
  22756. if test x$enable_sensor = xyes; then
  22757. $as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  22758. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  22759. have_sensor=yes
  22760. fi
  22761. # Set up files for the power library
  22762. if test x$enable_power = xyes; then
  22763. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  22764. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  22765. have_power=yes
  22766. fi
  22767. # Set up files for the filesystem library
  22768. if test x$enable_filesystem = xyes; then
  22769. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  22770. have_filesystem=yes
  22771. fi
  22772. # Set up additional files for the file library
  22773. if test x$enable_file = xyes; then
  22774. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  22775. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  22776. fi
  22777. # Set up files for the timer library
  22778. if test x$enable_timers = xyes; then
  22779. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22780. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22781. have_timers=yes
  22782. fi
  22783. # Set up other core UNIX files
  22784. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22785. # The iOS platform requires special setup.
  22786. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  22787. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22788. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22789. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22790. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22791. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  22792. SUMMARY_video="${SUMMARY_video} uikit"
  22793. have_video=yes
  22794. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  22795. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  22796. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  22797. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  22798. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  22799. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  22800. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  22801. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  22802. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  22803. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  22804. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  22805. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  22806. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  22807. fi
  22808. ;;
  22809. *-*-darwin* )
  22810. # This could be either full "Mac OS X", or plain "Darwin" which is
  22811. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  22812. # Next line is broken, and a few files below require Mac OS X (full)
  22813. ARCH=macosx
  22814. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  22815. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  22816. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  22817. CheckVisibilityHidden
  22818. CheckDeclarationAfterStatement
  22819. CheckDummyVideo
  22820. CheckOffscreenVideo
  22821. CheckDiskAudio
  22822. CheckDummyAudio
  22823. CheckDLOPEN
  22824. CheckO_CLOEXEC
  22825. CheckCOCOA
  22826. CheckMETAL
  22827. CheckX11
  22828. CheckMacGL
  22829. CheckMacGLES
  22830. CheckGLX
  22831. CheckOpenGL
  22832. CheckVulkan
  22833. CheckPTHREAD
  22834. CheckHIDAPI
  22835. # Set up files for the misc library
  22836. if test x$enable_misc = xyes; then
  22837. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  22838. have_misc=yes
  22839. fi
  22840. # Set up files for the locale library
  22841. if test x$enable_locale = xyes; then
  22842. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  22843. have_locale=yes
  22844. fi
  22845. # Set up files for the audio library
  22846. if test x$enable_audio = xyes; then
  22847. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  22848. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  22849. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  22850. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  22851. have_audio=yes
  22852. fi
  22853. # Set up files for the joystick library
  22854. if test x$enable_joystick = xyes; then
  22855. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  22856. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  22857. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  22858. CheckJoystickMFI
  22859. have_joystick=yes
  22860. fi
  22861. # Set up files for the haptic library
  22862. if test x$enable_haptic = xyes; then
  22863. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  22864. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  22865. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  22866. have_haptic=yes
  22867. fi
  22868. # Set up files for the power library
  22869. if test x$enable_power = xyes; then
  22870. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  22871. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  22872. have_power=yes
  22873. fi
  22874. # Set up files for the filesystem library
  22875. if test x$enable_filesystem = xyes; then
  22876. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  22877. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  22878. have_filesystem=yes
  22879. fi
  22880. # Set up files for the timer library
  22881. if test x$enable_timers = xyes; then
  22882. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22883. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22884. have_timers=yes
  22885. fi
  22886. # Set up additional files for the file library
  22887. if test x$enable_file = xyes; then
  22888. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  22889. fi
  22890. # Set up other core UNIX files
  22891. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  22892. # The Mac OS X platform requires special setup.
  22893. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  22894. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  22895. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  22896. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  22897. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  22898. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  22899. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  22900. fi
  22901. ;;
  22902. *-nacl|*-pnacl)
  22903. ARCH=nacl
  22904. CheckNativeClient
  22905. CheckDummyAudio
  22906. CheckDummyVideo
  22907. CheckOffscreenVideo
  22908. CheckInputEvents
  22909. CheckPTHREAD
  22910. CheckO_CLOEXEC
  22911. # Set up files for the timer library
  22912. if test x$enable_timers = xyes; then
  22913. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22914. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22915. have_timers=yes
  22916. fi
  22917. if test x$enable_filesystem = xyes; then
  22918. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  22919. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  22920. have_filesystem=yes
  22921. fi
  22922. ;;
  22923. *-*-emscripten* )
  22924. if test x$enable_video = xyes; then
  22925. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  22926. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  22927. have_video=yes
  22928. SUMMARY_video="${SUMMARY_video} emscripten"
  22929. fi
  22930. if test x$enable_audio = xyes; then
  22931. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  22932. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  22933. have_audio=yes
  22934. SUMMARY_audio="${SUMMARY_audio} emscripten"
  22935. fi
  22936. CheckVisibilityHidden
  22937. CheckDeclarationAfterStatement
  22938. CheckDummyVideo
  22939. CheckOffscreenVideo
  22940. CheckDiskAudio
  22941. CheckDummyAudio
  22942. CheckPTHREAD
  22943. CheckDLOPEN
  22944. CheckClockGettime
  22945. CheckEmscriptenGLES
  22946. # Set up files for the misc library
  22947. if test x$enable_misc = xyes; then
  22948. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  22949. have_misc=yes
  22950. fi
  22951. # Set up files for the power library
  22952. if test x$enable_power = xyes; then
  22953. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  22954. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  22955. have_power=yes
  22956. fi
  22957. # Set up files for the joystick library
  22958. if test x$enable_joystick = xyes; then
  22959. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  22960. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  22961. have_joystick=yes
  22962. fi
  22963. # Set up files for the filesystem library
  22964. if test x$enable_filesystem = xyes; then
  22965. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  22966. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  22967. have_filesystem=yes
  22968. fi
  22969. # Set up files for the timer library
  22970. if test x$enable_timers = xyes; then
  22971. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22972. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22973. have_timers=yes
  22974. fi
  22975. # Set up files for the locale library
  22976. if test x$enable_locale = xyes; then
  22977. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  22978. have_locale=yes
  22979. fi
  22980. ;;
  22981. *-*-riscos*)
  22982. ARCH=riscos
  22983. CheckVisibilityHidden
  22984. CheckDeclarationAfterStatement
  22985. CheckDummyVideo
  22986. CheckOffscreenVideo
  22987. CheckDiskAudio
  22988. CheckDummyAudio
  22989. CheckDLOPEN
  22990. CheckO_CLOEXEC
  22991. CheckOSS
  22992. CheckPTHREAD
  22993. CheckClockGettime
  22994. # Set up files for the misc library
  22995. if test x$enable_misc = xyes; then
  22996. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  22997. have_misc=yes
  22998. fi
  22999. # Set up files for the video library
  23000. if test x$enable_video = xyes; then
  23001. $as_echo "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  23002. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  23003. have_video=yes
  23004. SUMMARY_video="${SUMMARY_video} riscos"
  23005. fi
  23006. # Set up files for the filesystem library
  23007. if test x$enable_filesystem = xyes; then
  23008. $as_echo "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  23009. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  23010. have_filesystem=yes
  23011. fi
  23012. # Set up files for the timer library
  23013. if test x$enable_timers = xyes; then
  23014. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  23015. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  23016. have_timers=yes
  23017. fi
  23018. ;;
  23019. *-*-os2*)
  23020. ARCH=os2
  23021. if test "$build" != "$host"; then # cross-compiling
  23022. # Default cross-compile location
  23023. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  23024. else
  23025. # Look for the location of the tools and install there
  23026. if test "$BUILD_PREFIX" != ""; then
  23027. ac_default_prefix=$BUILD_PREFIX
  23028. fi
  23029. fi
  23030. enable_static=no # disable static builds
  23031. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  23032. CheckOS2
  23033. CheckDeclarationAfterStatement
  23034. CheckDummyVideo
  23035. CheckDiskAudio
  23036. CheckDummyAudio
  23037. CheckHIDAPI
  23038. # Set up the core platform files
  23039. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  23040. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  23041. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  23042. fi
  23043. # Use the Unix locale APIs.
  23044. if test x$enable_locale = xyes; then
  23045. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  23046. have_locale=yes
  23047. fi
  23048. # Set up files for the video library
  23049. if test x$enable_video = xyes; then
  23050. $as_echo "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  23051. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  23052. have_video=yes
  23053. SUMMARY_video="${SUMMARY_video} os/2"
  23054. fi
  23055. # Set up files for the audio library
  23056. if test x$enable_audio = xyes; then
  23057. $as_echo "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  23058. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  23059. have_audio=yes
  23060. SUMMARY_audio="${SUMMARY_audio} os/2"
  23061. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  23062. fi
  23063. # Set up files for the thread library
  23064. if test x$enable_threads = xyes; then
  23065. $as_echo "#define SDL_THREAD_OS2 1" >>confdefs.h
  23066. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  23067. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  23068. have_threads=yes
  23069. fi
  23070. # Set up files for the timer library
  23071. if test x$enable_timers = xyes; then
  23072. $as_echo "#define SDL_TIMER_OS2 1" >>confdefs.h
  23073. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  23074. have_timers=yes
  23075. fi
  23076. # Set up files for the shared object loading library
  23077. if test x$enable_loadso = xyes; then
  23078. $as_echo "#define SDL_LOADSO_OS2 1" >>confdefs.h
  23079. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  23080. have_loadso=yes
  23081. fi
  23082. # Set up files for the filesystem library
  23083. if test x$enable_filesystem = xyes; then
  23084. $as_echo "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  23085. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  23086. have_filesystem=yes
  23087. fi
  23088. # Set up files for the joystick library
  23089. if test x$enable_joystick = xyes; then
  23090. $as_echo "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  23091. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  23092. have_joystick=yes
  23093. fi
  23094. ;;
  23095. *)
  23096. as_fn_error $? "
  23097. *** Unsupported host: Please add to configure.ac
  23098. " "$LINENO" 5
  23099. ;;
  23100. esac
  23101. CheckVirtualJoystick
  23102. # Check whether to install sdl2-config
  23103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  23104. $as_echo_n "checking whether to install sdl2-config... " >&6; }
  23105. # Check whether --enable-sdl2-config was given.
  23106. if test "${enable_sdl2_config+set}" = set; then :
  23107. enableval=$enable_sdl2_config; case "${enableval}" in
  23108. yes) enable_sdl2_config="TRUE" ;;
  23109. no) enable_sdl2_config="FALSE" ;;
  23110. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  23111. esac
  23112. else
  23113. enable_sdl2_config="TRUE"
  23114. fi
  23115. if test "$enable_sdl2_config" = "TRUE"; then
  23116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23117. $as_echo "yes" >&6; }
  23118. else
  23119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23120. $as_echo "no" >&6; }
  23121. fi
  23122. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  23123. # Verify that we have all the platform specific files we need
  23124. if test x$have_audio != xyes; then
  23125. if test x$enable_audio = xyes; then
  23126. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  23127. fi
  23128. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  23129. fi
  23130. if test x$have_video != xyes; then
  23131. if test x$enable_video = xyes; then
  23132. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  23133. fi
  23134. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  23135. fi
  23136. if test x$have_misc != xyes; then
  23137. if test x$enable_misc = xyes; then
  23138. $as_echo "#define SDL_MISC_DUMMY 1" >>confdefs.h
  23139. fi
  23140. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  23141. fi
  23142. if test x$have_locale != xyes; then
  23143. if test x$enable_locale = xyes; then
  23144. $as_echo "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  23145. fi
  23146. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  23147. fi
  23148. if test x$have_joystick != xyes; then
  23149. if test x$enable_joystick = xyes; then
  23150. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  23151. fi
  23152. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  23153. fi
  23154. if test x$have_haptic != xyes; then
  23155. if test x$enable_haptic = xyes; then
  23156. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  23157. fi
  23158. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  23159. fi
  23160. if test x$have_sensor != xyes; then
  23161. if test x$enable_sensor = xyes; then
  23162. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  23163. fi
  23164. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  23165. fi
  23166. if test x$have_threads != xyes; then
  23167. if test x$enable_threads = xyes; then
  23168. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  23169. fi
  23170. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  23171. fi
  23172. if test x$have_timers != xyes; then
  23173. if test x$enable_timers = xyes; then
  23174. $as_echo "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  23175. fi
  23176. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  23177. fi
  23178. if test x$have_filesystem != xyes; then
  23179. if test x$enable_filesystem = xyes; then
  23180. $as_echo "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  23181. fi
  23182. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  23183. fi
  23184. if test x$have_loadso != xyes; then
  23185. if test x$enable_loadso = xyes; then
  23186. $as_echo "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  23187. fi
  23188. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  23189. fi
  23190. if test x$SDLMAIN_SOURCES = x; then
  23191. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  23192. fi
  23193. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  23194. if test x$video_wayland = xyes; then
  23195. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  23196. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  23197. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  23198. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  23199. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  23200. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  23201. echo ;\
  23202. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  23203. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  23204. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  23205. echo ;\
  23206. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  23207. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  23208. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  23209. echo ;\
  23210. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  23211. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  23212. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  23213. done ;\
  23214. echo ;\
  23215. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  23216. fi
  23217. OBJECTS=`echo $SOURCES`
  23218. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  23219. for EXT in asm cc m c S; do
  23220. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  23221. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  23222. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  23223. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23224. done
  23225. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23226. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  23227. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  23228. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  23229. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  23230. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  23231. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  23232. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  23233. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  23234. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23235. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  23236. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  23237. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23238. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  23239. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  23240. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  23241. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  23242. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  23243. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  23244. # Set runtime shared library paths as needed
  23245. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  23246. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  23247. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  23248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  23249. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  23250. have_enable_new_dtags=no
  23251. save_LDFLAGS="$LDFLAGS"
  23252. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  23253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23254. /* end confdefs.h. */
  23255. int
  23256. main ()
  23257. {
  23258. ;
  23259. return 0;
  23260. }
  23261. _ACEOF
  23262. if ac_fn_c_try_link "$LINENO"; then :
  23263. have_enable_new_dtags=yes
  23264. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  23265. fi
  23266. rm -f core conftest.err conftest.$ac_objext \
  23267. conftest$ac_exeext conftest.$ac_ext
  23268. LDFLAGS="$save_LDFLAGS"
  23269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  23270. $as_echo "$have_enable_new_dtags" >&6; }
  23271. fi
  23272. if test $ARCH = solaris; then
  23273. SDL_RLD_FLAGS="-R\${libdir}"
  23274. fi
  23275. else
  23276. SDL_RLD_FLAGS=""
  23277. fi
  23278. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  23279. if test x$enable_shared = xyes; then
  23280. PKGCONFIG_LIBS_PRIV="
  23281. Libs.private:"
  23282. ENABLE_SHARED_TRUE=
  23283. ENABLE_SHARED_FALSE="#"
  23284. else
  23285. PKGCONFIG_LIBS_PRIV=
  23286. ENABLE_SHARED_TRUE="#"
  23287. ENABLE_SHARED_FALSE=
  23288. fi
  23289. if test x$enable_static = xyes; then
  23290. ENABLE_STATIC_TRUE=
  23291. ENABLE_STATIC_FALSE="#"
  23292. else
  23293. ENABLE_STATIC_TRUE="#"
  23294. ENABLE_STATIC_FALSE=
  23295. fi
  23296. cat >Makefile.rules <<__EOF__
  23297. # Build rules for objects
  23298. -include \$(OBJECTS:.lo=.d)
  23299. # Special dependency for SDL.c, since it depends on SDL_revision.h
  23300. $srcdir/src/SDL.c: update-revision
  23301. $DEPENDS
  23302. $VERSION_DEPENDS
  23303. $SDLMAIN_DEPENDS
  23304. $SDLTEST_DEPENDS
  23305. $WAYLAND_PROTOCOLS_DEPENDS
  23306. __EOF__
  23307. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  23308. ac_config_commands="$ac_config_commands sdl2_config"
  23309. SUMMARY="SDL2 Configure Summary:\n"
  23310. if test x$enable_shared = xyes; then
  23311. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  23312. fi
  23313. if test x$enable_static = xyes; then
  23314. SUMMARY="${SUMMARY}Building Static Libraries\n"
  23315. fi
  23316. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  23317. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  23318. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  23319. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  23320. if test x$have_x = xyes; then
  23321. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  23322. fi
  23323. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  23324. if test x$have_joystick_virtual = xyes; then
  23325. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  23326. else
  23327. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  23328. fi
  23329. if test x$have_samplerate_h_hdr = xyes; then
  23330. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  23331. else
  23332. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  23333. fi
  23334. if test x$have_libudev_h_hdr = xyes; then
  23335. SUMMARY="${SUMMARY}Using libudev : YES\n"
  23336. else
  23337. SUMMARY="${SUMMARY}Using libudev : NO\n"
  23338. fi
  23339. if test x$have_dbus_dbus_h_hdr = xyes; then
  23340. SUMMARY="${SUMMARY}Using dbus : YES\n"
  23341. else
  23342. SUMMARY="${SUMMARY}Using dbus : NO\n"
  23343. fi
  23344. if test x$enable_ime = xyes; then
  23345. SUMMARY="${SUMMARY}Using ime : YES\n"
  23346. else
  23347. SUMMARY="${SUMMARY}Using ime : NO\n"
  23348. fi
  23349. if test x$have_ibus_ibus_h_hdr = xyes; then
  23350. SUMMARY="${SUMMARY}Using ibus : YES\n"
  23351. else
  23352. SUMMARY="${SUMMARY}Using ibus : NO\n"
  23353. fi
  23354. if test x$have_fcitx = xyes; then
  23355. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  23356. else
  23357. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  23358. fi
  23359. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  23360. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  23361. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  23362. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  23363. SUMMARY="${SUMMARY}configure script with:\n"
  23364. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  23365. fi
  23366. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  23367. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  23368. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  23369. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  23370. SUMMARY="${SUMMARY}configure script with:\n"
  23371. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  23372. fi
  23373. ac_config_commands="$ac_config_commands summary"
  23374. cat >confcache <<\_ACEOF
  23375. # This file is a shell script that caches the results of configure
  23376. # tests run on this system so they can be shared between configure
  23377. # scripts and configure runs, see configure's option --config-cache.
  23378. # It is not useful on other systems. If it contains results you don't
  23379. # want to keep, you may remove or edit it.
  23380. #
  23381. # config.status only pays attention to the cache file if you give it
  23382. # the --recheck option to rerun configure.
  23383. #
  23384. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  23385. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  23386. # following values.
  23387. _ACEOF
  23388. # The following way of writing the cache mishandles newlines in values,
  23389. # but we know of no workaround that is simple, portable, and efficient.
  23390. # So, we kill variables containing newlines.
  23391. # Ultrix sh set writes to stderr and can't be redirected directly,
  23392. # and sets the high bit in the cache file unless we assign to the vars.
  23393. (
  23394. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  23395. eval ac_val=\$$ac_var
  23396. case $ac_val in #(
  23397. *${as_nl}*)
  23398. case $ac_var in #(
  23399. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  23400. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  23401. esac
  23402. case $ac_var in #(
  23403. _ | IFS | as_nl) ;; #(
  23404. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  23405. *) { eval $ac_var=; unset $ac_var;} ;;
  23406. esac ;;
  23407. esac
  23408. done
  23409. (set) 2>&1 |
  23410. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  23411. *${as_nl}ac_space=\ *)
  23412. # `set' does not quote correctly, so add quotes: double-quote
  23413. # substitution turns \\\\ into \\, and sed turns \\ into \.
  23414. sed -n \
  23415. "s/'/'\\\\''/g;
  23416. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  23417. ;; #(
  23418. *)
  23419. # `set' quotes correctly as required by POSIX, so do not add quotes.
  23420. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  23421. ;;
  23422. esac |
  23423. sort
  23424. ) |
  23425. sed '
  23426. /^ac_cv_env_/b end
  23427. t clear
  23428. :clear
  23429. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  23430. t end
  23431. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  23432. :end' >>confcache
  23433. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  23434. if test -w "$cache_file"; then
  23435. if test "x$cache_file" != "x/dev/null"; then
  23436. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  23437. $as_echo "$as_me: updating cache $cache_file" >&6;}
  23438. if test ! -f "$cache_file" || test -h "$cache_file"; then
  23439. cat confcache >"$cache_file"
  23440. else
  23441. case $cache_file in #(
  23442. */* | ?:*)
  23443. mv -f confcache "$cache_file"$$ &&
  23444. mv -f "$cache_file"$$ "$cache_file" ;; #(
  23445. *)
  23446. mv -f confcache "$cache_file" ;;
  23447. esac
  23448. fi
  23449. fi
  23450. else
  23451. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  23452. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  23453. fi
  23454. fi
  23455. rm -f confcache
  23456. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  23457. # Let make expand exec_prefix.
  23458. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  23459. DEFS=-DHAVE_CONFIG_H
  23460. ac_libobjs=
  23461. ac_ltlibobjs=
  23462. U=
  23463. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  23464. # 1. Remove the extension, and $U if already installed.
  23465. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  23466. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  23467. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  23468. # will be set to the directory where LIBOBJS objects are built.
  23469. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  23470. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  23471. done
  23472. LIBOBJS=$ac_libobjs
  23473. LTLIBOBJS=$ac_ltlibobjs
  23474. : "${CONFIG_STATUS=./config.status}"
  23475. ac_write_fail=0
  23476. ac_clean_files_save=$ac_clean_files
  23477. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  23478. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  23479. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  23480. as_write_fail=0
  23481. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  23482. #! $SHELL
  23483. # Generated by $as_me.
  23484. # Run this file to recreate the current configuration.
  23485. # Compiler output produced by configure, useful for debugging
  23486. # configure, is in config.log if it exists.
  23487. debug=false
  23488. ac_cs_recheck=false
  23489. ac_cs_silent=false
  23490. SHELL=\${CONFIG_SHELL-$SHELL}
  23491. export SHELL
  23492. _ASEOF
  23493. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  23494. ## -------------------- ##
  23495. ## M4sh Initialization. ##
  23496. ## -------------------- ##
  23497. # Be more Bourne compatible
  23498. DUALCASE=1; export DUALCASE # for MKS sh
  23499. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  23500. emulate sh
  23501. NULLCMD=:
  23502. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23503. # is contrary to our usage. Disable this feature.
  23504. alias -g '${1+"$@"}'='"$@"'
  23505. setopt NO_GLOB_SUBST
  23506. else
  23507. case `(set -o) 2>/dev/null` in #(
  23508. *posix*) :
  23509. set -o posix ;; #(
  23510. *) :
  23511. ;;
  23512. esac
  23513. fi
  23514. as_nl='
  23515. '
  23516. export as_nl
  23517. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  23518. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  23519. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  23520. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  23521. # Prefer a ksh shell builtin over an external printf program on Solaris,
  23522. # but without wasting forks for bash or zsh.
  23523. if test -z "$BASH_VERSION$ZSH_VERSION" \
  23524. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  23525. as_echo='print -r --'
  23526. as_echo_n='print -rn --'
  23527. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  23528. as_echo='printf %s\n'
  23529. as_echo_n='printf %s'
  23530. else
  23531. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  23532. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  23533. as_echo_n='/usr/ucb/echo -n'
  23534. else
  23535. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  23536. as_echo_n_body='eval
  23537. arg=$1;
  23538. case $arg in #(
  23539. *"$as_nl"*)
  23540. expr "X$arg" : "X\\(.*\\)$as_nl";
  23541. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  23542. esac;
  23543. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  23544. '
  23545. export as_echo_n_body
  23546. as_echo_n='sh -c $as_echo_n_body as_echo'
  23547. fi
  23548. export as_echo_body
  23549. as_echo='sh -c $as_echo_body as_echo'
  23550. fi
  23551. # The user is always right.
  23552. if test "${PATH_SEPARATOR+set}" != set; then
  23553. PATH_SEPARATOR=:
  23554. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  23555. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  23556. PATH_SEPARATOR=';'
  23557. }
  23558. fi
  23559. # IFS
  23560. # We need space, tab and new line, in precisely that order. Quoting is
  23561. # there to prevent editors from complaining about space-tab.
  23562. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  23563. # splitting by setting IFS to empty value.)
  23564. IFS=" "" $as_nl"
  23565. # Find who we are. Look in the path if we contain no directory separator.
  23566. as_myself=
  23567. case $0 in #((
  23568. *[\\/]* ) as_myself=$0 ;;
  23569. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23570. for as_dir in $PATH
  23571. do
  23572. IFS=$as_save_IFS
  23573. test -z "$as_dir" && as_dir=.
  23574. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  23575. done
  23576. IFS=$as_save_IFS
  23577. ;;
  23578. esac
  23579. # We did not find ourselves, most probably we were run as `sh COMMAND'
  23580. # in which case we are not to be found in the path.
  23581. if test "x$as_myself" = x; then
  23582. as_myself=$0
  23583. fi
  23584. if test ! -f "$as_myself"; then
  23585. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  23586. exit 1
  23587. fi
  23588. # Unset variables that we do not need and which cause bugs (e.g. in
  23589. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  23590. # suppresses any "Segmentation fault" message there. '((' could
  23591. # trigger a bug in pdksh 5.2.14.
  23592. for as_var in BASH_ENV ENV MAIL MAILPATH
  23593. do eval test x\${$as_var+set} = xset \
  23594. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  23595. done
  23596. PS1='$ '
  23597. PS2='> '
  23598. PS4='+ '
  23599. # NLS nuisances.
  23600. LC_ALL=C
  23601. export LC_ALL
  23602. LANGUAGE=C
  23603. export LANGUAGE
  23604. # CDPATH.
  23605. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  23606. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  23607. # ----------------------------------------
  23608. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  23609. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  23610. # script with STATUS, using 1 if that was 0.
  23611. as_fn_error ()
  23612. {
  23613. as_status=$1; test $as_status -eq 0 && as_status=1
  23614. if test "$4"; then
  23615. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  23616. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  23617. fi
  23618. $as_echo "$as_me: error: $2" >&2
  23619. as_fn_exit $as_status
  23620. } # as_fn_error
  23621. # as_fn_set_status STATUS
  23622. # -----------------------
  23623. # Set $? to STATUS, without forking.
  23624. as_fn_set_status ()
  23625. {
  23626. return $1
  23627. } # as_fn_set_status
  23628. # as_fn_exit STATUS
  23629. # -----------------
  23630. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  23631. as_fn_exit ()
  23632. {
  23633. set +e
  23634. as_fn_set_status $1
  23635. exit $1
  23636. } # as_fn_exit
  23637. # as_fn_unset VAR
  23638. # ---------------
  23639. # Portably unset VAR.
  23640. as_fn_unset ()
  23641. {
  23642. { eval $1=; unset $1;}
  23643. }
  23644. as_unset=as_fn_unset
  23645. # as_fn_append VAR VALUE
  23646. # ----------------------
  23647. # Append the text in VALUE to the end of the definition contained in VAR. Take
  23648. # advantage of any shell optimizations that allow amortized linear growth over
  23649. # repeated appends, instead of the typical quadratic growth present in naive
  23650. # implementations.
  23651. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  23652. eval 'as_fn_append ()
  23653. {
  23654. eval $1+=\$2
  23655. }'
  23656. else
  23657. as_fn_append ()
  23658. {
  23659. eval $1=\$$1\$2
  23660. }
  23661. fi # as_fn_append
  23662. # as_fn_arith ARG...
  23663. # ------------------
  23664. # Perform arithmetic evaluation on the ARGs, and store the result in the
  23665. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  23666. # must be portable across $(()) and expr.
  23667. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  23668. eval 'as_fn_arith ()
  23669. {
  23670. as_val=$(( $* ))
  23671. }'
  23672. else
  23673. as_fn_arith ()
  23674. {
  23675. as_val=`expr "$@" || test $? -eq 1`
  23676. }
  23677. fi # as_fn_arith
  23678. if expr a : '\(a\)' >/dev/null 2>&1 &&
  23679. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  23680. as_expr=expr
  23681. else
  23682. as_expr=false
  23683. fi
  23684. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  23685. as_basename=basename
  23686. else
  23687. as_basename=false
  23688. fi
  23689. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  23690. as_dirname=dirname
  23691. else
  23692. as_dirname=false
  23693. fi
  23694. as_me=`$as_basename -- "$0" ||
  23695. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  23696. X"$0" : 'X\(//\)$' \| \
  23697. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  23698. $as_echo X/"$0" |
  23699. sed '/^.*\/\([^/][^/]*\)\/*$/{
  23700. s//\1/
  23701. q
  23702. }
  23703. /^X\/\(\/\/\)$/{
  23704. s//\1/
  23705. q
  23706. }
  23707. /^X\/\(\/\).*/{
  23708. s//\1/
  23709. q
  23710. }
  23711. s/.*/./; q'`
  23712. # Avoid depending upon Character Ranges.
  23713. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  23714. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  23715. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  23716. as_cr_digits='0123456789'
  23717. as_cr_alnum=$as_cr_Letters$as_cr_digits
  23718. ECHO_C= ECHO_N= ECHO_T=
  23719. case `echo -n x` in #(((((
  23720. -n*)
  23721. case `echo 'xy\c'` in
  23722. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  23723. xy) ECHO_C='\c';;
  23724. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  23725. ECHO_T=' ';;
  23726. esac;;
  23727. *)
  23728. ECHO_N='-n';;
  23729. esac
  23730. rm -f conf$$ conf$$.exe conf$$.file
  23731. if test -d conf$$.dir; then
  23732. rm -f conf$$.dir/conf$$.file
  23733. else
  23734. rm -f conf$$.dir
  23735. mkdir conf$$.dir 2>/dev/null
  23736. fi
  23737. if (echo >conf$$.file) 2>/dev/null; then
  23738. if ln -s conf$$.file conf$$ 2>/dev/null; then
  23739. as_ln_s='ln -s'
  23740. # ... but there are two gotchas:
  23741. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  23742. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  23743. # In both cases, we have to default to `cp -pR'.
  23744. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  23745. as_ln_s='cp -pR'
  23746. elif ln conf$$.file conf$$ 2>/dev/null; then
  23747. as_ln_s=ln
  23748. else
  23749. as_ln_s='cp -pR'
  23750. fi
  23751. else
  23752. as_ln_s='cp -pR'
  23753. fi
  23754. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  23755. rmdir conf$$.dir 2>/dev/null
  23756. # as_fn_mkdir_p
  23757. # -------------
  23758. # Create "$as_dir" as a directory, including parents if necessary.
  23759. as_fn_mkdir_p ()
  23760. {
  23761. case $as_dir in #(
  23762. -*) as_dir=./$as_dir;;
  23763. esac
  23764. test -d "$as_dir" || eval $as_mkdir_p || {
  23765. as_dirs=
  23766. while :; do
  23767. case $as_dir in #(
  23768. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  23769. *) as_qdir=$as_dir;;
  23770. esac
  23771. as_dirs="'$as_qdir' $as_dirs"
  23772. as_dir=`$as_dirname -- "$as_dir" ||
  23773. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23774. X"$as_dir" : 'X\(//\)[^/]' \| \
  23775. X"$as_dir" : 'X\(//\)$' \| \
  23776. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  23777. $as_echo X"$as_dir" |
  23778. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23779. s//\1/
  23780. q
  23781. }
  23782. /^X\(\/\/\)[^/].*/{
  23783. s//\1/
  23784. q
  23785. }
  23786. /^X\(\/\/\)$/{
  23787. s//\1/
  23788. q
  23789. }
  23790. /^X\(\/\).*/{
  23791. s//\1/
  23792. q
  23793. }
  23794. s/.*/./; q'`
  23795. test -d "$as_dir" && break
  23796. done
  23797. test -z "$as_dirs" || eval "mkdir $as_dirs"
  23798. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  23799. } # as_fn_mkdir_p
  23800. if mkdir -p . 2>/dev/null; then
  23801. as_mkdir_p='mkdir -p "$as_dir"'
  23802. else
  23803. test -d ./-p && rmdir ./-p
  23804. as_mkdir_p=false
  23805. fi
  23806. # as_fn_executable_p FILE
  23807. # -----------------------
  23808. # Test if FILE is an executable regular file.
  23809. as_fn_executable_p ()
  23810. {
  23811. test -f "$1" && test -x "$1"
  23812. } # as_fn_executable_p
  23813. as_test_x='test -x'
  23814. as_executable_p=as_fn_executable_p
  23815. # Sed expression to map a string onto a valid CPP name.
  23816. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  23817. # Sed expression to map a string onto a valid variable name.
  23818. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  23819. exec 6>&1
  23820. ## ----------------------------------- ##
  23821. ## Main body of $CONFIG_STATUS script. ##
  23822. ## ----------------------------------- ##
  23823. _ASEOF
  23824. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  23825. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23826. # Save the log message, to keep $0 and so on meaningful, and to
  23827. # report actual input values of CONFIG_FILES etc. instead of their
  23828. # values after options handling.
  23829. ac_log="
  23830. This file was extended by $as_me, which was
  23831. generated by GNU Autoconf 2.69. Invocation command line was
  23832. CONFIG_FILES = $CONFIG_FILES
  23833. CONFIG_HEADERS = $CONFIG_HEADERS
  23834. CONFIG_LINKS = $CONFIG_LINKS
  23835. CONFIG_COMMANDS = $CONFIG_COMMANDS
  23836. $ $0 $@
  23837. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  23838. "
  23839. _ACEOF
  23840. case $ac_config_files in *"
  23841. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  23842. esac
  23843. case $ac_config_headers in *"
  23844. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  23845. esac
  23846. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23847. # Files that config.status was made for.
  23848. config_files="$ac_config_files"
  23849. config_headers="$ac_config_headers"
  23850. config_commands="$ac_config_commands"
  23851. _ACEOF
  23852. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23853. ac_cs_usage="\
  23854. \`$as_me' instantiates files and other configuration actions
  23855. from templates according to the current configuration. Unless the files
  23856. and actions are specified as TAGs, all are instantiated by default.
  23857. Usage: $0 [OPTION]... [TAG]...
  23858. -h, --help print this help, then exit
  23859. -V, --version print version number and configuration settings, then exit
  23860. --config print configuration, then exit
  23861. -q, --quiet, --silent
  23862. do not print progress messages
  23863. -d, --debug don't remove temporary files
  23864. --recheck update $as_me by reconfiguring in the same conditions
  23865. --file=FILE[:TEMPLATE]
  23866. instantiate the configuration file FILE
  23867. --header=FILE[:TEMPLATE]
  23868. instantiate the configuration header FILE
  23869. Configuration files:
  23870. $config_files
  23871. Configuration headers:
  23872. $config_headers
  23873. Configuration commands:
  23874. $config_commands
  23875. Report bugs to the package provider."
  23876. _ACEOF
  23877. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23878. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  23879. ac_cs_version="\\
  23880. config.status
  23881. configured by $0, generated by GNU Autoconf 2.69,
  23882. with options \\"\$ac_cs_config\\"
  23883. Copyright (C) 2012 Free Software Foundation, Inc.
  23884. This config.status script is free software; the Free Software Foundation
  23885. gives unlimited permission to copy, distribute and modify it."
  23886. ac_pwd='$ac_pwd'
  23887. srcdir='$srcdir'
  23888. INSTALL='$INSTALL'
  23889. AWK='$AWK'
  23890. test -n "\$AWK" || AWK=awk
  23891. _ACEOF
  23892. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23893. # The default lists apply if the user does not specify any file.
  23894. ac_need_defaults=:
  23895. while test $# != 0
  23896. do
  23897. case $1 in
  23898. --*=?*)
  23899. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  23900. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  23901. ac_shift=:
  23902. ;;
  23903. --*=)
  23904. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  23905. ac_optarg=
  23906. ac_shift=:
  23907. ;;
  23908. *)
  23909. ac_option=$1
  23910. ac_optarg=$2
  23911. ac_shift=shift
  23912. ;;
  23913. esac
  23914. case $ac_option in
  23915. # Handling of the options.
  23916. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  23917. ac_cs_recheck=: ;;
  23918. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  23919. $as_echo "$ac_cs_version"; exit ;;
  23920. --config | --confi | --conf | --con | --co | --c )
  23921. $as_echo "$ac_cs_config"; exit ;;
  23922. --debug | --debu | --deb | --de | --d | -d )
  23923. debug=: ;;
  23924. --file | --fil | --fi | --f )
  23925. $ac_shift
  23926. case $ac_optarg in
  23927. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  23928. '') as_fn_error $? "missing file argument" ;;
  23929. esac
  23930. as_fn_append CONFIG_FILES " '$ac_optarg'"
  23931. ac_need_defaults=false;;
  23932. --header | --heade | --head | --hea )
  23933. $ac_shift
  23934. case $ac_optarg in
  23935. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  23936. esac
  23937. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  23938. ac_need_defaults=false;;
  23939. --he | --h)
  23940. # Conflict between --help and --header
  23941. as_fn_error $? "ambiguous option: \`$1'
  23942. Try \`$0 --help' for more information.";;
  23943. --help | --hel | -h )
  23944. $as_echo "$ac_cs_usage"; exit ;;
  23945. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  23946. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  23947. ac_cs_silent=: ;;
  23948. # This is an error.
  23949. -*) as_fn_error $? "unrecognized option: \`$1'
  23950. Try \`$0 --help' for more information." ;;
  23951. *) as_fn_append ac_config_targets " $1"
  23952. ac_need_defaults=false ;;
  23953. esac
  23954. shift
  23955. done
  23956. ac_configure_extra_args=
  23957. if $ac_cs_silent; then
  23958. exec 6>/dev/null
  23959. ac_configure_extra_args="$ac_configure_extra_args --silent"
  23960. fi
  23961. _ACEOF
  23962. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23963. if \$ac_cs_recheck; then
  23964. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  23965. shift
  23966. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  23967. CONFIG_SHELL='$SHELL'
  23968. export CONFIG_SHELL
  23969. exec "\$@"
  23970. fi
  23971. _ACEOF
  23972. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23973. exec 5>>config.log
  23974. {
  23975. echo
  23976. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  23977. ## Running $as_me. ##
  23978. _ASBOX
  23979. $as_echo "$ac_log"
  23980. } >&5
  23981. _ACEOF
  23982. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23983. #
  23984. # INIT-COMMANDS
  23985. #
  23986. # The HP-UX ksh and POSIX shell print the target directory to stdout
  23987. # if CDPATH is set.
  23988. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  23989. sed_quote_subst='$sed_quote_subst'
  23990. double_quote_subst='$double_quote_subst'
  23991. delay_variable_subst='$delay_variable_subst'
  23992. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  23993. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  23994. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  23995. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  23996. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  23997. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  23998. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  23999. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  24000. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  24001. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  24002. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  24003. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  24004. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  24005. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  24006. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  24007. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  24008. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  24009. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  24010. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  24011. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  24012. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  24013. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  24014. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  24015. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  24016. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  24017. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  24018. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  24019. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  24020. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  24021. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  24022. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  24023. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  24024. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  24025. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  24026. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  24027. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  24028. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  24029. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  24030. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  24031. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  24032. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  24033. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  24034. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  24035. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  24036. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  24037. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  24038. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  24039. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  24040. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  24041. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  24042. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  24043. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  24044. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  24045. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  24046. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  24047. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  24048. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  24049. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  24050. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  24051. 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"`'
  24052. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  24053. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  24054. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  24055. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  24056. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  24057. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  24058. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  24059. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  24060. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  24061. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  24062. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  24063. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  24064. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  24065. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  24066. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  24067. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  24068. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  24069. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  24070. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  24071. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  24072. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  24073. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  24074. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  24075. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  24076. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  24077. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  24078. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  24079. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  24080. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  24081. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  24082. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  24083. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  24084. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  24085. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  24086. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  24087. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  24088. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  24089. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  24090. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  24091. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  24092. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  24093. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  24094. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  24095. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  24096. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  24097. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  24098. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  24099. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  24100. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  24101. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  24102. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  24103. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  24104. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  24105. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  24106. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  24107. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  24108. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  24109. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  24110. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  24111. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  24112. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  24113. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  24114. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  24115. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  24116. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  24117. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  24118. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  24119. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  24120. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  24121. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  24122. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  24123. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  24124. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  24125. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  24126. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  24127. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  24128. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  24129. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  24130. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  24131. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  24132. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  24133. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  24134. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  24135. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  24136. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  24137. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24138. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24139. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24140. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24141. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24142. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  24143. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  24144. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  24145. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  24146. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  24147. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24148. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  24149. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  24150. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  24151. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  24152. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  24153. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  24154. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  24155. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  24156. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  24157. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  24158. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  24159. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  24160. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24161. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24162. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24163. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24164. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  24165. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  24166. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24167. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24168. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24169. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24170. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24171. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24172. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24173. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24174. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24175. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24176. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24177. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24178. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  24179. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  24180. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  24181. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24182. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  24183. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  24184. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  24185. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24186. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  24187. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  24188. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  24189. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  24190. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  24191. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  24192. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  24193. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  24194. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  24195. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  24196. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  24197. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  24198. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  24199. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  24200. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  24201. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  24202. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  24203. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  24204. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24205. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24206. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  24207. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  24208. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  24209. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  24210. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24211. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24212. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  24213. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  24214. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  24215. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  24216. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  24217. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  24218. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  24219. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  24220. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  24221. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  24222. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  24223. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  24224. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  24225. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  24226. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  24227. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  24228. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  24229. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  24230. LTCC='$LTCC'
  24231. LTCFLAGS='$LTCFLAGS'
  24232. compiler='$compiler_DEFAULT'
  24233. # A function that is used when there is no print builtin or printf.
  24234. func_fallback_echo ()
  24235. {
  24236. eval 'cat <<_LTECHO_EOF
  24237. \$1
  24238. _LTECHO_EOF'
  24239. }
  24240. # Quote evaled strings.
  24241. for var in AS \
  24242. DLLTOOL \
  24243. OBJDUMP \
  24244. SHELL \
  24245. ECHO \
  24246. PATH_SEPARATOR \
  24247. SED \
  24248. GREP \
  24249. EGREP \
  24250. FGREP \
  24251. LD \
  24252. NM \
  24253. LN_S \
  24254. lt_SP2NL \
  24255. lt_NL2SP \
  24256. reload_flag \
  24257. deplibs_check_method \
  24258. file_magic_cmd \
  24259. file_magic_glob \
  24260. want_nocaseglob \
  24261. sharedlib_from_linklib_cmd \
  24262. AR \
  24263. AR_FLAGS \
  24264. archiver_list_spec \
  24265. STRIP \
  24266. RANLIB \
  24267. CC \
  24268. CFLAGS \
  24269. compiler \
  24270. lt_cv_sys_global_symbol_pipe \
  24271. lt_cv_sys_global_symbol_to_cdecl \
  24272. lt_cv_sys_global_symbol_to_import \
  24273. lt_cv_sys_global_symbol_to_c_name_address \
  24274. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  24275. lt_cv_nm_interface \
  24276. nm_file_list_spec \
  24277. lt_cv_truncate_bin \
  24278. lt_prog_compiler_no_builtin_flag \
  24279. lt_prog_compiler_pic \
  24280. lt_prog_compiler_wl \
  24281. lt_prog_compiler_static \
  24282. lt_cv_prog_compiler_c_o \
  24283. need_locks \
  24284. MANIFEST_TOOL \
  24285. DSYMUTIL \
  24286. NMEDIT \
  24287. LIPO \
  24288. OTOOL \
  24289. OTOOL64 \
  24290. shrext_cmds \
  24291. export_dynamic_flag_spec \
  24292. whole_archive_flag_spec \
  24293. compiler_needs_object \
  24294. with_gnu_ld \
  24295. allow_undefined_flag \
  24296. no_undefined_flag \
  24297. hardcode_libdir_flag_spec \
  24298. hardcode_libdir_separator \
  24299. exclude_expsyms \
  24300. include_expsyms \
  24301. file_list_spec \
  24302. variables_saved_for_relink \
  24303. libname_spec \
  24304. library_names_spec \
  24305. soname_spec \
  24306. install_override_mode \
  24307. finish_eval \
  24308. old_striplib \
  24309. striplib \
  24310. compiler_lib_search_dirs \
  24311. predep_objects \
  24312. postdep_objects \
  24313. predeps \
  24314. postdeps \
  24315. compiler_lib_search_path \
  24316. LD_RC \
  24317. LD_CXX \
  24318. reload_flag_RC \
  24319. reload_flag_CXX \
  24320. compiler_RC \
  24321. compiler_CXX \
  24322. lt_prog_compiler_no_builtin_flag_RC \
  24323. lt_prog_compiler_no_builtin_flag_CXX \
  24324. lt_prog_compiler_pic_RC \
  24325. lt_prog_compiler_pic_CXX \
  24326. lt_prog_compiler_wl_RC \
  24327. lt_prog_compiler_wl_CXX \
  24328. lt_prog_compiler_static_RC \
  24329. lt_prog_compiler_static_CXX \
  24330. lt_cv_prog_compiler_c_o_RC \
  24331. lt_cv_prog_compiler_c_o_CXX \
  24332. export_dynamic_flag_spec_RC \
  24333. export_dynamic_flag_spec_CXX \
  24334. whole_archive_flag_spec_RC \
  24335. whole_archive_flag_spec_CXX \
  24336. compiler_needs_object_RC \
  24337. compiler_needs_object_CXX \
  24338. with_gnu_ld_RC \
  24339. with_gnu_ld_CXX \
  24340. allow_undefined_flag_RC \
  24341. allow_undefined_flag_CXX \
  24342. no_undefined_flag_RC \
  24343. no_undefined_flag_CXX \
  24344. hardcode_libdir_flag_spec_RC \
  24345. hardcode_libdir_flag_spec_CXX \
  24346. hardcode_libdir_separator_RC \
  24347. hardcode_libdir_separator_CXX \
  24348. exclude_expsyms_RC \
  24349. exclude_expsyms_CXX \
  24350. include_expsyms_RC \
  24351. include_expsyms_CXX \
  24352. file_list_spec_RC \
  24353. file_list_spec_CXX \
  24354. compiler_lib_search_dirs_RC \
  24355. compiler_lib_search_dirs_CXX \
  24356. predep_objects_RC \
  24357. predep_objects_CXX \
  24358. postdep_objects_RC \
  24359. postdep_objects_CXX \
  24360. predeps_RC \
  24361. predeps_CXX \
  24362. postdeps_RC \
  24363. postdeps_CXX \
  24364. compiler_lib_search_path_RC \
  24365. compiler_lib_search_path_CXX; do
  24366. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  24367. *[\\\\\\\`\\"\\\$]*)
  24368. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  24369. ;;
  24370. *)
  24371. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  24372. ;;
  24373. esac
  24374. done
  24375. # Double-quote double-evaled strings.
  24376. for var in reload_cmds \
  24377. old_postinstall_cmds \
  24378. old_postuninstall_cmds \
  24379. old_archive_cmds \
  24380. extract_expsyms_cmds \
  24381. old_archive_from_new_cmds \
  24382. old_archive_from_expsyms_cmds \
  24383. archive_cmds \
  24384. archive_expsym_cmds \
  24385. module_cmds \
  24386. module_expsym_cmds \
  24387. export_symbols_cmds \
  24388. prelink_cmds \
  24389. postlink_cmds \
  24390. postinstall_cmds \
  24391. postuninstall_cmds \
  24392. finish_cmds \
  24393. sys_lib_search_path_spec \
  24394. configure_time_dlsearch_path \
  24395. configure_time_lt_sys_library_path \
  24396. reload_cmds_RC \
  24397. reload_cmds_CXX \
  24398. old_archive_cmds_RC \
  24399. old_archive_cmds_CXX \
  24400. old_archive_from_new_cmds_RC \
  24401. old_archive_from_new_cmds_CXX \
  24402. old_archive_from_expsyms_cmds_RC \
  24403. old_archive_from_expsyms_cmds_CXX \
  24404. archive_cmds_RC \
  24405. archive_cmds_CXX \
  24406. archive_expsym_cmds_RC \
  24407. archive_expsym_cmds_CXX \
  24408. module_cmds_RC \
  24409. module_cmds_CXX \
  24410. module_expsym_cmds_RC \
  24411. module_expsym_cmds_CXX \
  24412. export_symbols_cmds_RC \
  24413. export_symbols_cmds_CXX \
  24414. prelink_cmds_RC \
  24415. prelink_cmds_CXX \
  24416. postlink_cmds_RC \
  24417. postlink_cmds_CXX; do
  24418. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  24419. *[\\\\\\\`\\"\\\$]*)
  24420. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  24421. ;;
  24422. *)
  24423. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  24424. ;;
  24425. esac
  24426. done
  24427. ac_aux_dir='$ac_aux_dir'
  24428. # See if we are running on zsh, and set the options that allow our
  24429. # commands through without removal of \ escapes INIT.
  24430. if test -n "\${ZSH_VERSION+set}"; then
  24431. setopt NO_GLOB_SUBST
  24432. fi
  24433. PACKAGE='$PACKAGE'
  24434. VERSION='$VERSION'
  24435. RM='$RM'
  24436. ofile='$ofile'
  24437. SUMMARY="$SUMMARY"
  24438. _ACEOF
  24439. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24440. # Handling of arguments.
  24441. for ac_config_target in $ac_config_targets
  24442. do
  24443. case $ac_config_target in
  24444. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  24445. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  24446. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  24447. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  24448. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  24449. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  24450. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  24451. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  24452. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  24453. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  24454. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  24455. esac
  24456. done
  24457. # If the user did not use the arguments to specify the items to instantiate,
  24458. # then the envvar interface is used. Set only those that are not.
  24459. # We use the long form for the default assignment because of an extremely
  24460. # bizarre bug on SunOS 4.1.3.
  24461. if $ac_need_defaults; then
  24462. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  24463. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  24464. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  24465. fi
  24466. # Have a temporary directory for convenience. Make it in the build tree
  24467. # simply because there is no reason against having it here, and in addition,
  24468. # creating and moving files from /tmp can sometimes cause problems.
  24469. # Hook for its removal unless debugging.
  24470. # Note that there is a small window in which the directory will not be cleaned:
  24471. # after its creation but before its name has been assigned to `$tmp'.
  24472. $debug ||
  24473. {
  24474. tmp= ac_tmp=
  24475. trap 'exit_status=$?
  24476. : "${ac_tmp:=$tmp}"
  24477. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  24478. ' 0
  24479. trap 'as_fn_exit 1' 1 2 13 15
  24480. }
  24481. # Create a (secure) tmp directory for tmp files.
  24482. {
  24483. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  24484. test -d "$tmp"
  24485. } ||
  24486. {
  24487. tmp=./conf$$-$RANDOM
  24488. (umask 077 && mkdir "$tmp")
  24489. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  24490. ac_tmp=$tmp
  24491. # Set up the scripts for CONFIG_FILES section.
  24492. # No need to generate them if there are no CONFIG_FILES.
  24493. # This happens for instance with `./config.status config.h'.
  24494. if test -n "$CONFIG_FILES"; then
  24495. ac_cr=`echo X | tr X '\015'`
  24496. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  24497. # But we know of no other shell where ac_cr would be empty at this
  24498. # point, so we can use a bashism as a fallback.
  24499. if test "x$ac_cr" = x; then
  24500. eval ac_cr=\$\'\\r\'
  24501. fi
  24502. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  24503. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  24504. ac_cs_awk_cr='\\r'
  24505. else
  24506. ac_cs_awk_cr=$ac_cr
  24507. fi
  24508. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  24509. _ACEOF
  24510. {
  24511. echo "cat >conf$$subs.awk <<_ACEOF" &&
  24512. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  24513. echo "_ACEOF"
  24514. } >conf$$subs.sh ||
  24515. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24516. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  24517. ac_delim='%!_!# '
  24518. for ac_last_try in false false false false false :; do
  24519. . ./conf$$subs.sh ||
  24520. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24521. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  24522. if test $ac_delim_n = $ac_delim_num; then
  24523. break
  24524. elif $ac_last_try; then
  24525. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  24526. else
  24527. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  24528. fi
  24529. done
  24530. rm -f conf$$subs.sh
  24531. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24532. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  24533. _ACEOF
  24534. sed -n '
  24535. h
  24536. s/^/S["/; s/!.*/"]=/
  24537. p
  24538. g
  24539. s/^[^!]*!//
  24540. :repl
  24541. t repl
  24542. s/'"$ac_delim"'$//
  24543. t delim
  24544. :nl
  24545. h
  24546. s/\(.\{148\}\)..*/\1/
  24547. t more1
  24548. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  24549. p
  24550. n
  24551. b repl
  24552. :more1
  24553. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  24554. p
  24555. g
  24556. s/.\{148\}//
  24557. t nl
  24558. :delim
  24559. h
  24560. s/\(.\{148\}\)..*/\1/
  24561. t more2
  24562. s/["\\]/\\&/g; s/^/"/; s/$/"/
  24563. p
  24564. b
  24565. :more2
  24566. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  24567. p
  24568. g
  24569. s/.\{148\}//
  24570. t delim
  24571. ' <conf$$subs.awk | sed '
  24572. /^[^""]/{
  24573. N
  24574. s/\n//
  24575. }
  24576. ' >>$CONFIG_STATUS || ac_write_fail=1
  24577. rm -f conf$$subs.awk
  24578. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24579. _ACAWK
  24580. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  24581. for (key in S) S_is_set[key] = 1
  24582. FS = ""
  24583. }
  24584. {
  24585. line = $ 0
  24586. nfields = split(line, field, "@")
  24587. substed = 0
  24588. len = length(field[1])
  24589. for (i = 2; i < nfields; i++) {
  24590. key = field[i]
  24591. keylen = length(key)
  24592. if (S_is_set[key]) {
  24593. value = S[key]
  24594. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  24595. len += length(value) + length(field[++i])
  24596. substed = 1
  24597. } else
  24598. len += 1 + keylen
  24599. }
  24600. print line
  24601. }
  24602. _ACAWK
  24603. _ACEOF
  24604. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24605. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  24606. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  24607. else
  24608. cat
  24609. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  24610. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  24611. _ACEOF
  24612. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  24613. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  24614. # trailing colons and then remove the whole line if VPATH becomes empty
  24615. # (actually we leave an empty line to preserve line numbers).
  24616. if test "x$srcdir" = x.; then
  24617. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  24618. h
  24619. s///
  24620. s/^/:/
  24621. s/[ ]*$/:/
  24622. s/:\$(srcdir):/:/g
  24623. s/:\${srcdir}:/:/g
  24624. s/:@srcdir@:/:/g
  24625. s/^:*//
  24626. s/:*$//
  24627. x
  24628. s/\(=[ ]*\).*/\1/
  24629. G
  24630. s/\n//
  24631. s/^[^=]*=[ ]*$//
  24632. }'
  24633. fi
  24634. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24635. fi # test -n "$CONFIG_FILES"
  24636. # Set up the scripts for CONFIG_HEADERS section.
  24637. # No need to generate them if there are no CONFIG_HEADERS.
  24638. # This happens for instance with `./config.status Makefile'.
  24639. if test -n "$CONFIG_HEADERS"; then
  24640. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  24641. BEGIN {
  24642. _ACEOF
  24643. # Transform confdefs.h into an awk script `defines.awk', embedded as
  24644. # here-document in config.status, that substitutes the proper values into
  24645. # config.h.in to produce config.h.
  24646. # Create a delimiter string that does not exist in confdefs.h, to ease
  24647. # handling of long lines.
  24648. ac_delim='%!_!# '
  24649. for ac_last_try in false false :; do
  24650. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  24651. if test -z "$ac_tt"; then
  24652. break
  24653. elif $ac_last_try; then
  24654. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  24655. else
  24656. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  24657. fi
  24658. done
  24659. # For the awk script, D is an array of macro values keyed by name,
  24660. # likewise P contains macro parameters if any. Preserve backslash
  24661. # newline sequences.
  24662. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  24663. sed -n '
  24664. s/.\{148\}/&'"$ac_delim"'/g
  24665. t rset
  24666. :rset
  24667. s/^[ ]*#[ ]*define[ ][ ]*/ /
  24668. t def
  24669. d
  24670. :def
  24671. s/\\$//
  24672. t bsnl
  24673. s/["\\]/\\&/g
  24674. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  24675. D["\1"]=" \3"/p
  24676. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  24677. d
  24678. :bsnl
  24679. s/["\\]/\\&/g
  24680. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  24681. D["\1"]=" \3\\\\\\n"\\/p
  24682. t cont
  24683. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  24684. t cont
  24685. d
  24686. :cont
  24687. n
  24688. s/.\{148\}/&'"$ac_delim"'/g
  24689. t clear
  24690. :clear
  24691. s/\\$//
  24692. t bsnlc
  24693. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  24694. d
  24695. :bsnlc
  24696. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  24697. b cont
  24698. ' <confdefs.h | sed '
  24699. s/'"$ac_delim"'/"\\\
  24700. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  24701. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24702. for (key in D) D_is_set[key] = 1
  24703. FS = ""
  24704. }
  24705. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  24706. line = \$ 0
  24707. split(line, arg, " ")
  24708. if (arg[1] == "#") {
  24709. defundef = arg[2]
  24710. mac1 = arg[3]
  24711. } else {
  24712. defundef = substr(arg[1], 2)
  24713. mac1 = arg[2]
  24714. }
  24715. split(mac1, mac2, "(") #)
  24716. macro = mac2[1]
  24717. prefix = substr(line, 1, index(line, defundef) - 1)
  24718. if (D_is_set[macro]) {
  24719. # Preserve the white space surrounding the "#".
  24720. print prefix "define", macro P[macro] D[macro]
  24721. next
  24722. } else {
  24723. # Replace #undef with comments. This is necessary, for example,
  24724. # in the case of _POSIX_SOURCE, which is predefined and required
  24725. # on some systems where configure will not decide to define it.
  24726. if (defundef == "undef") {
  24727. print "/*", prefix defundef, macro, "*/"
  24728. next
  24729. }
  24730. }
  24731. }
  24732. { print }
  24733. _ACAWK
  24734. _ACEOF
  24735. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24736. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  24737. fi # test -n "$CONFIG_HEADERS"
  24738. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  24739. shift
  24740. for ac_tag
  24741. do
  24742. case $ac_tag in
  24743. :[FHLC]) ac_mode=$ac_tag; continue;;
  24744. esac
  24745. case $ac_mode$ac_tag in
  24746. :[FHL]*:*);;
  24747. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  24748. :[FH]-) ac_tag=-:-;;
  24749. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  24750. esac
  24751. ac_save_IFS=$IFS
  24752. IFS=:
  24753. set x $ac_tag
  24754. IFS=$ac_save_IFS
  24755. shift
  24756. ac_file=$1
  24757. shift
  24758. case $ac_mode in
  24759. :L) ac_source=$1;;
  24760. :[FH])
  24761. ac_file_inputs=
  24762. for ac_f
  24763. do
  24764. case $ac_f in
  24765. -) ac_f="$ac_tmp/stdin";;
  24766. *) # Look for the file first in the build tree, then in the source tree
  24767. # (if the path is not absolute). The absolute path cannot be DOS-style,
  24768. # because $ac_f cannot contain `:'.
  24769. test -f "$ac_f" ||
  24770. case $ac_f in
  24771. [\\/$]*) false;;
  24772. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  24773. esac ||
  24774. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  24775. esac
  24776. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  24777. as_fn_append ac_file_inputs " '$ac_f'"
  24778. done
  24779. # Let's still pretend it is `configure' which instantiates (i.e., don't
  24780. # use $as_me), people would be surprised to read:
  24781. # /* config.h. Generated by config.status. */
  24782. configure_input='Generated from '`
  24783. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  24784. `' by configure.'
  24785. if test x"$ac_file" != x-; then
  24786. configure_input="$ac_file. $configure_input"
  24787. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  24788. $as_echo "$as_me: creating $ac_file" >&6;}
  24789. fi
  24790. # Neutralize special characters interpreted by sed in replacement strings.
  24791. case $configure_input in #(
  24792. *\&* | *\|* | *\\* )
  24793. ac_sed_conf_input=`$as_echo "$configure_input" |
  24794. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  24795. *) ac_sed_conf_input=$configure_input;;
  24796. esac
  24797. case $ac_tag in
  24798. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  24799. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  24800. esac
  24801. ;;
  24802. esac
  24803. ac_dir=`$as_dirname -- "$ac_file" ||
  24804. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24805. X"$ac_file" : 'X\(//\)[^/]' \| \
  24806. X"$ac_file" : 'X\(//\)$' \| \
  24807. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  24808. $as_echo X"$ac_file" |
  24809. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  24810. s//\1/
  24811. q
  24812. }
  24813. /^X\(\/\/\)[^/].*/{
  24814. s//\1/
  24815. q
  24816. }
  24817. /^X\(\/\/\)$/{
  24818. s//\1/
  24819. q
  24820. }
  24821. /^X\(\/\).*/{
  24822. s//\1/
  24823. q
  24824. }
  24825. s/.*/./; q'`
  24826. as_dir="$ac_dir"; as_fn_mkdir_p
  24827. ac_builddir=.
  24828. case "$ac_dir" in
  24829. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  24830. *)
  24831. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  24832. # A ".." for each directory in $ac_dir_suffix.
  24833. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  24834. case $ac_top_builddir_sub in
  24835. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  24836. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  24837. esac ;;
  24838. esac
  24839. ac_abs_top_builddir=$ac_pwd
  24840. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  24841. # for backward compatibility:
  24842. ac_top_builddir=$ac_top_build_prefix
  24843. case $srcdir in
  24844. .) # We are building in place.
  24845. ac_srcdir=.
  24846. ac_top_srcdir=$ac_top_builddir_sub
  24847. ac_abs_top_srcdir=$ac_pwd ;;
  24848. [\\/]* | ?:[\\/]* ) # Absolute name.
  24849. ac_srcdir=$srcdir$ac_dir_suffix;
  24850. ac_top_srcdir=$srcdir
  24851. ac_abs_top_srcdir=$srcdir ;;
  24852. *) # Relative name.
  24853. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  24854. ac_top_srcdir=$ac_top_build_prefix$srcdir
  24855. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  24856. esac
  24857. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  24858. case $ac_mode in
  24859. :F)
  24860. #
  24861. # CONFIG_FILE
  24862. #
  24863. case $INSTALL in
  24864. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  24865. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  24866. esac
  24867. _ACEOF
  24868. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24869. # If the template does not know about datarootdir, expand it.
  24870. # FIXME: This hack should be removed a few years after 2.60.
  24871. ac_datarootdir_hack=; ac_datarootdir_seen=
  24872. ac_sed_dataroot='
  24873. /datarootdir/ {
  24874. p
  24875. q
  24876. }
  24877. /@datadir@/p
  24878. /@docdir@/p
  24879. /@infodir@/p
  24880. /@localedir@/p
  24881. /@mandir@/p'
  24882. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  24883. *datarootdir*) ac_datarootdir_seen=yes;;
  24884. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  24885. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  24886. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  24887. _ACEOF
  24888. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24889. ac_datarootdir_hack='
  24890. s&@datadir@&$datadir&g
  24891. s&@docdir@&$docdir&g
  24892. s&@infodir@&$infodir&g
  24893. s&@localedir@&$localedir&g
  24894. s&@mandir@&$mandir&g
  24895. s&\\\${datarootdir}&$datarootdir&g' ;;
  24896. esac
  24897. _ACEOF
  24898. # Neutralize VPATH when `$srcdir' = `.'.
  24899. # Shell code in configure.ac might set extrasub.
  24900. # FIXME: do we really want to maintain this feature?
  24901. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24902. ac_sed_extra="$ac_vpsub
  24903. $extrasub
  24904. _ACEOF
  24905. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24906. :t
  24907. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  24908. s|@configure_input@|$ac_sed_conf_input|;t t
  24909. s&@top_builddir@&$ac_top_builddir_sub&;t t
  24910. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  24911. s&@srcdir@&$ac_srcdir&;t t
  24912. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  24913. s&@top_srcdir@&$ac_top_srcdir&;t t
  24914. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  24915. s&@builddir@&$ac_builddir&;t t
  24916. s&@abs_builddir@&$ac_abs_builddir&;t t
  24917. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  24918. s&@INSTALL@&$ac_INSTALL&;t t
  24919. $ac_datarootdir_hack
  24920. "
  24921. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  24922. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24923. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  24924. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  24925. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  24926. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  24927. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  24928. which seems to be undefined. Please make sure it is defined" >&5
  24929. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  24930. which seems to be undefined. Please make sure it is defined" >&2;}
  24931. rm -f "$ac_tmp/stdin"
  24932. case $ac_file in
  24933. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  24934. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  24935. esac \
  24936. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24937. ;;
  24938. :H)
  24939. #
  24940. # CONFIG_HEADER
  24941. #
  24942. if test x"$ac_file" != x-; then
  24943. {
  24944. $as_echo "/* $configure_input */" \
  24945. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  24946. } >"$ac_tmp/config.h" \
  24947. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24948. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  24949. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  24950. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  24951. else
  24952. rm -f "$ac_file"
  24953. mv "$ac_tmp/config.h" "$ac_file" \
  24954. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  24955. fi
  24956. else
  24957. $as_echo "/* $configure_input */" \
  24958. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  24959. || as_fn_error $? "could not create -" "$LINENO" 5
  24960. fi
  24961. ;;
  24962. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  24963. $as_echo "$as_me: executing $ac_file commands" >&6;}
  24964. ;;
  24965. esac
  24966. case $ac_file$ac_mode in
  24967. "libtool":C)
  24968. # See if we are running on zsh, and set the options that allow our
  24969. # commands through without removal of \ escapes.
  24970. if test -n "${ZSH_VERSION+set}"; then
  24971. setopt NO_GLOB_SUBST
  24972. fi
  24973. cfgfile=${ofile}T
  24974. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  24975. $RM "$cfgfile"
  24976. cat <<_LT_EOF >> "$cfgfile"
  24977. #! $SHELL
  24978. # Generated automatically by $as_me ($PACKAGE) $VERSION
  24979. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  24980. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  24981. # Provide generalized library-building support services.
  24982. # Written by Gordon Matzigkeit, 1996
  24983. # Copyright (C) 2014 Free Software Foundation, Inc.
  24984. # This is free software; see the source for copying conditions. There is NO
  24985. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  24986. # GNU Libtool is free software; you can redistribute it and/or modify
  24987. # it under the terms of the GNU General Public License as published by
  24988. # the Free Software Foundation; either version 2 of of the License, or
  24989. # (at your option) any later version.
  24990. #
  24991. # As a special exception to the GNU General Public License, if you
  24992. # distribute this file as part of a program or library that is built
  24993. # using GNU Libtool, you may include this file under the same
  24994. # distribution terms that you use for the rest of that program.
  24995. #
  24996. # GNU Libtool is distributed in the hope that it will be useful, but
  24997. # WITHOUT ANY WARRANTY; without even the implied warranty of
  24998. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24999. # GNU General Public License for more details.
  25000. #
  25001. # You should have received a copy of the GNU General Public License
  25002. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  25003. # The names of the tagged configurations supported by this script.
  25004. available_tags='RC CXX '
  25005. # Configured defaults for sys_lib_dlsearch_path munging.
  25006. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  25007. # ### BEGIN LIBTOOL CONFIG
  25008. # Which release of libtool.m4 was used?
  25009. macro_version=$macro_version
  25010. macro_revision=$macro_revision
  25011. # Assembler program.
  25012. AS=$lt_AS
  25013. # DLL creation program.
  25014. DLLTOOL=$lt_DLLTOOL
  25015. # Object dumper program.
  25016. OBJDUMP=$lt_OBJDUMP
  25017. # Whether or not to build shared libraries.
  25018. build_libtool_libs=$enable_shared
  25019. # Whether or not to build static libraries.
  25020. build_old_libs=$enable_static
  25021. # What type of objects to build.
  25022. pic_mode=$pic_mode
  25023. # Whether or not to optimize for fast installation.
  25024. fast_install=$enable_fast_install
  25025. # Shared archive member basename,for filename based shared library versioning on AIX.
  25026. shared_archive_member_spec=$shared_archive_member_spec
  25027. # Shell to use when invoking shell scripts.
  25028. SHELL=$lt_SHELL
  25029. # An echo program that protects backslashes.
  25030. ECHO=$lt_ECHO
  25031. # The PATH separator for the build system.
  25032. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  25033. # The host system.
  25034. host_alias=$host_alias
  25035. host=$host
  25036. host_os=$host_os
  25037. # The build system.
  25038. build_alias=$build_alias
  25039. build=$build
  25040. build_os=$build_os
  25041. # A sed program that does not truncate output.
  25042. SED=$lt_SED
  25043. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  25044. Xsed="\$SED -e 1s/^X//"
  25045. # A grep program that handles long lines.
  25046. GREP=$lt_GREP
  25047. # An ERE matcher.
  25048. EGREP=$lt_EGREP
  25049. # A literal string matcher.
  25050. FGREP=$lt_FGREP
  25051. # A BSD- or MS-compatible name lister.
  25052. NM=$lt_NM
  25053. # Whether we need soft or hard links.
  25054. LN_S=$lt_LN_S
  25055. # What is the maximum length of a command?
  25056. max_cmd_len=$max_cmd_len
  25057. # Object file suffix (normally "o").
  25058. objext=$ac_objext
  25059. # Executable file suffix (normally "").
  25060. exeext=$exeext
  25061. # whether the shell understands "unset".
  25062. lt_unset=$lt_unset
  25063. # turn spaces into newlines.
  25064. SP2NL=$lt_lt_SP2NL
  25065. # turn newlines into spaces.
  25066. NL2SP=$lt_lt_NL2SP
  25067. # convert \$build file names to \$host format.
  25068. to_host_file_cmd=$lt_cv_to_host_file_cmd
  25069. # convert \$build files to toolchain format.
  25070. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  25071. # Method to check whether dependent libraries are shared objects.
  25072. deplibs_check_method=$lt_deplibs_check_method
  25073. # Command to use when deplibs_check_method = "file_magic".
  25074. file_magic_cmd=$lt_file_magic_cmd
  25075. # How to find potential files when deplibs_check_method = "file_magic".
  25076. file_magic_glob=$lt_file_magic_glob
  25077. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  25078. want_nocaseglob=$lt_want_nocaseglob
  25079. # Command to associate shared and link libraries.
  25080. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  25081. # The archiver.
  25082. AR=$lt_AR
  25083. # Flags to create an archive.
  25084. AR_FLAGS=$lt_AR_FLAGS
  25085. # How to feed a file listing to the archiver.
  25086. archiver_list_spec=$lt_archiver_list_spec
  25087. # A symbol stripping program.
  25088. STRIP=$lt_STRIP
  25089. # Commands used to install an old-style archive.
  25090. RANLIB=$lt_RANLIB
  25091. old_postinstall_cmds=$lt_old_postinstall_cmds
  25092. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  25093. # Whether to use a lock for old archive extraction.
  25094. lock_old_archive_extraction=$lock_old_archive_extraction
  25095. # A C compiler.
  25096. LTCC=$lt_CC
  25097. # LTCC compiler flags.
  25098. LTCFLAGS=$lt_CFLAGS
  25099. # Take the output of nm and produce a listing of raw symbols and C names.
  25100. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  25101. # Transform the output of nm in a proper C declaration.
  25102. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  25103. # Transform the output of nm into a list of symbols to manually relocate.
  25104. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  25105. # Transform the output of nm in a C name address pair.
  25106. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  25107. # Transform the output of nm in a C name address pair when lib prefix is needed.
  25108. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  25109. # The name lister interface.
  25110. nm_interface=$lt_lt_cv_nm_interface
  25111. # Specify filename containing input files for \$NM.
  25112. nm_file_list_spec=$lt_nm_file_list_spec
  25113. # The root where to search for dependent libraries,and where our libraries should be installed.
  25114. lt_sysroot=$lt_sysroot
  25115. # Command to truncate a binary pipe.
  25116. lt_truncate_bin=$lt_lt_cv_truncate_bin
  25117. # The name of the directory that contains temporary libtool files.
  25118. objdir=$objdir
  25119. # Used to examine libraries when file_magic_cmd begins with "file".
  25120. MAGIC_CMD=$MAGIC_CMD
  25121. # Must we lock files when doing compilation?
  25122. need_locks=$lt_need_locks
  25123. # Manifest tool.
  25124. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  25125. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  25126. DSYMUTIL=$lt_DSYMUTIL
  25127. # Tool to change global to local symbols on Mac OS X.
  25128. NMEDIT=$lt_NMEDIT
  25129. # Tool to manipulate fat objects and archives on Mac OS X.
  25130. LIPO=$lt_LIPO
  25131. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  25132. OTOOL=$lt_OTOOL
  25133. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  25134. OTOOL64=$lt_OTOOL64
  25135. # Old archive suffix (normally "a").
  25136. libext=$libext
  25137. # Shared library suffix (normally ".so").
  25138. shrext_cmds=$lt_shrext_cmds
  25139. # The commands to extract the exported symbol list from a shared archive.
  25140. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  25141. # Variables whose values should be saved in libtool wrapper scripts and
  25142. # restored at link time.
  25143. variables_saved_for_relink=$lt_variables_saved_for_relink
  25144. # Do we need the "lib" prefix for modules?
  25145. need_lib_prefix=$need_lib_prefix
  25146. # Do we need a version for libraries?
  25147. need_version=$need_version
  25148. # Library versioning type.
  25149. version_type=$version_type
  25150. # Shared library runtime path variable.
  25151. runpath_var=$runpath_var
  25152. # Shared library path variable.
  25153. shlibpath_var=$shlibpath_var
  25154. # Is shlibpath searched before the hard-coded library search path?
  25155. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  25156. # Format of library name prefix.
  25157. libname_spec=$lt_libname_spec
  25158. # List of archive names. First name is the real one, the rest are links.
  25159. # The last name is the one that the linker finds with -lNAME
  25160. library_names_spec=$lt_library_names_spec
  25161. # The coded name of the library, if different from the real name.
  25162. soname_spec=$lt_soname_spec
  25163. # Permission mode override for installation of shared libraries.
  25164. install_override_mode=$lt_install_override_mode
  25165. # Command to use after installation of a shared archive.
  25166. postinstall_cmds=$lt_postinstall_cmds
  25167. # Command to use after uninstallation of a shared archive.
  25168. postuninstall_cmds=$lt_postuninstall_cmds
  25169. # Commands used to finish a libtool library installation in a directory.
  25170. finish_cmds=$lt_finish_cmds
  25171. # As "finish_cmds", except a single script fragment to be evaled but
  25172. # not shown.
  25173. finish_eval=$lt_finish_eval
  25174. # Whether we should hardcode library paths into libraries.
  25175. hardcode_into_libs=$hardcode_into_libs
  25176. # Compile-time system search path for libraries.
  25177. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  25178. # Detected run-time system search path for libraries.
  25179. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  25180. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  25181. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  25182. # Whether dlopen is supported.
  25183. dlopen_support=$enable_dlopen
  25184. # Whether dlopen of programs is supported.
  25185. dlopen_self=$enable_dlopen_self
  25186. # Whether dlopen of statically linked programs is supported.
  25187. dlopen_self_static=$enable_dlopen_self_static
  25188. # Commands to strip libraries.
  25189. old_striplib=$lt_old_striplib
  25190. striplib=$lt_striplib
  25191. # The linker used to build libraries.
  25192. LD=$lt_LD
  25193. # How to create reloadable object files.
  25194. reload_flag=$lt_reload_flag
  25195. reload_cmds=$lt_reload_cmds
  25196. # Commands used to build an old-style archive.
  25197. old_archive_cmds=$lt_old_archive_cmds
  25198. # A language specific compiler.
  25199. CC=$lt_compiler
  25200. # Is the compiler the GNU compiler?
  25201. with_gcc=$GCC
  25202. # Compiler flag to turn off builtin functions.
  25203. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  25204. # Additional compiler flags for building library objects.
  25205. pic_flag=$lt_lt_prog_compiler_pic
  25206. # How to pass a linker flag through the compiler.
  25207. wl=$lt_lt_prog_compiler_wl
  25208. # Compiler flag to prevent dynamic linking.
  25209. link_static_flag=$lt_lt_prog_compiler_static
  25210. # Does compiler simultaneously support -c and -o options?
  25211. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  25212. # Whether or not to add -lc for building shared libraries.
  25213. build_libtool_need_lc=$archive_cmds_need_lc
  25214. # Whether or not to disallow shared libs when runtime libs are static.
  25215. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  25216. # Compiler flag to allow reflexive dlopens.
  25217. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  25218. # Compiler flag to generate shared objects directly from archives.
  25219. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  25220. # Whether the compiler copes with passing no objects directly.
  25221. compiler_needs_object=$lt_compiler_needs_object
  25222. # Create an old-style archive from a shared archive.
  25223. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  25224. # Create a temporary old-style archive to link instead of a shared archive.
  25225. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  25226. # Commands used to build a shared archive.
  25227. archive_cmds=$lt_archive_cmds
  25228. archive_expsym_cmds=$lt_archive_expsym_cmds
  25229. # Commands used to build a loadable module if different from building
  25230. # a shared archive.
  25231. module_cmds=$lt_module_cmds
  25232. module_expsym_cmds=$lt_module_expsym_cmds
  25233. # Whether we are building with GNU ld or not.
  25234. with_gnu_ld=$lt_with_gnu_ld
  25235. # Flag that allows shared libraries with undefined symbols to be built.
  25236. allow_undefined_flag=$lt_allow_undefined_flag
  25237. # Flag that enforces no undefined symbols.
  25238. no_undefined_flag=$lt_no_undefined_flag
  25239. # Flag to hardcode \$libdir into a binary during linking.
  25240. # This must work even if \$libdir does not exist
  25241. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  25242. # Whether we need a single "-rpath" flag with a separated argument.
  25243. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  25244. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25245. # DIR into the resulting binary.
  25246. hardcode_direct=$hardcode_direct
  25247. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25248. # DIR into the resulting binary and the resulting library dependency is
  25249. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25250. # library is relocated.
  25251. hardcode_direct_absolute=$hardcode_direct_absolute
  25252. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25253. # into the resulting binary.
  25254. hardcode_minus_L=$hardcode_minus_L
  25255. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25256. # into the resulting binary.
  25257. hardcode_shlibpath_var=$hardcode_shlibpath_var
  25258. # Set to "yes" if building a shared library automatically hardcodes DIR
  25259. # into the library and all subsequent libraries and executables linked
  25260. # against it.
  25261. hardcode_automatic=$hardcode_automatic
  25262. # Set to yes if linker adds runtime paths of dependent libraries
  25263. # to runtime path list.
  25264. inherit_rpath=$inherit_rpath
  25265. # Whether libtool must link a program against all its dependency libraries.
  25266. link_all_deplibs=$link_all_deplibs
  25267. # Set to "yes" if exported symbols are required.
  25268. always_export_symbols=$always_export_symbols
  25269. # The commands to list exported symbols.
  25270. export_symbols_cmds=$lt_export_symbols_cmds
  25271. # Symbols that should not be listed in the preloaded symbols.
  25272. exclude_expsyms=$lt_exclude_expsyms
  25273. # Symbols that must always be exported.
  25274. include_expsyms=$lt_include_expsyms
  25275. # Commands necessary for linking programs (against libraries) with templates.
  25276. prelink_cmds=$lt_prelink_cmds
  25277. # Commands necessary for finishing linking programs.
  25278. postlink_cmds=$lt_postlink_cmds
  25279. # Specify filename containing input files.
  25280. file_list_spec=$lt_file_list_spec
  25281. # How to hardcode a shared library path into an executable.
  25282. hardcode_action=$hardcode_action
  25283. # The directories searched by this compiler when creating a shared library.
  25284. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  25285. # Dependencies to place before and after the objects being linked to
  25286. # create a shared library.
  25287. predep_objects=$lt_predep_objects
  25288. postdep_objects=$lt_postdep_objects
  25289. predeps=$lt_predeps
  25290. postdeps=$lt_postdeps
  25291. # The library search path used internally by the compiler when linking
  25292. # a shared library.
  25293. compiler_lib_search_path=$lt_compiler_lib_search_path
  25294. # ### END LIBTOOL CONFIG
  25295. _LT_EOF
  25296. cat <<'_LT_EOF' >> "$cfgfile"
  25297. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  25298. # func_munge_path_list VARIABLE PATH
  25299. # -----------------------------------
  25300. # VARIABLE is name of variable containing _space_ separated list of
  25301. # directories to be munged by the contents of PATH, which is string
  25302. # having a format:
  25303. # "DIR[:DIR]:"
  25304. # string "DIR[ DIR]" will be prepended to VARIABLE
  25305. # ":DIR[:DIR]"
  25306. # string "DIR[ DIR]" will be appended to VARIABLE
  25307. # "DIRP[:DIRP]::[DIRA:]DIRA"
  25308. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  25309. # "DIRA[ DIRA]" will be appended to VARIABLE
  25310. # "DIR[:DIR]"
  25311. # VARIABLE will be replaced by "DIR[ DIR]"
  25312. func_munge_path_list ()
  25313. {
  25314. case x$2 in
  25315. x)
  25316. ;;
  25317. *:)
  25318. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  25319. ;;
  25320. x:*)
  25321. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  25322. ;;
  25323. *::*)
  25324. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  25325. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  25326. ;;
  25327. *)
  25328. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  25329. ;;
  25330. esac
  25331. }
  25332. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  25333. func_cc_basename ()
  25334. {
  25335. for cc_temp in $*""; do
  25336. case $cc_temp in
  25337. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  25338. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  25339. \-*) ;;
  25340. *) break;;
  25341. esac
  25342. done
  25343. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  25344. }
  25345. # ### END FUNCTIONS SHARED WITH CONFIGURE
  25346. _LT_EOF
  25347. case $host_os in
  25348. aix3*)
  25349. cat <<\_LT_EOF >> "$cfgfile"
  25350. # AIX sometimes has problems with the GCC collect2 program. For some
  25351. # reason, if we set the COLLECT_NAMES environment variable, the problems
  25352. # vanish in a puff of smoke.
  25353. if test set != "${COLLECT_NAMES+set}"; then
  25354. COLLECT_NAMES=
  25355. export COLLECT_NAMES
  25356. fi
  25357. _LT_EOF
  25358. ;;
  25359. esac
  25360. ltmain=$ac_aux_dir/ltmain.sh
  25361. # We use sed instead of cat because bash on DJGPP gets confused if
  25362. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  25363. # text mode, it properly converts lines to CR/LF. This bash problem
  25364. # is reportedly fixed, but why not run on old versions too?
  25365. sed '$q' "$ltmain" >> "$cfgfile" \
  25366. || (rm -f "$cfgfile"; exit 1)
  25367. mv -f "$cfgfile" "$ofile" ||
  25368. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  25369. chmod +x "$ofile"
  25370. cat <<_LT_EOF >> "$ofile"
  25371. # ### BEGIN LIBTOOL TAG CONFIG: RC
  25372. # The linker used to build libraries.
  25373. LD=$lt_LD_RC
  25374. # How to create reloadable object files.
  25375. reload_flag=$lt_reload_flag_RC
  25376. reload_cmds=$lt_reload_cmds_RC
  25377. # Commands used to build an old-style archive.
  25378. old_archive_cmds=$lt_old_archive_cmds_RC
  25379. # A language specific compiler.
  25380. CC=$lt_compiler_RC
  25381. # Is the compiler the GNU compiler?
  25382. with_gcc=$GCC_RC
  25383. # Compiler flag to turn off builtin functions.
  25384. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  25385. # Additional compiler flags for building library objects.
  25386. pic_flag=$lt_lt_prog_compiler_pic_RC
  25387. # How to pass a linker flag through the compiler.
  25388. wl=$lt_lt_prog_compiler_wl_RC
  25389. # Compiler flag to prevent dynamic linking.
  25390. link_static_flag=$lt_lt_prog_compiler_static_RC
  25391. # Does compiler simultaneously support -c and -o options?
  25392. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  25393. # Whether or not to add -lc for building shared libraries.
  25394. build_libtool_need_lc=$archive_cmds_need_lc_RC
  25395. # Whether or not to disallow shared libs when runtime libs are static.
  25396. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  25397. # Compiler flag to allow reflexive dlopens.
  25398. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  25399. # Compiler flag to generate shared objects directly from archives.
  25400. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  25401. # Whether the compiler copes with passing no objects directly.
  25402. compiler_needs_object=$lt_compiler_needs_object_RC
  25403. # Create an old-style archive from a shared archive.
  25404. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  25405. # Create a temporary old-style archive to link instead of a shared archive.
  25406. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  25407. # Commands used to build a shared archive.
  25408. archive_cmds=$lt_archive_cmds_RC
  25409. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  25410. # Commands used to build a loadable module if different from building
  25411. # a shared archive.
  25412. module_cmds=$lt_module_cmds_RC
  25413. module_expsym_cmds=$lt_module_expsym_cmds_RC
  25414. # Whether we are building with GNU ld or not.
  25415. with_gnu_ld=$lt_with_gnu_ld_RC
  25416. # Flag that allows shared libraries with undefined symbols to be built.
  25417. allow_undefined_flag=$lt_allow_undefined_flag_RC
  25418. # Flag that enforces no undefined symbols.
  25419. no_undefined_flag=$lt_no_undefined_flag_RC
  25420. # Flag to hardcode \$libdir into a binary during linking.
  25421. # This must work even if \$libdir does not exist
  25422. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  25423. # Whether we need a single "-rpath" flag with a separated argument.
  25424. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  25425. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25426. # DIR into the resulting binary.
  25427. hardcode_direct=$hardcode_direct_RC
  25428. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25429. # DIR into the resulting binary and the resulting library dependency is
  25430. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25431. # library is relocated.
  25432. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  25433. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25434. # into the resulting binary.
  25435. hardcode_minus_L=$hardcode_minus_L_RC
  25436. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25437. # into the resulting binary.
  25438. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  25439. # Set to "yes" if building a shared library automatically hardcodes DIR
  25440. # into the library and all subsequent libraries and executables linked
  25441. # against it.
  25442. hardcode_automatic=$hardcode_automatic_RC
  25443. # Set to yes if linker adds runtime paths of dependent libraries
  25444. # to runtime path list.
  25445. inherit_rpath=$inherit_rpath_RC
  25446. # Whether libtool must link a program against all its dependency libraries.
  25447. link_all_deplibs=$link_all_deplibs_RC
  25448. # Set to "yes" if exported symbols are required.
  25449. always_export_symbols=$always_export_symbols_RC
  25450. # The commands to list exported symbols.
  25451. export_symbols_cmds=$lt_export_symbols_cmds_RC
  25452. # Symbols that should not be listed in the preloaded symbols.
  25453. exclude_expsyms=$lt_exclude_expsyms_RC
  25454. # Symbols that must always be exported.
  25455. include_expsyms=$lt_include_expsyms_RC
  25456. # Commands necessary for linking programs (against libraries) with templates.
  25457. prelink_cmds=$lt_prelink_cmds_RC
  25458. # Commands necessary for finishing linking programs.
  25459. postlink_cmds=$lt_postlink_cmds_RC
  25460. # Specify filename containing input files.
  25461. file_list_spec=$lt_file_list_spec_RC
  25462. # How to hardcode a shared library path into an executable.
  25463. hardcode_action=$hardcode_action_RC
  25464. # The directories searched by this compiler when creating a shared library.
  25465. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  25466. # Dependencies to place before and after the objects being linked to
  25467. # create a shared library.
  25468. predep_objects=$lt_predep_objects_RC
  25469. postdep_objects=$lt_postdep_objects_RC
  25470. predeps=$lt_predeps_RC
  25471. postdeps=$lt_postdeps_RC
  25472. # The library search path used internally by the compiler when linking
  25473. # a shared library.
  25474. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  25475. # ### END LIBTOOL TAG CONFIG: RC
  25476. _LT_EOF
  25477. cat <<_LT_EOF >> "$ofile"
  25478. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  25479. # The linker used to build libraries.
  25480. LD=$lt_LD_CXX
  25481. # How to create reloadable object files.
  25482. reload_flag=$lt_reload_flag_CXX
  25483. reload_cmds=$lt_reload_cmds_CXX
  25484. # Commands used to build an old-style archive.
  25485. old_archive_cmds=$lt_old_archive_cmds_CXX
  25486. # A language specific compiler.
  25487. CC=$lt_compiler_CXX
  25488. # Is the compiler the GNU compiler?
  25489. with_gcc=$GCC_CXX
  25490. # Compiler flag to turn off builtin functions.
  25491. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  25492. # Additional compiler flags for building library objects.
  25493. pic_flag=$lt_lt_prog_compiler_pic_CXX
  25494. # How to pass a linker flag through the compiler.
  25495. wl=$lt_lt_prog_compiler_wl_CXX
  25496. # Compiler flag to prevent dynamic linking.
  25497. link_static_flag=$lt_lt_prog_compiler_static_CXX
  25498. # Does compiler simultaneously support -c and -o options?
  25499. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  25500. # Whether or not to add -lc for building shared libraries.
  25501. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  25502. # Whether or not to disallow shared libs when runtime libs are static.
  25503. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  25504. # Compiler flag to allow reflexive dlopens.
  25505. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  25506. # Compiler flag to generate shared objects directly from archives.
  25507. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  25508. # Whether the compiler copes with passing no objects directly.
  25509. compiler_needs_object=$lt_compiler_needs_object_CXX
  25510. # Create an old-style archive from a shared archive.
  25511. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  25512. # Create a temporary old-style archive to link instead of a shared archive.
  25513. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  25514. # Commands used to build a shared archive.
  25515. archive_cmds=$lt_archive_cmds_CXX
  25516. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  25517. # Commands used to build a loadable module if different from building
  25518. # a shared archive.
  25519. module_cmds=$lt_module_cmds_CXX
  25520. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  25521. # Whether we are building with GNU ld or not.
  25522. with_gnu_ld=$lt_with_gnu_ld_CXX
  25523. # Flag that allows shared libraries with undefined symbols to be built.
  25524. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  25525. # Flag that enforces no undefined symbols.
  25526. no_undefined_flag=$lt_no_undefined_flag_CXX
  25527. # Flag to hardcode \$libdir into a binary during linking.
  25528. # This must work even if \$libdir does not exist
  25529. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  25530. # Whether we need a single "-rpath" flag with a separated argument.
  25531. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  25532. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25533. # DIR into the resulting binary.
  25534. hardcode_direct=$hardcode_direct_CXX
  25535. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  25536. # DIR into the resulting binary and the resulting library dependency is
  25537. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  25538. # library is relocated.
  25539. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  25540. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  25541. # into the resulting binary.
  25542. hardcode_minus_L=$hardcode_minus_L_CXX
  25543. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  25544. # into the resulting binary.
  25545. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  25546. # Set to "yes" if building a shared library automatically hardcodes DIR
  25547. # into the library and all subsequent libraries and executables linked
  25548. # against it.
  25549. hardcode_automatic=$hardcode_automatic_CXX
  25550. # Set to yes if linker adds runtime paths of dependent libraries
  25551. # to runtime path list.
  25552. inherit_rpath=$inherit_rpath_CXX
  25553. # Whether libtool must link a program against all its dependency libraries.
  25554. link_all_deplibs=$link_all_deplibs_CXX
  25555. # Set to "yes" if exported symbols are required.
  25556. always_export_symbols=$always_export_symbols_CXX
  25557. # The commands to list exported symbols.
  25558. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  25559. # Symbols that should not be listed in the preloaded symbols.
  25560. exclude_expsyms=$lt_exclude_expsyms_CXX
  25561. # Symbols that must always be exported.
  25562. include_expsyms=$lt_include_expsyms_CXX
  25563. # Commands necessary for linking programs (against libraries) with templates.
  25564. prelink_cmds=$lt_prelink_cmds_CXX
  25565. # Commands necessary for finishing linking programs.
  25566. postlink_cmds=$lt_postlink_cmds_CXX
  25567. # Specify filename containing input files.
  25568. file_list_spec=$lt_file_list_spec_CXX
  25569. # How to hardcode a shared library path into an executable.
  25570. hardcode_action=$hardcode_action_CXX
  25571. # The directories searched by this compiler when creating a shared library.
  25572. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  25573. # Dependencies to place before and after the objects being linked to
  25574. # create a shared library.
  25575. predep_objects=$lt_predep_objects_CXX
  25576. postdep_objects=$lt_postdep_objects_CXX
  25577. predeps=$lt_predeps_CXX
  25578. postdeps=$lt_postdeps_CXX
  25579. # The library search path used internally by the compiler when linking
  25580. # a shared library.
  25581. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  25582. # ### END LIBTOOL TAG CONFIG: CXX
  25583. _LT_EOF
  25584. ;;
  25585. "sdl2_config":C) chmod a+x sdl2-config ;;
  25586. "summary":C) printf "$SUMMARY" ;;
  25587. esac
  25588. done # for ac_tag
  25589. as_fn_exit 0
  25590. _ACEOF
  25591. ac_clean_files=$ac_clean_files_save
  25592. test $ac_write_fail = 0 ||
  25593. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  25594. # configure is writing to config.log, and then calls config.status.
  25595. # config.status does its own redirection, appending to config.log.
  25596. # Unfortunately, on DOS this fails, as config.log is still kept open
  25597. # by configure, so config.status won't be able to write to it; its
  25598. # output is simply discarded. So we exec the FD to /dev/null,
  25599. # effectively closing config.log, so it can be properly (re)opened and
  25600. # appended to by config.status. When coming back to configure, we
  25601. # need to make the FD available again.
  25602. if test "$no_create" != yes; then
  25603. ac_cs_success=:
  25604. ac_config_status_args=
  25605. test "$silent" = yes &&
  25606. ac_config_status_args="$ac_config_status_args --quiet"
  25607. exec 5>/dev/null
  25608. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  25609. exec 5>>config.log
  25610. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  25611. # would make configure fail if this is the last instruction.
  25612. $ac_cs_success || as_fn_exit 1
  25613. fi
  25614. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  25615. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  25616. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  25617. fi